This abstract focuses on the significance of wireless body area networks (WBANs) as a cutting-edge and self-governing technology, which has garnered substantial attention from researchers. The central challenge faced by WBANs revolves around upholding quality of service (QoS) within rapidly evolving sectors like healthcare. The intricate task of managing diverse traffic types with limited resources further compounds this challenge. Particularly in medical WBANs, the prioritization of vital data is crucial to ensure prompt delivery of critical information. Given the stringent requirements of these systems, any data loss or delays are untenable, necessitating the implementation of intelligent algorithms. These algorithms play a pivotal role in expediting diagnosis and treatment processes during medical emergencies. This study introduces an innovative protocol termed collaborative binary Naive Bayes decision tree (CBNBDT) designed to enhance packet classification and transmission prioritization. Through the utilization of this protocol, incoming packets are categorized based on their respective classes, enabling subsequent prioritization. Thorough simulations have demonstrated the superior performance of the proposed CBNBDT protocol compared to baseline approaches.