AI-Driven Scale is a first-year Applied Data Science & AI prototype that recognises apples, bananas, and carrots from an uploaded image or camera capture. A Streamlit interface combines classification, a simulated weight, and visual explanations of model behaviour.
The project explores how computer vision could simplify supermarket produce weighing. The working prototype demonstrates the interaction and recognition pipeline; it does not connect to a physical weighing sensor or supermarket checkout system.
Manual produce selection requires customers to find the correct product or PLU code before printing a label. The design challenge was to reduce those steps while giving users a clear way to inspect and correct a prediction.
Image capture or upload → image preprocessing → produce classification → simulated weight → optional explanation.
The application resizes images to 128 × 128 pixels and loads the saved TensorFlow/Keras model. Weight is generated in software to demonstrate the weighing flow. The explanation screen provides LIME and Grad-CAM views, connecting the predicted class to image regions the model uses.
Training progressed through several approaches:
The EfficientNet backbone was frozen during the documented fifth iteration, with a classification head trained for the produce categories. Early stopping and model checkpoints supported the experiments.
The saved notebook output records 99.01% test accuracy for the EfficientNet-based iteration. The confusion matrix below contains 101 examples with one misclassification. These results describe the captured experiment on three produce categories.
Think-aloud sessions examined image capture, navigation, and understanding of the result. Feedback pointed to clearer loading indicators, faster perceived responses, and readable controls.
An A/B study compared the original interface with larger buttons, larger fonts, and a mirrored layout. The stored analysis reports p ≈ 0.041 for one questionnaire item. That is an item-level result; it does not establish that the revised interface improves every aspect of usability. The test assumptions and other questionnaire items need to be considered before drawing a broader conclusion.
The business-understanding report explores potential time savings of up to 60% and reduced mislabelling losses. These are business-case estimates based on assumed transaction volumes and external examples, rather than measured operational improvements from this prototype.
The demonstrated classifier covers three produce categories. Expanding it would require more representative data, evaluation on unfamiliar cameras and backgrounds, handling of unsupported items, and integration with actual scale hardware. The usability study supports design decisions; it does not measure hygiene outcomes.
The project connects model experimentation to a usable interface. Explainability, feedback, and the distinction between measured model performance and projected business value are as important as the classification result.
Tech stack: Python, TensorFlow/Keras, EfficientNet-B0, Streamlit, LIME, Grad-CAM, Poetry, Docker.