TEBP2-YOLOv8: A defect-sensitive convolutional neural network architecture featuring texture enrichment and P2 micro-scale detection for fine-grained eggplant quality assessment in precision agriculture

bracu.degree.levelUndergraduate
bracu.type.groupStudent Works
datacite.rightsOpen Access
dc.contributor.advisorReza, Md. Tanzim
dc.contributor.authorIslam, S. M. Ababil
dc.contributor.authorSaha, Debashis
dc.contributor.authorAlam, Md. Ridowanul
dc.contributor.departmentDepartment of Computer Science and Engineering
dc.date.accessioned2026-08-24T08:18:06Z
dc.date.available2026-08-24T08:18:06Z
dc.date.copyright2026
dc.date.issued2026-04
dc.descriptionThis thesis is submitted in partial fulfillment of the requirements for the degree of Bachelor of Science in Computer Science, 2026.
dc.descriptionCataloged from PDF version of thesis.
dc.descriptionIncludes bibliographical references (page 77-79).
dc.description.abstractBangladesh’s economy is mostly dependent on agriculture. Ensuring quality control of fruits plays a crucial role in the agricultural industries of countries like Bangladesh. Eggplant is one of the most popular vegetables in Bangladesh. Detecting and classifying eggplant fruit surface defects are important for maintaining the quality of the eggplant. However, the eggplant quality assessment still relies on traditional methods, which are less accurate, time-consuming, and leads to human error. To overcome these challenges, we propose a deep learning based approach using Convolutional Neural Networks (CNNs) for the classification of eggplant fruit quality based on the condition of defects. A total of 7,686 images of different varieties of eggplants with defects from local markets and agricultural fields of Dhaka, Bogura and Satkhira districts of Bangladesh have been collected to make the dataset. This dataset has been used to train our CNN models to classify the eggplants into three categories - rotten, insect damage, and physical damage. We have initially used YOLOv8x, YOLOv8s, Faster R-CNN for training the dataset. Later, we have proposed a custom YOLOv8x model named TEBP2-YOLOv8x having an additional P2 head for improved smaller defect detection and Texture Enhanced Blocks (TEB) for texture enhancement of subtle defects. We have also used Weighted Boxes Fusion (WBF) for combining our proposed TEBP2-YOLOv8x and YOLOv8s for improved precision. Various data augmentation techniques are also used for better accuracy. After evaluating the trained models on test set images, the results demonstrate that our proposed TEBP2-YOLOv8x model has the best performance (mAP@0.5=0.924) among the other models. An ablation study on TEBP2-YOLOv8x model shows that it enhances the detection accuracy of insect class with tiny and subtle defects (mAP@0.5 increases from 0.836 to 0.904). We believe that this study can contribute to automate the eggplant defect classification with enhanced accuracy and it will reduce the economic losses in the agricultural sector by ensuring consistent eggplant fruit quality.
dc.description.degreeBachelor of Science in Computer Science
dc.description.statementofresponsibilityS. M. Ababil Islam
dc.description.statementofresponsibilityDebashis Saha
dc.description.statementofresponsibilityMd. Ridowanul Alam
dc.format.extent79 pages
dc.identifierID 22101597
dc.identifierID 24341198
dc.identifier.otherID 22301182
dc.identifier.urihttps://hdl.handle.net/10361/29493
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.subjectTEBP2-YOLOv8
dc.subjectDeep learning
dc.subjectConvolutional neural network
dc.subjectImage classification
dc.subjectComputer vision
dc.subjectObject detection
dc.subjectData augmentation
dc.subjectTexture enrichment
dc.subjectMicro-scale detection
dc.subjectEggplant
dc.subjectPrecision agriculture
dc.subjectYOLOv8
dc.subjectFaster R-CNN
dc.subject.lcshNeural networks (Computer science).
dc.subject.lcshMachine learning.
dc.subject.lcshComputer vision.
dc.subject.lcshOnline data processing.
dc.subject.lcshPrecision agriculture.
dc.subject.lcshComputer security.
dc.subject.lcshImage processing.
dc.titleTEBP2-YOLOv8: A defect-sensitive convolutional neural network architecture featuring texture enrichment and P2 micro-scale detection for fine-grained eggplant quality assessment in precision agriculture
dc.typeThesis

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
22301182_22101597_24341198_CSE.pdf
Size:
64.45 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: