Smart wearable sensor-based model for monitoring medication adherence using sheep flock optimization algorithm-attention-based bidirectional long short-term memory (SFOA-Bi-LSTM)
- PMID: 40520140
- PMCID: PMC12163270
- DOI: 10.1177/20552076251349692
Smart wearable sensor-based model for monitoring medication adherence using sheep flock optimization algorithm-attention-based bidirectional long short-term memory (SFOA-Bi-LSTM)
Abstract
Objective: Medication adherence (MA) is crucial to patient treatment and vital for therapeutic outcomes. Due to its ability to continuously monitor a patient's MA behavior, the recent focus on sensor technology for MA monitoring is a promising development. The primary objective of this research is to implement sensor devices/smart wearables powered by advanced deep learning (DL) techniques to evaluate complex data patterns effectively and make accurate predictions. This study introduces a novel smart wearable sensors-based hand gesture recognition system to predict medication behaviors.
Methods: A device equipped with accelerometer and gyroscope sensors acquires and analyzes data from hand motions. A mobile app records the data from the smart device, subsequently storing it in a database in .csv file. The data is gathered, preprocessed, and classified to identify MA behavior utilizing the developed DL model known as the sheep flock optimization algorithm-attention-based bidirectional long short-term memory network (SFOA-Bi-LSTM). The data was initially gathered and preprocessed via the Z-score normalization method. The data samples are classified using the attention-based Bi-LSTM model after undergoing preprocessing. The SFOA method was utilized to optimize the hyperparameters of the attention-based Bi-LSTM model.
Results: The model's performance was examined using a five-fold cross-validation based on recall, accuracy, F1 score, and precision. The SFOA-Bi-LSTM model achieved 98.90% accuracy, 97.80% recall, 98.80% precision, and 98.62% F1 score, demonstrating its novelty and potential to inspire and motivate healthcare professionals to adopt this promising method for monitoring MA in healthcare applications.
Conclusion: The results indicate that the SFOA-Bi-LSTM model performs well in predicting MA. The SFOA-Bi-LSTM model offers several unique advantages, including efficient hyperparameter tuning via the SFOA, enhanced feature representation through an attention mechanism, and comprehensive temporal analysis using Bi-LSTM. It demonstrates superior performance compared to conventional models while being robust to noisy data due to effective preprocessing.
Keywords: Bi-LSTM; Medication adherence; SFOA; Z-score normalization; deep learning; smart wearable sensor.
© The Author(s) 2025.
Conflict of interest statement
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Figures











Similar articles
-
Sea Horse Optimization-Deep Neural Network: A Medication Adherence Monitoring System Based on Hand Gesture Recognition.Sensors (Basel). 2024 Aug 12;24(16):5224. doi: 10.3390/s24165224. Sensors (Basel). 2024. PMID: 39204920 Free PMC article.
-
CNN-Bi-LSTM: A Complex Environment-Oriented Cattle Behavior Classification Network Based on the Fusion of CNN and Bi-LSTM.Sensors (Basel). 2023 Sep 6;23(18):7714. doi: 10.3390/s23187714. Sensors (Basel). 2023. PMID: 37765771 Free PMC article.
-
Diagnosis and classification of neuromuscular disorders using Bi-LSTM optimized with grey Wolf optimizer for EMG signals.Sci Rep. 2025 Jun 2;15(1):19274. doi: 10.1038/s41598-025-03766-2. Sci Rep. 2025. PMID: 40456840 Free PMC article.
-
iHearken: Chewing sound signal analysis based food intake recognition system using Bi-LSTM softmax network.Comput Methods Programs Biomed. 2022 Jun;221:106843. doi: 10.1016/j.cmpb.2022.106843. Epub 2022 May 5. Comput Methods Programs Biomed. 2022. PMID: 35609358
-
Automated classification of hand gestures using a wristband and machine learning for possible application in pill intake monitoring.Comput Methods Programs Biomed. 2022 Jun;219:106753. doi: 10.1016/j.cmpb.2022.106753. Epub 2022 Mar 15. Comput Methods Programs Biomed. 2022. PMID: 35338885
References
-
- Aldeer M, Javanmard M, Martin RP. A review of medication adherences monitoring technologies. Appl Syst Innovat 2018; 1: 14.
-
- Wellington K, Absalom EE. Machine learning approach to medications adherences amongst NCD patient: a systematic literatures review. Inf Med Unlocked 2023; 38: 101210.
LinkOut - more resources
Full Text Sources