Related Experiment Video
Updated: Feb 5, 2026

A Step-by-Step Implementation of DeepBehavior, Deep Learning Toolbox for Automated Behavior Analysis
Published on: February 6, 2020
Quality of life analysis in community pharmacy using deep learning and explainability methods
María José Reyes-Medina1, María Del Pilar Carrera-González2,3, Vanesa Cantón-Habas1,2
1Department of Nursing, Pharmacology and Physiotherapy, Faculty of Medicine and Nursing, University of Córdoba, Córdoba, 14004, Spain.
Objectives:
The study aimed to develop a deep learning-based model, using global and local explainability methods, to process clinical data collected in community pharmacies and identify the key variables influence health-related quality of life in patients with chronic diseases.
Materials And Methods:
Data from 347 chronic patients, including 257 variables, were analyzed. Five predictive models were compared using 10-way stratified cross-validation: Gradient Boosting, Random Forest, LightGBM, a fully connected neural network (FCNN), and a set of 5 FCNNs. For interpretability, SHapley Additive exPlanations (SHAP) was used for the global importance of variables and Local Interpretable Model-Agnostic Explanations (LIME) for the local interpretation of individual cases.
Results:
The FCNN ensemble achieved the best performance (R 2 = 0.511 ± 0.126; 95% CI: 0.385-0.637; Mean Absolute Error = 0.0819 ± 0.0088; Mean Squared Error = 0.0122 ± 0.0039). Tree-based models showed slightly lower performance (eg, Gradient Boosting R 2 = 0.484 ± 0.113). Explainability analysis identified pain, mobility limitations, beta-blocker use, anxiety/depression symptoms, and difficulties with activities of daily living as the most influential variables.
Discussion:
The findings highlight that deep learning models can capture complex relationships among multiple clinical and psychosocial variables. The combination of SHAP and LIME allows for clinically interpretable results, facilitating personalized decisions in chronic disease care. Furthermore, the accessibility of community pharmacies provides a practical setting for data collection and application of these predictive tools.
Conclusions:
The study demonstrates the potential of machine learning to support personalized decision-making in the management of chronic diseases from accessible settings such as community pharmacies, identifying the most important factors affecting patients' quality of life.
Related Concept Videos
What are Populations and Communities?
Half-life of a Reaction
Characteristics of Life
The Angiosperm Life Cycle
The Tree of Life - Bacteria, Archaea, Eukaryotes
Functions of Life
Metabolism
The basic function of an organism is to consume energy and molecules in foods, convert some of it into fuel for movement, sustain body functions, and build and maintain body structures. There are two types of reactions that accomplish this: anabolism and catabolism.
Anabolism is the process whereby...

