Wireless Body Area Networks (WBANs) have become a fundamental technique for continuous healthcare monitoring by enabling reliable communication among wearable and implantable biomedical sensors. Since WBAN applications generate heterogeneous traffic with different Quality of Service requirements, efficient Medium Access Control (MAC) protocols are essential to provide consistent data delivery while maintaining low latency and energy consumption. Although IEEE 802.15.6 allows for multiple phases for different traffic priorities, its predefined superframe structure cannot efficiently adapt to dynamically varying traffic loads, leading to underutilized bandwidth, increased packet collisions, and reduced network performance. To overcome these limitations, this paper suggests an Optimized Multi-class and Multi-load handling MAC protocol (OMMH-MAC) that incorporates Hysteretic Q-learning (HQL) within the IEEE 802.15.6 superframe for adaptive slot allocation and dynamic traffic scheduling. This protocol classifies network traffic and estimates network load. Based on the HQL policy learned, the Body Coordinator (BC) dynamically allocates TDMA slots within the superframe. The outcomes exhibit this protocol achieves better convergence, good throughput, and lower packet collisions in a dynamic health environment.
