1
|
Dai N, Hu X, Xu K, Hu X, Yuan Y, Tu J. Lightweight bobbin yarn detection model for auto-coner with yarn bank. Sci Rep 2024; 14:16136. [PMID: 38997508 PMCID: PMC11245527 DOI: 10.1038/s41598-024-67196-2] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [Grants] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 02/18/2024] [Accepted: 07/09/2024] [Indexed: 07/14/2024] Open
Abstract
The automated replacement of empty tubes in the yarn bank is a critical step in the process of automatic winding machines with yarn banks, as the real-time detection of depleted yarn on spools and accurate positioning of empty tubes directly impact the production efficiency of winding machines. Addressing the shortcomings of traditional methods, such as poor adaptability and low sensitivity in optical and visual tube detection, and aiming to reduce the computational and detection time costs introduced by neural networks, this paper proposes a lightweight yarn spool detection model based on YOLOv8. The model utilizes Darknet-53 as the backbone network, and due to the dense spatial distribution of yarn spool targets, it incorporates large selective kernel units to enhance the recognition and positioning of dense targets. To address the issue of excessive focus on local features by convolutional neural networks, a bi-level routing attention mechanism is introduced to capture long-distance dependencies dynamically. Furthermore, to balance accuracy and detection speed, a FasterNeck is constructed as the neck network, replacing the original convolutional blocks with Ghost convolutions and integrating with FasterNet. This design minimizes the sacrifice of detection accuracy while achieving a significant improvement in inference speed. Lastly, the model employs weighted IoU with a dynamic focusing mechanism as the bounding box loss function. Experimental results on a custom yarn spool dataset demonstrate a notable improvement over the baseline model, with a high-confidence mAP of 94.2% and a compact weight size of only 4.9 MB. The detection speed reaches 223FPS, meeting the requirements for industrial deployment and real-time detection.
Collapse
Grants
- (No.2022C01202) The Science and Technology Program of Zhejiang Province, China
- (No.2022C01065) The Science and Technology Program of Zhejiang Province, China
- (No.2022C01202) The Science and Technology Program of Zhejiang Province, China
- (No.2022C01065) The Science and Technology Program of Zhejiang Province, China
- (No.2022C01202) The Science and Technology Program of Zhejiang Province, China
- (No.2022C01065) The Science and Technology Program of Zhejiang Province, China
- (No.2022C01202) The Science and Technology Program of Zhejiang Province, China
- (No.2022C01065) The Science and Technology Program of Zhejiang Province, China
- (No.2022C01202) The Science and Technology Program of Zhejiang Province, China
- (No.2022C01065) The Science and Technology Program of Zhejiang Province, China
- (No.2022C01202) The Science and Technology Program of Zhejiang Province, China
- (No.2022C01065) The Science and Technology Program of Zhejiang Province, China
- (No.23242083-Y) Zhejiang Sci-Tech University Research Start-up Fund, China
- (No.23242083-Y) Zhejiang Sci-Tech University Research Start-up Fund, China
- (No.23242083-Y) Zhejiang Sci-Tech University Research Start-up Fund, China
- (No.23242083-Y) Zhejiang Sci-Tech University Research Start-up Fund, China
- (No.23242083-Y) Zhejiang Sci-Tech University Research Start-up Fund, China
Collapse
Affiliation(s)
- Ning Dai
- Key Laboratory of Modern Textile Machinery and Technology of Zhejiang Province, Zhejiang Sci-Tech University, Hangzhou, 310018, China.
| | - Xiaohan Hu
- Key Laboratory of Modern Textile Machinery and Technology of Zhejiang Province, Zhejiang Sci-Tech University, Hangzhou, 310018, China.
| | - Kaixin Xu
- Key Laboratory of Modern Textile Machinery and Technology of Zhejiang Province, Zhejiang Sci-Tech University, Hangzhou, 310018, China
| | - Xudong Hu
- Key Laboratory of Modern Textile Machinery and Technology of Zhejiang Province, Zhejiang Sci-Tech University, Hangzhou, 310018, China
| | - Yanhong Yuan
- Key Laboratory of Modern Textile Machinery and Technology of Zhejiang Province, Zhejiang Sci-Tech University, Hangzhou, 310018, China
| | - Jiajia Tu
- School of Automation, Zhejiang Institute of Mechanical & Electrical Engineering, Hangzhou, 310053, China
| |
Collapse
|
2
|
Cen H, Yu L, Pu Y, Li J, Liu Z, Cai Q, Liu S, Nie J, Ge J, Guo J, Yang S, Zhao H, Wang K. A Method to Predict CO 2 Mass Concentration in Sheep Barns Based on the RF-PSO-LSTM Model. Animals (Basel) 2023; 13:ani13081322. [PMID: 37106885 PMCID: PMC10135381 DOI: 10.3390/ani13081322] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [Grants] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 02/06/2023] [Revised: 04/08/2023] [Accepted: 04/10/2023] [Indexed: 04/29/2023] Open
Abstract
In large-scale meat sheep farming, high CO2 concentrations in sheep sheds can lead to stress and harm the healthy growth of meat sheep, so a timely and accurate understanding of the trend of CO2 concentration and early regulation are essential to ensure the environmental safety of sheep sheds and the welfare of meat sheep. In order to accurately understand and regulate CO2 concentrations in sheep barns, we propose a prediction method based on the RF-PSO-LSTM model. The approach we propose has four main parts. First, to address the problems of data packet loss, distortion, singular values, and differences in the magnitude of the ambient air quality data collected from sheep sheds, we performed data preprocessing using mean smoothing, linear interpolation, and data normalization. Second, to address the problems of many types of ambient air quality parameters in sheep barns and possible redundancy or overlapping information, we used a random forests algorithm (RF) to screen and rank the features affecting CO2 mass concentration and selected the top four features (light intensity, air relative humidity, air temperature, and PM2.5 mass concentration) as the input of the model to eliminate redundant information among the variables. Then, to address the problem of manually debugging the hyperparameters of the long short-term memory model (LSTM), which is time consuming and labor intensive, as well as potentially subjective, we used a particle swarm optimization (PSO) algorithm to obtain the optimal combination of parameters, avoiding the disadvantages of selecting hyperparameters based on subjective experience. Finally, we trained the LSTM model using the optimized parameters obtained by the PSO algorithm to obtain the proposed model in this paper. The experimental results show that our proposed model has a root mean square error (RMSE) of 75.422 μg·m-3, a mean absolute error (MAE) of 51.839 μg·m-3, and a coefficient of determination (R2) of 0.992. The model prediction curve is close to the real curve and has a good prediction effect, which can be useful for the accurate prediction and regulation of CO2 concentration in sheep barns in large-scale meat sheep farming.
Collapse
Affiliation(s)
- Honglei Cen
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
| | - Longhui Yu
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
- College of Information Science and Technology, Zhongkai University of Agriculture and Engineering, Guangzhou 510225, China
| | - Yuhai Pu
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
| | - Jingbin Li
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
| | - Zichen Liu
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
| | - Qiang Cai
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
| | - Shuangyin Liu
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- College of Information Science and Technology, Zhongkai University of Agriculture and Engineering, Guangzhou 510225, China
| | - Jing Nie
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
| | - Jianbing Ge
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
| | - Jianjun Guo
- College of Information Science and Technology, Zhongkai University of Agriculture and Engineering, Guangzhou 510225, China
| | - Shuo Yang
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
| | - Hangxing Zhao
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
| | - Kang Wang
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
| |
Collapse
|
3
|
Yu L, Guo J, Pu Y, Cen H, Li J, Liu S, Nie J, Ge J, Yang S, Zhao H, Xu Y, Wu J, Wang K. A Recognition Method of Ewe Estrus Crawling Behavior Based on Multi-Target Detection Layer Neural Network. Animals (Basel) 2023; 13:ani13030413. [PMID: 36766301 PMCID: PMC9913191 DOI: 10.3390/ani13030413] [Citation(s) in RCA: 4] [Impact Index Per Article: 4.0] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Figures] [Journal Information] [Subscribe] [Scholar Register] [Received: 11/15/2022] [Revised: 01/13/2023] [Accepted: 01/23/2023] [Indexed: 01/28/2023] Open
Abstract
There are some problems with estrus detection in ewes in large-scale meat sheep farming: mainly, the manual detection method is labor-intensive and the contact sensor detection method causes stress reactions in ewes. To solve the abovementioned problems, we proposed a multi-objective detection layer neural network-based method for ewe estrus crawling behavior recognition. The approach we proposed has four main parts. Firstly, to address the problem of mismatch between our constructed ewe estrus dataset and the YOLO v3 anchor box size, we propose to obtain a new anchor box size by clustering the ewe estrus dataset using the K-means++ algorithm. Secondly, to address the problem of low model recognition precision caused by small imaging of distant ewes in the dataset, we added a 104 × 104 target detection layer, making the total target detection layer reach four layers, strengthening the model's ability to learn shallow information and improving the model's ability to detect small targets. Then, we added residual units to the residual structure of the model, so that the deep feature information of the model is not easily lost and further fused with the shallow feature information to speed up the training of the model. Finally, we maintain the aspect ratio of the images in the data-loading module of the model to reduce the distortion of the image information and increase the precision of the model. The experimental results show that our proposed model has 98.56% recognition precision, while recall was 98.04%, F1 value was 98%, mAP was 99.78%, FPS was 41 f/s, and model size was 276 M, which can meet the accurate and real-time recognition of ewe estrus behavior in large-scale meat sheep farming.
Collapse
Affiliation(s)
- Longhui Yu
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
- College of Information Science and Technology, Zhongkai University of Agriculture and Engineering, Guangzhou 510225, China
| | - Jianjun Guo
- College of Information Science and Technology, Zhongkai University of Agriculture and Engineering, Guangzhou 510225, China
| | - Yuhai Pu
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
| | - Honglei Cen
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
| | - Jingbin Li
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
- Correspondence: (J.L.); (S.L.)
| | - Shuangyin Liu
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- College of Information Science and Technology, Zhongkai University of Agriculture and Engineering, Guangzhou 510225, China
- Correspondence: (J.L.); (S.L.)
| | - Jing Nie
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
| | - Jianbing Ge
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
| | - Shuo Yang
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
| | - Hangxing Zhao
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
| | - Yalei Xu
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
- College of Information Science and Technology, Zhongkai University of Agriculture and Engineering, Guangzhou 510225, China
| | - Jianglin Wu
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
- College of Information Science and Technology, Zhongkai University of Agriculture and Engineering, Guangzhou 510225, China
| | - Kang Wang
- College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
- Xinjiang Production and Construction Corps Key Laboratory of Modern Agricultural Machinery, Shihezi 832003, China
- Industrial Technology Research Institute of Xinjiang Production and Construction Corps, Shihezi 832000, China
| |
Collapse
|
4
|
Wu S, Wang Y, Yang H, Wang P. Improved Faster R-CNN for the Detection Method of Industrial Control Logic Graph Recognition. Front Bioeng Biotechnol 2022; 10:944944. [PMID: 35992353 PMCID: PMC9386596 DOI: 10.3389/fbioe.2022.944944] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Track Full Text] [Download PDF] [Figures] [Journal Information] [Subscribe] [Scholar Register] [Received: 05/16/2022] [Accepted: 06/08/2022] [Indexed: 11/30/2022] Open
Abstract
In the process of developing the industrial control SAMA logic diagram commonly used in the industrial process control system, there are some problems, that is, the size of logic diagram elements is small, the shape is various, similar element recognition is easily confused, and the detection accuracy is low. In this study, the faster R-CNN network has been improved. The original VGG16 network has been replaced by the ResNet101 network, and the residual value module was introduced to ensure the detailed features of the deep network. Then the industrial control logic diagram dataset was analyzed to improve the anchor size ratio through the K-means clustering algorithm. The candidate box screening problem was optimized by improving the non-maximum suppression algorithm. The elements were distinguished via the combination of the candidate box location and the inherent text, which improved the recognition accuracy of similar elements. An experimental platform was built using the TensorFlow framework based on the Windows system, and the improved method was compared with the original one by the control variable. The results showed that the performance of similar element recognition has been greatly enhanced through an improved faster R-CNN network.
Collapse
Affiliation(s)
- Shilin Wu
- Hubei Key Laboratory of Digital Textile Equipment, Wuhan Textile University, Wuhan, China
- School of Mechanical Engineering and Automation, Wuhan Textile University, Wuhan, China
- *Correspondence: Shilin Wu,
| | - Yan Wang
- School of Mechanical Engineering and Automation, Wuhan Textile University, Wuhan, China
| | - Huayu Yang
- School of Mechanical Engineering and Automation, Wuhan Textile University, Wuhan, China
| | - Pingfeng Wang
- School of Mechanical Engineering and Automation, Wuhan Textile University, Wuhan, China
| |
Collapse
|