Do Waste Classifiers Recognise Items They Have Never Seen? Object-Disjoint Evaluation on Household and Medical Waste
Authors: Nusrat Jahan, Mst. Eshrat Jahan Esha, Masuma Sadia, Saad Ahmed, Md Zahim Hassan, S M Jahangir Alam
Organizations: Department of Computer Science and Engineering, Bangladesh Army University of Science and Technology (BAUST), Saidpur Cantonment, Saidpur 5310, Nilphamari, Bangladesh
Automatic waste classification supports source separation, which enables recycling and keeps hazardous medical items out of household waste. Waste classification studies often report near-perfect accuracy on random image splits, which put photographs of one item in both training and test sets. To measure how well classifiers recognise items they have never seen, we built BanglaWaste-23, with 4,160 images of 172 objects in 23 household and medical waste classes from Bangladesh. Every image also records which physical item it shows. We evaluated 11 ImageNet-pretrained models and two models trained from scratch (a compact custom network and MobileNetV3-L) using object-disjoint five-fold cross-validation and a random split. On unseen objects, the best pretrained model reached a macro-averaged F1 score of 98.8%, and six models were statistically tied. The random split overstated from-scratch accuracy by 15 to 19 percentage points. The from-scratch models also missed 11 to 13% of medical items, against under 1% for pretrained models. On a second dataset from Dhaka, pretrained accuracy fell by 15 to 22 points. Classifiers should therefore be evaluated on unseen objects, with random-split results read as an upper bound. The data are on Zenodo and the code at https://github.com/saadbaust/BanglaWaste-23.
Figures & tables
Fig. 1: One example image of each of the 23 classes of BanglaWaste-23: (a)–(n) food and plant waste, (o)–(s) household non-food waste, and (t)–(w) medical waste (medicine blister pack, saline infusion set, syringe and used cotton wool).
Fig. 2: Random image-level splitting versus the object-disjoint protocol used in this study. Each square is one image, and squares of the same colour show the same physical object. (a) A random split places images of the same object in both the training and the test set. In BanglaWaste-23, 155 of the 172 objects end up on both sides, so the model is tested on objects it has already seen. (b) In object-disjoint five-fold cross-validation, whole objects are assigned to folds, every class is present in every fold, and each fold is used once as the test set (shown for fold 1). Learning rate and epochs were tuned on one object per class held out from the training folds, never on the test fold, and the out-of-fold predictions of all 4,160 images were pooled.
Fig. 3: Pooled macro-F1 on unseen objects against computational cost (MACs per image, log scale). Error bars show 95% confidence intervals (bootstrap over objects). Blue points show ImageNet-pretrained models, and orange points show models trained from scratch. Numbers identify the models listed on the right.
Fig. 4: Macro-F1 of the same models under a random image split (hatched grey bars) and on unseen objects (solid blue bars, object-disjoint cross-validation, pooled out-of-fold). Numbers above the blue bars give the drop in percentage points. The three models on the left are ImageNet-pretrained, and the two on the right were trained from scratch.
Fig. 5: (a) Accuracy on BDWaste images from Dhaka for the 11 classes shared with BanglaWaste-23 (models trained on all BanglaWaste-23 images). The last row gives the accuracy over all 1,390 images. (b) Macro-F1 (mean of five folds) on the object-disjoint test folds for the original images, after strong JPEG compression (quality 30) and after reducing the resolution to 96 pixels.
Waste classification models have become highly accurate at sorting waste, often exceeding 95% on benchmark datasets. However, these models fail to account for contamination in recyclable waste. We present EcoBin, a two-stage deep convolutional neural network that classifies household waste by its disposal pathway and that explicitly accounts for contamination. The first stage is a base waste classifier built on an EfficientNetV2-S backbone that assigns each of the thirty waste categories in our dataset to one of four disposal pathways. The second stage is a contamination classifier that inspects any item routed toward recycling and overrides the decision to garbage when contamination is detected. Because no public dataset of contaminated recyclables exists, we synthesize one by segmenting images of clean recyclable objects with a U2-Net model and compositing realistic contamination textures onto their surfaces. The first stage achieves 87.42% test accuracy and a 96.13% pathway-adjusted accuracy. Meanwhile, the contamination stage distinguishes clean from contaminated items with a 0.99 ROC-AUC. On a test set of contaminated recyclables, the complete pipeline routes 24 of 25 items correctly, compared with only 1 of 25 for the base classifier alone. A McNemar's test confirms that the improvement contributed by the contamination stage is statistically significant (p < 0.001).
The inappropriate disposal of solid waste remains a significant public health and environmental concern worldwide, including in Ghana. Poor sanitation and improper waste management practices contribute to substantial economic costs and avoidable deaths annually. In 2022, a field study in Atonsu, Kumasi, Ghana, reported a community-perceived relationship between household waste disposal and illness patterns, but only through descriptive analysis without quantitative validation. This study extends that investigation using two data-driven approaches. First, a Random Forest classifier was developed to predict illness categories using waste disposal practices and demographic survey data. On a held-out group of respondents who reported illness (N=69), the model obtained a macro F1 score of 0.63, with disposal method emerging as the most important substantive predictor of illness type. Second, a MobileNetV2 image classification model enabled automated waste sorting via visual recognition, achieving 88.2% accuracy and a macro F1 score of 0.87 on the test set (N=415). The vision-based approach offers an affordable, camera-driven alternative to complex multi-sensor systems, making it highly suitable for resource-constrained settings. Taken together, the findings provide quantitative evidence for a community health relationship previously documented only qualitatively. They demonstrate the potential for automated waste-sorting in low-resource environments. Importantly, the results illustrate that technological performance alone does not guarantee public health improvements; effective institutional support and implementation are equally necessary.
Department of Industrial Engineering Kwame Nkrumah University of Science and Technology Kumasi Ghana · Department of Nursing Kwame Nkrumah University of Science and Technology Kumasi Ghana · Department of Mechanical Engineering University of Nottingham NG7 2RD, United Kingdom
The emergence of machine learning and deep learning has revolutionized the efficiency of diagnostic, therapeutic, and administrative systems in healthcare. However, this rapid adoption has come at the cost of requiring significant computing power and energy consumption, as well as e-waste disposal and carbon emissions. One of the challenges of these models is choosing the right model for classification tasks. To this end, researchers attempt to identify the optimal model using their data through trial and error, which involves energy consumption and waste. The goal of this study is to develop a model-based recommender system for medical image classification. For this purpose, a data set was collected from 3,000 articles in the field of medical image classification. This dataset, publicly available under the name MedicalRec-Bench, contains over 5,000 records of models tested in various tasks, including Skin Cancer Classification, Tumour Classification, Wound Classification, Breast Cancer, and MRI classification. The dataset was evaluated in four different modes, depending on the number of features: MedicalRec I (5 features), MedicalRec II (9 features), MedicalRec III (11 features), and MedicalRec IV (18 features). Collecting all values for the features is challenging due to non-reporting by the authors; hence, the dataset contains significant amounts of missing values. The Medical Recommender System (MedicalRec) is a transformer-based model used for item recommendations in this study. This model achieved remarkable results in the evaluation on the dataset and in the evaluation with 12 base models. This model achieved a maximum HitRate@100 of 75.5%. The dataset and implementations are available through the GitHub link: https://github.com/Ramin1Mousa/MedicalRec
Roghayeh Taghavi, Aysa Hasanazde Bashkandi, Amir Ali Bengari +5