classification tasks, highlighting its simplicity and adaptability. Cover and Hart (1967) introduced KNN
as an effective non-parametric classification algorithm, which has since been applied widely in
various domains, including medicine.
In healthcare, pattern recognition and machine learning have proven transformative. (Bishop,
2006) highlights the potential of pattern recognition to identify disease correlations, enabling
targeted drug prescriptions. (Mitchell & Mitchell, 1997) further supports this by emphasizing the
interpretability of KNN results, which is crucial for healthcare practitioners.
The challenges of traditional approaches, such as manual drug classification, have been well-
documented. (Patel, V., Baker, N., & King, 2019) highlight the inefficiencies and errors in manual
systems, advocating for automated solutions. (Domingos, 2012) emphasize that integrating machine
learning into healthcare can enhance operational efficiency and diagnostic accuracy, making it a
practical choice for addressing these limitations.
The significance of optimized healthcare practices is underscored by global health challenges.
(Gupta, R., Ahuja, 2019) stress the rising prevalence of respiratory disorders and the role of
environmental factors, which necessitate precise disease management. Similarly, (Smith, L.,
Johnson, A., & Carter, 2018) highlight the importance of simplified medication regimens in improving
patient adherence, particularly for chronic diseases like hypertension and diabetes. These findings
align with the need to tailor treatment plans through data-driven methodologies.
KNN's application in healthcare has been widely recognized for its ability to classify and
analyze complex datasets. (Altman, 1992) highlights the algorithm's robustness in handling non-
linear relationships, while (Breiman, 2001) advocates for ensemble approaches like Random Forests
for comparison. Nevertheless, the simplicity of KNN makes it particularly suitable for resource-
constrained environments, as highlighted by (Friedman, 2001)
This study builds upon the foundational theories of machine learning and healthcare data
mining to address the gaps in current practices. By leveraging KNN to classify drug usage patterns
and correlate them with diseases, this research aims to provide actionable insights that improve
prescription accuracy and disease management. The theoretical framework, supported by works
such as (Kohavi, 1995) on validation techniques and (Hastie, 2009) on statistical learning, ensures a
robust methodological approach, contributing to the broader goal of advancing personalized
medicine and enhancing healthcare efficiency.
To address the challenges mentioned, integrating machine learning approaches like KNN can
offer a viable solution. This algorithm, known for its simplicity and high accuracy in small to medium-
sized datasets, can be employed to: (1) Classify drug usage patterns based on historical data; (2)
Identify diseases associated with specific drug usage, thereby aiding in optimal prescription
practices. (3) Enhance real-time decision-making for healthcare providers. Compared to traditional
manual methods, machine learning models can analyze large datasets efficiently and identify hidden
patterns, making them superior alternatives
Previous studies have primarily focused on the use of advanced machine learning algorithms,
such as Decision Trees, Support Vector Machines, and Random Forests, for drug usage pattern
analysis and disease identification. While effective for specific tasks, these approaches often require
significant computational resources and lack real-time applicability, especially in resource-
constrained healthcare environments (Patel, V., Baker, N., & King, 2019; Zhang, L., Huang, Y., & Chen,
2020). Moreover, research has largely treated drug classification and disease identification as