Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


Maciej Rosoł has a total of 26 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    Evaluating Temporal Orders for Local Non-Stationary Biological Signals Analysis: A Python Framework and Simulation Study

    by Marcel Młyńczak, Maciej Rosoł, Kacper Korzeniewski, Jakub S. Gąsior

    Background and Objective: Accurately parameterizing dynamic, time-varying interactions in physiological systems is a methodological challenge, as global causal discovery methods may obscure transient, local fluctuations. This study introduces tempord , an open-source Python library designed to estimate local temporal orders and evaluate the short-term stability, directionality, and strength of causal links in non-stationary biological signals. Methods: The algorithm estimates temporal relationships by keeping one signal stationary while iteratively shifting another one within a sliding window. To parameterize optimal inter-signal shifts (causal vector, CV), the framework utilizes linear modeling or time series distance metrics. The methodology was validated through a simulation study on synthetic bivariate signals with mathematically imposed dynamic phase delays, under both deterministic and noisy conditions. Furthermore, in-vivo capabilities were demonstrated by evaluating cardiorespiratory coupling dynamics across spontaneous and music-induced relaxation breathing states. Results: The simulation study demonstrated that the extracted CV trajectories precisely aligned with ground-truth temporal delays, assessed using mean absolute error and root mean square error for both noise-free and noisy synthetic data. In-vivo application demonstrated dynamic temporal stability and the detection of minor step changes during autonomic nervous system state transitions. Conclusions: The tempord Python package bridges the gap between global causal discovery and local beat-by-beat statistical parameterization. It provides a robust “bottom-up” analytical instrument for investigating the transient mechanisms governing complex biological networks.

  • Open Access

    The important role of time series stationarity for agreement of ultra-short-term heart rate variability in ski mountaineers: a case series

    by Jakub S. Gąsior, Marcel Młyńczak, Maciej Rosoł, Maciej Gąsienica-Józkowy, Robert Makuch, Łukasz Małek, Bożena Werner

    Study aim: The validity of ultra-short-term (≤1 min) heart rate variability (HRV) analysis in sports science remains debated. Previous studies have not established criteria for acceptable agreement or considered the role of signal stationarity. The aim of this study was to evaluate the agreement between HRV calculated based on RR intervals (RRi) from 5-minute (criterion) and shorter durations in elite athletes, with emphasis on the impact of signal stationarity. Material and methods: Eight ski mountaineers underwent ECG recordings in a supine position. Criterion recordings were segmented into the first: 4-min, 3-min, 2-min, and 1-min intervals. HRV parameters (HR, RMSSD, RMSSD/mRR, lnRMSSD) were analyzed. Signal stationarity was assessed using the augmented Dickey-Fuller test. Agreement was evaluated using Bland-Altman analysis with the smallest worthwhile change defining acceptable differences and intraclass correlation coefficients. Results: HR and natural logarithm of RMSSD (lnRMSSD) calculated from 4-min recordings showed clinically acceptable agreement with criterion. Three athletes exhibited non-stationary RRi in 1-min and 2-min recordings. These non-stationary recordings demonstrated higher bias in HRV parameters compared to stationary recordings. Heart rate microstructure (acceleration/deceleration patterns) remained unchanged across different recordings. Signal non-stationarity in shorter recordings may affect agreement between HRV parameters in athletes. Conclusions: Ultra-short recordings (1-min) may not be reliable for all athletes or all HRV parameters. Individual variation in signal stationarity appears to be an important consideration. Practitioners should verify signal stationarity and define acceptable difference thresholds before adopting shortened recording protocols for HRV analysis.

  • Open Access

    Machine Learning Classification of Pediatric Health Status Based on Cardiorespiratory Signals with Causal and Information Domain Features Applied—An Exploratory Study

    by Maciej Rosoł, Jakub S. Gąsior, Kacper Korzeniewski, Jonasz Łaba, Robert Makuch, Bożena Werner, Marcel Młyńczak

    Background/Objectives: This study aimed to evaluate the accuracy of machine learning (ML) techniques in classifying pediatric individuals—cardiological patients, healthy participants, and athletes—based on cardiorespiratory features from short-term static measurements. It also examined the impact of cardiorespiratory coupling (CRC)-related features (from causal and information domains) on the modeling accuracy to identify a preferred cardiorespiratory feature set that could be further explored for specialized tasks, such as monitoring training progress or diagnosing health conditions. Methods: We utilized six self-prepared datasets that comprised various subsets of cardiorespiratory parameters and applied several ML algorithms to classify subjects into three distinct groups. This research also leveraged explainable artificial intelligence (XAI) techniques to interpret model decisions and investigate feature importance. Results: The highest accuracy, over 89%, was obtained using the dataset that included most important demographic, cardiac, respiratory, and interrelated (causal and information) domain features. The dataset that comprised the most influential features but without demographic data yielded the second best accuracy, equal to 85%. Incorporation of the causal and information domain features significantly improved the classification accuracy. The use of XAI tools further highlighted the importance of these features with respect to each individual group. Conclusions: The integration of ML algorithms with a broad spectrum of cardiorespiratory features provided satisfactory efficiency in classifying pediatric individuals into groups according to their actual health status. This study underscored the potential of ML and XAI in advancing the analysis of cardiorespiratory signals and emphasized the importance of CRC-related features. The established set of features that appeared optimal for the classification of pediatric patients should be further explored for their potential in assessing individual progress through training or rehabilitation.

  • Open Access

    Validity of the Pneumonitor for Analysis of Short-Term Heart Rate Asymmetry Extended with Respiratory Data in Pediatric Cardiac Patients

    by Jakub S. Gąsior, Marcel Młyńczak, Maciej Rosoł, Piotr Wieniawski, Radosław Pietrzak, Bożena Werner

    Background: Wearable technologies have been developed to measure physiological parameters conveniently. To consider the new measurement device valid, the crucial point is to assess its reliability with the gold standard. The study aimed to assess the validity of the Pneumonitor (PM, fs = 250 Hz) for acquisition of 5 min RR intervals (RRi) for analysis of heart rate asymmetry (HRA) in relation to the electrocardiography (ECG, fs = 1000 Hz) in a group of 19 pediatric cardiac patients. Association between HRA and respiratory rate (RespRate) was verified. Methods: The validation comprised Bland–Altman analysis, intraclass correlation coefficient, and Student’s t-test. Results: Sufficient agreement between 10 from 16 HRA parameters was observed. Different HRA parameters values calculated based on RRi from both devices were related to different results of correlation analysis between two parameters and RespRate. Conclusions: The PM might be considered valid for recording RRi, which are then processed to calculate selected HRA parameters in a group of pediatric cardiac patients in rest condition. However, RRi recorded using devices with fs < 250 Hz may be not adequate for reliable HRA analysis.


  • Open Access

    Prediction of peak oxygen consumption using cardiorespiratory parameters from warmup and submaximal stage of treadmill cardiopulmonary exercise test

    by Maciej Rosoł, Monika Petelczyc, Jakub S Gąsior, Marcel Młyńczak

    This study investigates the quality of peak oxygen consumption (VO2peak) prediction based on cardiac and respiratory parameters calculated from warmup and submaximal stages of treadmill cardiopulmonary exercise test (CPET) using machine learning (ML) techniques and assesses the importance of respiratory parameters for the prediction outcome. The database consists of the following parameters: heart rate (HR), respiratory rate (RespRate), pulmonary ventilation (VE), oxygen consumption (VO2) and carbon dioxide production (VCO2) obtained from 369 treadmill CPETs. Combinations of features calculated based on the HR, VE and RespRate time-series from different stages of CPET were used to create 11 datasets for VO2peakprediction. Thirteen ML algorithms were employed, and model performances were evaluated using cross-validation with mean absolute percentage error (MAPE), R2score, mean absolute error (MAE), and root mean squared error (RMSE) calculated after each iteration of the validation. The results demonstrated that incorporating respiratory-based features improves the prediction of VO2peak. The best results in terms of R2score (0.47) and RMSE (5.78) were obtained for the dataset which included both cardiac- and respiratory-based features from CPET up to 85% of age-predicted HRmax, while the best results in terms of MAPE (10.5%) and MAE (4.63) were obtained for the dataset containing cardiorespiratory features from the last 30 seconds of warmup. The study showed the potential of using ML models based on cardiorespiratory features from submaximal tests for prediction of VO2peakand highlights the importance of the monitoring of respiratory signals, enabling to include respiratory parameters into the analysis. Presented approach offers a feasible alternative to direct VO2peakmeasurement, especially when specialized equipment is limited or unavailable.


  • Top Cited Papers
    Open Access

    Evaluation of the performance of GPT-3.5 and GPT-4 on the Polish Medical Final Examination

    by Maciej Rosoł, Jakub S. Gąsior, Jonasz Łaba, Kacper Korzeniewski, Marcel Młyńczak

    The study aimed to evaluate the performance of two Large Language Models (LLMs): ChatGPT (based on GPT-3.5) and GPT-4 with two temperature parameter values, on the Polish Medical Final Examination (MFE). The models were tested on three editions of the MFE from: Spring 2022, Autumn 2022, and Spring 2023 in two language versions—English and Polish. The accuracies of both models were compared and the relationships between the correctness of answers with the answer’s metrics were investigated. The study demonstrated that GPT-4 outperformed GPT-3.5 in all three examinations regardless of the language used. GPT-4 achieved mean accuracies of 79.7% for both Polish and English versions, passing all MFE versions. GPT-3.5 had mean accuracies of 54.8% for Polish and 60.3% for English, passing none and 2 of 3 Polish versions for temperature parameter equal to 0 and 1 respectively while passing all English versions regardless of the temperature parameter value. GPT-4 score was mostly lower than the average score of a medical student. There was a statistically significant correlation between the correctness of the answers and the index of difficulty for both models. The overall accuracy of both models was still suboptimal and worse than the average for medical students. This emphasizes the need for further improvements in LLMs before they can be reliably deployed in medical settings. These findings suggest an increasing potential for the usage of LLMs in terms of medical education.


  • Open Access

    Prediction of peak oxygen consumption using cardiorespiratory parameters from warm-up and submaximal stage of treadmill cardiopulmonary exercise test

    by Maciej Rosoł, Monika Petelczyc, Jakub S. Gąsior, Marcel Młyńczak

    This study investigates the quality of peak oxygen consumption (VO 2peak ) prediction based on cardiac and respiratory parameters calculated from warmup and submaximal stages of treadmill cardiopulmonary exercise test (CPET) using machine learning (ML) techniques and assesses the importance of respiratory parameters for the prediction outcome. The database consists of the following parameters: heart rate (HR), respiratory rate (RespRate), pulmonary ventilation (VE), oxygen consumption (VO 2 ) and carbon dioxide production (VCO 2 ) obtained from 369 treadmill CPETs. Combinations of features calculated based on the HR, VE and RespRate time-series from different stages of CPET were used to create 11 datasets for VO 2peak prediction. Thirteen ML algorithms were employed, and model performances were evaluated using cross-validation with mean absolute percentage error (MAPE), R 2 score, mean absolute error (MAE), and root mean squared error (RMSE) calculated after each iteration of the validation. The results demonstrated that incorporating respiratory-based features improves the prediction of VO 2peak . The best results in terms of R 2 score (0.47) and RMSE (5.78) were obtained for the dataset which included both cardiac- and respiratory-based features from CPET up to 85% of age-predicted HR max , while the best results in terms of MAPE (10.5%) and MAE (4.63) were obtained for the dataset containing cardiorespiratory features from the last 30 seconds of warmup. The study showed the potential of using ML models based on cardiorespiratory features from submaximal tests for prediction of VO 2peak and highlights the importance of the monitoring of respiratory signals, enabling to include respiratory parameters into the analysis. Presented approach offers a feasible alternative to direct VO 2peak measurement, especially when specialized equipment is limited or unavailable.

  • Open Access

    Evaluation of the performance of GPT-3.5 and GPT-4 on the Medical Final Examination

    by Maciej Rosoł, Jakub S. Gąsior, Jonasz Łaba, Kacper Korzeniewski, Marcel Młyńczak

    Introduction: The rapid progress in artificial intelligence, machine learning, and natural language processing has led to the emergence of increasingly sophisticated large language models (LLMs) enabling their use in various applications, including medicine and healthcare. Objectives: The study aimed to evaluate the performance of two LLMs: ChatGPT (based on GPT-3.5) and GPT-4, on the Medical Final Examination (MFE). Methods: The models were tested on three editions of the MFE from: Spring 2022, Autumn 2022, and Spring 2023 in two language versions – English and Polish. The accuracies of both models were compared and the relationships between the correctness of answers with the index of difficulty and discrimination power index were investigated. Results: The study demonstrated that GPT-4 outperformed GPT-3.5 in all three examinations regardless of the language used. GPT-4 achieved mean accuracies of 80.7% for Polish and 79.6% for English, passing all MFE versions. GPT-3.5 had mean accuracies of 56.6% for Polish and 58.3% for English, passing 2 of 3 Polish versions and all 3 English versions of the test. GPT-4 score was lower than the average score of a medical student. There was a significant positive and negative correlation between the correctness of the answers and the index of difficulty and discrimination power index, respectively, for both models in all three exams. Conclusions: These findings contribute to the growing body of literature on the utility of LLMs in medicine. They also suggest an increasing potential for the usage of LLMs in terms of medical education and decision-making support. What’s new?: Recent advancements in artificial intelligence and natural language processing have resulted in the development of sophisticated large language models (LLMs). This study focused on the evaluation of the performance of two LLMs, ChatGPT (based on GPT-3.5) and GPT-4, on the Medical Final Examination across English and Polish versions from three editions. This study, to the best of our knowledge, presents the first validation of those models on the European-based medical final examinations. The GPT-4 outperformed GPT-3.5 in all exams, achieving mean accuracy of 80.7% (Polish) and 79.6% (English), while GPT-3.5 attained 56.6% (Polish) and 58.3% (English) respectively. However, GPT-4’s scores fell short of typical medical student performance. These findings contribute to understanding LLM’s utility in medicine and hint at their potential in medical education and decision-making support.


  • Open Access

    Obstetric Anal Sphincter Injury Detection Using Impedance Spectroscopy with the ONIRY Probe

    by Marcel Młyńczak, Maciej Rosoł, Antonino Spinelli, Adam Dziki, Edyta Wlaźlak, Grzegorz Surkont, Magda Krzycka, Paulina Pająk, Łukasz Dziki, Michał Mik, et al.

    Anal sphincter injuries occurring during natural deliveries are often a reason for severe complications, including fecal incontinence. Currently, approximately 80% of these injuries remain unrecognized. Therefore, it is crucial to focus on finding a way to diagnose such injuries as early as possible to apply the tailored treatment. This study aimed to assess the accuracy of impedance spectroscopy in the diagnostics of obstetric anal sphincter injuries (OASIs) using a specially designed rectal probe called the ONIRY Probe. The protocol of the clinical trials is described at NCT03769792. Twenty women after natural delivery were enrolled in the study and divided into two groups referring to the stage of a perineal tear (Group A: 1- or 2-degrees, and Group B: 3- or 4-degrees of a perineal tear; without or with sphincter injury, respectively). The study design included three visits during which a number of diagnostic tests were performed, including impedance spectroscopy, and 3-dimensional endoanal ultrasound, anorectal manometry, and physical examination as a reference. Statistical analysis comprised raw data analysis, as well as post-processing with the Synthetic Minority Oversampling Technique (SMOTE) method, as the output reference grade was highly imbalanced. A variety of machine learning techniques were applied for the OASI classification (≤2 vs. >2), and Wexner scale (=0 vs. >0). The best efficacies were obtained using Random Forest and k-Nearest Neighbors methods. Best accuracies were 93.3% and 99.6%, for raw and re-analyzed data, respectively, for ultrasound assessed by the OASI classification; and 79.8% and 97.0%, respectively, for clinical evaluation using the Wexner scale. Impedance spectroscopy performed using the ONIRY Probe appears to be a promising diagnostic technique for anal sphincter injury detection but requires further investigation (the next phase of the pilot clinical trial is described at NCT04181840).