The brain acts as the body’s central command, overseeing diverse functions including thought, memory, speech, movement, and the regulation of various organs. When healthy, the brain functions seamlessly and automatically; however, disruptions can lead to serious conditions such as Alzheimer’s Disease, Brain Cancer, Stroke, and Epilepsy. Epilepsy, a neurological disorder marked by recurrent seizures, results from irregular electrical activity in the brain. These seizures, which can strain both patients and neurologists, are characterized by symptoms like the loss of awareness, unusual behavior, and confusion. This study presents an efficient EEG-based epileptic seizure detection framework utilizing a hybrid Convolutional Neural Network (CNN), Long Short-Term Memory (LSTM), and Gated Recurrent Unit (GRU) models approach to support automated and accurate diagnosis. Handling imbalanced EEG data, which can otherwise bias model outcomes and reduce predictive accuracy, is a key focus. Experimental results indicate that the proposed framework generally outperforms other Deep Learning and Machine Learning techniques with the highest accuracy at 99.13%. Likewise, an Explainable Artificial Intelligence (XAI) called SHAP (SHapley Additive exPlanations) is utilized to analyze the results and to improve the interpretability of the models from medical decision-making. This framework aligns with the objectives of the Medical Internet of Things (MIoT), advancing smart medical applications and services for effective epileptic seizure detection.
Federated Learning (FL) facilitates collaborative model training among dispersed clients while safeguarding data privacy; yet, its practical implementation is significantly hindered by substantial uplink bandwidth restrictions and notable data heterogeneity. Even though there have been recent improvements in FL methods that save communication resources, like adaptive sparsity and importance-aware bandwidth allocation, most existing systems still mainly respond to immediate client These methods, which depend exclusively on immediate client metrics like current loss values or gradient norms, neglect to account for temporal client behavior, frequently leading to inefficient bandwidth usage, unstable training dynamics, and postponed enhancements in the performance of the worst client. This study presents FedCogniBand, a smart FL system that predicts and manages communication resources by analyzing and forecasting client risks over time. Each client is defined by a streamlined cognitive profile that encapsulates historical loss dynamics, short-term performance trends, and update stability. The server uses a simple predictive tool to evaluate how clients will perform in the future based on their past cognitive data and manages bandwidth for a short time frame while sticking to a strict overall budget. To improve communication efficiency, FedCogniBand employs semantic-aware sparsity, prioritizing model parameters based on layer-level sensitivity to the worst-client performance instead of raw gradient magnitude. A control method that takes uncertainty into account dynamically balances predictive and reactive allocation. It shows that performance is stable even in noisy or non-stationary environments. Extensive tests on image and network-traffic classification tasks with strict bandwidth limits show that FedCogniBand consistently improves the accuracy of the worst-performing clients, makes convergence more stable, and reduces unnecessary communication compared to top adaptive FL methods. These results show that using a smart, prediction-based way to manage resources creates a reliable and expandable system for FL in situations with very limited resources.