Digitization
Replace subjective manual monitoring with measurable sensor data.
INDUSTRIAL IoT · TEA PROCESS INTELLIGENCE
Spectra Leaf aims to make black-tea oxidation measurable and repeatable by capturing temperature, gas and colour telemetry for live factory guidance and future quality-control models.
Spectra Leaf aims to digitize the most judgement-sensitive stage of black-tea production and help factories reproduce a better fermentation sweet spot from measured evidence.
Spectra Leaf is an Industrial IoT system that measures what happens across the tea bed, sends the signals to a secure cloud platform and turns them into live operational guidance.
Tea makers commonly call the post-rolling stage “fermentation”. Technically, the main transformation is enzymatic oxidation: rolling or CTC ruptures the leaf cells, oxygen reaches the compounds inside, and colour and aroma develop across the moist solid leaf bed.
This is the phase Spectra Leaf addresses. Temperature, volatile-gas response and colour are captured together so a factory officer can follow the batch without depending on isolated visual checks alone.

Leaves are spread as a solid bed while oxygen-driven reactions develop the expected coppery colour and characteristic aroma. Drying then arrests the reaction. Spectra Leaf concentrates its measurements and guidance inside this changing window.
The system automates data capture, cloud synchronization, batch history and live visualization. Expert quality evaluation remains part of the loop and supplies the labels needed for future prediction.
Sample temperature, gas and leaf colour at the same time.
Publish batch-linked readings securely through AWS IoT.
Show live progress and device state to the factory officer.
Pair each completed profile with its final Good Leaf Percentage.
Follow the complete Spectra Leaf journey from fermentation sensing to connected, operator-ready insight.
Temperature, gas and colour become a live picture of the changing tea leaf.
ESP32 telemetry moves securely from the production floor into the cloud.
The dashboard gives operators timely context for a more consistent batch.
Four connected capabilities create value now while preparing the system for future intelligence.
Replace subjective manual monitoring with measurable sensor data.
Give factory officers a responsive dashboard for monitoring active fermentation batches.
Build structured fermentation profiles mapped to final Good Leaf Percentage values.
Prepare for machine-learning-based detection of the optimum fermentation endpoint.
The current prototype combines practical sensing, reliable telemetry and usable factory insight while preparing every batch for future intelligence.
Temperature, humidity, vision and three gas-response channels capture one batch-linked view of the changing tea bed.
Starting or stopping fermentation updates the backend-owned process state seen by connected web and mobile clients.
The ESP32-CAM coordinates sensing and visual context, reconnects after interruptions and resumes secure publishing.
AWS IoT Core, Lambda and DynamoDB move telemetry securely without fixed server infrastructure.
Cognito protects operational data while officers and managers receive interfaces matched to their responsibilities.
Completed sensor profiles can be paired with expert Good Leaf Percentage results for future model development.
The architecture carries context from the fermentation trough to a secure remote interface.
The ESP32-CAM aligns every reading with the active device, batch and timestamp before transmission.
AWS services validate telemetry, preserve batch history and keep the shared fermentation state consistent.
Authenticated web and mobile interfaces turn the same backend state into role-appropriate controls and insight.
Temperature, humidity, imaging and three gas-response signals.
Synchronized capture, device identity and secure Wi-Fi publishing.
Telemetry transport and one shared RUNNING or STOPPED state.
Validation, protected operations and batch history.
Role-aware access to controls, trends and completed records.
The device combines temperature, humidity, imaging and three complementary gas-response sensors around an ESP32-CAM edge node.
HARDWARE DESIGN / EDGE NODE 01The ESP32-CAM coordinates synchronized sensing, adds OV2640 visual context and publishes batch-linked telemetry over secure Wi-Fi. Device Shadow commands keep the physical node aligned with fermentation sessions.

The stainless probe sits inside the tea bed and records process temperature without exposing the sensing element to moisture.
Direct leaf-bed temperature is the clearest signal for checking whether oxidation is progressing inside the material rather than only measuring chamber air.

A calibrated capacitive channel measures relative humidity around the leaf bed so moisture conditions can be compared across batches.
Humidity explains how much moisture the surrounding air can still accept, helping the team interpret temperature and gas changes in the correct chamber conditions.

The Wi-Fi camera module captures chamber imagery and coordinates sensor data with the batch and device identity used by the cloud platform.
Images preserve visual evidence of leaf spread and colour while the ESP32-CAM also provides the connected edge controller in one compact module.

The MQ137 supplies an analog response sensitive to ammonia and organic amines. Spectra Leaf follows its calibrated trend during oxidation.
Its ammonia and amine sensitivity adds a targeted chemical-response channel that the broader organic-vapor sensors do not provide on their own.

A low-power metal-oxide channel responds strongly to alcohol and organic solvent vapors, adding a volatile-compound profile to each batch.
Alcohol and volatile-organic response helps reveal changes in the aroma-producing chemistry that cannot be inferred from temperature and humidity alone.

The TGS822 adds a complementary organic-solvent response, helping the system compare the shape and timing of volatile changes.
A second broad vapor channel provides a different response pattern, improving comparison and reducing reliance on a single gas-sensor signal.
Measurement note Gas channels are stored as response signals until chamber calibration maps them to concentration. This avoids presenting raw ADC values as ppm.
The Spectra Leaf V1.0 board consolidates ESP32-CAM control, temperature and humidity inputs, three conditioned gas channels, relay interfaces and regulated power on one project-specific PCB.

Connect securely to Wi-Fi
Connect to AWS IoT Core
Subscribe to Device Shadow
Read RUNNING / STOPPED state
Sample temperature and humidity
Read MQ137, TGS2620 and TGS822
Capture an ESP32-CAM frame when required
Attach device, batch and timestamp
Publish telemetry using MQTT
Update reported Shadow state
Reconnect after interruption
Continue the sensing loop
The architecture separates device messaging, shared process state, validation, storage, identity and presentation so each part can scale and recover independently.
Telemetry moves left to right. Start and stop commands return through the same authenticated path and are synchronized with the edge node through Device Shadow.
Secure MQTT gateway and device communication layer.
Synchronizes desired dashboard state with the ESP32 reported state.
Runs validation, processing and control logic without persistent servers.
Provides controlled REST endpoints for dashboard operations.
Stores batch records and timestamped sensor telemetry.
Authenticates users and issues tokens for role-aware access.
Connects the Next.js client to identity and cloud services.
/api/fermentation/control/api/batches/api/batches/{batchId}/telemetry/api/batches/{batchId}/quality{
"device_id": "SL-EDGE-01",
"batch_id": "SLF-024",
"timestamp": "2026-07-24T10:30:00Z",
"temperature_c": 27.8,
"gas_response": 342,
"colour_stage": 0.68,
"state": "RUNNING"
}The software stack turns synchronized telemetry into clear, role-appropriate actions while keeping identity and protected cloud access in one managed flow.
Frameworks, languages, cloud services and security components used across the platform.
Next.js and React power the responsive interface, while TypeScript and Tailwind CSS provide a consistent implementation and visual language. Amplify connects Cognito identity to protected cloud services and preserves session continuity through token refresh.
Active batches, device connectivity and fermentation progress remain visible across desktop, tablet and mobile.
Responsive operational interface
Managed user identity and sign-in
JWT attached to authorized APIs
Token refresh across active work
Desktop, tablet and mobile
Active work stays visually prominent
Cognito manages sign-in and session tokens. The client attaches a valid JSON Web Token to protected requests, where authorization rules can distinguish factory officers, factory managers and general managers.
Every batch creates a synchronized record that connects physical change, cloud data and expert-evaluated final quality.
Open datasets correlating detailed tea-oxidation sensor readings with final factory quality measurements are limited.
Spectra Leaf captures synchronized temperature, gas and colour readings, then links the completed profile to an expert-evaluated Good Leaf Percentage.
The prediction layer is the planned outcome of the dataset now being collected; it is not presented as a production model.
The officer starts a batch and the ESP32 samples temperature, gas response and colour together.
Readings are identified by device, batch and timestamp, then published securely through MQTT.
Cloud functions check the payload and persist the time-series profile in DynamoDB.
After grading, the expert-evaluated Good Leaf Percentage is linked to the completed batch.
Profiles are cleaned, aligned and organized into trustworthy model-ready examples.
Future models learn process-to-quality patterns and can return stage estimates or alerts.
Machine learning is planned future work. The current contribution is a reliable, batch-linked and expert-labelled dataset.
Three authenticated roles share one data platform while receiving the controls, detail and reporting appropriate to their responsibilities.
A live workspace for starting batches, following every sensor and recording the final GLP result.

A management view for batch pricing, pending work, revenue tracking and factory-level analysis.

An executive view that brings factory status, consolidated revenue and organization-wide comparisons together.

The mobile interface keeps active batches, latest readings and sensor trends visible away from the desktop command centre.

Statuses are editable project markers, not claimed pass rates. The test strategy spans delivery, security, cloud parity and edge resilience.
The following work areas define the validation scope for this layer.
A look behind the process: preparing samples, building the sensing system and validating it through hands-on laboratory work.
Every card below is a future objective, not a current deployment claim.
The student team develops the connected system with academic supervision and Crop Science guidance grounded in tea processing and quality evaluation.

Member of the multidisciplinary student team developing the Spectra Leaf fermentation system.

Member of the multidisciplinary student team developing the Spectra Leaf fermentation system.

Member of the multidisciplinary student team developing the Spectra Leaf fermentation system.

Member of the multidisciplinary student team developing the Spectra Leaf fermentation system.
Crop Science and Computer Engineering supervision connect tea-process knowledge with sensing, software, data validation and delivery.

Advises the project on tea-plantation context, crop-science considerations and the interpretation of process observations alongside factory quality evaluation.

Provides project supervision across software architecture, machine learning, data validation and platform delivery.

Provides systems-engineering guidance across embedded systems, industrial automation, technical validation and project delivery.
Spectra Leaf bridges traditional tea-manufacturing expertise with modern digital infrastructure. The current platform improves fermentation visibility through synchronized sensor telemetry and remote factory guidance. Every monitored batch also contributes to a structured quality dataset, the foundation for future automated detection of the fermentation sweet spot.
Explore the repository