Interpretable attention-based mechanisms for medical waste sorting with Meta learning

Date
2025
Authors
Kikome, Christine
Wagisha, Emmanuel
Okumu, Geoffrey
Journal Title
Journal ISSN
Volume Title
Publisher
Makerere University
Abstract
Improper disposal and poor management of medical waste, stemming from reliance on traditional color-coded classification systems, pose significant environmental and health risks. The limited availability of labeled medical waste image datasets and the opaque nature of current deep learning models hinder their adoption in critical healthcare applications requiring transparency in decision-making processes. To address the risks posed by improper medical waste disposal and the limitations of traditional classification methods, this study developed and evaluated three meta learning models, Model-Agnostic Meta-Learning (MAML), Prototypical Networks (ProtoNet), and Reptile as well as conventional deep learning models including EfficientNetB0, Visual Geometry Group (VGG), DenseNet, and Vision Transformers. These models were trained on a custom medical waste image dataset to enhance classification performance and interpretability in few-shot learning scenarios. MAML, ProtoNet, and Reptile achieved classification accuracies of 100%, 99.71%, and 65.62% respectively, while EfficientNetB0 reached 99.40% accuracy. The models were then agonistically inspected for transparency using Gradient-weighted Class Activation Mapping (Grad-CAM), revealing that features such as color, shape, and surface texture were the most important for decision-making in well-represented classes like sharps and infectious waste. In contrast, features associated with chemical waste due to their limited data, were found to be least important and often misclassified. Gradient attention weights were assigned to input features to derive visual explanations, where regions with strong color intensity and distinctive morphology stood out as the most influential in model predictions. These explainable AI (XAI) visualizations significantly enhanced the interpretability of the deep and meta-learning models, supporting better generalization and trustworthiness, especially in healthcare contexts demanding transparent decision-making. The top performing model was deployed into a Application Programming Interface (API) accessible via any mobile or desktop device. The API leveraging meta learning and attention-based mechanisms can be integrated in IOT supported devices to automate medical waste classification. This approach demonstrates the potential of combining meta-learning with attention-based feature extraction and explainable AI to deliver accurate, interpretable, and scalable solutions for medical waste classification in real-world environments.
Description
A project report submitted to the Department of Computer Science in partial fulfilment of the requirements for the Degree of Bachelor of Science in Computer Science of Makerere University.
Keywords
Medical Wastes, Machine Learning, Meta Learning, Model Agnostic Explanations, Prototypical Networks, Reptile Networks, Healthcare
Citation
Kikome, C., Wagisha, E. & Okumu, G. (2025). Interpretable attention-based mechanisms for medical waste sorting with Meta learning (Unpublished undergraduate dissertation). Makerere University, Kampala, Uganda.