Image-Based Detection of Microplastics in Aquatic Samples Using a Transfer-Learned Yolov8 Detector Deployed as A Fastapi–React Web Service
R. UshaProfessor, Department of Biotechnology, Sri Padmavati Mahila Visvavidyalayam (Women's University), Tirupati, India. usha.r@spmvv.ac.in0000-0002-5546-6997
E. Ramesh BabuAssistant Professor, Department of Computer Science and Engineering, Sri Padmavati Mahila Visvavidyalayam (Women's University), Tirupati, India. rameshbabu.e@spmvv.ac.in0009-0001-2078-2180
B. UmaAssistant Professor, Department of Computer Science and Engineering, Sri Padmavati Mahila Visvavidyalayam (Women's University), Tirupati, India. umareddy@spmvv.ac.in0009-0000-6315-1090
Dr.P. Venkata KrishnaProfessor, Department of Computer Science, Sri Padmavati Mahila Visvavidyalayam, Tirupati, India. pvk@spmvv.ac.in0000-0001-8138-5878
Dr.A. DeepaAssistant Professor, Department of Biotechnology, Sri Padmavati Mahila Visvavidyalayam (Women's University), Tirupati, India. deepika.ammulu12@gmail.com0000-0003-4913-7676
P. PushpanjaliProject Assistant, Department of Biotechnology, Sri Padmavati Mahila Visvavidyalayam (Women's University), Tirupati, India. pushpaanjali491@gmail.com0009-0002-5126-6135
Keywords: Microplastic Detection, YOLOv8, Transfer Learning, Object Detection, Web Service, Environmental Monitoring, Ubiquitous Computing.
Abstract
Background: Microplastics (MPs; particles ≤ 5 mm) are pervasive in aquatic systems, yet their identification by microscopy and Fourier-transform infrared (FTIR) or Raman spectroscopy remains slow, costly and unsuitable for large-scale monitoring. Objective: This study develops and evaluates an end-to-end, image-based MP detection service that couples a transfer-learned YOLOv8 detector with a lightweight web deployment layer. Methods: A single-class dataset of 1,620 annotated aquatic-sample images (70:20:10 train/validation/test split) was letterbox-resized to 640 × 640 pixels and augmented with mosaic, flipping, scaling and HSV jitter. A COCO-pretrained YOLOv8s model was fine-tuned for 100 epochs and exposed through a FastAPI REST back end and a React front end. Performance was assessed using precision, recall, F1-score, mean Average Precision (mAP), confusion-matrix analysis, an ablation study, baseline comparison, latency profiling and robustness tests. Results: On 1,701 validation instances, the model achieved an mAP@0.5 of 0.644 and a peak F1-score of 0.64 at a confidence threshold of 0.201; the confusion matrix recorded 942 true positives, 219 false positives and 759 false negatives (precision 0.811, recall 0.554 at τ = 0.25). Transfer learning combined with augmentation raised mAP@0.5 by 0.232 over training from scratch without augmentation. Mean GPU inference latency was 8.4 ms per image (≈ 119 FPS), and the end-to-end API response time was 212 ms on a CPU server. Conclusion: The framework provides a reproducible, low-cost and deployable route to automated MP screening; recall on small, translucent particles remains the principal target for improvement.