Smart IoT-Driven Digital Platform for Sustainable Dry Fish Processing
An intelligent research platform combining artificial intelligence, IoT monitoring, predictive analytics, computer vision, resource optimization and digital traceability to improve sustainable dry fish processing.
Project Scope
Addressing critical post-harvest vulnerabilities in Sri Lankan dry-fish processing through integrated AI and IoT innovations.
Literature Survey Context
Dry fish (karawala) represents roughly a quarter of Sri Lanka’s marine harvest, serving as a primary protein staple for coastal and rural communities. Academic surveys and baseline studies reveal that traditional processing remains predominantly reliant on artisanal, open-sun drying yards.
Prior published efforts in automated food drying demonstrated isolated microcontroller setups or offline machine-learning estimators. However, existing literature identifies a pervasive gap: environmental sensing, predictive drying algorithms, and supply chain traceability are perpetually treated as disconnected islands, rarely returning live predictions to drying hardware as operating setpoints.
Research Problem Statement
Traditional open-air sun drying produces substantial post-harvest losses (exceeding 20–30% during erratic monsoon periods) through unmonitored microbial spoilage, dust contamination, fly infestation, and inconsistent sodium curing.
Without quantifiable environmental records or automated shut-off mechanisms, processors frequently over-dry or under-dry batches. Furthermore, organic cleaning waste is disposed without recovery, and finished products lack verifiable batch provenance, hindering premium commercial and export viability.
Identified Research Gaps
Contrasting traditional artisanal limitations against our data-driven interventions.
Manual Drying Decisions
Processors rely on subjective tactile inspection and weather heuristics, resulting in severe over-drying or under-drying.
Physics-informed ML regressors dynamically predict drying completion time with an empirical MAE of 1.10 minutes.
Limited Real-Time Monitoring
Open drying yards lack continuous temperature, relative humidity, mass loss, or air velocity measurement.
Closed chamber instrumented with dual temperature probes, humidity, load cell, and gas sensors streaming live telemetry.
Inconsistent Quality Assessment
Visual quality is judged post-factum without standard classification rules, causing arbitrary pricing and customer dispute.
YOLOv8 instance segmentation model grading fish into standardized Grade A, B, C and detecting localized defect polygons.
Lack of Predictive Spoilage Monitoring
Spoilage is identified only after irreversible smell or visual discoloration appears, causing whole-batch discard.
Multi-parameter rule scoring combining metal-oxide gas odour levels, relative humidity, and stalled mass reduction rates.
Limited Digital Traceability
Batch processing records are kept on paper or forgotten entirely; raw catch origin cannot be linked to the final sold batch.
Unique Batch Identifier (BID) logging every event: cleaning loss, salting duration, chamber profile, and quality verification.
Inefficient Resource Usage
Excessive or insufficient salting leads to product degradation, salt waste, and high environmental cleaning runoff.
Species-specific salt optimization models and real-time load-cell monitored osmotic absorption curves.
Proposed Solution: A Unified Batch-Centric Lifecycle
Smart Karawala resolves traditional fragmentation by orchestrating an end-to-end Sense → Predict → Decide → Control → Verify → Trace architecture. Instead of managing disparate instruments, a persistent unique Batch Identifier (BID) connects raw fish weighing, ML salt recommendations, continuous chamber climate control, dynamic remaining-drying-time countdowns, YOLOv8 quality grading, and circular waste recycling dispatch.
Research Objectives
To develop an intelligent, batch-centric digital platform for sustainable dry fish processing in Sri Lanka that unifies IoT continuous environmental sensing, dynamic predictive analytics, automated chamber control, computer vision quality verification, resource optimization, and end-to-end supply chain traceability.
Predictive Analytics & Automated Chamber Actuation
- Random Forest ensemble achieving R² = 0.956 and MAE = 1.10 min for remaining drying time
- Pre-drying joint prediction of recommended temperature and total process time (R² = 0.745)
- Two-phase chamber start protocol ensuring valid physical sensor state before batch activation
- Independent safety clamp preventing over-drying and commanding heater cut-off on threshold breach
Computer Vision Quality Assessment & Segmentation
- Custom curated and annotated Sri Lankan dry fish dataset covering 12 commercial species
- YOLOv8 instance segmentation model trained for polygon defect identification and grading
- Dry fish verification station with standardized lighting and dual-mode capture camera
- Human-in-the-loop professional review pipeline for edge predictions below confidence threshold
Salt Requirement Optimization & Real-Time Monitoring
- Calculated salt quantity recommendations tailored to species-specific moisture ratios
- ESP32 and high-accuracy load-cell integration tracking batch weight variations during salting
- Real-time osmotic absorption curve tracking with mobile notification alerts
- Elimination of excessive salt runoff and reduction of sodium degradation losses
Waste Tracking & Batch-Centric Lifecycle Traceability
- Machine learning models predicting cleaning waste volume prior to processing
- Event-level immutable ledger tracking each batch from raw marine catch to final packaging
- Automated SMS/messaging dispatch to certified fish-waste recyclers and fertilizer producers
- Transparent QR-code verifiable batch passports for consumer and export trust
Research Components
Four harmonized technological pillars engineered to deliver intelligent, verifiable, and sustainable dry fish processing.
Predictive Analytics & Automated Drying Control
Dynamic countdown, spoilage scoring, and safety-clamped closed-loop chamber orchestration.
A batch-centric predictive engine that continuously consumes chamber temperature, relative humidity, load-cell mass loss, and metal-oxide gas sensor readings. It recommends initial operating profiles and dynamically updates the remaining drying time while enforcing an independent safety clamping layer.
Key Research Deliverables
- Drying completion-time prediction (Dynamic RF Model)
- Multi-parameter spoilage-risk classification
- Chamber state machine (Ready → Drying → Cooling → Completed)
- Two-phase start protocol & authoritative physical state reconciliation
Computer Vision Quality Assessment
Polygon defect segmentation, grade verification, and automated dry fish quality classification.
An automated inspection station combining a controlled-lighting imaging booth with a state-of-the-art YOLOv8 segmentation network. The model isolates individual fish instances, identifies surface defects, mold patches, or discoloration, and categorizes products into Grade A, Grade B, and Grade C.
Key Research Deliverables
- YOLOv8 instance segmentation on dry fish instances
- Multi-class defect identification (burns, mold, crystallization)
- Standardized Grade A, B, and C classification criteria
- Expert human-in-the-loop review workflow for low-confidence inferences
Salt Requirement Optimization & Monitoring
Species-tailored salt recommendation and real-time load-cell tracking of osmotic progress.
A quantitative salting management subsystem calculating precise salt dosage according to cleaned fish mass and anatomical thickness. Integrates an ESP32 load-cell scale to continuously track brine loss and weight stabilization, triggering alerts when the optimal salting point is achieved.
Key Research Deliverables
- Weight-based salt requirement calculation engine
- Load-cell telemetry tracking real-time brine osmotic expulsion
- Salting duration estimation and operator alert notifications
- Batch salting history logging preventing microbiological risk
Waste Tracking & Batch Traceability
Pre-processing fish waste prediction, recycler notifications, and complete digital batch provenance.
A circular economy module that applies machine learning to forecast cleaning offal and visceral waste from incoming catch metrics. Facilitates scheduled recycler collection pickups and encapsulates all preparation, drying, and grading milestones into an immutable batch traceability record.
Key Research Deliverables
- AI-based fish offal and processing waste volume forecasting
- Batch lifecycle ledger linking catch source to dried package
- Automated notifications and logistics dispatch for organic recyclers
- Consumer and regulator verifiable QR code batch reports
Methodology
From empirical field data collection to closed-loop IoT chamber actuation and quality verification.
Requirements Gathering
Coastal field surveys & industry pain points
Conducted field interviews with artisanal dry-fish processors across Negombo, Kalpitiya, and Mirissa. Formulated functional requirements around weather vulnerability, manual quality disputes, and unrecorded waste.
- Stakeholder interviews with 15+ small-scale commercial processors
- Analysis of SLSI (Sri Lanka Standards Institution) dry-fish quality standards
- Mapping traditional process timings for 12 common commercial fish species
Data Collection
Empirical drying profiles & multispectral image capture
Executed experimental drying trials recording ambient and chamber temperatures, relative humidity, mass loss trajectories, and gas sensor volatile signatures across hundreds of operating hours.
- Compiled 3,000 pre-drying records and 2,767 in-process observations across 420 profiles
- Photographed over 1,500 dry fish specimens under controlled lighting
- Recorded species-specific salt ratios and viscera waste weights
Data Pre-processing & Annotation
Signal filtering & polygon instance masking
Applied moving-average noise rejection on load-cell weight signals and metal-oxide gas sensor readings. Hand-annotated polygon segmentation masks for fish instances and surface defects.
- Filtered high-frequency electrical vibration noise in load-cell strain gauges
- Standardized drying curves to dimensionless moisture ratio MR(t)
- Annotated segmentation polygon boundaries using Roboflow toolchains
AI / ML Model Development
Ensemble regression & YOLOv8 instance segmentation
Trained Random Forest and Gradient Boosting regressors for joint pre-drying parameter estimation and dynamic remaining-time prediction. Fine-tuned YOLOv8 for instance segmentation.
- Grouped 5-fold cross-validation by drying profile to prevent temporal data leakage
- Attained R² = 0.956 and MAE = 1.10 min on dynamic remaining drying time
- YOLOv8 defect identification optimized for real-time edge inference
IoT Hardware Integration
Chamber fabrication & embedded microcontrollers
Constructed an instrumented hot-air drying chamber integrating heating elements, exhaust fans, dual thermal probes, DHT22 humidity sensor, MQ gas detector, and cantilever load cells.
- Microcontroller edge state machine executing heater hysteresis switching
- Sensor completeness watchdog triggering immediate fail-safe shutoff
- Serial command bus connecting microcontroller to local computing node
Application & Microservices Integration
Loosely-coupled services & operator interfaces
Architected four decoupled microservices (Auth, Batch/Sustainability, Monitoring, Analytics) communicating over RESTful contracts with an intuitive mobile operator app and web inspection portal.
- Two-phase start handshake ensuring physical sensor validity before recording active state
- Mobile Flutter application for floor operators displaying live countdown telemetry
- Web-based verification station for quality assurance officers
Testing & Validation
Physical reconciliation & safety clamp verification
Conducted unit, integration, and fault-injection tests. Validated safety clamp overrides against malicious temperature commands and resolved logical-to-physical state discrepancies.
- Clamped set-point tests verifying heater cannot exceed configured thermal envelope
- State reconciliation verification: chamber holds sole physical authority over drying state
- Evaluation of drying product moisture content and sensory quality against control batches
Final Deployment & Evaluation
End-to-end trials & research publication
Synthesized experimental outcomes into research publication RP-026-079, defined field trial protocols for full-scale commercialization, and prepared comprehensive academic documentation.
- Published 6-page research manuscript with empirical validation results
- Developed commercialization roadmap for Sri Lankan coastal cooperatives
- Completed public research portfolio portal for academic dissemination
System Architecture & Workflows
Integrated closed-loop architecture orchestrating physical hardware sensing, machine learning pipelines, and operator apps.

Continuous serial sensor block parsing with strict safety completeness checks, hysteresis thermal control, and exhaust fans.
FastAPI analytics engine executing two-phase starts, dynamic remaining time updates, and independent safety clamping.
All events mapped to unique Batch ID (BID) across salt progress, drying telemetry, vision grading, and waste recycling.
Technologies & Tooling
Modern engineering tools, machine learning frameworks, and embedded sensing architectures utilized across the research lifecycle.
AI & Machine Learning
Predictive algorithms, computer vision segmentation, and pattern recognition engines powering data-driven processing decisions.
Visual Quality Grading & Defect Detection
Instance segmentation model trained on custom dry fish image datasets for polygon defect identification and Grade A/B/C quality classification.
Dynamic Drying-Time Prediction
Ensemble regressor achieving R² = 0.956 and MAE = 1.10 min for dynamic in-process remaining drying time estimation.
Pre-Drying Setpoint Prediction
Comparative multi-output model predicting initial chamber temperature set-point and estimated total drying duration.
Model Training & Feature Pipelines
Core machine learning toolchain utilized for cross-validation, feature normalization, and pipeline orchestration.
IoT & Hardware Prototyping
Physical sensing instrumentation, chamber actuation, and microcontrollers monitoring environmental and physical states.
Edge Controller & State Machine
Edge controllers running closed-loop state machines, sensor validation routines, and serial command communication.
Continuous Mass & Moisture Loss
Continuous batch weight sensing tracking moisture loss rate, initial weight loss trajectory, and physical drying completion.
Environmental Control
High-precision ambient and probe thermal sensing ensuring closed-loop heater hysteresis and fan humidity exhaustion.
Volatile Odour / Spoilage Proxy
Tracks volatile organic compounds released during fish degradation to feed transparent rule-based spoilage risk scoring.
Application & Interfaces
User interfaces designed for factory floor operators, laboratory verification experts, and supply chain stakeholders.
Operator Floor Application
Cross-platform mobile application giving drying operators real-time chamber telemetry, dynamic countdowns, and safety alerts.
Web & Quality Station
Modern web architecture powering the expert verification station, portfolio showcase, and traceability portal.
Design System
Utility-first design system delivering an elegant, responsive research portfolio and clean UI components.
Fluid UI Animations
Smooth micro-interactions, scroll-driven reveals, and timeline transitions delivering a calm, high-grade aesthetic.
Architecture & Data
Decoupled microservice architecture and structured document stores preserving batch-centric lifecycle traceability.
Analytics Microservice
High-performance asynchronous prediction service hosting ML inference endpoints and safety clamping logic.
Batch & Sustainability Services
Batch management, salt recommendation calculations, and recycler notification notification microservices.
Batch Lifecycle Document Store
Document storage maintaining event-level batch ledgers, preparation logs, sensor time-series, and traceability records.
Version Control
Source code version control, multi-contributor branch workflows, and reproducible research repository management.
Project Milestones
Chronological execution and academic evaluation checkpoints guiding the research from conception to final dissertation.
Topic Assessment & Registration
Initial topic submission, research feasibility analysis, and literature gap identification approved by the SLIIT computing faculty board.
Project Proposal & Defense
Formal presentation and submission of individual proposal reports outlining specific component methodologies, objectives, and work breakdown.
Progress Presentation I
Evaluation of initial prototype development, sensor circuit integration, dry fish image dataset annotation, and preliminary regression models.
Progress Presentation II
Comprehensive progress demonstration covering model cross-validation results, two-phase start chamber protocol, and user verification station.
Research Paper Submission
Completion and submission of the peer-reviewed research manuscript: 'Smart Karawala: A Batch-Centric AI–IoT Framework for Predictive and Automated Dry-Fish Processing'.
Research Portfolio Website
Deployment of the public-facing research portfolio showcase communicating the project vision, empirical results, and downloadable assets.
Logbook & Continuous Assessment
Bi-weekly supervisor consultation meetings, milestone check-ins, sprint tracking, and experimental run documentation.
Final Thesis & Comprehensive Dissertation
Submission of the complete final thesis detailing theoretical foundations, hardware engineering, machine learning pipelines, and field validation.
Final Presentation & Viva Voce
Final project defense in front of the external and internal academic examination panel, including a live interactive system demonstration.
Project Downloads
Access official academic manuscripts, technical proposal specifications, and milestone progress slide decks.
Research Paper: Smart Karawala (RP-026-079)
Published Submission • 2026
Complete 6-page research manuscript presenting the batch-centric AI-IoT framework, predictive models, and experimental evaluation.
Topic Assessment Form (TAF_R26-IT-079)
Project Approval Form
Official SLIIT Topic Assessment Form detailing research feasibility, problem breakdown, and specialization scope.
Project Proposal Report – Chankama Gunasekara
IT22127396 • March 2026
Proposal report on Computer Vision Quality Grading and YOLOv8 Segmentation (IT22127396).
Project Proposal Report – Ridmi Vivipem
IT22639844 • March 2026
Proposal report on Predictive Analytics, Spoilage Risk Classification, and Closed-loop Drying Control (IT22639844).
Project Proposal Report – Jayani Kalansooriya
IT22554536 • March 2026
Proposal report on Salt Requirement Optimization and Real-time Salting Monitoring (IT22554536).
Project Proposal Report – Milan Sanjaya
IT22189394 • March 2026
Proposal report on Fish Waste Prediction and Batch-Centric Lifecycle Traceability (IT22189394).
Progress Presentation II (PP2 Slide Deck)
PP2 Presentation Deck
Slide deck covering integration status, evaluation metrics (R² = 0.956, MAE = 1.10 min), commercialization, and live roadmap.
Progress Presentation I (PP1 Slide Deck)
PP1 Presentation Deck
Slide deck presenting individual component architectures, field data collection photos, and hardware installation steps.
Project Proposal Presentation Deck
Proposal Presentation
Initial proposal slide deck establishing the project concept, stakeholder personas, and technical roadmap.
Permanent Static Archival
All assets are served statically directly from the build package, ensuring zero broken links or third-party storage latency.
Meet the Team
The academic supervisors and undergraduate engineering team driving research excellence in Smart කරවල.
Academic & Industry Supervisors

Ms. Jenny Krishara
Supervisor
Faculty of Computing, Sri Lanka Institute of Information Technology (SLIIT)
- Academic supervision & research framework alignment
- Guidance on AI/IoT methodology and evaluation metrics
- Continuous progress review and publication direction

Dr. Dinuka Wijendra
Co-Supervisor
Faculty of Computing, Sri Lanka Institute of Information Technology (SLIIT)
- Technical guidance on edge computing & IoT chamber architecture
- Review of predictive modeling and closed-loop process control
- Experimental design and statistical validation

Mr. Dinuth Jayasekara
External Supervisor
Industry & Academic Advisor, SLIIT
- Industry domain insights into traditional Sri Lankan dry fish processing
- Commercial viability and coastal stakeholder workflow evaluation
- Practical deployment and sensor durability recommendations
Undergraduate Researchers (SLIIT Faculty of Computing)

Ridmi Vivipem
Team Leader & Researcher
Predictive Analytics & Automated Chamber Control
- Machine learning models for drying-time prediction & spoilage-risk classification
- Integrated environmental parameters (temperature, humidity, weight-loss rate, odour)
- Two-phase chamber start protocol & independent safety clamping layer

Chankama Gunasekara
Researcher
Computer Vision Quality Assessment & Defect Segmentation
- Curated Sri Lankan dry fish image dataset covering Grade A, B, C and defect classes
- YOLOv8 instance segmentation model for precise polygon defect detection
- Dry fish verification station with human-in-the-loop expert review workflow

Jayani Kalansooriya
Researcher
Salt Requirement Optimization & Real-Time Monitoring
- Salt quantity recommendation engine based on cleaned fish weight and species
- ESP32 and load-cell integration to track real-time fish weight and salting progress
- Threshold alerts and mobile notification triggers for optimal osmotic transfer

Milan Sanjaya
Researcher
Waste Tracking & Digital Supply Chain Traceability
- Machine learning model for pre-processing fish waste quantity estimation
- Batch-centric traceability linking raw catch to final dried product records
- Automated recycler collection messaging and sustainability reporting

Collaborative Multidisciplinary Research
Smart Karawala bridges the gap between artisanal coastal processing traditions and 21st-century digital intelligence. Our team combines expertise across embedded microcontroller engineering, machine learning regression, instance segmentation computer vision, and circular bio-resource traceability.