Integrated Scale-Adaptive Adjustment Factor-Enhanced BlendMask Method for Pineapple Processing System
Abstract
:1. Introduction
- (1)
- We introduce a Scale-Adaptive Adjustment Factor (SAAF) to enhance the effectiveness of the BlendMask target segmentation algorithm, leading to significant improvements in detecting small targets. Multiple experiments have demonstrated that our algorithm exhibits robust performance and strong adaptability across different datasets.
- (2)
- We propose a Pose Correction Planning Method for the precise cutting path of pineapple eyes, ensuring a high success rate in path planning. This method achieves a path planning success rate of 99%.
- (3)
- We develop a fully automated, 3D vision-based intelligent motor-integrated pineapple processing system. The proposed algorithms are rigorously validated, demonstrating an average reduction in fruit wastage of 11.7% compared to traditional automated processing methods, such as the Ginaca machine [2].
2. Materials and Methods
- (1)
- Data collecting—employing RGB-D camera to uniformly capture six images of each peeled pineapple, comprising both RGB imagery and depth information;
- (2)
- Image processing—utilizing an improved BlendMask algorithm (SAAF-BlendMask) for the identification of pineapples and pineapple eyes, followed by the reconstruction of the point cloud distribution of pineapple eyes;
- (3)
- Motion planning—planning of cutting paths (PCP method) and trajectories based on the distribution of pineapple eyes and cutting the pineapple eyes following the planned trajectories.
2.1. Data Collecting
2.2. SAAF-BlendMask Algorithm
2.3. Pose Correction Planning (PCP) Method
- (1)
- Uniform sampling of the pineapple surface point cloud () yields a consistent and well-distributed point cloud () of the pineapple surface.
- (2)
- Use Principal Component Analysis () to determine the pose or coordinate system () of the pineapple.
- (3)
- Compute the centroid () of the pineapple eye surface point cloud obtained with previous sections of the paper.
- (4)
- Calculate the coordinates () of the point cloud centroid in the pineapple coordinate system.
- (5)
- The distribution of point cloud centroids () is transformed from the pineapple coordinate system to the radian-height coordinate system (), where the radian is the horizontal axis () and the is the vertical axis, as shown in Figure 7. It can be seen that the distribution of the pineapple eyes in this coordinate system is quite regular, with the pineapple eyes on the same spiral line essentially aligned in a straight line. Therefore, we thought of using clustering to distinguish the pineapple eyes on each spiral line.
- (6)
- Since the distribution radian of the pineapple eyes ranges from 0 to , we first need to shift the pineapple eyes on the same spiral line before clustering. Assuming the slope of the straight line formed by the distribution of pineapple eyes is k, and the original coordinates of pineapple eyes are , the shifted coordinates are:Then, we rotate the obtained by and calculate the value, and ranges from to . The relationship between and k is as follows:The coordinates after rotation, , are:With each rotation, we perform clustering () to obtain 8 groups matrices (). Each element represents a pineapple eye, where j is the index of the spiral line (ranging from 1 to 8), and i is the number of pineapple eyes on each spiral line (ranging from 1 to ). If , then can be represented as . The cost function () is designed to evaluate the quality of a given scheme by penalizing the variance of different variables. Specifically:
- (7)
- In the mechanism coordinate system, sort the pineapple eyes on each helical line according to their Z-axis values to obtain an ordered set of pineapple eyes for each helical line. Connect the pineapple eyes on each helical line with line segments.
Algorithm 1: PCP (Pose Correction Planning) Method |
3. Results and Discussion
3.1. Result Analysis of Pineapple Eyes Detection
3.2. Result Analysis of Pineapple Eyes Cutting Path Planning
3.3. Comparison of Different Pineapple Processing Methods
4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Data Availability Statement
Conflicts of Interest
References
- Mohsin, A.; Jabeen, A.; Majid, D.; Allai, F.M.; Dar, A.H.; Gulzar, B.; Makroo, H.A. Pineapple. In Antioxidants in Fruits: Properties and Health Benefits; Springer: Berlin/Heidelberg, Germany, 2020; pp. 379–396. [Google Scholar]
- Rohrbach, K.G.; Leal, F.; d’Eeckenbrugge, G.C. History, distribution and world production. In The Pineapple: Botany, Production and Uses; CABI Digital Library: Oxfordshire, UK, 2003; pp. 1–12. [Google Scholar]
- Bartholomew, D.P.; Hawkins, R.A.; Lopez., J.A. Hawaii pineapple: The rise and fall of an industry. HortScience 2012, 47, 1390–1398. [Google Scholar] [CrossRef]
- Jia, W.; Zhang, Z.; Shao, W.; Hou, S.; Ji, Z.; Liu, G.; Yin, X. Foveamask: A fast and accurate deep learning model for green fruit instance segmentation. Comput. Electron. Agric. 2021, 191, 106488. [Google Scholar] [CrossRef]
- Kasinathan, T.; Singaraju, D.; Uyyala, S.R. Insect classification and detection in field crops using modern machine learning techniques. Inf. Process. Agric. 2021, 8, 446–457. [Google Scholar] [CrossRef]
- Koirala, A.; Walsh, K.B.; Wang, Z.; McCarthy, C. Deep learning—Method overview and review of use for fruit detection and yield estimation. Comput. Electron. Agric. 2019, 162, 219–234. [Google Scholar] [CrossRef]
- Indira, D.; Goddu, J.; Indraja, B.; Challa, V.M.L.; Manasa, B.A. review on fruit recognition and feature evaluation using cnn. Mater. Today Proc. 2023, 80, 3438–3443. [Google Scholar] [CrossRef]
- Shakya, D.S. Analysis of artificial intelligence based image classifica- tion techniques. J. Innov. Image Process. 2020, 2, 44–54. [Google Scholar] [CrossRef]
- Zhang, W.; Zhao, D.; Gong, W.; Li, Z.; Lu, Q.; Yang, S. Food image recognition with convolutional neural networks. In Proceedings of the 2015 IEEE 12th International Conference on Ubiquitous Intelligence and Computing and 2015 IEEE 12th International Conference on Autonomic and Trusted Computing and 2015 IEEE 15th International Conference on Scalable Computing and Communications and Its Associated Workshops (UIC-ATC-ScalCom), Beijing, China, 10–14 August 2015; pp. 690–693. [Google Scholar]
- Matsuda, Y.; Hoashi, H.; Yanai, K. Recognition of multiple-food images by detecting candidate regions. In Proceedings of the 2012 IEEE International Conference on Multimedia and Expo, Melbourne, Australia, 9–13 July 2012; pp. 25–30. [Google Scholar]
- Liu, G.; Nouaze, J.C.; Touko Mbouembe, P.L.; Kim, J.H. Yolo-tomato: A robust algorithm for tomato detection based on yolov3. Sensors 2020, 20, 2145. [Google Scholar] [CrossRef]
- Redmon, J.; Farhadi, A. Yolov3: An incremental improvement. arXiv 2018, arXiv:1804.02767. [Google Scholar]
- Yu, Y.; Zhang, K.; Yang, L.; Zhang, D. Fruit detection for strawberry harvesting robot in non-structural environment based on mask-rcnn. Comput. Electron. Agric. 2019, 163, 104846. [Google Scholar] [CrossRef]
- He, K.; Gkioxari, G.; Doll’ar, P.; Girshick, R. Mask r-cnn. In Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 2961–2969. [Google Scholar]
- Wang, X.A.; Tang, J.; Whitty, M. Deepphenology: Estimation of apple flower phenology distributions based on deep learning. Comput. Electron. Agric. 2021, 185, 106123. [Google Scholar] [CrossRef]
- Simonyan, K.; Zisserman, A. Very deep convolutional networks for large-scale image recognition. arXiv 2014, arXiv:1409.1556. [Google Scholar]
- Chen, S.W.; Shivakumar, S.S.; Dcunha, S.; Das, J.; Okon, E.; Qu, C.; Taylor, C.J.; Kumar, V. Counting apples and oranges with deep learning: A data-driven approach. IEEE Robot. Autom. Lett. 2017, 2, 781–788. [Google Scholar] [CrossRef]
- Kisantal, M.; Wojna, Z.; Murawski, J.; Naruniec, J.; Cho, K. Augmentation for small object detection. arXiv 2019, arXiv:1902.07296. [Google Scholar]
- Bochkovskiy, A.; Wang, C.-Y.; Liao, H.-Y.M. Yolov4: Optimal speed and accuracy of object detection. arXiv 2020, arXiv:2004.10934. [Google Scholar]
- Haris, M.; Shakhnarovich, G.; Ukita, N. Task-driven super resolution: Object detection in low-resolution images. In Proceedings of the 28th International Conference on Neural Information Processing, Sanur, Bali, Indonesia, 8–12 December 2021; pp. 387–395. [Google Scholar]
- Bai, Y.; Zhang, Y.; Ding, M.; Ghanem, B. Sod-mtgan: Small object detection via multi-task generative adversarial network. In Proceedings of the European Conference on Computer Vision, Munich, Germany, 8–14 September 2018; pp. 206–221. [Google Scholar]
- Lin, T.-Y.; Doll’ar, P.; Girshick, R.; He, K.; Hariharan, B.; Belongie, S. Feature pyramid networks for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 2117–2125. [Google Scholar]
- Singh, V.; Verma, D.K.; Singh, G. Development of pineapple peeler- cum-slicer. Pop. Kheti 2013, 1, 21–24. [Google Scholar]
- Kumar, P.; Chakrabarti, D.; Patel, T.; Chowdhuri, A. Work-related pains among the workers associated with pineapple peeling in small fruit processing units of north east india. Int. J. Ind. Ergon. 2016, 53, 124–129. [Google Scholar] [CrossRef]
- Anjali, A.; Anjitha, P.; Neethu, K.; Arunkrishnan, A.; Vahid, P.A.; Mathew, S.M. Development and performance evaluation of a semi- automatic pineapple peeling machine. Int. J. Curr. Appl. Sci. 2019, 8, 325–332. [Google Scholar] [CrossRef]
- Jongyingcharoen, J.S.; Cheevitsopon, E. Design and development of continuous pineapple-peeling machine. Agric. Nat. 2022, 56, 979–986. [Google Scholar]
- Siriwardhana, P.G.A.L.; Wijewardane, D.C. Machine for the pineapple peeling process. J. Eng. Technol. Open Univ. Sri Lanka (JET-OUSL) 2018, 6, 1–15. [Google Scholar]
- Kumar, P.; Chakrabartiand, D. Design of pineapple peeling equipment. In Proceedings of the IEEE 6th International Conference on Advanced Production and Industrial Engineering, Delhi, India, 18–19 June 2021; pp. 545–556. [Google Scholar]
- Tian, Z.; Shen, C.; Chen, H.; He, T. Fcos: Fully convolutional one- stage object detection. In Proceedings of the International Conference on Computer Vision, Seoul, Republic of Korea, 27 October–2 November 2019; pp. 9627–9636. [Google Scholar]
- Chen, H.; Sun, K.; Tian, Z.; Shen, C.; Huang, Y.; Yan, Y. Blendmask: Top-down meets bottom-up for instance segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 13–19 June 2020; pp. 8573–8581. [Google Scholar]
- Ekern, P.C. Phyllotaxy of pineapple plant and fruit. Bot. Gaz. 1968, 129, 92–94. [Google Scholar] [CrossRef]
- Hikal, W.M.; Mahmoud, A.A.; Said-Al Ahl, H.A.; Bratovcic, A.; Tkachenko, K.G.; Kačániová, M.; Rodriguez, R.M. Pineapple (ananas comosus l. merr.), waste streams, characterisation and valorisation: An overview. Open J. Ecol. 2021, 11, 610–634. [Google Scholar] [CrossRef]
- Fang, H.-S.; Wang, C.; Gou, M.; Lu, C. Graspnet-1billion: A large-scale benchmark for general object grasping. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 13–19 June 2020; pp. 11441–11450. [Google Scholar]
- Liu, A.; Xiang, Y.; Li, Y.; Hu, Z.; Dai, X.; Lei, X.; Tang, Z. 3D positioning method for pineapple eyes based on multiangle image stereo-matchig. Agriculture 2022, 12, 2039. [Google Scholar] [CrossRef]
m | n | AP | AP50 | AP75 | APs | APl | Infer Time (ms) |
---|---|---|---|---|---|---|---|
1 | 20 | 72.34 | 94.17 | 82.31 | 62.05 | 83.19 | 0.020311 |
10 | 20 | 72.33 | 94.48 | 80.68 | 60.72 | 83.94 | 0.020599 |
20 | 20 | 74.27 | 94.95 | 82.47 | 62.44 | 86.11 | 0.020481 |
30 | 20 | 73.37 | 94.96 | 82.71 | 61.82 | 84.92 | 0.01985 |
1 | 30 | 73.04 | 95.44 | 83.62 | 62.54 | 83.56 | 0.020537 |
10 | 30 | 72.10 | 92.25 | 82.87 | 62.35 | 82.25 | 0.020342 |
20 | 30 | 70.84 | 92.78 | 81.74 | 62.69 | 79.00 | 0.020744 |
30 | 30 | 70.57 | 91.86 | 81.29 | 62.56 | 78.24 | 0.020971 |
Methods | AP | AP50 | AP75 | APs | APl | Infer Time (ms) |
---|---|---|---|---|---|---|
YOLACT | 72.89 | 94.02 | 82.78 | 60.42 | 84.51 | 0.014947 |
SOLOv2 | 72.11 | 93.17 | 80.86 | 58.44 | 84.72 | 0.014527 |
Mask-RCNN | 72.85 | 92.69 | 81.77 | 62.29 | 83.42 | 0.053034 |
BlendMask | 70.26 | 94.41 | 77.59 | 56.55 | 83.96 | 0.019867 |
SAAF-BlendMask (Ours) | 73.04 | 95.44 | 83.62 | 62.54 | 83.56 | 0.020537 |
Methods | AP | AP50 | AP75 | APs | APl | Infer Time (ms) |
---|---|---|---|---|---|---|
YOLACT | 70.86 | 97.46 | 69.00 | 46.95 | 94.78 | 0.014475 |
SOLOv2 | 69.46 | 93.36 | 67.74 | 42.60 | 97.33 | 0.015145 |
Mask-RCNN | 70.96 | 98.70 | 79.40 | 54.25 | 86.78 | 0.054751 |
BlendMask | 67.05 | 97.07 | 65.50 | 45.92 | 91.18 | 0.019354 |
SAAF-BlendMask (Ours) | 74.70 | 98.65 | 76.93 | 54.78 | 95.61 | 0.020245 |
Methods | AP | AP50 | AP75 | APs | APl | Infer Time (ms) |
---|---|---|---|---|---|---|
YOLACT | 73.82 | 87.39 | 79.06 | 24.19 | 74.52 | 0.014647 |
SOLOv2 | 85.01 | 92.38 | 91.53 | 25.92 | 89.16 | 0.015024 |
Mask-RCNN | 78.83 | 95.21 | 87.51 | 18.52 | 80.69 | 0.056247 |
BlendMask | 85.24 | 92.38 | 91.76 | 22.13 | 87.81 | 0.019875 |
SAAF-BlendMask(Ours) | 85.53 | 92.50 | 89.57 | 29.34 | 88.02 | 0.020247 |
Weight Group (kg) | <1.2 | 1.2–1.7 | 1.7–2.2 | >2.2 | Total |
---|---|---|---|---|---|
Number of Pineapples | 22 | 62 | 19 | 7 | 110 |
Total Weight (kg) | 22.65 | 92.51 | 37.41 | 17.16 | 169.73 |
Peeling Waste with Our Method (kg) | 5.68 | 22.34 | 8.79 | 3.97 | 40.78 |
Peeling Waste with Traditional Automatic Processing Method [3] (kg) | 6.34 | 24.92 | 10.14 | 4.78 | 46.18 |
Methods | IS | LLC | LFW | EP | AIM | EM | Cost |
---|---|---|---|---|---|---|---|
Full Manual Processing [23,25] | × | × | × | × | × | ✓ | HLC, LEC |
Automatic Processing [3] | ✓ | ✓ | × | ✓ | × | ✓ | HEC |
Semi-auto Peeling [26] | × | × | × | ✓ | × | × | MEC, MLC |
Spiral Peeling Processing [27] | × | × | ✓ | × | × | × | MEC, MLC |
Visual Recognition Pineapple Eyes [34] | × | × | × | × | ✓ | × | MEC, HLC |
Ours | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | MEC |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Wang, H.; Zhang, H.; Zhang, Y.; Deng, J.; Liu, C.; Tan, J. Integrated Scale-Adaptive Adjustment Factor-Enhanced BlendMask Method for Pineapple Processing System. Agriculture 2024, 14, 1569. https://doi.org/10.3390/agriculture14091569
Wang H, Zhang H, Zhang Y, Deng J, Liu C, Tan J. Integrated Scale-Adaptive Adjustment Factor-Enhanced BlendMask Method for Pineapple Processing System. Agriculture. 2024; 14(9):1569. https://doi.org/10.3390/agriculture14091569
Chicago/Turabian StyleWang, Haotian, Haojian Zhang, Yukai Zhang, Jieren Deng, Chengbao Liu, and Jie Tan. 2024. "Integrated Scale-Adaptive Adjustment Factor-Enhanced BlendMask Method for Pineapple Processing System" Agriculture 14, no. 9: 1569. https://doi.org/10.3390/agriculture14091569
APA StyleWang, H., Zhang, H., Zhang, Y., Deng, J., Liu, C., & Tan, J. (2024). Integrated Scale-Adaptive Adjustment Factor-Enhanced BlendMask Method for Pineapple Processing System. Agriculture, 14(9), 1569. https://doi.org/10.3390/agriculture14091569