An Image-Based Rice Weighing Estimation Approach on Clock Type Weighing Scale Using Deep Learning and Geometric Transformations

Authors

  • An Cong Tran College of Information and Communication Technology, Can Tho University, Can Tho, Vietnam
  • Thanh Trinh Thi Kim College of Information and Communication Technology, Can Tho University, Can Tho, Vietnam
  • Hai Thanh Nguyen College of Information and Communication Technology, Can Tho University, Can Tho, Vietnam

DOI:

https://doi.org/10.46604/aiti.2023.10926

Keywords:

scale detection, scale value recognition, rice weighing, geometric transformations, deep learning

Abstract

AI impacts surrounding human life, such as the economy, health, education, and agricultural production; however, the crop prices in the harvest season are still on manual calculation, which causes doubts about accuracy. In this study, an image-based approach is proposed to help farmers calculate rice prices more accurately. YOLOv5 is used to detect and extract the scales in the images taken from the harvesting of rice crops. Then, various image processing techniques, such as brightness balance, background removal, etc., are compiled to determine the needle position and number on the extracted scale. Lastly, geometric transformations are proposed to calculate the weight. A real dataset of 709 images is used for the experiment. The proposed method achieves good results in terms of mAP@0.5 at 0.995, mAP@[0.5:0.95] at 0.830 for scale detection, and MAE at 3.7 for weight calculation.

References

M. F. Tsai and J. Y. Huang, “Sentiment Analysis of Pets Using Deep Learning Technologies in Artificial Intelligence of Things System,” Soft Computing, vol. 25, no. 21, pp. 13741-13752, November 2021.

T. V. Klompenburg and A. Kassahun, “Data-Driven Decision Making in Pig Farming: A Review of the Literature,” Livestock Science, vol. 261, article no. 104961, July 2022.

R. Sujatha, J. M. Chatterjee, N. Z. Jhanjhi, and S. N. Brohi, “Performance of Deep Learning vs Machine Learning in Plant Leaf Disease Detection,” Microprocessors and Microsystems, vol. 80, article no. 103615, February 2021.

M. D. Yang, Y. C. Hsu, W. C. Tseng, C. Y. Lu, C. Y. Yang, M. H. Lai, et al., “Assessment of Grain Harvest Moisture Content Using Machine Learning on Smartphone Images for Optimal Harvest Timing,” Sensors, vol. 21, no. 17, article no. 5875, September 2021.

D. Paudel, H. Boogaard, A. D. Wit, M. V. D. Velde, M. Claverie, L. Nisini, et al., “Machine Learning for Regional Crop Yield Forecasting in Europe,” Field Crops Research, vol. 276, article no. 108377, February 2022.

M. Q. Tran, M. Elsisi, M. K. Liu, V. Q. Vu, K. Mahmoud, M. M. F. Darwish, et al., “Reliable Deep Learning and IoT-Based Monitoring System for Secure Computer Numerical Control Machines against Cyber-Attacks with Experimental Verification,” IEEE Access, vol. 10, pp. 23186-23197, 2022.

H. Arai, “Increased Rice Yield and Reduced Greenhouse Gas Emissions through Alternate Wetting and Drying in a Triple-Cropped Rice Field in the Mekong Delta,” Science of the Total Environment, vol. 842, article no. 156958, October 2022.

N. Stadlinger, H. Berg, P. J. V. D. Brink, N. T. Tam, and J. S. Gunnarsson, “Comparison of Predicted Aquatic Risks of Pesticides Used under Different Rice-Farming Strategies in the Mekong Delta, Vietnam,” Environmental Science and Pollution Research, vol. 25, no. 14, pp. 13322-13334, May 2018.

V. Meshram, K. Patil, V. Meshram, D. Hanchate, and S. D. Ramkteke, “Machine Learning in Agriculture Domain: A State-of-Art Survey,” Artificial Intelligence in the Life Sciences, vol. 1, article no. 100010, December 2021.

H. Pallathadka, M. Mustafa, D. T. Sanchez, G. S. Sajja, S. Gour, and M. Naved, “Impact of Machine Learning on Management, Healthcare and Agriculture,” Materials Today: Proceedings, in press. https://doi.org/10.1016/j.matpr.2021.07.042

K. L. M. Ang and J. K. P. Seng, “Big Data and Machine Learning with Hyperspectral Information in Agriculture,” IEEE Access, vol. 9, pp. 36699-36718, 2021.

S. Rasti, C. J. Bleakley, N. M. Holden, R. Whetton, D. Langton, and G. O. Hare, “A Survey of High Resolution Image Processing Techniques for Cereal Crop Growth Monitoring,” Information Processing in Agriculture, vol. 9, no. 2, pp. 300-315, June 2022.

G. Sharmila and K. Rajamohan, “A Systematic Literature Review on Image Preprocessing and Feature Extraction Techniques in Precision Agriculture,” Congress on Intelligent Systems, vol. 114, pp. 333-354, July 2022.

D. Chakraborty and I. Ghosh, “Image Processing Techniques in Plant Disease Diagnosis: Application Trend in Agriculture,” Information and Communication Technology for Competitive Strategies (ICTCS 2021), vol. 400, pp. 691-705, June 2022.

Z. Yang, J. H. Lai, J. Zhou, H. Zhou, C. Du, and Z. Lai, “Agriculture-Vision Challenge 2022 – The Runner-up Solution for Agricultural Pattern Recognition via Transformer-Based Models,” arXiv preprint arXiv:2206.11920, 2022. https://doi.org/10.48550/arXiv.2206.11920

J. Bao and Q. Xie, “Artificial Intelligence in Animal Farming: A Systematic Literature Review,” Journal of Cleaner Production, vol. 331, article no. 129956, January 2022.

S. D. Alwis, Z. Hou, Y. Zhang, M. H. Na, B. Ofoghi, and A. Sajjanhar, “A Survey on Smart Farming Data, Applications and Techniques,” Computers in Industry, vol. 138, article no. 103624, June 2022.

N. Kleanthous, A. J. Hussain, W. Khan, J. Sneddon, A. A. Shamma’a, and P. Liatsis, “A Survey of Machine Learning Approaches in Animal Behaviour,” Neurocomputing, vol. 491, pp. 442-463, June 2022.

S. Zhang, Q. Xu, S. Sen, and N. Alshurafa, “VibroScale: Turning Your Smartphone into a Weighing Scale,” Adjunct Proceedings of the 2020 ACM International Joint Conference on Pervasive and Ubiquitous Computing and Proceedings of the 2020 ACM International Symposium on Wearable Computers, pp. 176-179, September 2020.

E. A. A. Hippocrate, H. Suwa, Y. Arakawa, and K. Yasumoto, “Food Weight Estimation Using Smartphone and Cutlery,” Proceedings of the First Workshop on IoT-enabled Healthcare and Wellness Technologies and Systems, pp. 9-14, June 2016.

S. Kirushnath and B. Kabaso, “Weigh-in-Motion Using Machine Learning and Telematics,” 2018 2nd International Conference on Telematics and Future Generation Networks (TAFGEN), pp. 115-120, July 2018.

I. Nyalala, C. Okinda, C. Kunjie, T. Korohou, L. Nyalala, and Q. Chao, “Weight and Volume Estimation of Poultry and Products Based on Computer Vision Systems: A Review,” Poultry Science, vol. 100, no. 5, article no. 101072, May 2021.

I. Nyalala, C. Okinda, Q. Chao, P. Mecha, T. Korohou, Z. Yi, et al., “Weight and Volume Estimation of Single and Occluded Tomatoes Using Machine Vision,” International Journal of Food Properties, vol. 24, no. 1, pp. 818-832, June 2021.

R. Dohmen, C. Catal, and Q. Liu, “Computer Vision-Based Weight Estimation of Livestock: A Systematic Literature Review,” New Zealand Journal of Agricultural Research, vol. 65, no. 2-3, pp. 227-247, January 2021.

G. Jocher, K. Nishimura, T. Mineeva, and R. Vilariño, “Ultralytics/yolov5: v3.1 - Bug Fixes and Performance Improvements,” https://doi.org/10.5281/zenodo.4154370, September 01, 2022.

G. Bradski, “The OpenCV Library,” Dr. Dobb's Journal: Software Tools for the Professional Programmer, vol. 25, no. 11, pp. 120-123, 2020.

E. R. Dougherty, An Introduction to Morphological Image Processing, Washington: SPIE. Optical Engineering Press, 1992.

A. Rosebrock, “OpenCV Edge Detection (cv2.Canny),” https://www.pyimagesearch.com/2021/05/12/opencv-edge-detection-cv2-canny/, September 01, 2022.

Z. E. Khatib, A. B. Mnaouer, S. Moussa, M. A. B. Abas, N. A. Ismail, F. Abdulgaleel, et al., “LoRa-Enabled GPU-Based CubeSat Yolo Object Detection with Hyperparameter Optimization,” 2022 International Symposium on Networks, Computers and Communications (ISNCC), pp. 1-4, July 2022.

Downloads

Published

2023-04-01

How to Cite

[1]
An Cong Tran, Thanh Trinh Thi Kim, and Hai Thanh Nguyen, “An Image-Based Rice Weighing Estimation Approach on Clock Type Weighing Scale Using Deep Learning and Geometric Transformations”, Adv. technol. innov., vol. 8, no. 2, pp. 100–110, Apr. 2023.

Issue

Section

Articles

Most read articles by the same author(s)