Next Article in Journal
Role of Imaging in the Management of Patients with SARS-CoV-2 Lung Involvement Admitted to the Emergency Department: A Systematic Review
Next Article in Special Issue
Determining a Trustworthy Application for Medical Data Visualizations through a Knowledge-Based Fuzzy Expert System
Previous Article in Journal
Exploring the Potential Driver Gene Mutations That Promote Renal Cancer Cell Metastasis and Implantation Based on Circulating Tumor Cells Culture
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Design of an Intelligent Decision Support System Applied to the Diagnosis of Obstructive Sleep Apnea

by
Manuel Casal-Guisande
1,2,*,†,
Laura Ceide-Sandoval
2,*,†,
Mar Mosteiro-Añón
3,4,*,
María Torres-Durán
3,4,
Jorge Cerqueiro-Pequeño
1,2,
José-Benito Bouza-Rodríguez
1,2,
Alberto Fernández-Villar
3,4 and
Alberto Comesaña-Campos
1,2,†
1
Department of Design in Engineering, University of Vigo, 36208 Vigo, Spain
2
Design, Expert Systems and Artificial Intelligent Solutions Group (DESAINS), Galicia Sur Health Research Institute (IIS Galicia Sur), SERGAS-UVIGO, 36213 Vigo, Spain
3
Pulmonary Department, Hospital Álvaro Cunqueiro, 36213 Vigo, Spain
4
NeumoVigo I+i Research Group, Galicia Sur Health Research Institute (IIS Galicia Sur), SERGAS-UVIGO, 36213 Vigo, Spain
*
Authors to whom correspondence should be addressed.
These authors contributed equally to this work.
Diagnostics 2023, 13(11), 1854; https://doi.org/10.3390/diagnostics13111854
Submission received: 7 February 2023 / Revised: 7 May 2023 / Accepted: 22 May 2023 / Published: 25 May 2023
(This article belongs to the Special Issue Applications of Artificial Intelligence in Healthcare Monitoring)

Abstract

:
Obstructive sleep apnea (OSA), characterized by recurrent episodes of partial or total obstruction of the upper airway during sleep, is currently one of the respiratory pathologies with the highest incidence worldwide. This situation has led to an increase in the demand for medical appointments and specific diagnostic studies, resulting in long waiting lists, with all the health consequences that this entails for the affected patients. In this context, this paper proposes the design and development of a novel intelligent decision support system applied to the diagnosis of OSA, aiming to identify patients suspected of suffering from the pathology. For this purpose, two sets of heterogeneous information are considered. The first one includes objective data related to the patient’s health profile, with information usually available in electronic health records (anthropometric information, habits, diagnosed conditions and prescribed treatments). The second type includes subjective data related to the specific OSA symptomatology reported by the patient in a specific interview. For the processing of this information, a machine-learning classification algorithm and a set of fuzzy expert systems arranged in cascade are used, obtaining, as a result, two indicators related to the risk of suffering from the disease. Subsequently, by interpreting both risk indicators, it will be possible to determine the severity of the patients’ condition and to generate alerts. For the initial tests, a software artifact was built using a dataset with 4400 patients from the Álvaro Cunqueiro Hospital (Vigo, Galicia, Spain). The preliminary results obtained are promising and demonstrate the potential usefulness of this type of tool in the diagnosis of OSA.

1. Introduction

Obstructive sleep apnea (OSA) is a chronic disease characterized by episodes of total or partial collapse of the upper airway during sleep, which impairs its quality and causes daytime sleepiness and fatigue. In addition to these, if left untreated, OSA has a direct impact on the patient’s health as it can cause hypertension and an increased risk of cardiovascular and cerebrovascular accidents, as well as being associated with the development of cognitive and metabolic disorders, among others.
Faced with this problem, and with approximately one thousand million people worldwide suffering from OSA [1], efforts have been made in the most developed countries to diagnose OSA at an early stage and to treat patients with this pathology. In 2015, OSA-related expenditure in United States was 12.4 thousand million dollars [2,3]. Despite this, it has been observed that a large number of patients suffering from this condition remain undiagnosed and therefore untreated [1,4], a fact that cannot be ignored due to the high health impact of this disease.
In-lab polysomnography is currently the gold standard for diagnosing OSA [5,6,7,8,9,10] and consists of a series of physiological measurements during sleep that allow the characterization of the pathology. However, there are other alternatives for diagnosing OSA that are cheaper and simpler. One of these is cardiorespiratory polygraphy; however, this does not provide information on neurophysiological variables [11,12]. After these studies, the apnea-hypopnea index (AHI) is the most commonly used variable to describe and assess the pathology. It measures the number of apnea (a complete interruption of respiratory function for at least 10 s [13,14]) and hypopnea (a decrease of at least 30% in respiratory flow for at least 10 s and a microarousal or desaturation less than 4% [13,14]) events that a patient experiments in an overninght sleep study divided by the total hours slept [8,15].
Although in-lab polysomnography is a widely used and recognized technique, it cannot be used for mass screening of the general population, at least with the technology currently available, because of its complexity and associated high cost [8,9]. It should be also noted that the number of accredited centers with this type of equipment is limited, which means that many patients are only referred to this type of study when they present with severe symptoms after a long period of suffering from the pathology [9]. All this points to the need for standardized methods to improve the screening process, thereby reducing the number of patients who are referred to the sleep units. Thus, priority would be given to those patients in need of it, which would result in an improvement in the diagnostic process and a decrease in the associated costs.
In this context, and in view of the problem described, this work deals with the design and development of a novel intelligent decision support system for the diagnosis of patients suspected of suffering from OSA. To this end, heterogeneous patient information is considered, both quantitative (age, body mass index, neck circumference, diagnosed conditions and prescribed treatments) and qualitative (symptoms reported by the patient in a sleep interview). From that, the intelligent system will be able to determine, through the concurrent [16,17,18,19,20,21,22] use of a machine-learning classification algorithm and a cascade of expert systems based on the Mamdani-type fuzzy inference system [23,24,25,26], two indicators associated with the risk of suffering from OSA. The first one is related to data of a more objective nature, while the second one is associated with those of a more subjective nature. Next, both risk indicators are evaluated, allowing us to determine if the patient is at risk of suffering from the disease, which would then require further confirmatory diagnostic studies to be performed.
This paper is structured into five sections. The remainder of Section 1 discusses the use of artificial intelligence approaches for the diagnosis of OSA. In Section 2, the conceptual description of the proposed system is presented, explaining the different stages involved, as well as the information flow. Then, the implementation of the system is detailed. Section 3 presents the results obtained from the case study. Next, Section 4 discusses the proposed system, and finally, Section 5 presents the conclusions and future lines of development.

Artificial Intelligence Approaches for the Diagnosis of Obstructive Sleep Apnea

It is becoming increasingly common in the healthcare field to have tools and approaches to support decision-making processes [27,28,29,30,31,32,33,34,35,36]. In particular, given the complexity of the OSA diagnostic process, several specific tools have been developed and proposed in recent years to support the diagnostic process.
In the work by Corrado Mencar et al. [37], the efficacy and applicability of machine-learning approaches were analyzed on a dataset with 313 patients from two sleep units in Italy. Both demographic data and questionnaires were used to determine the degree of severity of the patient’s OSA. Classification approaches were used, with support vector machines and random forest achieving the best results, with a maximum accuracy of 44.7% in the test set. Regression approaches were used to determinate the AHI level, with the best results obtained with support vector machines and linear regression, which had a minimum root mean square error value of 22.17.
Along this line, in the work by Lei Ming Sun et al. [38], based on data collected from questionnaires of 110 suspected patients who performed a polysomnography in the teaching hospital in Taiwan, an approach was proposed that seeks to screen those patients with moderate-severe OSA (with an AHI ≥ 15). For this purpose, genetic algorithms were implemented, obtaining a sensitivity of 81.8% and an accuracy of 88.4% for the test set. On the other hand, logistic regression showed a sensitivity of 55.6% and an accuracy of 57.2%. The authors report that the prevalence of apnea in their dataset was 77%, which is far from the real situation (common prevalence is 2 to 8% in general population [38]), so the model may have problems when extended to real populations.
In the work by Jayroop Ramesh et al. [39], the use of machine-learning approaches was proposed to discriminate between patients suspected of suffering from OSA, establishing an AHI threshold value of 5. To achieve this, the Wisconsin Sleep Cohort dataset with a total of 1479 patients (which included demographic information, physical measurements of the patient or sleep history, among other possible questions) was used. Firstly, feature selection techniques were applied to reduce the number of predictors. After applying optimization techniques and training different models, it was observed that the use of support vector machines was the model that showed the greatest results, with an accuracy of 68.06% and a sensitivity of 88.76%.
In the work by Daniela Ferreira-Santos and Pedro Pereira-Rodrigues [40], the use of Bayesian network classifiers, more specifically naïve Bayes and tree augmented naïve Bayes, was proposed to help distinguish between patients who may suffer from OSA in order to be able to decide which of them need to undergo polysomnography. With this aim, using data from 194 patients, two possible situations had to be considered. In the first one, the models were built with 38 variables, and accuracies of 67.1% and 66.9% and sensitivities of 90.0% and 81.9% were observed for the naïve Bayes and tree augmented naïve Bayes models, respectively. The second scenario, which considered only a selection of six variables based on a body of knowledge review, showed accuracies of 70.2% and 67.5% and sensitivities of 94.1% and 90.2% for the naïve Bayes and tree augmented naïve Bayes models, respectively.
In the work by C. Zoroglu and S. Turkeli [41], an expert system based on a Mamdani-type fuzzy inference system was proposed, which used the body mass index, the minimum blood oxygen saturation during sleep, the Mallampati score and the neck diameter to infer a level of AHI related to the risk of suffering from OSA.
Similarly, in the work by J. M. Matthews et al. [42] and based on the responses to the STOP-Bang questionnaire, a fuzzy rule-based system for the screening of OSA patients was presented.
It is also important to note the authors’ previous work in the field of OSA, published recently in 2023 [21], in which they presented the architecture of a then-novel intelligent decision support system. To this end, based on the information related to the patient’s health profile (the objective information mentioned above), the use of a series of machine-learning algorithms that work concurrently was proposed, focused on different AHI levels (10, 15, 20, 20, 25 and 30), with the aim of discriminating between different degrees of severity of the condition. The system also included a corrective block, based on the use of adaptive neuro-fuzzy inference system (ANFIS) and a particular heuristic algorithm, through which it was possible to correct anomalous or undesired behaviors. The initial tests of the system were carried out using a database from the Álvaro Cunqueiro Hospital (Vigo, Galicia, Spain), obtaining results that were supported by values of the Matthews correlation coefficient close to 0.6.
It may be appreciated that the analyzed works mostly use artificial intelligence approaches that implement learning models, thus requiring a dataset on which the algorithm can be trained. However, in the field of OSA, it is not so common to have public (or even private) databases available containing a considerable number of patients. Therefore, it is questionable whether these databases are meaningful and reliable because, generally, the cases in them are limited and do not include different scenarios. This is the reason why the isolated use of learning-based approaches may pose a difficulty when it is desired to build robust and reliable models for clinical diagnosis.

2. Materials and Methods

2.1. Definition of the System

2.1.1. Database Usage

To conduct this research, a healthcare database from the Respiratory Sleep Disorders Unit of the Pneumology Department of the Hospital Álvaro Cunqueiro (Vigo, Galicia, Spain) was used. This database contains information on 4583 patients, collected between 2013 and 2022. It is important to clarify that the database includes patients who are suspected of having OSA after having been evaluated by specialist pulmonologists, and cannot be considered to represent the general population.
For practical reasons, the database used can be divided into two large groups according to their nature.
On the one hand, there are data showing less subjectivity such as those usually present in electronic health records. For reasons of coherence and to ease the organization of the information, it has been grouped into four categories: general data and anthropometrics (sex, age, weight, height and neck circumference), smoking habits (smokes, does not smoke or smoked in the past, and, if applicable, the number of cigarettes per day and for how many years they have been a smoker) and drinking habits (consumes alcohol regularly, not a consumer or occasional consumer, and, if applicable, the amount of alcohol in grams consumed per day), diagnosed conditions (hypertension, resistant hypertension, acute cerebrovascular accident (ACVA), ACVA within the past year, diabetes mellitus, ischemic heart disease, chronic obstructive pulmonary disease (COPD), home oxygen therapy, rhinitis, depression, atrial fibrillation and heart failure) as well as prescribed treatments (benzodiazepines, antidepressants, neuroleptics, antihistamines, morphics and tranquilizers/hypnotics).
On the other hand, there is information that presents a greater degree of subjectivity related to the symptoms reported by the patient and collected through a specific sleep interview. This is summarized using the following items: hours of sleep, minutes taken to fall asleep, prolonged intra-sleep awakenings, feeling of unrefreshing sleep, daytime tiredness, morning dullness, snorer, high intensity snorer, snoring-related awakenings, unjustified multiple awakenings, nocturia, breathlessness awakenings and reported apneas.
From the initial dataset, 183 patients were randomly selected to be reserved for testing purposes and to illustrate the use of the system in the case study and were thus excluded from the training and validation process of the system. Considering the remaining 4400 patients, after the realization of the sleep studies (in most cases, cardiorespiratory polygraphies) and considering an AHI threshold value of 15, it was observed that 2693 patients presented a value equal or higher than 15, who were then considered as OSA cases, while 1707 presented a lower value and were considered as non-OSA cases. It is important to mention that an AHI value of 15 was chosen because it allows mild OSA cases to be distinguished from moderate–severe ones [43]. However, any other threshold value that the medical team considered appropriate could have been selected.

2.1.2. Conceptual Design and Description of the System

Figure 1 shows the flowchart of the proposed intelligent decision support system used to assist in the OSA diagnostic process. A detailed description is presented below.

Stage 1: Compilation of Patient Information

The first stage of the proposed intelligent system is focused on the collection of the patient information, which has already been introduced in Section 2.1.1. As already mentioned, and as can be seen in Figure 1, this information can be divided into two main groups depending on the nature of the information:
  • Stage 1.a—Objective data: This is associated with a lower degree of subjectivity and interpretability and is summarized in Table 1. This group has been divided into four sub-groups for the sake of coherence and to facilitate the process of entering the data into the forms. Table 1 also indicates whether each data type is numeric or categorical.
  • Stage 1.b—Subjective data: This is associated with more interpretative information, related to the symptoms reported by the patient and collected during a sleep interview. This information is summarized in Table 2. As in Table 1, it was decided to divide this group into four sub-groups for the sake of coherence and to simplify their subsequent treatment. Table 2 also includes a description of the type of data, depending on whether it is numerical or categorical.

Stage 2: Data Processing

Once the patient information has been collected and structured, it is processed. For this purpose, a machine-learning algorithm and a series of cascaded expert systems are deployed, arranged into two substages that work concurrently [16,17,18,19,20,21,22]. Through those, it is possible to determine two risk indicators, each of them associated with the groups of information previously mentioned, the Statistical Risk and the Symbolic Risk.
  • Stage 2.a—Determination of Statistical Risk: Once the objective data has been collected, as presented in Stage 1.a, it is processed using a machine-learning classification algorithm [44]. For the definition and configuration of the algorithm a dataset is used, which has already been introduced in Section 2.1.1. This data is preprocessed through normalization and data augmentation approaches, establishing an AHI threshold of 15 to label the different patients according to OSA case and non-OSA case classes. It is important to note that the medical team could modify this threshold if considered convenient. After this, once the model is adjusted and when new patient data is available, a risk metric will be obtained as the output of the classifier, the Statistical Risk, whose value will range from 0 to 100. This indicator can be understood as a percentage risk value of the patient actually suffering from OSA.
  • Stage 2.b—Determination of the Symbolic Risk: Concurrently to Stage 2.a [16,17,18,19], in Stage 2.b the subjective set of information collected in Stage 1.b is processed. As mentioned above, this information has been divided into four groups. For their processing, a series of expert systems are used, all of them based on the Mamdani-type fuzzy inference system [23,24,25,26] and arranged in a three-level cascade, as shown in Figure 2. This is because it is intended to perform a risk assessment based on different criteria, all of which are involved in the diagnosis of OSA, which allows the reduction of uncertainty and the creation of a more accurate and suitable knowledge base. Nevertheless, since this is a multicriteria approach and the aim is to obtain a global risk indicator that groups and represents them, the risks obtained as an output of the expert systems in the first level of the cascade are simultaneously fuzzified as input to expert systems #1 and #2 in the second level of the cascade. The outputs of these expert systems are also fuzzified as inputs of the expert system #3, which consists of the last level of the cascade, determining as its output a general risk indicator that contemplates the risks of the previous levels. This indicator is called Symbolic Risk, and its value will range from 0 to 100, representing the risk associated with the symptoms a patient experiencies as a potential OSA case. It is important to point out that the management of uncertainty in the cascade is not related to probabilities but rather to the concept of fuzzy membership, which is widely known and used in the field of fuzzy logic.

Stage 3: Generation of Alerts and Decision Making

Both the Statistical Risk and Symbolic Risk values obtained in Stage 2 will be initially interpreted individually on the basis of a series of threshold values that allow the establishment of an associated risk level:
  • Level 1: This refers to situations in which the level of risk is low, and it seems not to indicate an OSA case. This status will be proposed when the percentage risk to be analyzed is lower than a Limit 1 value.
  • Level 2: This refers to situations in which there is an intermediate level of risk, which does not clearly allow us to distinguish whether or not it is an OSA case. This status will be proposed if the percentage risk value lies in the range [Limit 1, Limit 2).
  • Level 3: This refers to situations in which there is a high risk level that appears to indicate the presence of an OSA case. This status will be proposed when the percentage risk to be analyzed is higher, or equal to, the Limit 2 value.
Once this has been done, there will be two risk levels, one of them associated with the Statistical Risk and the other with the Symbolic Risk, and a joint evaluation of these levels will be performed in order to establish a recommendation.
For this purpose, a score will be assigned to each of the levels (a utility function is proposed that transforms the risks into numerical values: for example, if the level is 1, zero points are given; if the level is 2, one point is given; if the level is 3, two points are given). Based on these, a decision variable T will be determined. The expression of this decision variable is shown in Equation (1). In addition, and with the aim of improving the aggregation, a weighting factor has been added to each score, defined through the variable WST for the statistical score and the variable WSY for the symbolic score. In this regard, W S T = 2 W S Y   , and W S T   a n d   W S Y 0 ,   2 .
T = W S T · S t a t i s t i c a l s c o r e + W S Y · S y m b o l i c s c o r e
Finally, the decision variable T is evaluated by considering the following thresholds:
  • Non-OSA case: Do not perform diagnostic studies: This status will be proposed when the decision variable has a value lower than two.
  • Doubtful case: This status will be proposed when the decision variable equals two. The medical team should assess whether it is necessary to perform further examinations or suggest a new medical appointment after a period of time to reconsider the patient’s condition.
  • Possible OSA case: Perform diagnostic studies.This status will be proposed when the decision variable is larger than, or equal to, three.

2.2. Implementation of the System

The intelligent decision support system described in Section 2.1.2 involves a series of stages from the collection of patient information and data processing through to the generation of alerts and decision making.
This section describes in detail the implementation of the intelligent system through a software artifact that verifies the recommendations of Hevner et al. [45,46] and, if considered, guarantees its future integration into a hospital information system.
Such implementation has been carried out using the MATLAB© programming environment (R2021b, MathWorks©, Natick, MA, USA), making use of the App Designer module [47] for the development of the graphical user interface, the Classification Learner [48] for training the machine-learning algorithms and the Fuzzy Logic toolbox [49] for the implementation of fuzzy logic inference systems. Furthermore, it was necessary to make an auxiliar use of Python’s (version 3.9.12) imbalanced-learn library [50] for synthetic data generation employing SMOTE-NC (Synthetic Minority Over-sampling Technique for Nominal and Continuous).
Figure 3 shows a screenshot of the graphical interface of the developed software artifact. Block (1.a) is related to the compilation and preprocessing of objective patient information, while block (1.b) is related to the subjective information. Blocks (2.a) and (2.b) refer to the data processing, making it possible to observe the Statistical Risk and the Symbolic Risk, respectively. Block (3) allows the generation of alerts and visualization of the system recommendations.

2.2.1. Data Acquisition

The data associated with each patient must be introduced into the application through the form shown in Figure 3. There are two areas in this, one for the introduction of objective data (1.a) and the other for the introduction of more subjective data (1.b). It is worth emphasizing the importance associated with the task of filling the forms, since errors or omissions in them could compromise the accuracy of the data, thus increasing the system’s uncertainty.

2.2.2. Data Processing

After the patient’s data have been introduced into the application, the processing is performed by the intelligent system. As previously mentioned, two blocks that act concurrently [16,17,18,19,20,21,22] are used for this purpose. The first one is based on a machine-learning classification algorithm, while the second one is based on a series of cascaded expert systems.
The process used for the construction and definition of these blocks, as well as the determination of the associated risk metrics, are described below.

Classification Algorithm Based on Machine Learning

For the definition of the machine-learning classification algorithm, the dataset presented in Section 2.1.1 was used as a starting point; more specifically, the most objective data which is summarized in Table 1. As can be observed in the table, part of the data belongs to the nominal or ordinal categorical data types [51,52]. Because of this, an encoding has been made using dummy encoding [42], which means that for each variable, a number of auxiliary variables are created to replace it, equal to the total number of categories presented in the starting variable minus one. Moreover, it is also necessary to mention the numerical data, which were scaled from zero to one using Min–Max normalization (as shown in Equation (2)). This is done because, with the help of the medical team, it has been possible to delimit for each of the cases the maximum and minimum values between which the study variables will be encompassed.
x = x i min x max x min x
After that, the distribution of the class to be predicted on the dataset is analyzed. As discussed in Section 2.1.1, considering an AHI threshold value of 15, it is observed that 2693 patients present a value equal to or higher than the threshold which are labeled as OSA cases. Meanwhile, 1707 patients present a lower value than the threshold and are labeled as non-OSA cases. Through the analysis of the dataset, a certain degree of imbalance is observed, which could affect the performance of the classifier. For this reason, a controlled data augmentation process is implemented as a usual approach in diagnostic environments, which tends to improve the results of binary classifiers [19,53]. A variation of the Synthetic Minority Over-Sampling Technique (SMOTE) was used for this purpose [53,54], oriented towards the processing of datasets in which numerical and categorical variables coexist, in this case the SMOTE-NC technique (Synthetic Minority Over-sampling Technique for Nominal and Continuous). Data of both classes have been generated with a strategy where the number of neighbors k = 5 was chosen until there were 4000 elements of each class. This provides a coherent training data set that can be used for the training of machine-learning-based classification algorithms, which makes it possible to classify new patients. To this end, and in order to evaluate the different available possibilities, a series of tests have been carried out using the MATLAB© Classification Learner app. This allows the training and analysis of multiple algorithms in a massive way, establishing a k-fold cross-validation strategy [55] with k = 5.
Different types of models were tested, including decision trees, logistic regression, naïve Bayes, support vector machines, ensembles (in this case, Bagged Trees) or artificial neural networks, among others. Figure 4 shows a summary graph of the ROC curves from the best models for the OSA cases.
Once the analysis of the results was performed, by interpreting the validation ROC curves, the Bagged Trees algorithm stands out. It should be noted that using one algorithm or another does not constrain the system in any way and that, in the future, if it is found that other algorithms give better results, they could be replaced without causing an essential change in the system. In any case, the stability of the chosen model was verified by simulating the calculation of the ROC curve and the AUC value in each fold, with minimal differences between them, as can be seen in Figure 5.
Figure 6a shows the ROC validation curve of the Bagged Trees algorithm for both classes, which show an AUC value close to 0.90. Figure 6b shows the model’s confusion matrix.
At this point, the next step consists in feeding data from a new patient into the classifier and obtaining a risk indicator, the Statistical Risk. This output is associated with the percentage risk of suffering from OSA for an AHI value greater than, or equal to, the determined threshold level, 15 in this case. This risk is scaled from 0 to 100, with 0 being the minimum percentage of having an AHI greater than or equal to the threshold, and 100 being the highest one.

Cascade of Expert Systems

Concurrent with the machine-learning module [16,17,18,19,20,21,22], in which the Statistical Risk was determined, in this module, the Symbolic Risk is calculated. For this purpose, a cascade of expert systems (introduced in Section 2.1.2) is deployed using Mamdani-type fuzzy inference system [23,24,25,26]. As shown in Figure 2, the cascade has three levels, which are detailed below:
  • First level: At the upper level of the cascade, the processing of the four groups of information previously introduced in Stage 2.b of Section 2.1.2 is carried out (‘sleep time’ group, ‘unrefreshing sleep’ group, ‘complicating sleep factors’ group and ‘snores’ group). For this purpose, four expert systems are used to obtain a risk indicator (R1.a, R1.b, R2.a and R2.b, respectively) as an output after the defuzzification process. These indicators determine the risk level associated with suffering from OSA related to each group of data.
  • Second level: At the second level of the cascade, the data from the first level is processed using two expert systems with the aim of aggregating their outputs. This is so because of the decision to group the risks obtained in the first level of the cascade into couples (R1.a and R1.b, R2.a and R2.b) according to the degree of affinity between the starting data. As a result, two risk indicators related to the groups of data linked to each indicator (R1 and R2, respectively) which show the risk associated with suffering from OSA are determined at the output of the expert systems after the defuzzification process.
  • Third level: At the third level of the cascade, the data from the second level of the cascade (R1 and R2) are processed using a single expert system. At its output, after the defuzzification process, a risk indicator is obtained, the Symbolic Risk, which indicates the risk level associated with the patient suffering from OSA according to the subjective input data.
The use of the cascade of expert systems makes it possible to aggregate the information of the different levels in a progressive way. The information related to the different criteria contemplated, understood as the different groups of data involved in the evaluation of the risk of suffering from OSA, can be incorporated. In addition, the use of a cascade-type structure facilitates the determination of the rules of each inference system. As the number of antecedents in the expert systems is smaller, greater precision is obtained in the elaboration of the rules.
As already mentioned, all the expert systems from the cascade are based on the Mamdani-type fuzzy inference system [23,24,25,26]. Figure 7 shows the operation’s flow diagram for this type of inference system, which is described in detail below.
First of all, the membership functions are determined for each of the variables. This make it possible to establish the degree of membership associated with a new value of a variable, with a value between zero (indicating non membership) and one (indicating absolute membership). As already mentioned, in the expert systems of the first level, the input variables are those described in Table 2, while in the second and third levels of the cascade, the inputs are the risks obtained after the defuzzification process of the expert systems of the immediately preceding level. With regards to the expert systems’ outputs, in this case, different risk indicators associated with the initial data will be obtained. The choice of one type of membership function or another will depend on the characteristics of the variable to be represented. Following Ross’s recommendation [26], normal, convex and symmetrical membership functions will be used, choosing, in this case, between triangular and trapezoidal functions [19]. After defining the membership functions, the next step is the fuzzification of the new input values to determine a series of membership degrees associated with each of them. Once this is done, in the third stage, the knowledge base of the system is established, wich is composed of a collection of declarative rules determined by the medical team. These rules are of the type ‘IF … AND … THEN …’, through which it is possible to represent the knowledge of the experts by combining the different input variables and relating them to the consequents. The fourth stage then evaluates the antecedents of the rules of the Mamdani system. As in the case of this study, when different membership functions are connected through the ‘AND’ operator, the lowest of the membership degrees associated with each of them will be obtained. After evaluating the antecedents, in the fifth stage, the next step involves obtaining the consequents by applying an implication method, in this case, the ‘minumum’, which truncates the membership function of the consequents of each rule. These truncated consequents are subsequently aggregated in the sixth stage by applying a disjunctive approach [26] based on the use of the ‘maximum’ operator, so as to achieve a graphical output equivalent to the superposition of the previously obtained consequents. This is subsequently defuzzified in the last stage by applying the centroid method [26] to determine a numerical value associated with the risk indicator at each of the risk levels. Nonetheless, the system contemplates that the variables and membership functions can be redefined based on the experience acquired during the use of the application.
Table 3, Table 4, Table 5 and Table 6 below summarize the initial configuration of the expert systems of the first level of the cascade, which are used for the calculation of risks R1.a, R1.b, R2.a and R2.b, respectively.
In the same way, Table 7 and Table 8 show the initial configuration of the expert systems of the second level of the cascade, which are used for the calculation of risks R1 and R2.
Finally, Table 9 shows the initial configuration of the expert system of the third level of the cascade, which is used for the calculation of the Symbolic Risk.
After the Symbolic Risk is obtained, it is rescaled in the range [0, 100] so that it can be compared to the Statistical Risk on the same scale. A higher value of the Symbolic Risk indicates a higher risk level of suffering from OSA.

2.2.3. Generation of Alerts and Decision Making

In the case of a new patient, and after determining both the Statistical Risk and Symbolic Risk indicators, the patient’s condition is determined, and a recommendation is proposed. As mentioned, the risk indicators will be first interpreted individually based on a series of threshold values that allow a risk level associated with each of the indicators to be established. The second column of Table 10 shows a summary of the different possible cases and their correspondence to each different level.
Regarding both the Statistical Risk and the Symbolic Risk, the value of Limit 1 is proposed to be 45, while the value of Limit 2 has been set at 65 for Symbolic Risk, and 60 for Statistical Risk. Nevertheless, these values may be reviewed and modified depending on the results observed during the clinical validation of the system.
Subsequently, the risk levels associated with each of the risk indicators will be available, and their joint evaluation will be carried out in order to establish a recommendation. Before that, a score will be assigned to each of the levels as can be seen in the third column of Table 10. Once this has been done, and by adding the score associated with the risk levels, a decision variable T will be determined as shown in Equation (3). By default, both scores are given equal weight ( W S T = W S Y = 1 ), but it might be possible to increase the effect of the terms used to calculate it by using weighting coefficients ( W S T   a n d   W S Y 0 , 2 ; and W S T = 2 W S Y ).
T   = W S T · S t a t i s t i c a l s c o r e + W S Y · S y m b o l i c s c o r e
This decision variable T could be considered as part of the usefulness analysis, representing a normative tool as opposed to the descriptive measure offered by the calculated risk values. Its objective is therefore not to predict but to assist in decision making by establishing a relationship between the calculation of risks and the preferential recommendation associated with the value of T and linked by Equation (1), which, in this setting and to this end, could be considered as an utility function [56,57].
Finally, the value of the decision variable T is evaluated. Table 11 presents a summary of the different recommendations proposed according to the value of the decision variable T. Emphasis should be placed on the fact that the threshold values for the variable T can be reviewed and modified according to the results obtained.
To summarize, Table 12 shows the whole process of generating alerts and decision making from the individual evaluation of each of the indicators determining the risk levels to their joint evaluation in determining the T variable and establishing the conclusions and recommendations. In this table, color codes have been used for the generation of alerts once the T variable has been evaluated. The green color is related to a non-OSA case and orange to a doubtful case, while red refers to a potential OSA case.

3. Results

This section presents a clinical case study of the application of the intelligent decision support system proposed in this paper. The aim is to give an example of its performance and potential use in the clinical field. It is important to clarify that the intention is neither to validate the system nor to compare it with other alternatives existing in the current body of knowledge.
Furthermore, prior to the presentation of the case study, it should be pointed out that the patient data analyzed in this section was not present in the dataset used for the definition and configuration of the system.

3.1. Compilation of the Patient’s Information

Table 13 shows the objective data of the patient to be analyzed, which is related to Stage 1.a of the proposed system. Table 14 presents the subjective data related to Stage 1.b of the proposed system. It is necessary to point out that this patient underwent sleep studies and presented an AHI value of 11.90. This value will be later used to evaluate the conclusions and recommendations generated by the intelligent system.
Once the data were submitted, they were introduced into the application to be processed by the intelligent clinical decision support system.

3.2. Data Processing

Subsequently, the two risk indicators previously defined in Section 2, Statistical Risk and Symbolic Risk, were determined. Figure 8 shows a screenshot of the application in which it is possible to observe the resulting risk values. In the case of Statistical Risk a percentage value of 40 was obtained, while in the case of the Symbolic Risk the respective value was 61.79, both of them expressed on a scale from 0 to 100.
The Symbolic Risk should be analyzed in more detail since, as mentioned in Section 2, it is the final value obtained from the cascade of expert systems. Analyzing the systems of the first level of the cascade, risk values of 7, 2, 9 and 8 were respectively obtained for risk indicators R1.a, R1.b, R2.a and R2.b, as shown in Figure 8.
Next, in the second level of the cascade, risk values of 4 and 8 were obtained for risk indicators R1 and R2, respectively. These risks, R1 and R2, were used for the calculation of the Symbolic Risk at the last level of the cascade, resulting in a preliminary value of 6.179, which, after being scaled from 0 to 100, presented a value of 61.79.

3.3. Generation of Alerts and Decision Making

After entering the patient’s data into the application and calculating the risk indicators associated with them, i.e., the Statistical Risk and the Symbolic Risk, that last stage was followed by their analysis and evaluation.
Both risks were first evaluated against three levels, each of them defined by two limit values. In this case, the limits are shown in Table 15. The value of Limit 1 was set at 45 in both cases, while the value of Limit 2 was set at 65 for Symbolic Risk, and 60 for Statistical Risk. A summary of the thresholds associated with the different levels, as well as their respective interpretations, is shown in Table 15.
The Statistical Risk showed a value of 40, which is lower than Limit 1, so this indicator is at the first level corresponding to a patient who does not suffer from OSA. On the other hand, the Symbolic Risk presented a value of 61.79, higher than Limit 1 and lower than Limit 2, so it is at the second level and associated with a doubtful case.
Once the individual interpretation of the risk indicators has been carried out, which is done automatically in the application based on the established thresholds, the next step is their joint interpretation. To understand the procedure, it may be helpful to retrieve Table 12, adapting it to this case as shown in Table 16, which allows to determine the recommendation of the system through the color code in that table (green for non-OSA, orange for a doubtful case, and red for a potential OSA case).
As the interpretation in Table 16 shows, an OSA case is not considered, so it is suggested not to perform further diagnostic studies. This final interpretation is also performed automatically by the system, as can be seen in Figure 8.
In any case, it is interesting to make a brief analysis of the results obtained. After the interpretation of the Statistical Risk, it is apparent that this is not a case that fits the usual pattern of an OSA patient, given that the risk value is relatively low.
Nevertheless, the patient presents some significant risk values in the cascade, such as R2.a and R2.b, associated with the ‘sleep complicating factors’ and ‘snores’ data groups, respectively. This may be due either to the patient not telling the truth or exaggerating their symptoms. Thus, after the joint assessment of the different levels of the cascade, the value of the Symbolic Risk obtained is average, which indicates that this case would be a doubtful one.
Following the joint assessment of the indicators, it was determined that the patient did not suffer from OSA, which is feasible given that the patient had an AHI value close to 10, commonly found in mild cases. Furthermore, it should be noted that the machine-learning classification algorithm was trained using a dataset with an AHI threshold value of 15. This was set so as to discriminate mild cases from moderate–severe ones.

3.4. Expansion of the Results

To extend the case study, fifteen new cases are presented below in Figure 9, following a similar process to that one previously described in Section 3. All cases analyzed were referred from primary care or other specialist areas as suspected OSA cases. The figure shows the system input data, as well as the results obtained and the AHI level. The results are color-coded for both the risk analysis (green = L1; orange = L2; red = L3) and the interpretation of the system’s recommendation (green = non-OSA case; orange = doubtful case; red = OSA case).

4. Discussion

Currently, OSA has a high incidence worldwide and involves a significant detriment to the health of those who suffer from it, notably increasing the demand for related medical consultations and diagnostic studies. These studies present a high instrumental complexity, it being necessary to use large numbers of sensors as well as to be supervised by specialized professionals, in addition to the requirement for a subsequent manual analysis of the results. As a consequence of the increasing demand for these types of studies, as well as the particularities inherent to these types of tests, considerable delays are frequent in their use. This entails a severe hazard to the health of the patients, together with the economic impact associated with the performance, in many cases, of tests that are not necessary. In this regard, and considering the important advances in the field of artificial intelligence, numerous and diverse approaches have been proposed in recent years for OSA diagnosis, generally based on the use of single (statistical in most cases) inference engines.
The diagnosis of OSA is a multivariate problem in which the aim is to assess whether a patient suffers from this clinical condition on the basis of a series of variables. Another purpose may be to determine potential cause–effect relationships that exist between the different variables involved, for which it is common to use dependence, interdependence or structural approaches [58]. Nevertheless, it is also feasible to deal with this type of problem by jointly employing inferential models of a heterogeneous nature [59,60,61,62,63], both statistical and symbolic, with the common objective of representing the same reality. In this case, the diagnostic process that allows for the discernment between a patient who suffers from OSA and one who does not. For this purpose, in the case of the statistical inferential approaches represented in this work through the use of the Bagged Trees algorithm, which is applied to determine the Statistical Risk, it is essential to have a representative dataset available to build the model. Meanwhile, in the case of the symbolic inferential approach particularized in this work through the use of a set of expert systems based on fuzzy logic inferential engines, through which it is possible to determine the Symbolic Risk, it is necessary to define the knowledge base through a series of rules. In both cases, the definition of each of the systems used contemplates a large number of variables that are not free of uncertainty. This is where the proposed intelligent system becomes essential. Beyond its undeniable applicability and potential usefulness in clinical settings, the capabilities of the different elements used for the determination of each of the system’s risks are evaluated, taking into account their ability to represent knowledge and manage uncertainty:
  • Determination of Statistical Risk: As previously mentioned, a machine-learning classification algorithm, more specifically, a Bagged Trees algorithm, is used to determine the Statistical Risk, built on the basis of an initial dataset that has been encoded, normalized and balanced using SMOTE-NC. All this process prior to the construction of the model has been carried out with the aim of ensuring that the initial dataset used for the construction of the model is coherent and adequate. An attempt has been made to achieve sufficient representativeness regarding the possible casuistry as well as to aim for normality in the data distributions in order to guarantee the subsequent obtaining of robust and reliable classifiers. As mentioned before, in this work, a Bagged Trees algorithm was chosen; however, the use of one algorithm or another is not relevant because any other machine-learning approach could provide plausible results. In any case, it should be noted that for this to be true, the datasets used in the model training and validation processes must have been obtained under similar circumstances, with common diagnostic criteria. The same circumstances should apply when it is desired to analyze data from new patients. In relation to the treatment of uncertainty, in this case, it is achieved using a purely probabilistic approach.
  • Determination of the Symbolic Risk: Concurrent with the calculation of the Statistical Risk, the Symbolic Risk is determined using a series of expert systems, which are perhaps the most representative models for symbolic reasoning in the field of artificial intelligence and which allow for the diversifying and formalizing of the experts’ knowledge. In this case, the formalization of knowledge has been achieved through the definition of an architecture of expert systems arranged in cascade. The diversification of information is possible through the definition of a series of declarative rules in each of the expert systems that model the knowledge of events that have occurred in similar circumstances. Thus, there is a clear and undeniable dependence between the way in which the expert system performs its reasoning and who defines its knowledge base; this implies assuming a certain degree of doubt and error in the process, and therefore, the presence of uncertainty in the generation of the rules. The formalization of knowledge is an inherent characteristic of expert systems, and it is possible to do so in this case through the definition of a cascade-based architecture. This allows the gradual integration of the consequents of the previous levels, all of which are considered technical variables representing the risk of suffering from OSA. These consequents are treated, in turn, as qualitative variables when acting as antecedents of the expert systems in the next level. As discussed in the work by Casal-Guisande et al. [19], the distinction that the same variable may be treated as antecedent or consequent of a rule makes a clear difference in the very fuzziness of the variable, which is related to the uncertainty associated with its numerical representation. In addition, the cascaded expert system architecture allows for simpler logical constructs, through which it is possible to represent knowledge. That also results in better control and in the progressive reduction in uncertainty throughout the different stages of the cascade. It is because of all those reasons that the intelligent system, in its symbolic aspect, has capabilities to manage uncertainty.
Beyond those issues related to the architecture of the proposed intelligent system, as well as its ability to manage uncertainty, it is necessary to point out those aspects that are most beneficial from a diagnostic and practitioner’s viewpoint. Once the risks have been obtained, their analysis and interpretation provide the medical team with a metric for the hazard level derived from the patient’s risk of suffering from OSA. Such an assessment is based both on objective data related to the patient’s history and on subjective data related to the symptoms reported by the patient. This information is remarkably valuable due to the fact that it facilitates the assessment of patients suspected of suffering from OSA. Furthermore, it could be very useful for those first medical consultations by which the patient comes to primary care, where a general practitioner could suspect a potential OSA case. This could help them to choose which cases should be referred to further specialized studies, thus reducing the overall number of referred patients, as well as focusing on those who are actually in need. This is possible thanks to the system’s ability to formalize and diversify knowledge, guiding the physician, standardizing the diagnostic process and facilitating the interpretation of data. Likewise, the system also has a great potential for its use in specialized units, being of particular interest in those cases in which specialists are faced with doubtful cases. The system enables them to discriminate between those patients who may require further diagnostic studies to confirm a potential OSA case, and those who apparently do not have that disease. In this way, the demand for sleep studies may be reduced, thus speeding up the performance of these studies while reducing waiting lists at the same time.
On a general note, and in line with what has already been mentioned, it should be pointed out that the tool presented in this article constitutes a great novelty in the field of study. Existing approaches in the current body of knowledge generally make use of single inference models, statistical in most cases, being clearly dependent on the availability of coherent and representative population healthcare databases. This could be a severe handicap for some diseases, as might be the case for OSA. Furthermore, the relevant impact of using these types of systems in the management of hospital resources, as well as on their associated cost savings, should be highlighted once again.

Relevance of the Proposal in the Field of Study

After the detailed discussion and analysis of the relevance and technical soundness of the essential components of the proposed intelligent system, a comparison with other existing state-of-the-art approaches is presented in Table 17, taking into account a set of common criteria used in the field of intelligent systems [19,20,21,64]:
  • Efficiency: this refers to the reliability of the results obtained, understood as the capabilities of the intelligent system to deal with uncertainty.
  • Scalability: this refers to the versatility and capabilities of the system to replace or remove the current inferential engines.
  • Reasoning: this is related to the system’s ability to perform symbolic reasoning.
  • Learning: this refers to the system’s capability to incorporate learning approaches, which is common in the field of machine learning.
In general, when analyzing the main reviews about screening approaches in the field of OSA [9,65,66,67], and considering the works analyzed in Table 17, there is a clear trend towards the use and development of decision support systems being applied to the diagnosis of OSA that are based on the use of machine-learning techniques. Nevertheless, there are some works that use symbolic inference approaches, such as the one proposed by C. Zoroglu and S. Turkeli [41], or the other one proposed by J. M. Matthews et al. [42], or others that, although mainly using learning-based approaches, aim to integrate the benefits associated with symbolic inference [21], allowing a formalization of knowledge and a better management and handling of the uncertainty present in the diagnostic process. For all these reasons, the proposed system represents a clear novelty in the OSA diagnostic field, extending the capabilities of the systems usually present in this area.

5. Conclusions

In this article a novel intelligent decision support system applied to the diagnosis of OSA has been presented, which allows for the optimizing of the diagnostic process of potential OSA cases. To this end, statistical and symbolic inferential approaches were used together, making it possible to determine two risk indicators, the Statistical Risk and the Symbolic Risk, both of them associated with suffering from OSA.
The proposed intelligent system was exemplified in a case study as a proof of concept, which provided an introduction to the tool, demonstrating the use of the system, and highlighting both its simplicity of use and its great applicability in the field of study. Despite the aforementioned claims and the encouraging results obtained, it is worth mentioning that the proposed system is still in its early stages of development, and it is still in need of further clinical validation.
In time to come, it will be necessary to carry out tests in clinical settings to validate the results obtained and to adjust the system for its intensive use in hospital environments, and comparing its outcomes with the clinical guidelines in the field of study. Thus, it will be possible to determine its full diagnostic capabilities and the economic impact associated with its use. In addition, and from the point of view of the system’s architecture, it will still be necessary to explore new options to improve the final process of joining the risks obtained, as well as to optimize the formalization of the knowledge of the symbolic models.

Author Contributions

Conceptualization, M.C.-G. and A.C.-C.; methodology, M.C.-G. and A.C.-C.; software, M.C.-G. and L.C.-S.; investigation, M.C.-G., L.C.-S., M.M.-A., M.T.-D., J.C.-P., J.-B.B.-R., A.F.-V. and A.C.-C.; resources, M.T.-D., M.M.-A. and A.F.-V.; data curation, M.C.-G. and L.C.-S.; writing—original draft preparation, M.C.-G., L.C.-S. and A.C.-C.; writing—review and editing, J.C.-P.; supervision, M.M.-A., M.T.-D., J.C.-P., J.-B.B.-R. and A.F.-V. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

The study was conducted in accordance with the Declaration of Helsinki and approved by the Ethics Committee of Galicia (protocol code 2022/256, 2 July 2022).

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

M.C.-G. is grateful to Consellería de Educación, Universidade e Formación Profesional e Consellería de Economía, Emprego e Industria da Xunta de Galicia (ED481A-2020/038) for his pre-doctoral fellowship.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Benjafield, A.V.; Ayas, N.T.; Eastwood, P.R.; Heinzer, R.; Ip, M.S.M.; Morrell, M.J.; Nunez, C.M.; Patel, S.R.; Penzel, T.; Pépin, J.L.D.; et al. Estimation of the Global Prevalence and Burden of Obstructive Sleep Apnoea: A Literature-Based Analysis. Lancet Respir. Med. 2019, 7, 687–698. [Google Scholar] [CrossRef] [PubMed]
  2. Watson, N.F. Health Care Savings: The Economic Value of Diagnostic and Therapeutic Care for Obstructive Sleep Apnea. J. Clin. Sleep Med. 2016, 12, 1075–1077. [Google Scholar] [CrossRef] [PubMed]
  3. Frost & Sullivan. Hidden Health Crisis Costing America Billions Underdiagnosing and Undertreating Obstructive Sleep Apnea Draining Healthcare System; American Academy of Sleep Medicine: Darien, IL, USA, 2016. [Google Scholar]
  4. Ye, L.; Li, W.; Willis, D.G. Facilitators and Barriers to Getting Obstructive Sleep Apnea Diagnosed: Perspectives from Patients and Their Partners. J. Clin. Sleep Med. 2022, 18, 835–841. [Google Scholar] [CrossRef] [PubMed]
  5. Douglas, N.J.; Thomas, S.; Jan, M.A. Clinical Value of Polysomnography. Lancet 1992, 339, 347–350. [Google Scholar] [CrossRef] [PubMed]
  6. Rundo, J.V.; Downey, R. Polysomnography. In Handbook of Clinical Neurology; Elsevier: Amsterdam, The Netherlands, 2019; Volume 160, pp. 381–392. [Google Scholar]
  7. Kapur, V.K.; Auckley, D.H.; Chowdhuri, S.; Kuhlmann, D.C.; Mehra, R.; Ramar, K.; Harrod, C.G. Clinical Practice Guideline for Diagnostic Testing for Adult Obstructive Sleep Apnea: An American Academy of Sleep Medicine Clinical Practice Guideline. J. Clin. Sleep Med. 2017, 13, 479–504. [Google Scholar] [CrossRef]
  8. Punjabi, N.M. The Epidemiology of Adult Obstructive Sleep Apnea. Proc. Am. Thorac. Soc. 2008, 5, 136–143. [Google Scholar] [CrossRef]
  9. Ramachandran, A.; Karuppiah, A. A Survey on Recent Advances in Machine Learning Based Sleep Apnea Detection Systems. Healthcare 2021, 9, 914. [Google Scholar] [CrossRef]
  10. Mostafa, S.S.; Mendonça, F.; Ravelo-García, A.G.; Morgado-Dias, F. A Systematic Review of Detecting Sleep Apnea Using Deep Learning. Sensors 2019, 19, 4934. [Google Scholar] [CrossRef]
  11. Ly, W.K.; Thurnheer, R.; Bloch, K.E.; Laube, I.; Gugger, M.; Heitz, M. Respiratory Polygraphy in Sleep Apnoea Diagnosis. Swiss Med. Wkly. 2007, 137, 97–102. [Google Scholar]
  12. Calleja, J.M.; Esnaola, S.; Rubio, R.; Durán, J. Comparison of a Cardiorespiratory Device versus Polysomnography for Diagnosis of Sleep Apnoea. Eur. Respir. J. 2002, 20, 1505–1510. [Google Scholar] [CrossRef]
  13. Prisant, L.M.; Dillard, T.A.; Blanchard, A.R. Obstructive Sleep Apnea Syndrome. J. Clin. Hypertens. 2006, 8, 746–750. [Google Scholar] [CrossRef]
  14. Koch, A.L.; Brown, R.H.; Woo, H.; Brooker, A.C.; Paulin, L.M.; Schneider, H.; Schwartz, A.R.; Diette, G.B.; Wise, R.A.; Hansel, N.N.; et al. Obstructive Sleep Apnea and Airway Dimensions in Chronic Obstructive Pulmonary Disease. Ann. Am. Thorac. Soc. 2020, 17, 116–118. [Google Scholar] [CrossRef] [PubMed]
  15. Pevernagie, D.A.; Gnidovec-Strazisar, B.; Grote, L.; Heinzer, R.; McNicholas, W.T.; Penzel, T.; Randerath, W.; Schiza, S.; Verbraecken, J.; Arnardottir, E.S. On the Rise and Fall of the Apnea−hypopnea Index: A Historical Review and Critical Appraisal. J. Sleep Res. 2020, 29, e13066. [Google Scholar] [CrossRef] [PubMed]
  16. Casal-Guisande, M.; Comesaña-Campos, A.; Cerqueiro-Pequeño, J.; Bouza-Rodríguez, J.-B. Design and Development of a Methodology Based on Expert Systems, Applied to the Treatment of Pressure Ulcers. Diagnostics 2020, 10, 614. [Google Scholar] [CrossRef]
  17. Comesaña-Campos, A.; Casal-Guisande, M.; Cerqueiro-Pequeño, J.; Bouza-Rodríguez, J.B. A Methodology Based on Expert Systems for the Early Detection and Prevention of Hypoxemic Clinical Cases. Int. J. Env. Res. Public Health 2020, 17, 8644. [Google Scholar] [CrossRef]
  18. Cerqueiro-Pequeño, J.; Comesaña-Campos, A.; Casal-Guisande, M.; Bouza-Rodríguez, J.-B. Design and Development of a New Methodology Based on Expert Systems Applied to the Prevention of Indoor Radon Gas Exposition Risks. Int. J. Env. Res. Public Health 2020, 18, 269. [Google Scholar] [CrossRef] [PubMed]
  19. Casal-Guisande, M.; Comesaña-Campos, A.; Dutra, I.; Cerqueiro-Pequeño, J.; Bouza-Rodríguez, J.-B. Design and Development of an Intelligent Clinical Decision Support System Applied to the Evaluation of Breast Cancer Risk. J. Pers. Med. 2022, 12, 169. [Google Scholar] [CrossRef] [PubMed]
  20. Casal-Guisande, M.; Bouza-Rodríguez, J.-B.; Cerqueiro-Pequeño, J.; Comesaña-Campos, A. Design and Conceptual Development of a Novel Hybrid Intelligent Decision Support System Applied towards the Prevention and Early Detection of Forest Fires. Forests 2023, 14, 172. [Google Scholar] [CrossRef]
  21. Casal-Guisande, M.; Torres-Durán, M.; Mosteiro-Añón, M.; Cerqueiro-Pequeño, J.; Bouza-Rodríguez, J.-B.; Fernández-Villar, A.; Comesaña-Campos, A. Design and Conceptual Proposal of an Intelligent Clinical Decision Support System for the Diagnosis of Suspicious Obstructive Sleep Apnea Patients from Health Profile. Int. J. Environ. Res. Public Health 2023, 20, 3627. [Google Scholar] [CrossRef]
  22. Casal-Guisande, M.; Álvarez-Pazó, A.; Cerqueiro-Pequeño, J.; Bouza-Rodríguez, J.-B.; Peláez-Lourido, G.; Comesaña-Campos, A. Proposal and Definition of an Intelligent Clinical Decision Support System Applied to the Screening and Early Diagnosis of Breast Cancer. Cancers 2023, 15, 1711. [Google Scholar] [CrossRef]
  23. Mamdani, E.H.; Assilian, S. An Experiment in Linguistic Synthesis with a Fuzzy Logic Controller. Int. J. Man. Mach. Stud. 1975, 7, 1–13. [Google Scholar] [CrossRef]
  24. Mamdani, E.H. Advances in the Linguistic Synthesis of Fuzzy Controllers. Int. J. Man. Mach. Stud. 1976, 8, 669–678. [Google Scholar] [CrossRef]
  25. Mamdani, E.H. Application of Fuzzy Logic to Approximate Reasoning Using Linguistic Synthesis. IEEE Trans. Comput. 1977, C-26, 1182–1191. [Google Scholar] [CrossRef]
  26. Ross, T.J. Fuzzy Logic with Engineering Applications: Third Edition, 3rd ed.; John Wiley & Sons, Ltd: Chichester, UK, 2010; ISBN 9781119994374. [Google Scholar]
  27. Zheng, L.; Eniola, E.; Wang, J. Machine Learning for Colorectal Cancer Risk Prediction. In Proceedings of the 2021 International Conference on Cyber-Physical Social Intelligence, ICCSI 2021, Beijing, China, 18–20 December 2021. [Google Scholar] [CrossRef]
  28. Hu, Y.; Zheng, L.; Wang, J. Predicting ICU Length of Stay for Patients with Diabetes Using Machine Learning Techniques. In Proceedings of the International Conference on Cyber-Physical Social Intelligence, ICCSI, Nanjing, China, 18–21 November 2022; pp. 417–422. [Google Scholar] [CrossRef]
  29. Cerqueiro-Pequeño, J.; Casal-Guisande, M.; Comesaña-Campos, A.; Bouza-Rodríguez, J.B. Conceptual Design of a New Methodology Based on Intelligent Systems Applied to the Determination of the User Experience in Ambulances. In Proceedings of the Ninth International Conference on Technological Ecosystems for Enhancing Multiculturality, Barcelona, Spain, 26–29 October 2021; pp. 290–296. [Google Scholar] [CrossRef]
  30. Casal-Guisande, M.; Comesaña-Campos, A.; Cerqueiro-Pequeño, J.; Bouza-Rodríguez, J.B. Design and Definition of a New Decision Support System Aimed to the Hierarchization of Patients Candidate to Be Admitted to Intensive Care Units. Healthcare 2022, 10, 587. [Google Scholar] [CrossRef]
  31. Casal-Guisande, M.; Cerqueiro-Pequeño, J.; Comesaña-Campos, A.; Bouza-Rodríguez, J.B. Conceptual Proposal of a Hierarchization System for Patients Candidate to Intensive Care Units in Health Catastrophe Situations. In Proceedings of the Eighth International Conference on Technological Ecosystems for Enhancing Multiculturality, Association for Computing Machinery. Salamanca, Spain, 21 October 2020; pp. 496–500. [Google Scholar]
  32. Casal-Guisande, M.; Cerqueiro-Pequeño, J.; Comesaña-Campos, A.; Bouza-Rodríguez, J.B. Proposal of a Methodology Based on Expert Systems for the Treatment of Diabetic Foot Condition. In Proceedings of the Eighth International Conference on Technological Ecosystems for Enhancing Multiculturality, Association for Computing Machinery. Salamanca, Spain, 21 October 2020; pp. 491–495. [Google Scholar]
  33. Casal-Guisande, M.; Bouza-Rodríguez, J.B.; Comesaña-Campos, A.; Cerqueiro-Pequeño, J. Proposal and Definition of a Methodology for Remote Detection and Prevention of Hypoxemic Clinical Cases in Patients Susceptible to Respiratory Diseases. In Proceedings of the Seventh International Conference on Technological Ecosystems for Enhancing Multiculturality, León, Spain, 16–18 October 2019; pp. 331–338. [Google Scholar] [CrossRef]
  34. Cerqueiro-Pequeño, J.; Comesaña-Campos, A.; Casal-Guisande, M.; Bouza-Rodríguez, J.-B. A Proposal for Using Active Contour Parametrical Models in Cobb Angle Determination. In Proceedings of the Ninth International Conference on Technological Ecosystems for Enhancing Multiculturality, Barcelona, Spain, 26–29 October 2021; pp. 297–304. [Google Scholar] [CrossRef]
  35. Côrte-Real, J.; Dutra, I.; Rocha, R. On Applying Probabilistic Logic Programming to Breast Cancer Data. In Inductive Logic Programming, Proceedings of the Inductive Logic Programming, Orléans, France, 4–6 September 2017; Lachiche, N., Vrain, C., Eds.; Springer International Publishing: Cham, Switzerland, 2018; pp. 31–45. [Google Scholar]
  36. Ferreira, P.; Dutra, I.; Salvini, R.; Burnside, E. Interpretable Models to Predict Breast Cancer. In Proceedings of the 2016 IEEE International Conference on Bioinformatics and Biomedicine, BIBM 2016, Shenzhen, China, 15–18 December 2016; pp. 1507–1511. [Google Scholar]
  37. Mencar, C.; Gallo, C.; Mantero, M.; Tarsia, P.; Carpagnano, G.E.; Foschino Barbaro, M.P.; Lacedonia, D. Application of Machine Learning to Predict Obstructive Sleep Apnea Syndrome Severity. Health Inform. J. 2020, 26, 298–317. [Google Scholar] [CrossRef]
  38. Sun, L.M.; Chiu, H.W.; Chuang, C.Y.; Liu, L. A Prediction Model Based on an Artificial Intelligence System for Moderate to Severe Obstructive Sleep Apnea. Sleep Breath. 2010, 15, 317–323. [Google Scholar] [CrossRef]
  39. Ramesh, J.; Keeran, N.; Sagahyroon, A.; Aloul, F. Towards Validating the Effectiveness of Obstructive Sleep Apnea Classification from Electronic Health Records Using Machine Learning. Healthcare 2021, 9, 1450. [Google Scholar] [CrossRef] [PubMed]
  40. Ferreira-Santos, D.; Rodrigues, P.P. A Clinical Risk Matrix for Obstructive Sleep Apnea Using Bayesian Network Approaches. Int. J. Data Sci. Anal. 2019, 8, 339–349. [Google Scholar] [CrossRef]
  41. Zoroglu, C.; Turkeli, S. Fuzzy Expert System for Severity Prediction of Obstructive Sleep Apnea Hypopnea Syndrome. J. Cogn. Syst. 2017, 2, 37–43. [Google Scholar]
  42. Matthews, J.M.; Kwiatkowska, M.; Matthews, L.R. A Preliminary Fuzzy Model for Screening Obstructive Sleep Apnea. In Proceedings of the 2013 Joint IFSA World Congress and NAFIPS Annual Meeting, IFSA/NAFIPS, Edmonton, AB, Canada, 24–28 June 2013; pp. 187–191. [Google Scholar] [CrossRef]
  43. Goyal, M.; Johnson, J. Obstructive Sleep Apnea Diagnosis and Management. Misouri Med. 2017, 114, 120. [Google Scholar]
  44. Wasserman, L. All of Statistics: A Concise Course in Statistical Inference; Springer: New York, NY, USA, 2004; Volume 26, ISBN 978-0-387-21736-9. [Google Scholar]
  45. Hevner, A.R.; March, S.T.; Park, J.; Ram, S. Design Science in Information Systems Research. MIS Q. 2004, 28, 75–105. [Google Scholar] [CrossRef]
  46. Hevner, A.R.; Chatterjee, S. Design Research in Information Systems: Theory and Practice; Springer: New York, NY, USA, 2010; ISBN 978-1-4419-6107-5. [Google Scholar]
  47. App Designer. Available online: https://www.mathworks.com/products/matlab/app-designer.html (accessed on 18 October 2022).
  48. Classification Learner. Available online: https://www.mathworks.com/help/stats/classificationlearner-app.html (accessed on 18 October 2022).
  49. Fuzzy Logic Toolbox—MATLAB. Available online: https://www.mathworks.com/products/fuzzy-logic.html (accessed on 1 November 2022).
  50. Imbalanced-Learn. Available online: https://imbalanced-learn.org/dev/index.html (accessed on 18 October 2022).
  51. Agresti, A. Categorical Data Analysis; John Wiley & Sons, Inc.: Hoboken, NJ, USA, 2002; ISBN 0471360937. [Google Scholar]
  52. Powers, D.; Xie, Y. Statistical Methods for Categorical Data Analysis; Emerald Group Publishing: Bingley, UK, 2008. [Google Scholar]
  53. Mohammed, A.J.; Hassan, M.M.; Kadir, D.H. Improving Classification Performance for a Novel Imbalanced Medical Dataset Using Smote Method. Int. J. Adv. Trends Comput. Sci. Eng. 2020, 9, 3161–3172. [Google Scholar] [CrossRef]
  54. Chawla, N.V.; Bowyer, K.W.; Hall, L.O.; Kegelmeyer, W.P. SMOTE: Synthetic Minority Over-Sampling Technique. J. Artif. Intell. Res. 2002, 16, 321–357. [Google Scholar] [CrossRef]
  55. Refaeilzadeh, P.; Tang, L.; Liu, H. Cross-Validation. In Encyclopedia Database Systems; Springer: Boston, MA, USA, 2009; pp. 532–538. [Google Scholar] [CrossRef]
  56. Deborah, L. Thurston Utility Function Fundamentals. In Decision Making in Engineering Design; ASME Press: New York, NY, USA, 2006. [Google Scholar]
  57. Krishnamurty, S. Normative Decision Analysis in Engineering Design. In Decision Making in Engineering Design; ASME Press: New York, NY, USA, 2006. [Google Scholar]
  58. Hair, J.F.; Black, W.C.; Babin, B.J.; Anderson, R.E. Multivariate Data Analysis; Prentice Hall: Upper Saddle River, NJ, USA, 2009; Volume 87, ISBN 9780138132637. [Google Scholar]
  59. Cooper, J.C.B. Artificial Neural Networks versus Multivariate Statistics: An Application from Economics. J. Appl. Stat. 2010, 26, 909–921. [Google Scholar] [CrossRef]
  60. Wang, C.Y.; Lee, T.F.; Fang, C.H.; Chou, J.H. Fuzzy Logic-Based Prognostic Score for Outcome Prediction in Esophageal Cancer. IEEE Trans. Inf. Technol. Biomed. 2012, 16, 1224–1230. [Google Scholar] [CrossRef]
  61. Yazdanbakhsh, O.; Dick, S. Forecasting of Multivariate Time Series via Complex Fuzzy Logic. IEEE Trans. Syst. Man. Cybern. Syst. 2017, 47, 2160–2171. [Google Scholar] [CrossRef]
  62. Egrioglu, E.; Aladag, C.H.; Yolcu, U.; Uslu, V.R.; Basaran, M.A. A New Approach Based on Artificial Neural Networks for High Order Multivariate Fuzzy Time Series. Expert Syst. Appl. 2009, 36, 10589–10594. [Google Scholar] [CrossRef]
  63. Smithson, M. Multivariate Analysis Using ‘and’ and ‘Or’. Math. Soc. Sci. 1984, 7, 231–251. [Google Scholar] [CrossRef]
  64. Casal-Guisande, M.; Comesaña-Campos, A.; Pereira, A.; Bouza-Rodríguez, J.-B.; Cerqueiro-Pequeño, J. A Decision-Making Methodology Based on Expert Systems Applied to Machining Tools Condition Monitoring. Mathematics 2022, 10, 520. [Google Scholar] [CrossRef]
  65. Ferreira-Santos, D.; Amorim, P.; Martins, T.S.; Monteiro-Soares, M.; Rodrigues, P.P. Enabling Early Obstructive Sleep Apnea Diagnosis With Machine Learning: Systematic Review. J. Med. Internet Res. 2022, 24, e39452. [Google Scholar] [CrossRef]
  66. Aiyer, I.; Shaik, L.; Sheta, A.; Surani, S. Review of Application of Machine Learning as a Screening Tool for Diagnosis of Obstructive Sleep Apnea. Medicina 2022, 58, 1574. [Google Scholar] [CrossRef] [PubMed]
  67. Rodrigues, J.F.; Pepin, J.L.; Goeuriot, L.; Amer-Yahia, S. An Extensive Investigation of Machine Learning Techniques for Sleep Apnea Screening. Int. Conf. Inf. Knowl. Manag. Proc. 2020, 8, 2709–2716. [Google Scholar] [CrossRef]
Figure 1. Flow diagram of the intelligent clinical decision support system. The information flow between the different stages that compose the system is shown. Stage 1 is for data collection, Stage 2 is subdivided into Stage 2.a for preprocessing and statistical inference and Stage 2.b for symbolic inference and, finally, Stage 3 is for the generation of alerts and decision making.
Figure 1. Flow diagram of the intelligent clinical decision support system. The information flow between the different stages that compose the system is shown. Stage 1 is for data collection, Stage 2 is subdivided into Stage 2.a for preprocessing and statistical inference and Stage 2.b for symbolic inference and, finally, Stage 3 is for the generation of alerts and decision making.
Diagnostics 13 01854 g001
Figure 2. The cascade of expert systems in detail.
Figure 2. The cascade of expert systems in detail.
Diagnostics 13 01854 g002
Figure 3. Screenshot of the application. (1.a) and (1.b) are related to the stage of collecting relevant patient information. (2.a) and (2.b) refer to the stage of data processing. (3) is related to generating alerts and recommendations.
Figure 3. Screenshot of the application. (1.a) and (1.b) are related to the stage of collecting relevant patient information. (2.a) and (2.b) refer to the stage of data processing. (3) is related to generating alerts and recommendations.
Diagnostics 13 01854 g003
Figure 4. Cross-validation ROC curve for OSA cases.
Figure 4. Cross-validation ROC curve for OSA cases.
Diagnostics 13 01854 g004
Figure 5. ROC curves and AUC values for each of the folds of Bagged Trees for OSA cases.
Figure 5. ROC curves and AUC values for each of the folds of Bagged Trees for OSA cases.
Diagnostics 13 01854 g005
Figure 6. (a) Validation ROC curves for the Bagged Trees model. (b) Confusion matrix for the Bagged Trees model.
Figure 6. (a) Validation ROC curves for the Bagged Trees model. (b) Confusion matrix for the Bagged Trees model.
Diagnostics 13 01854 g006
Figure 7. Functional diagram of the inference system.
Figure 7. Functional diagram of the inference system.
Diagnostics 13 01854 g007
Figure 8. Screenshot of the application.
Figure 8. Screenshot of the application.
Diagnostics 13 01854 g008
Figure 9. Expansion of the case study. In the case of the subjective data, the values were indicated using the scales (generally, 0 means ‘No’; 5 means occasionally; and 10 means ‘often’). The background colors in the ‘System result’ section relate to the three levels of risk (green = L1; orange = L2; red = L3) and the interpretation of the system recommendation (green = non-OSA case; orange = doubtful case; red = OSA case).
Figure 9. Expansion of the case study. In the case of the subjective data, the values were indicated using the scales (generally, 0 means ‘No’; 5 means occasionally; and 10 means ‘often’). The background colors in the ‘System result’ section relate to the three levels of risk (green = L1; orange = L2; red = L3) and the interpretation of the system recommendation (green = non-OSA case; orange = doubtful case; red = OSA case).
Diagnostics 13 01854 g009
Table 1. Summary of the objective data.
Table 1. Summary of the objective data.
SubgroupDataData TypeCommentary
General and
anthropometric data
SexCategoricalMale/Female
AgeNumerical-
WeightNumericalNot provided to the algorithm but used to determine the body mass index (BMI)
HeightNumericalNot provided to the algorithm but used to determine the body mass index (BMI)
Body mass index (BMI)NumericalData derived from height and weight
Neck circumferenceNumerical-
SubgroupDataData TypeCommentary
HabitsSmokerCategoricalYes/No/No longer
Cigarettes per dayNumericalNot provided to the algorithm but used to determine the pack year index
Years as a smokerNumericalNot provided to the algorithm but used to determine the pack year index
Pack-year indexNumericalData derived from cigarettes per day and years smoking
Drinking habitsCategoricalNo/Daily/Occasionally
Grams of alcoholNumerical-
SubgroupCommentary
Diagnosed
conditions
All the comorbidities listed in Section 2.1.1 are included. Each of these fields is considered as categorical or binary, that is, either the pathology is suffered or not
SubgroupCommentary
Prescribed
treatments
All the drugs listed in Section 2.1.1 are included. Each of these fields is considered as categorical or binary, that is, prescribed treatments are or are not provided
Table 2. Summary of the subjective data.
Table 2. Summary of the subjective data.
SubgroupDataData TypeCommentary
Sleep timeHours of sleepNumerical-
Minutes until falling asleepNumerical-
Prolonged intra-sleep awakeningsCategoricalNo/Occasionally/Often
SubgroupDataData TypeCommentary
Unrefreshing sleepFeeling of unrefreshing sleepCategoricalNo/Occasionally/Often
Daytime tirednessCategoricalNo/Occasionally/Often
Morning dullnessCategoricalNo/Occasionally/Often
SubgroupDataData TypeCommentary
Complicating sleep factorsUnjustified multiple awakeningsCategoricalYes/No
NocturiaCategoricalNo/Occasionally/Often
Breathless awakeningsCategoricalNo/Occasionally/Often
Reported apneasCategoricalNo/Occasionally/Often
SnoresSnorerCategoricalNo/In supine position only/Yes
High intensity snorerCategoricalYes/No
Snoring-related awakeningsCategoricalNo/Occasionally/Often
Table 3. Initial configuration of the inference system responsible for processing the ‘sleep time’ data group.
Table 3. Initial configuration of the inference system responsible for processing the ‘sleep time’ data group.
Inference System Associated with the ‘Sleep Time’ Data Group.
Input DataRangeOutput RiskRange
Hours of sleep0–14 hR1.a0–10
Diagnostics 13 01854 i001Diagnostics 13 01854 i002
Minutes until falling
asleep
0–240 minInitial configuration
Diagnostics 13 01854 i003Fuzzy structure: Mamdani-type
Membership function type: trapezoidal
Defuzzification method: centroid [26]
Implication method: MIN.
Aggregation method: MAX.
Number of fuzzy rules: 46
Prolonged intra-sleep
awakenings
0–10Subset as an example of the 46 fuzzy rules
Diagnostics 13 01854 i0041. IF (Hours_of_sleep is Few) AND (Minutes_until_falling_asleep is Few) AND (Prolonged_intra-sleep_awakenings is Never) THEN (R1.a is Low).
2. IF (Hours_of_Sleep is Few) AND (Minutes_until_falling_asleep is Few) AND (Prolonged_intra-sleep_awakenings is Never) THEN (R1.a is Medium).
Graphical example of fuzzy rules 1 and 2
Diagnostics 13 01854 i005
Table 4. Initial configuration of the inference system responsible for processing the ‘unrefreshing sleep’ data group.
Table 4. Initial configuration of the inference system responsible for processing the ‘unrefreshing sleep’ data group.
Inference System Associated with the ‘Unrefreshing Sleep’ Data Group
Input DataRangeOutput RiskRange
Feeling of
unrefreshing sleep
0–10R1.b0–10
Diagnostics 13 01854 i006Diagnostics 13 01854 i007
Daytime tiredness0–10Initial configuration
Diagnostics 13 01854 i008Fuzzy structure: Mamdani-type
Membership function type: trapezoidal
Defuzzification method: centroid [26]
Implication method: MIN.
Aggregation method: MAX.
Number of fuzzy rules: 45
Morning dullness0–10Subset as an example of the 45 fuzzy rules
Diagnostics 13 01854 i0091. IF (Feeling_of_unrefreshing_sleep is Nothing) AND (Daytime_tiredness is Nothing) AND (Morning_dullness is Nothing) THEN (R1.b is Very_low).
2. IF (Feeling_of_unrefreshing_sleep is Nothing) AND (Daytime_tiredness is Nothing) AND (Morning_dullness is Few) THEN (R1.b is Very_low).
Graphical example of fuzzy rules 1 and 2
Diagnostics 13 01854 i010
Table 5. Initial configuration of the inference system responsible for processing the ‘complicating sleep factors’ data group.
Table 5. Initial configuration of the inference system responsible for processing the ‘complicating sleep factors’ data group.
Inference System Associated with the ‘Complicating Sleep Factors’ Data Group
Input DataRangeOutput RiskRange
Unjustified multiple awakenings0–1R2.a0–10
Diagnostics 13 01854 i011Diagnostics 13 01854 i012
Nocturia0–10Initial configuration
Diagnostics 13 01854 i013Fuzzy structure: Mamdani-type
Membership function type: trapezoidal
Defuzzification method: centroid [26]
Implication method: MIN.
Aggregation method: MAX.
Number of fuzzy rules: 78
Breathless awakenings0–10
Diagnostics 13 01854 i014
Reported apneas0–10Subset as an example of the 78 fuzzy rules
Diagnostics 13 01854 i0151. IF (Reported_apneas is Always) THEN (R2.a is Very_high).
2. IF (Unjustified_multiple_awakenings is No) AND (Nocturia is Never) AND (Beathless_awakenings is Never) AND (Reported_apneas is Never) THEN (R2.a is Very_low).
Graphical example of fuzzy rule 1
Diagnostics 13 01854 i016
Table 6. Initial configuration of the inference system responsible for processing the ‘snores’ data group.
Table 6. Initial configuration of the inference system responsible for processing the ‘snores’ data group.
Inference System Associated with the ‘Snores’ Data Group
Input DataRangeOutput RiskRange
Snorer0–2R2.b0–10
Diagnostics 13 01854 i017Diagnostics 13 01854 i018
High intensity
snorer
0–1Initial configuration
Diagnostics 13 01854 i019Fuzzy structure: Mamdani-type
Membership function type: trapezoidal
Defuzzification method: centroid [26]
Implication method: MIN.
Aggregation method: MAX.
Number of fuzzy rules: 30
Snore-related
awakenings
0–10Subset as an example of the 30 fuzzy rules
Diagnostics 13 01854 i0201. IF (Snorer is No) THEN (R2.b is Very_low).
2. IF (Snorer is In_dorsal_position_only) AND (High_intensity_snorer is No) AND (Snore_related_awakenings is Never) THEN (R2.b is Very_low).
Graphical example of fuzzy rule 1
Diagnostics 13 01854 i021
Table 7. Initial configuration of the inference system responsible for processing risks R1.a and R1.b.
Table 7. Initial configuration of the inference system responsible for processing risks R1.a and R1.b.
Inference System for the Processing of Risks R1.a and R1.b
Input DataRangeOutput RiskRange
R1.a0–10R10–10
Diagnostics 13 01854 i022Diagnostics 13 01854 i023
R1.b0–10Initial configuration
Diagnostics 13 01854 i024Fuzzy structure: Mamdani-type
Membership function type: trapezoidal
Defuzzification method: centroid [26]
Implication method: MIN.
Aggregation method: MAX.
Number of fuzzy rules: 49
Subset as an example of the 49 fuzzy rules
  • IF (R1.a is Very_low) AND (R1.b is Very_low) THEN (R1 is Very_low).
  • IF (R1.a is Very_low) AND (R1.b is Low) THEN (R1 is Very_low).
  • IF (R1.a is Very_low) AND (R1.b is Low) THEN (R1 is Low).
Graphical example of fuzzy rules 1, 2 and 3
Diagnostics 13 01854 i025
Table 8. Initial configuration of the inference system responsible for processing risks R2.a and R2.b.
Table 8. Initial configuration of the inference system responsible for processing risks R2.a and R2.b.
Inference System for the Processing of Risks R2.a and R2.b
Input DataRangeOuput RiskRange
R2.a0–10R20–10
Diagnostics 13 01854 i026Diagnostics 13 01854 i027
R2.b0–10Initial configuration
Diagnostics 13 01854 i028Fuzzy structure: Mamdani-type
Membership function type: trapezoidal
Defuzzification method: centroid [26]
Implication method: MIN.
Aggregation method: MAX.
Number of fuzzy rules: 57
Subset as an example of the 57 fuzzy rules
  • IF (R2.a is Very_low) AND (R2.b is Very_low) THEN (R2 is Very_low).
  • IF (R2.a is Low) AND (R2.b is Very_low) THEN (R2 is Very_low).
  • IF (R2.a is Low) AND (R2.b is Very_low) THEN (R2 is Low).
Graphical example of fuzzy rules 1, 2 and 3
Diagnostics 13 01854 i029
Table 9. Initial configuration of the inference system responsible for processing risks R1 and R2.
Table 9. Initial configuration of the inference system responsible for processing risks R1 and R2.
Inference System for the Processing of Risks R1 and R2
Input DataRangeOutput RiskRange
R10–10Symbolic Risk0–10
Diagnostics 13 01854 i030Diagnostics 13 01854 i031
R20–10Initial configuration
Diagnostics 13 01854 i032Fuzzy structure: Mamdani-type
Membership function type: trapezoidal
Defuzzification method: centroid [26]
Implication method: MIN.
Aggregation method: MAX.
Number of fuzzy rules: 57
Subset as an example of the 57 fuzzy rules
  • IF (R1 is Very_low) AND (R2 is Very_low) THEN (Symbolic_risk is Very_low).
  • IF (R1 is Very_low) AND (R2 is Low) THEN (Symbolic_risk is Very_low).
  • IF (R1 is Very_low) AND (R2 is Low) THEN (Symbolic_risk is Low).
Surface
Diagnostics 13 01854 i033
Table 10. Risk assessment thresholds and scores.
Table 10. Risk assessment thresholds and scores.
LevelCaseScore
Level 1If Risk < Limit 1 (L1)0
Level 2Limit 1 (L1) ≤ Risk < Limit 2 (L2)1
Level 3If Risk ≥ Limit 2 (L2)2
Table 11. Summary of recommendations.
Table 11. Summary of recommendations.
CaseRecommendation
T < 2Non-OSA case—do not perform diagnostic studies
T = 2Doubtful case—medical team should assess whether further tests or a new medical evaluation after a period of time is necessary to reconsider the patient’s condition.
T ≥ 3Possible OSA case—perform diagnostic studies
Table 12. Graphical representation of the assessment process. The colours refer to the recommendations suggested by the system. The green colour indicates a non-OSA case; the orange colour indicates a doubtful case; the red colour indicates a possible OSA case.
Table 12. Graphical representation of the assessment process. The colours refer to the recommendations suggested by the system. The green colour indicates a non-OSA case; the orange colour indicates a doubtful case; the red colour indicates a possible OSA case.
Statistical RiskRisk < L1L1 ≤ Risk < L2Risk ≥ L2
Symbolic RiskRisk < L1L1 ≤ Risk < L2Risk ≥ L2
Level & ScoreLevel 1 (0)Level 2 (1)Level 3 (2)
Diagnostics 13 01854 i034
Symbolic Risk
Statistical
Risk
Level & ScoreLevel 1 (0) Level 2 (1)Level 3 (2)
Level 1 (0)0 + 00 + 10 + 2
Level 2 (1)1 + 01 + 11 + 2
Level 3 (2)2 + 02 + 12 + 2
Table 13. Objective data of the case patient.
Table 13. Objective data of the case patient.
General and Anthropometric Data
SexMale
Age34
Weight (kg)85
Height (cm)186
Neck circumference (cm)46
Habits
Smoking habitsNo
Cigarettes per day-
Years smoking-
Drinking habitsOccasionally
Grams of alcohol-
Diagnosed Conditions-
Prescribed Treatments-
Table 14. Subjective data of the case patient.
Table 14. Subjective data of the case patient.
Sleep Time Group
Hours of sleep7 h
Minutes until falling asleep20 min
Prolonged intra-sleep awakeningsOften
Unrefreshing Sleep Group
Feeling of unrefreshing sleepNo
Daytime tirednessNo
Morning dullnessOccasionally
Complicating Sleep Factors Group
Unjustified multiple awakeningsNo
NocturiaOften
Breathless awakeningsNo
Reported apneasOften
Snores Group
SnorerYes
High intensity snorerYes
Snoring-related awakeningsOccasionally
Table 15. Thresholds for the first risk assessment of the case study.
Table 15. Thresholds for the first risk assessment of the case study.
Symbolic Risk
LevelCaseLevel Interpretation
Level 1IF Risk < 45 THEN Level 1Non-OSA case
Level 2IF 45 ≤ Risk < 65 THEN Level 2Doubtful case
Level 3IF Risk ≥ 65 THEN Level 3Possible OSA case
Statistical Risk
LevelCaseLevel Interpretation
Level 1IF Risk < 45 THEN Level 1Non-OSA case
Level 2IF 45 ≤ Risk < 60 THEN Level 2Doubtful case
Level 3IF Risk ≥ 60 THEN Level 3Possible OSA case
Table 16. Risk assessment of the case study. The colours refer to the recommendations suggested by the system. The green colour indicates a non-OSA case; the orange colour indicates a doubtful case; the red colour indicates a possible OSA case.
Table 16. Risk assessment of the case study. The colours refer to the recommendations suggested by the system. The green colour indicates a non-OSA case; the orange colour indicates a doubtful case; the red colour indicates a possible OSA case.
Statistical RiskRisk < 4545 ≤ Risk < 60Risk ≥ 60
Symbolic RiskRisk < 4545 ≤ Risk < 65Risk ≥ 65
Level & ScoreLevel 1 (0)Level 2 (1)Level 3 (2)
Diagnostics 13 01854 i034
Symbolic Risk
Statistical
Risk
Level & ScoreLevel 1 (0)Level 2 (1)Level 3 (2)
Level 1 (0)-X = 1-
Level 2 (1)---
Level 3 (2)---
Table 17. Benchmarking.
Table 17. Benchmarking.
ProposalsEfficiencyScalabilityInferenceLearning
Corrado Mencar
et al. [37];
Lei Ming Sun et al. [38]; and
Jayroop Ramesh et al. [39].
These proposals are based on the use of machine-learning techniques or optimization approaches, which manage uncertainty using a probabilistic approach. These proposals lack scalability.The systems rely on statistical inference methods rather than symbolic reasoning for their operation.These systems incor-porate knowledge in a way that is subsidiary to its classification process.
=--=
Ferreira-Santos
et al. [40]
The authors use Bayesian network approaches. An implicit management of uncertainty is used, based in the calculation of probabilities.The system is not scalable, as it is associated with the network model.Statistical inference is used instead of symbolic reasoning.The system incorporates knowledge in a way that is subsidiary to the Bayesian network.
=--=
C. Zoroglu and
S. Turkeli [41]; and J. M. Matthews et al. [42]
The authors use fuzzy inference systems, which manage uncertainty from a non-probablistic point of view.The systems are not scalable.The systems use a deductive symbolic reasoning method.The systems possess a knowledge base associated with the inference engine. It has the capability to incorporate new knowledge.
=-==
Casal-Guisande et al. [21]The authors use several machine-learning algoritms, as well as ANFIS and a heuristic algorithm. The proposed system effectively handles uncertainty from both a probabilistic and non-probabilistic perspective.The system is scalable, as it is possible to modify the calculation blocks.The system uses both statistical and symbolic inference approaches, but does not fully formalize a knowledge base.New knowledge can be easily integrated into the system while it is in use.
==-=
Our proposalThe proposed system, based on the use of heteregenous inferential approaches, both statistical and symbolic, manages uncertainty from both a probabilistic and non-probabilistic perspective. The proposed system is scalable, as it is possible to modify the calculation and inference modules.The proposed system used both symbolic and statistical inference approaches, with a complete formalization of knowledge.The system has the capability to model and incorporate new knowledge.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Casal-Guisande, M.; Ceide-Sandoval, L.; Mosteiro-Añón, M.; Torres-Durán, M.; Cerqueiro-Pequeño, J.; Bouza-Rodríguez, J.-B.; Fernández-Villar, A.; Comesaña-Campos, A. Design of an Intelligent Decision Support System Applied to the Diagnosis of Obstructive Sleep Apnea. Diagnostics 2023, 13, 1854. https://doi.org/10.3390/diagnostics13111854

AMA Style

Casal-Guisande M, Ceide-Sandoval L, Mosteiro-Añón M, Torres-Durán M, Cerqueiro-Pequeño J, Bouza-Rodríguez J-B, Fernández-Villar A, Comesaña-Campos A. Design of an Intelligent Decision Support System Applied to the Diagnosis of Obstructive Sleep Apnea. Diagnostics. 2023; 13(11):1854. https://doi.org/10.3390/diagnostics13111854

Chicago/Turabian Style

Casal-Guisande, Manuel, Laura Ceide-Sandoval, Mar Mosteiro-Añón, María Torres-Durán, Jorge Cerqueiro-Pequeño, José-Benito Bouza-Rodríguez, Alberto Fernández-Villar, and Alberto Comesaña-Campos. 2023. "Design of an Intelligent Decision Support System Applied to the Diagnosis of Obstructive Sleep Apnea" Diagnostics 13, no. 11: 1854. https://doi.org/10.3390/diagnostics13111854

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop