1. Introduction
According to the American Academy of Sleep Medicine (AASM) clinical guidelines, manual titration of positive airway pressure during attended polysomnography is the current standard for the selection of the optimal patient therapeutic pressure for patients with obstructive sleep apnea. Continuous positive airway pressure (CPAP) and bi-level positive airway pressure (BiPAP) are the two forms of PAP that are manually titrated during a PSG to determine the optimal amount of pressure for subsequent nightly usage. In pursuing effective and well-tolerated airway pressure therapy, patients often undergo PAP titration procedure for diagnostic measurements [
1]. This essential step aims to determine the appropriate air pressure required to maintain an open airway during sleep. However, the current strategies for PAP titration have certain disadvantages. Manual adjustments of parameters, e.g., pressure and oxygen fraction, can be challenging due to complex interactions with other NIV parameters like tidal volume and PEEP (Positive End-Expiratory Pressure) [
2].
Furthermore, the accuracy of obtained SpO
2 data may vary, potentially introducing errors in the titration process [
3]. Some individuals may necessitate long-term oxygen therapy, even when using PAP devices [
4,
5]. A common co-occurring condition in OSA is chronic hypercapnia, which may further necessitate oxygen supplementation. Chronic hypercapnia can have adverse effects on respiratory and cardiovascular systems, making its management a crucial aspect of OSA treatment. Additional oxygen supplementation in positive airway pressure treatment increases blood oxygen saturation, but it may also lead to bradypnea in patients with chronic hypercapnia, exacerbating their condition [
6]. This emphasizes the importance of precise oxygen titration techniques, especially when addressing chronic hypercapnia co-occurring with OSA.
Recognizing the disadvantages of manual adjustments, this study tackles the development of a Clinical Decision Support System (CDSS) for time efficiency in the titration of airway pressure and additional oxygen supply. Automation and expert-based control systems are crucial components, offering the potential for enhanced treatment adaptability and effectiveness while minimizing patient discomfort and time-consuming healthcare provider burden. The application of Markov decision processes (MDP) as a CDSS presents a significant yet intricate challenge, introducing innovative possibilities along with complex issues. MDPs provide a framework for modeling sequential decision making under uncertainty, allowing decision makers to maximize the probability of reaching desired states [
7].
To address limitations of manual titration and enhance the precision of OSA treatment, the integration of Clinical Decision Support Systems (CDSS), based on Markov decision processes, for automated PAP and oxygen titration has been explored in this study to describe the potential markers for the CPAP transition to BiPAP.
2. Materials and Methods
This descriptive observatory study was conducted and marketed in conformity with all regulatory enactments regulating data protection in the Republic of Latvia, including the Law on the Processing of Personal Data (protocol number E1.1.1.1/21/A/082, clinicaltrials.gov: NCT06090149). The patient population consisted of a case series of adults with OSA-induced hypoxemia who used additional oxygen supply and CPAP/BiPAP therapy. Patients included in the study were initially identified by reviewing medical records at Pauls Stradins Clinical University Hospital (PSCUH) for hospital patient medical cards. The study’s inclusion criteria encompassed individuals aged 18 and above who had OSA with specified criteria such as AHI values, documented symptoms, and associated health issues, as well as Chronic Obstructive Pulmonary Disease (COPD) with documented hypoxemia without additional oxygen support. Additionally, conditions involving the overlap between COPD and OSA or between pulmonary hypertension and obstructive sleep apnea were considered. On the other hand, the exclusion criteria involved individuals with COPD and OSA lacking documented hypoxemia, those under 18 years old, those requiring permanent replacement therapy for another organ, individuals contraindicated in non-invasive pulmonary ventilation, those refusing study participation, those with cognitive impairment hindering research completion, individuals with claustrophobia, pregnant individuals, and those with severe heart failure or recent cardiovascular events according to New York Heart Association functional class III–IV within the month preceding study inclusion.
During the study, patients were subjected to PAP titration while receiving supplemental oxygen through an oxygen concentrator. The research took place over one night, spanning from 22:00 to 8:00, covering a 10 h duration. A sleep technician meticulously observed a variety of vital signs and physiological parameters including monitoring respiratory flow, thoracic and abdominal movements, body position, respiratory rate (RR), heart rate (HR), blood oxygen saturation (SpO2), and levels of carbon dioxide (CO2) during transcutaneous measurements. The study also involved the collection of significant data, including the apnea–hypopnea index (AHI), and sleep architecture. Throughout the night, the sleep technician observed the patient’s condition, ensuring precise monitoring of all relevant parameters. This included the vital task of fine-tuning CPAP/BiLEVEL settings, adapting unit pressures, and controlling oxygen delivery as needed. These adjustments were carefully guided by the patient’s thoracic and abdominal movements, airflow patterns, blood SpO2 levels, and pCO2 concentrations. To facilitate this monitoring and care, patients were placed in a dedicated room equipped with monitoring and treatment equipment. The physician assistant conducted their observations and managed patient care from a separate room, utilizing remote control to make necessary adjustments.
PAP titration and data acquisition protocol: The CPAP pressure underwent a gradual adjustment to alleviate or eliminate apnea episodes. In cases where patients experienced tolerance issues, the PEEP level was lowered or switched to a BiLevel treatment. Supplementary oxygen was introduced based on the patient’s SpO2 levels, with a target of maintaining SpO2 levels of at least 89%. Continuous monitoring of pCO2 levels was carried out, and if there was a 5-unit increase in pCO2 or if SpO2 levels exceeded 92%, the oxygen flow was tapered down. The data acquisition process involved using the Lowenstein medical BiLevel Prisma 25ST device (software v5.22), which offered various modes such as CPAP, APAP, and BiLevel. This device also facilitated online monitoring of pressure, tidal volume, and mask leaks. Additionally, pCO2 levels were monitored using the Sentec device, which seamlessly integrated with the Lowenstein medical diagnostics report, and all the parameters were displayed in real-time on the screen. To complement the data collection, supplemental oxygen was administered through the Devilbiss 525 KS oxygen concentrator. When necessary, a physician’s assistant manually conducted additional data acquisition, particularly while making adjustments to the PAP settings and when adding or removing oxygen from the treatment.
Diagnostic prediction task: The treatment plan for patients is based on three key conditions: apnea, pCO2 levels, and changes in SpO2 levels. The target conditions for patients are absence of apnea, SpO2 levels above 92%, and stable pCO2 levels. The ideal progression for patients involves eliminating apnea and achieving target SpO2 levels without an increase in pCO2, while maintaining the lowest possible CPAP/BPAP pressure. The controllable parameters in this treatment are the CPAP/BPAP pressure and the flow of oxygen.
These controllable factors are interdependent and do not often change in the ideal way described above. As a result, the diagnostic system must be capable of determining the appropriate treatment action for all possible changes in these conditions. The Markov decision process, as illustrated in
Figure 1, accounts for potential worsening of conditions and outlines corresponding treatment actions. Typically, patients will spend most of their time adjusting the oxygen flow and CPAP/BPAP pressure to balance between increasing their SpO
2 and decreasing their pCO
2 levels.
4. Discussion
The average overall increase in SpO
2 to 89.1% reflects a substantial improvement, with noteworthy average delta values of SpO
2 of 9.4%. The consistency of this improvement is further emphasized by the narrow standard deviation (SD) of 5.0%, suggesting a reliable and predictable response to manual PAP therapy across the patient cohort. The results, however, show the stronger correlation in oxygen support on the higher IPAP values, while the increase in the CPAP pressure did not strongly correlate with the increase. The main explanation might be the impact of the higher CPAP pressure on the exhale phase as well as the impact of the apnea events that may impact the fluctuation [
8].
According to the American Academy of Sleep Medicine (AASM) guidelines for conducting manual PAP therapy, a BiPAP device may be used when a patient demonstrates difficulty acclimating to high airway pressure during the expiration phase of breathing or requires ventilatory support [
1]. The indications for transitioning to BiPAP therapy include patient intolerance to a CPAP therapy, persistent symptoms like excessive daytime sleepiness or snoring despite CPAP usage, and the observation of residual obstructive events at a CPAP pressure of ≥15 cm H
2O. When evaluating suspected etiologies for these issues, if retitration with the same modality proves unsuccessful, the AASM recommends considering bilevel positive airway pressure (BPAP) therapy, particularly in the spontaneous mode. However, it is essential to note that the decision to switch to BiPAP is predominantly influenced by apnea events, with pCO
2 and SpO
2 monitoring playing a secondary role. It is worth mentioning that patients with hypoxia on CPAP therapy may require additional oxygen therapy, thus the speculation regarding the initiation of the O
2 still persists. For instance, the administration of supplemental oxygen may exacerbate carbon dioxide retention, particularly in cases of type 2 respiratory failure. Notably, elevated oxygen concentrations may lead to a reduction in the respiratory drive, subsequently diminishing the ventilatory response. This diminished drive can impede the efficient elimination of CO
2, potentially exacerbating hypercapnia [
6].
It is crucial to observe the subgroup of patients whose initial pCO
2 levels were below 55 mmHg during CPAP intervention. Among this cohort (N = 5), a positive Pearson correlation coefficient for pCO
2 was evident. This implies that, for a subset of patients with pCO
2 < 55 mmHg levels, there was a discernible positive association between pCO
2 and CPAP pressure values. Such a relationship may be also indicative of a physiological response to higher positive airway pressure, possibly implicating a greater challenge in exhaling effectively under these conditions. Conversely, patients with an initial pCO
2 above 55 mmHg (N = 4) did not exhibit a strong correlation between pCO
2 and CPAP pressure values. This lack of positive and negative correlation suggests that for individuals with higher baseline pCO
2 levels, the impact of CPAP pressure on pCO
2 dynamics may be less pronounced. It is plausible that these patients have a different respiratory response or compensatory mechanisms that mitigate the influence of positive airway pressure on pCO
2 levels. Transitioning from CPAP therapy to bilevel positive airway pressure therapy revealed a consistent and strongly correlated decrease in pCO
2 as IPAP pressure increased across all patients (N = 7). This finding implies that as the inspiratory positive airway pressure intensified, there was a corresponding reduction in pCO
2 levels. BPAP allows the sleep technologist to separately adjust inspiratory and/or expiratory pressures during the polysomnogram to maintain the patency of the airway and provide ventilatory support. According to AASM guidelines, when transitioning from continuous positive airway pressure (CPAP) to BiPAP, the minimum starting expiratory positive airway pressure (EPAP) should be set at 4 cm H
2O or the CPAP level at which obstructive apneas were eliminated. An optimal minimum inspiratory positive airway pressure (IPAP)–EPAP differential is 4 cmH
2O and an optimal maximum IPAP–EPAP differential is 10 cmH
2O
2 [
1]. This inverse relationship between IPAP pressure and pCO
2 suggests that, in the context of BiPAP therapy, higher inspiratory pressures facilitate a more efficient removal of carbon dioxide [
9,
10].
The statistically significant improvements in SpO
2 and AHI following PAP and oxygen titration underscore the effectiveness of the manual PAP therapy in enhancing blood oxygen saturation during sleep. The reduction in the Apnea–Hypopnea index from an average of 61.8 events per hour before titration to 18.0 events per hour after titration demonstrates a statistically significant manual PAP titration efficiency. Similar results of the manual titration were obtained in other studies [
11]. However, it is time consuming to manually define the pressure support and the decision to switch the therapy from CPAP to BiPAP [
12]. Adjusting PAP parameters manually during the night presents several challenges, including the overload of sleep technologists. Moreover, this manual approach may increase the risk of human error in documentation and decision making [
13]. The differences between automatic PAP titration and manual titration may come from how parameters such as apnea, hypopnea, and snoring are defined, as well as the use of different recording methods [
2].
Several previous publications have raised the clinical problem of poor adherence of CPAP in OSA and telemedicine could be one of the solutions [
14].
Within this study, we have also observed the Markov decision processes. In this study, we delved into the utilization of MDPs within the context of a patient-centered and remote healthcare system. The significance of MDPs in this modern healthcare approach is increasingly recognized. MDPs are mathematical frameworks that can calculate the likelihood of transitioning between various states, defined by observing a large set of real condition changes. This methodology is particularly innovative in the management of positive airway pressure (PAP) and oxygen titration, where it can make decisions taking into account the evolving respiratory health of patients, thereby facilitating informed and timely treatment decisions. Using different system evaluation methods can help identify system defects and correct them in further research [
15].
The integration of MDPs into these algorithms allows for the consideration of the fluid nature of respiratory ailments. By doing so, treatment parameters can be adjusted based on the patient’s current health status and their medical history, ensuring a more tailored approach to care. The adaptability of these algorithms, underpinned by MDPs, marks a significant breakthrough in respiratory healthcare management. It enables healthcare providers to offer more accurate care remotely that not only brings the decision but is able to explain it. This approach aligns with the evolving landscape of healthcare, where personalized treatment and remote patient management are becoming increasingly important. The use of MDPs in this regard not only enhances patient outcomes but also streamlines the healthcare process, making it more efficient and responsive to patient needs.
Limitation: However, applying MDPs necessitates gathering not only primary data related to treatment but also extensive meta-data or detailed data that are typically not collected during treatment. For example, detailed records of a patient’s restless sleep progression are often not documented. Additionally, the automatic construction of a Markov transition graph implies repeatedly taking all possible actions for each state, known as environmental exploration. Of course, in medical scenarios, such an approach cannot be applied to patients. Instead, the transition matrix is constructed using existing treatment records, deviating from the idea of complete environmental exploration. Even with such an approach, there is a risk of getting an imprecise model. For example, in the study [
16], it is mentioned that the estimates of rewards and transition dynamics used to parameterize the MDPs are often imprecise and lead the DM to make decisions that do not perform well with respect to the true system. The imprecision in the estimates arises due to these values being typically obtained from observational data or from multiple external sources [
16]. When the policy found via an optimization process using the estimates is evaluated under the true parameters, the performance can be much worse than anticipated [
17]. Another approach for building or testing policy is using simulations [
18] that are possible in certain scenarios.
Markov decision process-based telemedical algorithms for patient treatment begin with creating an initial graph using expert medical knowledge. This method addresses the challenges of limited data collection and incomplete environmental exploration. The crucial next step is refining this graph (
Figure 1) by testing it against historical patient treatment records to develop a transition between states, a complex yet essential phase for building a functional Markov decision process. This approach, while intricate in implementation, is vital for overcoming inherent limitations similar to those faced by neural networks in predicting oxygen and pCO
2 fluctuations. It requires extensive, accurate data to create effective algorithms, a challenging but critical aspect of ensuring patient data quality and completeness. The optimism for this methodology stems from the demonstrated successes of machine learning in healthcare, particularly in enhancing patient outcomes in smaller, simulation-based studies, whereas neural networks require a much larger dataset to achieve acceptable treatment accuracy. The future of this development lies in analyzing a larger pool of patient records, which will help in establishing statistical probabilities of state changes for more accurate predictions and individualized patient modeling, marking a significant step towards personalized healthcare through technology.
Despite the acknowledged challenges, Markov process-based algorithms have the potential to be additionally trained to specific patients’ respiratory conditions, using additional hidden layers. This may potentially improve patient outcomes and enhance the quality of care in the field of respiratory medicine.
In conclusion, the development of a framework for Markov decision processes of PAP and oxygen titration algorithms holds promise for providing algorithms for deviation in CO2 and SpO2 markers. While challenges remain, including the need for high-quality data, the potential benefits in terms of patient management and care optimization are substantial, and this approach represents an exciting frontier in the realm of telemedicine and respiratory healthcare.