Detection of food adulteration using machine learning tools

bracu.degree.levelUndergraduate
bracu.type.groupStudent Works
datacite.rightsOpen Access
dc.contributor.advisorRahman, Chowdhury Mofizur
dc.contributor.advisorRahman, Rafeed
dc.contributor.authorAlamgir, Anika
dc.contributor.authorAnjum, Nashita
dc.contributor.authorHossain, A. K. M. Shahadat
dc.contributor.authorDeb Nath, Debpriyo Hrishikes
dc.contributor.departmentDepartment of Computer Science and Engineering
dc.date.accessioned2026-08-11T04:57:59Z
dc.date.available2026-08-11T04:57:59Z
dc.date.copyright2024
dc.date.issued2026-01
dc.descriptionThis thesis is submitted in partial fulfillment of the requirements for the degree of Bachelor of Science in Computer Science and Engineering, 2026.
dc.descriptionCataloged from PDF version of thesis.
dc.descriptionIncludes bibliographical references (pages 68-71).
dc.description.abstractAdulteration of food has been an urgent concern for the health and food safety of the people, and the affected area is particularly the developing countries due to the inefficient infrastructure and limited resources available to test the food items. Some traditional forms of detection, like chemical analysis and chromatographic analysis, are usually slow, costly, and require competent manpower. This paper explores an affordable and scalable Machine Learning (ML) system to identify food adulteration in sugar and poppy seed, and also another criteria is to identify the freshness of meat. The methodology of the study uses a modular approach to using self created RGB image dataset of sugar mixed with Magnesium Sulfate as adulterant which is one of its first kind in food adulteration detection of sugar and another one is of poppy seed dataset which is mixed with semolina as adulterant, collected through online to predict different fixed adulteration levels. Additionally, the dataset of meat is collected from an existing paper for further working on meat freshness detection. A self proposed ensembled model using pretrained models including: Densenet121, Conv-Next Tiny and Resnet50 with soft voting is used for detecting adulterants of sugar with Grad-CAM visualization, also showed some success in detecting other unknown adulterants. The ensembled model for sugar has shown about 88.96% accuracy. Whereas for poppyseed, Convolutional Neural Networks (CNN), and its pretrained model- EfficientNetB0 shows very high accuracy - 98.25% itself to measure the level of adulterants in class-wise manner without requiring any ensemble learning. As per previous works, there are few models that have satisfactory accuracy rate in terms of adulterant detection but there still exist issues, especially in covering diverse food items like sugar and poppyseed and as of for meat freshness, the Misclassification Cost based on some shown pretrained models was much higher in a previous work, which has been addressed by this study. For meat dataset, a Swin Transformer integrated with Explainable AI succesfully identified spots of spoilage, solving the black-box problem, showed increased accuracy upto 98% which is higher compared to that of the models shown in the existing paper from where the meat data set was collected and along with this, the study addressed the misclassification cost, an evalutation metric proposed by the original paper, which was lowered by many folds compared to the exisiting misclassification cost of the original paper. This research highlights that image data by mobile or obtained on accessible platform with AI can facilitate fast, dependable food safety testing and aid food quality inspection in supply chains.
dc.description.degreeBachelor of Science in Computer Science and Engineering
dc.description.statementofresponsibilityAnika Alamgir
dc.description.statementofresponsibilityNashita Anjum
dc.description.statementofresponsibilityA. K. M. Shahadat Hossain
dc.description.statementofresponsibilityDebpriyo Hrishikes Deb Nath
dc.format.extent84 pages
dc.identifier.otherID 24241161
dc.identifier.otherID 22201522
dc.identifier.otherID 22201727
dc.identifier.otherID 24141221
dc.identifier.urihttps://hdl.handle.net/10361/28911
dc.language.isoen_US
dc.publisherBRAC University
dc.rightsAttribution-NonCommercial-NoDerivatives 4.0 Internationalen
dc.rightsBRAC University theses are protected by copyright. They may be viewed from this source for any purpose, but reproduction or distribution in any format is prohibited without written permission.
dc.rights.urihttp://creativecommons.org/licenses/by-nc-nd/4.0/
dc.subjectFood adulteration
dc.subjectMachine learning
dc.subjectArtificial intelligence
dc.subjectConvolutional neural networks
dc.subjectCNNs
dc.subjectRGB images
dc.subjectImage analysis
dc.subjectScalable detection system
dc.subject.lcshDeep learning (Machine learning).
dc.subject.lcshFood adulteration and inspection.
dc.subject.lcshFood--Analysis.
dc.subject.lcshNeural networks (Computer science).
dc.subject.lcshImage processing.
dc.subject.lcshOptical data processing.
dc.titleDetection of food adulteration using machine learning tools
dc.typeThesis

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
24241161, 22201522, 22201727, 24141221_CSE.pdf
Size:
32.32 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed upon to submission
Description: