Research on Rapeseed Seedling Counting Based on an Improved Density Estimation Method
Abstract
:1. Introduction
2. Materials and Methods
2.1. Research Process
2.2. Data Set Sample Collection and Production
2.2.1. Data Collection and Screening
2.2.2. Data Set Production
2.2.3. Information on Data Sets
3. Design and Training of Recognition and Counting Models
3.1. Methods Based on Density Estimation
3.1.1. VGG16
3.1.2. Dilated Convolution
3.2. The Rape Seedling Counting Model with Improved Density Estimation Method
3.2.1. The SCAM Attention Mechanism
- (1)
- The Space Attention Module (SAM)
- (2)
- The Channel Attention Module (CAM)
3.2.2. Loss Function
3.3. Overall Network Structure
3.4. Experimental Environment and Parameter Settings
4. Results and Discussion
4.1. Evaluation Indicators
4.2. Model Training Analysis
4.3. Distribution Experiment
4.4. Comparison with Other Algorithms
4.5. Model Counting Performance Analysis
5. Conclusions
- The density estimation method utilized spatial attention, a channel attention module, feature information enhancement, and splicing, respectively, which improved the representation of the entire feature map, using a 1 × 1 convolutional layer for further feature extraction and introducing the torch.abs function at the output port of the network. This improved model is named BCNet.
- Distribution experiments and result visualization were performed, and the density response points corresponding to the features of the seedling region were more prominent in the improved density map compared to the other four density maps. Compared with the CSRNet and the Bayesian algorithms, BCNet has the lowest counting error, with MAE and MSE reaching 3.40 and 4.99, respectively. BCNet exhibits the highest counting accuracy, as the predicted count closely aligns with the actual count.
- Under complex backgrounds or high density conditions, the BCNet algorithm was employed to predict the count of rapeseed seedlings, and the two curves of the actual and predicted numbers of rapeseed seedlings obtained were very close to each other, which verified the feasibility of the method in this paper. It can provide a reference for seedling identification and counting methods of rapeseed, and provide technical support for achieving precise seedling interplanting and seedling replenishment.
Author Contributions
Funding
Institutional Review Board Statement
Data Availability Statement
Conflicts of Interest
References
- Liu, C.; Feng, Z.C.; Xiao, T.H.; Ma, X.M.; Zhou, G.S.; Huang, F.H.; Li, G.N.; Wang, H.Z. Development status, potential and countermeasures of rapeseed industry in China. Chin. J. Oil Crop Sci. 2019, 41, 485–489. [Google Scholar]
- Dai, J.G.; Xue, J.L.; Zhao, Q.Z.; Wang, Q.; Chen, B.; Zhang, G.S.; Jiang, N. Extracting cotton seedling information from UAV visible light remote sensing images. Trans. CSAE 2020, 36, 63–71. [Google Scholar] [CrossRef]
- Liu, L.C.; Liang, J.; Wang, J.Q.; Hu, P.Y.; Wan, L.; Zheng, Q. An Improved YOLOv5-Based Approach to Soybean Phenotype Information Perception. Comput. Electr. Eng. 2023, 106, 108582. [Google Scholar] [CrossRef]
- Liu, L.C.; Bi, Q.P.; Liang, J.; Li, Z.D.; Wang, W.W.; Zheng, Q. Farmland Soil Block Identification and Distribution Statistics Based on Deep Learning. Agriculture 2022, 12, 2038. [Google Scholar] [CrossRef]
- Peng, J.; Rezaei, E.E.; Zhu, W.; Wang, D.; Li, H.; Yang, B.; Sun, Z. Plant Density Estimation Using UAV Imagery and Deep Learning. Remote Sens. 2022, 14, 5923. [Google Scholar] [CrossRef]
- de Arruda, M.d.S.; Osco, L.P.; Acosta, P.R.; Gonçalves, D.N.; Junior, J.M.; Ramos, A.P.M.; Matsubara, E.T.; Luo, Z.; Li, J.; de Andrade Silva, J. Counting and locating high-density objects using convolutional neural network. Expert Syst. Appl. 2022, 195, 116555. [Google Scholar] [CrossRef]
- Lempitsky, V.; Zisserman, A. Learning to count objects in images. In Advances in Neural Information Processing Systems 23 (NIPS 2010); Curran Associates Inc.: Red Hook, NY, USA, 2010. [Google Scholar]
- Qi, Y.; Li, Y.N.; Sun, M. Cotton seedling counting algorithm based on feature fusion. Trans. CSAE 2022, 38, 180–186. [Google Scholar]
- Huang, Z.Y.; Li, Y.N.; Wang, H.H. Cotton boll counting algorithm in the field based on density class classification. J. Comput.-Aided Des. Comput. Graph. 2020, 32. [Google Scholar] [CrossRef]
- Bao, W.X.; Zhuang, X.; Hu, G.S.; Huang, L.S.; Liang, D.; Lin, Z. Estimation and Counting of Wheat Ear Density in the Field Based on Deep Convolutional Neural Network. Trans. CSAE 2020, 36, 186–193+323. [Google Scholar]
- Lu, H.; Cao, Z.; Xiao, Y.; Zhuang, B.; Shen, C. TasselNet: Counting maize tassels in the wild via local counts regression network. Plant Methods 2017, 13, 79. [Google Scholar] [CrossRef]
- Li, Y.; Zhang, X.; Chen, D. CSRNet: Dilated Convolutional Neural Networks for Understanding the Highly Congested Scenes. In Proceedings of the 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018. [Google Scholar]
- Karen, S. Very deep convolutional networks for large-scale image recognition. arXiv 2014, arXiv:1409.1556. [Google Scholar]
- Sujatha, R.; Chatterjee, J.M.; Jhanjhi, N.; Brohi, S.N. Performance of deep learning vs machine learning in plant leaf disease detection. Microprocess. Microsyst. 2021, 80, 103615. [Google Scholar] [CrossRef]
- Tao, T.; Wei, X. A hybrid CNN–SVM classifier for weed recognition in winter rape field. Plant Methods 2022, 18, 29. [Google Scholar] [CrossRef] [PubMed]
- Manataki, M.; Papadopoulos, N.; Schetakis, N.; Di Iorio, A. Exploring Deep Learning Models on GPR Data: A Comparative Study of AlexNet and VGG on a Dataset from Archaeological Sites. Remote Sens. 2023, 15, 3193. [Google Scholar] [CrossRef]
- Li, Y.W.; XU, J.J.; Liu, D.X.; Yu, Y. Field Road Scene Recognition in Hilly and Mountainous Areas Based on Improved Dilated Convolutional Neural Network. Trans. CSAE 2019, 35, 150–159. [Google Scholar]
- Zhu, L.; Wu, R.; Fu, G.; Zhang, S.; Yang, C.; Chen, T.; Huang, P. Segmenting banana images using the lightweight UNet of multi-scale serial dilated convolution. Trans. CSAE 2022, 38, 194–201. [Google Scholar] [CrossRef]
- Wang, L.Y. Research on Image Crowd Counting Based on Convolutional Neural Network. Ph.D. Thesis, University of Science and Technology of China, Hefei, China, 2020. [Google Scholar]
- Tan, S.H.; Chuah, J.H.; Chow, C.O.; Kanesan, J. Spatially Recalibrated Convolutional Neural Network for Vehicle Type Recognition. IEEE Access 2023, 11, 142525–142537. [Google Scholar] [CrossRef]
- Kim, T.; Lee, D.H.; Kim, W.S.; Zhang, B.T. Domain adapted broiler density map estimation using negative-patch data augmentation. Biosyst. Eng. 2023, 231, 165–177. [Google Scholar] [CrossRef]
- Sozzi, M.; Cantalamessa, S.; Cogato, A.; Kayad, A.; Marinello, F. Automatic bunch detection in white grape varieties using YOLOv3, YOLOv4, and YOLOv5 deep learning algorithms. Agronomy 2022, 12, 319. [Google Scholar] [CrossRef]
- Wu, J.; Yang, G.; Yang, X.; Xu, B.; Han, L.; Zhu, Y. Automatic counting of in situ rice seedlings from UAV images based on a deep fully convolutional neural network. Remote Sens. 2019, 11, 691. [Google Scholar] [CrossRef]
- Feng, W.; Wang, K.; Zhou, S. An efficient neural network for pig counting and localization by density map estimation. IEEE Access 2023, 11, 81079–81091. [Google Scholar] [CrossRef]
Image Number | Minimum Number of Samples | Maximum Sample Size | Average Sample Size | Total Sample Size |
---|---|---|---|---|
600 | 45 | 170 | 81 | 48,600 |
Experimental Setup | MAE | MSE |
---|---|---|
A1: VGG16+Dilated+Bayesian Loss | 4.12 | 5.76 |
A2: VGG16+Dilated+Bayesian Loss+SCAM | 3.68 | 5.29 |
A3: VGG16+Dilated+Bayesian Loss+SCAM+abs | 3.60 | 5.20 |
A4: VGG16+Dilated+Bayesian Loss+SCAM+Conv1 1 | 3.52 | 5.09 |
A5: VGG16+Dilated+Bayesian Loss+SCAM+Conv1 1+abs | 3.40 | 4.99 |
Algorithm | MAE | MSE |
---|---|---|
CSRNet | 8.32 | 12.48 |
Bayesian | 3.71 | 5.20 |
BCNet | 3.40 | 4.99 |
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, Q.; Li, C.; Huang, L.; Chen, L.; Zheng, Q.; Liu, L. Research on Rapeseed Seedling Counting Based on an Improved Density Estimation Method. Agriculture 2024, 14, 783. https://doi.org/10.3390/agriculture14050783
Wang Q, Li C, Huang L, Chen L, Zheng Q, Liu L. Research on Rapeseed Seedling Counting Based on an Improved Density Estimation Method. Agriculture. 2024; 14(5):783. https://doi.org/10.3390/agriculture14050783
Chicago/Turabian StyleWang, Qi, Chunpeng Li, Lili Huang, Liqing Chen, Quan Zheng, and Lichao Liu. 2024. "Research on Rapeseed Seedling Counting Based on an Improved Density Estimation Method" Agriculture 14, no. 5: 783. https://doi.org/10.3390/agriculture14050783
APA StyleWang, Q., Li, C., Huang, L., Chen, L., Zheng, Q., & Liu, L. (2024). Research on Rapeseed Seedling Counting Based on an Improved Density Estimation Method. Agriculture, 14(5), 783. https://doi.org/10.3390/agriculture14050783