Submitted:
22 July 2024
Posted:
23 July 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Materials and Methods
2.1. Data Collection
2.2. Study Variables

2.3. Data Preparation
2.4. Data Analysis
3. Theoretical Framework
3.1. Bayesian Networks

3.2. Conceptual Framework
- Temperature: Body temperature is a key indicator of a patient’s health status. It is measured in degrees Celsius (°C) and can indicate fever or hypothermia.
- Heart Rate: Heart rate, measured in beats per minute (bpm), reflects the number of times the heart beats per minute. It is an important indicator of cardiovascular status.
- Oxygen: Blood oxygen saturation, expressed as a percentage (% SpO2), measures the amount of oxygen carried by hemoglobin. It is crucial for evaluating respiratory function.
- Glycemia: Glycemia is the concentration of glucose in the blood, measured in milligrams per deciliter (mg/dL). It is a vital parameter in managing metabolic diseases such as diabetes.
- Blood Pressure: Blood pressure, measured in millimeters of mercury (mmHg), indicates the force exerted by blood against the walls of the arteries. It is essential for evaluating cardiovascular health.
- Label: The label is a categorical variable that classifies the patient’s health status, with values of 0 for normal health and 1 for disease state.
4. Methodology
4.1. Variable Types and Abbreviations

4.2. Attributes for the Diagnosis of Viral Respiratory Conditions
- Glycemia → Oxygen: Elevated glycemia levels may be associated with metabolic diseases affecting lung function and oxygen saturation. However, the direct relationship between glycemia and oxygen in patients with respiratory conditions is not as evident; high glycemia does not directly affect oxygen saturation but may contribute to complications that affect respiration.
- Heart Rate → Oxygen: Heart rate can reflect the body’s response to hypoxemia (low oxygen levels). In respiratory conditions, an elevated heart rate can be a response to hypoxia, where the heart attempts to compensate for the low oxygen level by increasing cardiac output. Therefore, an increase in heart rate may be associated with low oxygen levels.
- Heart Rate → Blood Pressure: Heart rate and blood pressure are interrelated, but the relationship is not always direct. In respiratory conditions, an increased heart rate may be associated with changes in blood pressure, although the exact relationship may depend on the type and severity of the respiratory disease.
- Oxygen → Label: Rationale: Oxygen saturation is a critical indicator of respiratory function. Hypoxemia is a warning sign in respiratory diseases, and its severity directly correlates with prognosis. Low oxygen levels can indicate severe pulmonary compromise, need for ventilatory support, and risk of multi-organ failure.
- Blood Pressure → Label: Variations in blood pressure can indicate complications in patients with respiratory conditions. Pulmonary hypertension, for example, can be a complication of chronic respiratory diseases. Additionally, significant changes in blood pressure can reflect a response to severe hypoxemia or other associated complications.
- Temperature → Label: Fever is a common sign of infection and can be associated with viral or bacterial respiratory conditions. An elevated temperature can indicate the presence of a respiratory infection, such as pneumonia or bronchitis, affecting the patient’s overall health status.
4.3. Discretization in Medical Variables
Temperature
- "Normal": Temperature less than 37.2°C. This parameter is based on the standard definition of fever in adults, where a temperature equal to or higher than 37.2°C generally indicates fever.
- "High": Temperature equal to or higher than 37.2°C. This range includes temperatures that could indicate fever, a condition that may require medical attention.
Heart Rate
- "Low": Heart rate less than 60 beats per minute. This range is used to identify bradycardia, a condition where the heart beats more slowly than normal.
- "Normal": Heart rate between 60 and 100 beats per minute. This interval covers the range considered normal for adults at rest.
- "High": Heart rate equal to or greater than 100 beats per minute. This range identifies tachycardia, a condition where the heart beats faster than normal.
Oxygen
- "Critically Low": Oxygen level less than 90%. This level may indicate severe hypoxemia, requiring urgent medical intervention.
- "Low": Oxygen level between 90% and 95%. This range may indicate a slight decrease in oxygen saturation that may need monitoring.
- "Normal": Oxygen level equal to or greater than 95%. This range is considered normal and reflects an adequate oxygen saturation for most healthy individuals.
Blood Glucose
- "Low": Blood glucose less than 70 mg/dL. This level may indicate hypoglycemia, a condition where blood glucose levels are below the normal range.
- "Normal": Blood glucose between 70 and 99 mg/dL. This interval covers the range considered normal for fasting adults.
- "High": Blood glucose equal to or greater than 99 mg/dL. This range may indicate hyperglycemia, which is a sign of possible diabetes or metabolic issues.
Blood Pressure
- "Low": Blood pressure less than 90 mmHg. This range may indicate hypotension, a condition where blood pressure is abnormally low.
- "Normal": Blood pressure between 90 and 120 mmHg. This interval encompasses the blood pressure considered normal in adults.
- "Elevated": Blood pressure between 120 and 129 mmHg. This range may indicate elevated blood pressure that may require monitoring.
- "High": Blood pressure equal to or greater than 130 mmHg. This range defines hypertension, a condition that can increase the risk of cardiovascular diseases.
5. Results
5.1. Descriptive Analysis






5.2. Software Netica


5.3. Matriz de Confusión


5.3.1. Métricas de Desempeño
| Métrica | Valor |
|---|---|
| Exactitud (Accuracy) | 0.94 |
| Intervalo de Confianza al 95% | 0.9277 - 0.9508 |
| No Information Rate | 0.555 |
| P-Valor (Acc > NIR) | < 2.2e-16 |
| Kappa | 0.877 |
| P-Valor Test de McNemar | < 2.2e-16 |
| Sensibilidad (Recall) | 0.8653 |
| Especificidad | 1.0000 |
| Valor Predictivo Positivo | 1.0000 |
| Valor Predictivo Negativo | 0.9025 |
| Prevalencia | 0.4450 |
| Tasa de Detección | 0.3851 |
| Tasa de Prevalencia de Detección | 0.3851 |
| Balanced Accuracy | 0.9326 |
5.4. Simulation Case 1
5.4.1. Using Netica Software
| Variable | Value |
|---|---|
| Temperature | High |
| Heart Rate | High |
| Oxygen | Critically low |
| Blood Glucose | Normal |
| Blood Pressure | High |
Simulation Results
| Variable | Probability |
|---|---|
| Ill | 85.7% |
| Healthy | 14.3% |
Interpretation of the Results
6. Conclusions
Appendix A
Appendix A.1. Database

Appendix A.2. Bayesian Network Code
References
- Bueno Campaña, M.; Calvo Rey, C.; Vázquez Álvarez, M.C.; Parra Cuadrado, E.; Molina Amores, C.; Rodrigo García, G.; Echávarri Olavarria, F.; Valverde Cánovas, J.; Casas Flecha, I. Infecciones virales de vías respiratorias en los primeros seis meses de vida. Anales de Pediatría 2008, 69, 400–405. [CrossRef]
- García García, M.L.; Ordobás Gabin, M.; Calvo Rey, C.; González Álvarez, M.I.; Aguilar Ruiz, J.; Arregui Sierra, A.; Pérez Breña, P. Infecciones virales de vías respiratorias inferiores en lactantes hospitalizados: etiología, características clínicas y factores de riesgo. Anales de Pediatría 2008, 69, 101–107. [CrossRef]
- García-García, M.L.; Calvo, C.; Pérez-Breña, P.; De Cea, J.M.; Acosta, B.; Casas, I. Prevalence and clinical characteristics of human metapneumovirus infections in hospitalized infants in Spain. Pediatric Pulmonology 2006, 41, 863–871. [CrossRef]
- Puga, J.L.; García, J.G.; De la Fuente Sánchez, L.; De la Fuente Solana, E.I.; others. Las redes bayesianas como herramientas de modelado en psicología. Anales de Psicología/Annals of Psychology 2007, 23, 307–316.
- Pearl, J. Probabilistic Reasoning in Intelligent Systems: Networks of Plausible Inference; Morgan Kaufmann Publishers Inc.: San Francisco, CA, USA, 1988.
- Blitzstein, J.K.; Hwang, J. Bayesian Inference: The Basics. In Introduction to Probability; Springer, 2020; pp. 25–44. [CrossRef]
- Coiras, M.; Aguilar, J.; García, M.; Casas, I.; Pérez-Breña, P. Simultaneous detection of fourteen respiratory viruses in clinical specimens by two multiplex reverse transcription nested-PCR assays. Journal of Medical Virology 2004, 72, 484–495.
- Kaggle. Kaggle Dataset: Observation de Maladie, 2023.
- Friedman, N.; Goldszmidt, M. Building classifiers using Bayesian networks. Proceedings of the Thirteenth National Conference on Artificial Intelligence - Volume 2. AAAI Press, 1996, AAAI’96, p. 1277–1284.
- Cooper, G.F.; Herskovits, E. A Bayesian method for the induction of probabilistic networks from data. Machine Learning 1992, 9, 309–347. [CrossRef]

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. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).