Ashif Ahmed Shuvo, Wahada Jinnat Oishy Bhuian, Afzal Rahman, Abdullah Iqbal
{"title":"EinsteinNet and state-of-the-art ML models for android-based orange classification: Integration, evaluation, and deployment","authors":"Ashif Ahmed Shuvo, Wahada Jinnat Oishy Bhuian, Afzal Rahman, Abdullah Iqbal","doi":"10.1016/j.atech.2025.101072","DOIUrl":null,"url":null,"abstract":"<div><div>The integration of on-device machine learning (ML) into mobile platforms has the potential to enable intelligent, real-time diagnostics in agricultural settings. This study presents EinsteinNet, a lightweight convolutional neural network (CNN) optimized for offline orange quality classification on Android devices. A custom dataset of 15,000 annotated images across five quality categories—fresh, rotten, green, canker-affected, and black-spotted—was used to train and compare EinsteinNet against four established architectures (ResNet50, DenseNet121, MobileNetV2, NASNetMobile) and a no-code Google Teachable Machine baseline. EinsteinNet achieved 99.6 % test accuracy with a compact model size (254 KB), but incurred higher inference latency (∼1118 ms) relative to other models. All networks were converted to TensorFlow Lite (TFLite) format and integrated into an Android application with full offline inference capabilities. Empirical evaluation on a Google Pixel 6 showed that while custom CNNs offer strong classification performance and deployment efficiency, optimizing for real-time responsiveness remains critical. Power consumption metrics collected via Android Profiler revealed critical trade-offs among inference accuracy, latency, and energy usage, underscoring the balance required in deploying edge AI models for precision agriculture.</div></div>","PeriodicalId":74813,"journal":{"name":"Smart agricultural technology","volume":"12 ","pages":"Article 101072"},"PeriodicalIF":5.7000,"publicationDate":"2025-06-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Smart agricultural technology","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2772375525003053","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURAL ENGINEERING","Score":null,"Total":0}
引用次数: 0
Abstract
The integration of on-device machine learning (ML) into mobile platforms has the potential to enable intelligent, real-time diagnostics in agricultural settings. This study presents EinsteinNet, a lightweight convolutional neural network (CNN) optimized for offline orange quality classification on Android devices. A custom dataset of 15,000 annotated images across five quality categories—fresh, rotten, green, canker-affected, and black-spotted—was used to train and compare EinsteinNet against four established architectures (ResNet50, DenseNet121, MobileNetV2, NASNetMobile) and a no-code Google Teachable Machine baseline. EinsteinNet achieved 99.6 % test accuracy with a compact model size (254 KB), but incurred higher inference latency (∼1118 ms) relative to other models. All networks were converted to TensorFlow Lite (TFLite) format and integrated into an Android application with full offline inference capabilities. Empirical evaluation on a Google Pixel 6 showed that while custom CNNs offer strong classification performance and deployment efficiency, optimizing for real-time responsiveness remains critical. Power consumption metrics collected via Android Profiler revealed critical trade-offs among inference accuracy, latency, and energy usage, underscoring the balance required in deploying edge AI models for precision agriculture.