Applications
| Retail | Wholesale | Mars |
|---|---|---|
![]() |
![]() |
![]() |
- Retail (grocers, small stores, delivery apps): a countertop station or handheld checks fruit on the shelf or before it ships. Stores decide what to sell, discount today or donate, and delivery pickers stop sending rock-hard avocados.
- Wholesale and packing houses: RipeSense becomes a tunnel over a conveyor. It scans every fruit, gates it into ripe, unripe and reject bins, and sends the ripest crates to the nearest market first.
- Mars and controlled-environment farms: on a rail-mounted arm, it patrols a greenhouse under Mars gravity, harvests what is ripe and leaves the rest to keep growing, saving precious crew time.
- Also: juice bars and restaurants that use fruit at its peak and turn overripe stock into smoothies.
Inspiration
In The Martian, Mark Watney turns an unlikely environment into a place where life can grow. But growing food is only half the challenge. Knowing when to harvest, eat or preserve it is just as important.
On Mars, every resource matters. On Earth we face the same problem at a much larger scale. When you order produce on DoorDash or Instacart, a stranger picks your avocados by eye, and you only find out they're rock-hard (or brown inside) when they arrive. Small grocery stores judge ripeness by squeezing, so overripe stock gets thrown out late and good fruit gets binned early.
- More than half of all fruit and vegetables are lost or wasted (FAO).
- About 12.6% of fresh fruit is lost at US stores (USDA ERS).
- 39% of online shoppers avoid buying produce online because they don't trust someone else to pick it.
You can't see inside a fruit. But ripening changes three things you can measure: how the skin reflects light, what the fruit looks like, and the gases it gives off. That inspired RipeSense, a smarter way to answer one simple question:
Should this fruit be eaten now, in three days, or not at all?
What it does
RipeSense is a multi-sensor fruit scanner that returns:
- Ripeness stage: unripe, ripe, overripe or spoiled
- Days left before it turns
- A confidence score

The RipeSense pod mounted on the xArm wrist, with the RealSense camera on top.
The same sensor pod works in three forms:
- Robot: a UFACTORY xArm 6 on a 700 mm linear rail travels past rows of fruit on a shelf, crate line or greenhouse bench, scans each one, then picks and sorts it.
- Countertop station: a laser-cut box with a slide-out drawer for store fronts and delivery pickers.
- Handheld: a portable unit for store staff or shoppers.

The xArm 6 on its 700 mm linear rail, next to the countertop station.

The same pod used as a handheld scanner.
Ripe fruit also gets a Gemini-generated recipe as a QR code, so a soft banana becomes banana bread instead of trash. The touchscreen app keeps a scan history.
How we built it
Sensing (three modalities):
- Spectral: an AS7341 sensor reads 8 visible bands (415–680 nm) plus clear and near-infrared. A white LED lights the skin, and the reflection profile shows chlorophyll fading (absorption at 680 nm drops) and red and yellow pigments building up.

Proof of concept: the LED lights the fruit, and each wavelength is absorbed or reflected. As chlorophyll fades, red reflection rises.
- Vision: an Intel RealSense depth camera gives colour, bruises, size and position. A MobileNetV3 image classifier exported to ONNX predicts the 4 stages. It was trained on 20 public fruit datasets that we mapped onto those stages.
- Gas: a gas sensor picks up the volatiles fruit gives off as it ripens and rots.
Fusion ML:
- With little labelled data, RipeSense uses a weighted heuristic: camera 45%, spectral 35%, gas 20%.
- After 12 labelled scans it switches to a gradient-boosted fusion model trained on all three sensors.
- If one sensor drops out, the verdict still comes from the other two.
- Public gas data (10 datasets) is down-weighted to 0.3, so our own sensor readings dominate.
Hardware and manufacturing:

Where it started: our first sketches of the arm, rail and scanner.

The first station concept, before we moved the sensors into a swappable pod.
- A Raspberry Pi 5 (8 GB) with a touchscreen runs inference and the app.
- The pod and station are laser-cut plywood with glue-free tab-and-slot joints. We cut fit coupons to tune kerf and slot clearance for 1/8" stock, and +0.1 mm won.
- A 3D-printed push-fit holder (13-minute print) keeps the spectral sensor flush in a curved 36 mm window, using crush ribs and a skirt instead of glue.
- Build time: about 1 h 15 min of laser time and about 2.5 h for the whole system.

Pod cutaway: camera, spectral sensor and LED ring behind a curved window.

Exploded view: every panel is tab-and-slot, with no glue.

Laser cutting the pod from 6 mm plywood.

Fit coupon used to tune kerf and slot clearance.

Freshly cut pod parts, ready to assemble.
Robotics and simulation (ROS 2 + Gazebo):
- A custom URDF of the xArm 6, gripper, linear rail and RipeSense pod. Forward and inverse kinematics (damped least squares) are written in NumPy, and a mission player sequences scan → pick → sort.
- Industrial sorting line: fruit rides a conveyor through the RipeSense tunnel. A second conveyor's gates sort it into ripe, unripe and reject bins, and live camera views show what the system sees and decides. It sorts 18 fruits in about 2 min 20 s.

The RipeSense station as a tunnel over a conveyor.
- Mars greenhouse: under Mars gravity (3.72 m/s²), the arm runs along a 6 m rail between trees. It scans 20 target fruits, harvests the ripe ones into a bucket and leaves unripe ones to keep growing.
Challenges we ran into
- Ripening is complicated. Different fruits change in appearance, firmness and gas output in different ways, which makes consistent predictions hard.
- Training data was messy. Public datasets use different labels, lighting and definitions of ripeness, so we mapped everything onto our four stages.
- Too few labelled scans. A fusion model needs examples, so we built the heuristic fallback that hands over once enough real scans exist.
- Picking fruit gently. The gripper had to hold fruit firmly enough to move it without bruising it.
- Fit on the first try. Plywood thickness and laser kerf vary, so we cut coupons before committing to full sheets.
- Mounting a flat sensor behind a curved window. The holder had to keep the curve, stay out of the sensor's view and push-fit with no glue.
- Deciding what not to build. We added an oxygen sensor, then measured that O₂ changes only about 0.004% during a 2-minute scan, which is too small to matter. We dropped it, which also cut cost.
Accomplishments that we're proud of
- A working three-sensor fusion pipeline, from raw readings to stage, days left and confidence.
- One pod that moves between robot, countertop and handheld.
- A glue-free laser-cut enclosure that goes from flat sheets to assembled in an afternoon.
- Cost cut from about $570 (prototype) to about $195, with a target of about $75 for the handheld.
- Two end-to-end ROS 2 simulations: a packhouse sorting line and a Mars greenhouse harvester.
What we learned
- Spectral data catches ripening the camera can't see. Chlorophyll fades in the reflection curve before the colour change is obvious.
- Fusing sensors beats any single one, but you need a sensible fallback before you have data.
- Designing for manufacturing (coupons, push-fits, no glue) saved us more time than any single software trick.
- Measure a sensor's real signal before you trust it (looking at you, O₂).
- The most useful technology doesn't just collect information; it acts on it. A scanner tells you a fruit is ripe. A robot that picks it, scans it and sorts it actually saves it.
What's next for RipeSense
- Pilot RipeSense in a real grocery store, farm or juice bar to measure how much waste it saves.
- Collect more labelled scans across more fruit varieties and retrain the fusion model.
- Run the full pipeline on the real xArm, and speed it up for packing lines.
- Shrink the handheld toward the $75 target and pair it with a phone app.
- Use food-safe materials and a gentler gripper for delicate fruit.
- Explore how automated harvesting can save crew time on future space missions.
Team
- Sujal Dharane: ML model, hardware, design for manufacturing
- Narayan Kushwaha: manufacturing, pick-and-place algorithms, system assembly
- Suman Gowda: AI/ML and real-time ROS 2 implementation
- Jillian Guerrero: portable unit, spectral ML dataset and ML fusion
Disclosure of pre-existing work
RipeSense was developed by our team for, and submitted to, other hackathons (including UB Hacking 2026 and The Next Frontier 2026). It was not created specifically for every event it is entered in; where an event allows pre-existing projects, it is entered as disclosed pre-existing work. Third-party tools, datasets and libraries are credited in Built With and above.


