Submitted:
25 April 2025
Posted:
28 April 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Materials and Methods
- Knowledge Graph Model of Health Indicators: We construct hierarchical knowledge graphs to model critical health indicators: sleep patterns, excretion control 1, physical mobility, and social interaction. These graphs represent indicators as nodes, with edges that define relationships with control variables derived from sensor data. This structured approach allows us to integrate clinical knowledge with quantitative data, providing a comprehensive view of health status.
- Sensor Architecture for Data Acquisition: A minimally invasive sensing architecture is implemented, combining wearable devices and ambient sensors. Wearable devices track physical activity and sleep, while ambient sensors provide indoor localisation and activity data. This integration ensures a holistic view of daily activity patterns, prioritising user comfort and long-term adherence.
- Fuzzy Logic modelling of Linguistic Protoforms: Fuzzy logic bridges the gap between sensor data and clinical language. Temporal and linguistic terms used by healthcare professionals are modelled using membership functions, enabling the system to reason with imprecise and subjective information. This approach ensures that the system’s output is clinically relevant and interpretable.
2.1. Knowledge Graph Representation of Key Health Indicators
- V is a set of nodes (vertices) that represent entities or concepts related to health indicators. These entities are not merely static data points but are imbued with linguistic meaning, facilitating human-like reasoning.
- E is a set of edges that represent the relationships between these entities. Each edge is an ordered pair where .
- L is a set of labels associated with both the nodes and edges, providing semantic context.
- Each node/entity is associated with a protoform that captures its underlying semantic structure.
-
These protoforms are instantiated with specific values derived from:
- −
- Terms: Linguistic variables representing ranges or categories of health indicators (e.g. "active mobility", "adequate sleep time").
- −
- Temporal Restrictions: Time-based constraints or patterns associated with health indicators (e.g., low physical activity "while daytime").
- −
- Location Restrictions: Location-based constraints or patterns associated with user activity (e.g., sleep activity levels "in the living room").
- −
- Quantifiers: Linguistic terms represent relative or absolute quantities, allowing the manipulation of linguistic concepts. They can be modelled under crisp or fuzzy approaches (e.g., "adequate number of excretions", "most of sleeping time").
- −
- Sensors: Data collected from ambient and wearable devices or other sensing technologies, providing quantitative measurements (e.g. "steps", "deep sleep", "presence in livingroom").
- This connection to protoforms allows the KG to reason with the semantic meaning of health data, not just its numerical values.
- Relationships between nodes are assigned degrees of membership, reflecting the strength or certainty of the connection.
- Fuzzy norms. T-norms and Co-norms (e.g., minimum, product) are used to represent conjunctive and disjunctive relationships, respectively.
- By applying these operators, the KG can perform fuzzy inference, combining evidence from multiple relationships to derive conclusions about health indicators. This allows for a more robust and flexible representation of complex health patterns.
2.2. Sensor Architecture for Data Acquisition
2.3. Fuzzy Logic Modelling of Linguistic Protoforms for Sensor Data
- V designates the fuzzy data stream derived from sensor or location sources.
- T, an optional element, specifies a Fuzzy Temporal Window (FTW) , within which the fuzzy data streams are aggregated, represented as . The projection of a fuzzy temporal window T with a fuzzy data stream is achieved through a membership function associated with the FTW, which is derived from the temporal displacement , where , measuring the interval from a present time to the preceding timestamps within the data stream. For every timestamp , we compute the combined membership degrees of the terms, considering the fuzzy temporal influence, utilizing t-norm and co-norm operations:where the choice of t-conorms (max-min, weighted average = ) is determined by the specific semantic context. In Figure 2, we describe the projection of an FTW with a fuzzy data stream.
- L, also optional, acts as a location filter to compute the spatial interaction in the environment [21].
- Q, also optional, acts as a quantifier to filter and modulate the degree of aggregation of .
3. Case Study
3.1. Real-Home Deployment
- A motion sensor and a flush sensor (both Aqara) in the bathroom, providing cross-validation for presence and flush detection (see Figure 4B).
- A smart plug to monitor energy consumption (TP-Link) in the bedroom lamp (see Figure 4C). Another smart plug in the living room to monitor the use of the TV.
- The patient wore a smart watch (Amazfit Bip U Pro) (see Figure 4D) that collected physiological and activity-related data, including heart rate, step count, and sleep quality, including periods of deep, normal, and light sleep.
3.2. Fuzzy Inference in KG for Sleep Pattern Evaluation
Input Data Sources
Knowledge Graph
- +) SA: Adequate sleep time
- SA1: Most of the sleeping at night. Evaluates whether most of the sleeping time occurs during the night window and combines quantity (Q), temporality (T), and value streams (V).
- SA2: Sleeping quantity. Assesses if the total sleep time falls between 6–8 hours per day. Fuzzy weighted by value (V) and time window (T).
- +) SB: Quality of sleep
- SB1: Sleeping is normal or deep. Measures if the majority of sleep is spent in normal or deep stages and uses value (V), quantity (Q), and temporal alignment (T)
- SB2: Sleep in the bedroom Assesses whether sleep occurs predominantly in the bedroom and relies on value (V), localisation (L), and quantity (Q).
3.3. Fuzzy Inference in KG for Excretion Control
Input Data Sources
Knowledge Graph
- +) SA: Daily excretions
- Captures regularity and frequency of bathroom visits throughout the day aggregating value (V) and time-based frequency (T) over the full day.
- Defined as healthy when the total number of inferred excretion episodes is between 3 and 5 per day.
- +) SB: Night excretions
- Evaluates bathroom visits during the night calculated using a fuzzy combination of value (V) and temporal indicator (T) restricted to nighttime hours.
- Considered healthy if the number of visits ranges between 0 and 2.
- +) S1: Excretion detection
- Core detection mechanism combining: flush events, presence in the toilet, and localisation in the toilet room.
- Fuzzy temporal aggregation is applied over short intervals (2 to 4 minutes) to infer likely excretion episodes.
- Outputs a time-aligned indicator that feeds into both the SA and SB branches.
3.4. Fuzzy Inference in KG for Physical Mobility
Input Data Sources
Knowledge Graph
- +) SA: Physical activity
- SA1: Active mobility. Assesses whether an adequate number of steps is taken each day and combines quantity (Q), temporality (T), and step count values (V).
- SA2: Walking consecutive. Evaluates whether walking sessions include at least one sustained period of approximately 30 minutes. Derived from continuous step activity patterns, weighted by time (T) and value (V).
- +) SB: Most activity outdoor
- Checks whether most activity occurs outside the home environment. Using location data (L), step values (V), and quantity (Q) to infer whether physical activity occurs predominantly in outdoor settings.
- Considered relevant to prevent the sedentary routines commonly associated with indoor confinement.
- +) SB: Physical mobility
- Aggregates quantity and location using fuzzy temporal indicators. The model balances beneficial closeness with potential overdependence, providing a complete interpretation of daily caregiver engagement.
3.5. Fuzzy Inference in KG for Adequate Caregiver Interaction
Input Data Sources
Knowledge Graph
- The social distance is tracked and compared against a fuzzy threshold (for example, within 1 to 2 metres for at least 30 minutes/day).
- Includes temporal coverage (T), quantity of interactions (Q), and value assessment (V) of proximity episodes.
- +) SB: Privacy
- Based on the detection of caregiver presence in specific rooms (e.g., bedroom, bathroom) where autonomy is expected.
- Uses spatial location (L) and value (V) indicators to assess appropriateness of room-sharing patterns.
- +) SAB: Presence of caregiver
- Aggregates both positive (company) and negative (dependence) contributions using fuzzy temporal indicators. The model balances beneficial closeness with potential over-dependence, providing a complete interpretation of daily caregiver engagement.
4. Conclusions
Abbreviations
| AAL | Ambient Assisted Living |
| FL | Fuzzy Logic |
| FTW | Fuzzy Temporal Window |
| KG | Knowledge Graph |
| TLA | Three letter acronym |
| UWB | Ultra-Wideband |
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Cicirelli, G.; Marani, R.; Petitti, A.; Milella, A.; D’orazio, T. Ambient assisted living: a review of technologies, methodologies and future perspectives for healthy aging of population. Sensors 2021, 21, 3549. [Google Scholar] [CrossRef] [PubMed]
- Perandrés-Gómez, A.; Merdeces Párraga-Vico, M.; Díaz-Jiménez, D.; Medina-Quero, J.; Polo-Rodríguez, A. Impact of Training Programmes in Digital Skills to Reduce Unwanted Loneliness in Older Andalusian Women. In Proceedings of the Italian Forum of Ambient Assisted Living. Springer, 2024, pp. 431–440. [CrossRef]
- Rehan, H. Enhancing Early Detection and Management of Chronic Diseases With AI-Driven Predictive Analytics on Healthcare Cloud Platforms. Journal of AI-Assisted Scientific Discovery 2024, 4, 1–38. [Google Scholar]
- Rehman, A.; Naz, S.; Razzak, I. Leveraging big data analytics in healthcare enhancement: trends, challenges and opportunities. Multimedia Systems 2022, 28, 1339–1371. [Google Scholar] [CrossRef]
- Peláez-Aguilera, M.D.; Espinilla, M.; Fernandez Olmo, M.R.; Medina, J.; et al. Fuzzy linguistic protoforms to summarize heart rate streams of patients with ischemic heart disease. Complexity 2019, 2019. [Google Scholar] [CrossRef]
- Wang, J.; Zhang, Q.; Shi, F.; Li, D.; Cai, Y.; Wang, J.; Li, B.; Wang, X.; Zhang, Z.; Zheng, C. Knowledge graph embedding model with attention-based high-low level features interaction convolutional network. Information Processing & Management 2023, 60, 103350. [Google Scholar]
- Arrotta, L.; Civitarese, G.; Bettini, C. Dexar: Deep explainable sensor-based activity recognition in smart-home environments. Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies 2022, 6, 1–30. [Google Scholar] [CrossRef]
- Salguero, A.G.; Espinilla, M.; Delatorre, P.; Medina, J. Using ontologies for the online recognition of activities of daily living. Sensors 2018, 18, 1202. [Google Scholar] [CrossRef] [PubMed]
- Chen, L.; Nugent, C.; Okeyo, G. An ontology-based hybrid approach to activity modeling for smart homes. IEEE Transactions on human-machine systems 2013, 44, 92–105. [Google Scholar] [CrossRef]
- Abidi, S.S.R.; Abidi, S.R. Intelligent health data analytics: a convergence of artificial intelligence and big data. In Proceedings of the Healthcare management forum. SAGE Publications Sage CA: Los Angeles, CA, 2019, Vol. 32, pp. 178–182. [CrossRef]
- Liaw, W.; Kakadiaris, I.A. Primary care artificial intelligence: a branch hiding in plain sight. Annals of family medicine 2020, 18, 194. [Google Scholar] [CrossRef] [PubMed]
- Polo-Rodríguez, A.; Romero-Sanchez, J.; Fernández-García, E.; Paloma-Castro, O.; Porcel-Gálvez, A.M.; Medina-Quero, J. Review on internet of things for innovation in nursing process-a pubmed-based search. In Proceedings of the International Conference on Ubiquitous Computing and Ambient Intelligence. Springer, 2023, pp. 57–70. [CrossRef]
- Lloyd, R.C. Quality health care: a guide to developing and using indicators; Jones & Bartlett Learning, 2019.
- Lockhart, J.W.; Weiss, G.M. Limitations with activity recognition methodology & data sets. In Proceedings of the Proceedings of the 2014 ACM international joint conference on pervasive and ubiquitous computing: adjunct publication, 2014, pp. 747–756. [CrossRef]
- Anguita-Molina, M.Á.; Cardoso, P.J.; Rodrigues, J.M.; Medina-Quero, J.; Polo-Rodríguez, A. Multi-Occupancy Activity Recognition Based on Deep Learning Models Fusing UWB Localisation Heatmaps and Nearby-Sensor Interaction. IEEE Internet of Things Journal 2025. [Google Scholar] [CrossRef]
- Loh, H.W.; Ooi, C.P.; Seoni, S.; Barua, P.D.; Molinari, F.; Acharya, U.R. Application of explainable artificial intelligence for healthcare: A systematic review of the last decade (2011–2022). Computer methods and programs in biomedicine 2022, 226, 107161. [Google Scholar] [CrossRef] [PubMed]
- Wan, S.; Guan, S.; Tang, Y. Advancing bridge structural health monitoring: Insights into knowledge-driven and data-driven approaches. Journal of Data Science and Intelligent Systems 2024, 2, 129–140. [Google Scholar] [CrossRef]
- Hernandez, N.; Castro, L.; Medina-Quero, J.; Favela, J.; Michán, L.; Mortenson, W.B. Scoping review of healthcare literature on mobile, wearable, and textile sensing technology for continuous monitoring. Journal of healthcare informatics research 2021, 1–30. [Google Scholar] [CrossRef] [PubMed]
- Adewoyin, O.; Wesson, J.; Vogts, D. User modelling to support behavioural modelling in smart environments. In Proceedings of the 2022 3rd International Conference on Next Generation Computing Applications (NextComp). IEEE, 2022, pp. 1–6. [CrossRef]
- Abdel-Razik, M.S.M.; Rizk, H.I.; Zein, M.M.; Abdel-Megeid, S.M.E.S.; Abd El Fatah, S.A. Promoting the culture of key performance indicators (KPIs) among primary health care staff at health district level: An intervention study. Evaluation and Program Planning 2023, 96, 102188. [Google Scholar] [CrossRef] [PubMed]
- Polo-Rodriguez, A.; Cavallo, F.; Nugent, C.; Medina-Quero, J. Human activity mining in multi-occupancy contexts based on nearby interaction under a fuzzy approach. Internet of Things 2024, 25, 101018. [Google Scholar] [CrossRef]
- Gürsel, G. Healthcare, uncertainty, and fuzzy logic. Digital Medicine 2016, 2, 101–112. [Google Scholar] [CrossRef]
- Chen, X.; Hu, Z.; Sun, Y. Fuzzy logic based logical query answering on knowledge graphs. In Proceedings of the Proceedings of the AAAI Conference on Artificial Intelligence, 2022, Vol. 36, pp. 3939–3948.
- Fontenla-Seco, Y.; Bugarin, A.; Lama, M. Fuzzy temporal protoforms for the quantitative description of processes in natural language. In Proceedings of the 2021 IEEE International Conference on Fuzzy Systems (FUZZ-IEEE). IEEE, 2021, pp. 1–6. [CrossRef]
- Bugarin, A.; Marín, N.; Sánchez, D.; Trivino, G. Fuzzy knowledge representation for linguistic description of time series. In Proceedings of the 2015 Conference of the International Fuzzy Systems Association and the European Society for Fuzzy Logic and Technology (IFSA-EUSFLAT-15). Atlantis Press, 2015, pp. 1346–1353. [CrossRef]
- Martínez-Cruz, C.; Quero, J.M.; Serrano, J.M.; Gramajo, S. Monwatch: A fuzzy application to monitor the user behavior using wearable trackers. In Proceedings of the 2020 IEEE International Conference on Fuzzy Systems (FUZZ-IEEE). IEEE, 2020, pp. 1–8. [CrossRef]
- Johnson, K.B.; Wei, W.Q.; Weeraratne, D.; Frisse, M.E.; Misulis, K.; Rhee, K.; Zhao, J.; Snowdon, J.L. Precision medicine, AI, and the future of personalized health care. Clinical and translational science 2021, 14, 86–93. [Google Scholar] [CrossRef] [PubMed]
- Medina, J.; Martinez, L.; Espinilla, M. Subscribing to fuzzy temporal aggregation of heterogeneous sensor streams in real-time distributed environments. International Journal of Communication Systems 2017, 30, e3238. [Google Scholar] [CrossRef]
- Medina, J.; Espinilla, M.; Zafra, D.; Martínez, L.; Nugent, C. Fuzzy fog computing: A linguistic approach for knowledge inference in wearable devices. In Proceedings of the Ubiquitous Computing and Ambient Intelligence: 11th International Conference, UCAmI 2017, Philadelphia, PA, USA, November 7–10, 2017, Proceedings. Springer, 2017, pp. 473–485. [CrossRef]
| 1 | In this work, we use the term ’excretion control’ as a general category; however, in clinical practice, it is more common to refer specifically to urinary and fecal control. It is important to note that in patients with incontinence who use absorbent products, data collection through environmental sensors may present limitations that should be considered. |












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. |
© 2025 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/).