HYHongwen Yan

Hongwen Yan

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


Hongwen Yan has a total of 31 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    A Lightweight Tomato Maturity Detection Method Based on EMBS-DETR

    by Hongwen Yan, Guoqiang Bao, Yuxin Du, Qiyu Wu, Hongkai Zheng, Jianyu Liu

    In response to the challenges of drastic illumination variations, large differences in fruit scale, and severe occlusion in real-field environments, this paper proposes a lightweight end-to-end detection model, termed EMBS-DETR, for tomato maturity detection. The proposed method is built upon the RT-DETR-R18 baseline framework, retaining the advantages of global modeling and end-to-end detection enabled by the Transformer architecture, while introducing targeted improvements in feature extraction and multi-scale feature fusion. In the feature extraction stage, a C2f-FDConv module is incorporated to enhance the modeling capability of high-frequency fine-grained features, such as the surface texture and color gradients of tomatoes, while reducing redundant parameter overhead. For high-level semantic representation, an improved parameter-free attention mechanism, SimAM-TF, is designed. By jointly modeling neuron energy functions and color-aware modulation, it effectively enhances feature representation under complex lighting and occlusion conditions. For multi-scale feature fusion, a novel EMBS-FPN structure is proposed. Based on bidirectional feature flow and a multi-scale weighted fusion mechanism, this structure integrates multi-branch receptive field modeling with an efficient upsampling strategy, enabling adaptive fusion of P3–P5 feature layers. This design significantly improves representation stability for objects of varying scales while maintaining model lightweight characteristics. To evaluate the proposed method, a real-field tomato maturity dataset was constructed, consisting of 2327 images collected from facility-grown pink large-fruit tomato varieties widely cultivated in North China. According to agricultural industry standards and physicochemical properties, the dataset is categorized into three classes: immature (796 images), turning stage (718 images), and mature (813 images). Experiments were conducted on an Ubuntu 20.04 platform with an NVIDIA GeForce RTX 3080 Ti GPU. The input resolution was set to 640 × 640. Standard evaluation metrics, including Precision, Recall, mAP@0.5, mAP@0.5:0.95, as well as Params, GFLOPs, and Model Size, were used for comprehensive assessment. The experimental results demonstrate that EMBS-DETR achieves 90.9% Precision, 85.7% Recall, 89.9% mAP@0.5, and 79.8% mAP@0.5:0.95. Meanwhile, with only 37.03 M parameters, 25.2 GFLOPs computational cost, and a model size of 46.3 MB, the proposed model maintains low computational and storage overhead, achieving a favorable balance between accuracy and efficiency. Compared with mainstream YOLO-based models, the proposed method demonstrates superior overall performance in complex field environments, providing effective technical support for automated tomato maturity perception and intelligent visual understanding in precision agriculture.


  • Open Access

    Study on the Impact of LDA Preprocessing on Pig Face Identification with SVM

    by Hongwen Yan, Yulong Wu, Yifan Bo, Yukuan Han, Gaifeng Ren

    In this study, the implementation of traditional machine learning models in the intelligent management of swine is explored, focusing on the impact of LDA preprocessing on pig facial recognition using an SVM. Through experimental analysis, the kernel functions for two testing protocols, one utilizing an SVM exclusively and the other employing a combination of LDA and an SVM, were identified as polynomial and RBF, both with coefficients of 0.03. Individual identification tests conducted on 10 pigs demonstrated that the enhanced protocol improved identification accuracy from 83.66% to 86.30%. Additionally, the training and testing durations were reduced to 0.7% and 0.3% of the original times, respectively. These findings suggest that LDA preprocessing significantly enhances the efficiency of individual pig identification using an SVM, providing empirical evidence for the deployment of SVM classifiers in mobile and embedded systems.


  • Open Access

    Research on Dynamic Pig Counting Method Based on Improved YOLOv7 Combined with DeepSORT

    by Xiaobao Shao, Chengcheng Liu, Zhixuan Zhou, Wenjing Xue, Guoye Zhang, Jianyu Liu, Hongwen Yan

    A pig inventory is a crucial component of achieving precise and large-scale farming. In complex pigsty environments, due to pigs’ stress reactions and frequent obstructions, it is challenging to count them accurately and automatically. This difficulty contrasts with most current deep learning studies, which rely on overhead views or static images for counting. This research proposes a video-based dynamic counting method, combining YOLOv7 with DeepSORT. By utilizing the YOLOv7 network structure and optimizing the second and third 3 × 3 convolution operations in the head network ELAN-W with PConv, the model reduces the computational demand and improves the inference speed without sacrificing accuracy. To ensure that the network acquires accurate position perception information at oblique angles and extracts rich semantic information, we introduce the coordinate attention (CA) mechanism before the three re-referentialization paths (REPConv) in the head network, enhancing robustness in complex scenarios. Experimental results show that, compared to the original model, the improved model increases the mAP by 3.24, 0.05, and 1.00 percentage points for oblique, overhead, and all pig counting datasets, respectively, while reducing the computational cost by 3.6 GFLOPS. The enhanced YOLOv7 outperforms YOLOv5, YOLOv4, YOLOv3, Faster RCNN, and SSD in target detection with mAP improvements of 2.07, 5.20, 2.16, 7.05, and 19.73 percentage points, respectively. In dynamic counting experiments, the improved YOLOv7 combined with DeepSORT was tested on videos with total pig counts of 144, 201, 285, and 295, yielding errors of -3, -3, -4, and -26, respectively, with an average accuracy of 96.58% and an FPS of 22. This demonstrates the model’s capability of performing the real-time counting of pigs in various scenes, providing valuable data and references for automated pig counting research.


  • Top Cited Papers
    Open Access

    Wheat Seed Detection and Counting Method Based on Improved YOLOv8 Model

    by Na Ma, Yaxin Su, Lexin Yang, Zhongtao Li, Hongwen Yan

    Wheat seed detection has important applications in calculating thousand-grain weight and crop breeding. In order to solve the problems of seed accumulation, adhesion, and occlusion that can lead to low counting accuracy, while ensuring fast detection speed with high accuracy, a wheat seed counting method is proposed to provide technical support for the development of the embedded platform of the seed counter. This study proposes a lightweight real-time wheat seed detection model, YOLOv8-HD, based on YOLOv8. Firstly, we introduce the concept of shared convolutional layers to improve the YOLOv8 detection head, reducing the number of parameters and achieving a lightweight design to improve runtime speed. Secondly, we incorporate the Vision Transformer with a Deformable Attention mechanism into the C2f module of the backbone network to enhance the network’s feature extraction capability and improve detection accuracy. The results show that in the stacked scenes with impurities (severe seed adhesion), the YOLOv8-HD model achieves an average detection accuracy (mAP) of 77.6%, which is 9.1% higher than YOLOv8. In all scenes, the YOLOv8-HD model achieves an average detection accuracy (mAP) of 99.3%, which is 16.8% higher than YOLOv8. The memory size of the YOLOv8-HD model is 6.35 MB, approximately 4/5 of YOLOv8. The GFLOPs of YOLOv8-HD decrease by 16%. The inference time of YOLOv8-HD is 2.86 ms (on GPU), which is lower than YOLOv8. Finally, we conducted numerous experiments and the results showed that YOLOv8-HD outperforms other mainstream networks in terms of mAP, speed, and model size. Therefore, our YOLOv8-HD can efficiently detect wheat seeds in various scenarios, providing technical support for the development of seed counting instruments.


  • IMPROVED YOLOv8-BASED AUTOMATED DETECTION OF WHEAT LEAF DISEASES

    by Na Ma, Yanwen Li, Miao Xu, Hongwen Yan

    Stripe rust, leaf rust, and powdery mildew are important leaf diseases in wheat, which significantly affect the yield and quality of wheat. Their timely identification and diagnosis are of great significance for disease management. To achieve convenient identification of wheat leaf diseases based on mobile devices, an improved YOLOv8 method for wheat leaf disease detection is proposed. This method incorporates the CBAM(Convolutional Block Attention Module) attention mechanism module into the feature fusion network to enhance the network's feature expression ability. Experimental results show that the improved YOLOv8 model has an accuracy, recall rate, and mean average precision (mAP) of 95%, 98.3%, and 98.8% respectively for wheat leaf disease detection, with a model memory usage of 5.92MB. Compared with the Faster R-CNN, YOLOv5, YOLOv7, and YOLOv8 models, the mAP has been improved by 66.76, 48, 13.2, and 1.9 percentage points respectively, and it also has the lowest model memory usage. The research demonstrates that the improved YOLOv8 model can provide an effective exploration for automated detection of wheat leaf diseases.


  • Open Access

    STUDY ON THE INFLUENCE OF PCA PRE-TREATMENT ON PIG FACE IDENTIFICATION WITH KNN

    by Hongwen Yan, Zhiwei Hu, Yiran Liu

    To explore the application of traditional machine learning model in the intelligent management of pigs, in this paper, the influence of the PCA pre-treatment on pig face identification with KNN is studied. With testing method, individual identification test was carried out on 10 different pigs in two testing schemes, in which one adopted KNN alone and the other adopted PCA + KNN, for which the classifier parameter was taken as 3 and 5, respectively. In the optimized scheme, the operating efficiency got significantly increased, also the training time and testing time were reduced to 4.8% and 7% of the original value in the KNN alone scheme, though the accuracy got lowered to a certain extent. With all these factors taken into consideration, PCA pre-treatment is beneficial to individual pig identification with KNN. It can provide experimental support for mobile terminals and embedded application of KNN classifiers.

  • Open Access

    Attention-Guided Instance Segmentation for Group-Raised Pigs

    by Zhiwei Hu, Hua Yang, Hongwen Yan

    In the pig farming environment, complex factors such as pig adhesion, occlusion, and changes in body posture pose significant challenges for segmenting multiple target pigs. To address these challenges, this study collected video data using a horizontal angle of view and a non-fixed lens. Specifically, a total of 45 pigs aged 20–105 days in 8 pens were selected as research subjects, resulting in 1917 labeled images. These images were divided into 959 for training, 192 for validation, and 766 for testing. The grouped attention module was employed in the feature pyramid network to fuse the feature maps from deep and shallow layers. The grouped attention module consists of a channel attention branch and a spatial attention branch. The channel attention branch effectively models dependencies between channels to enhance feature mapping between related channels and improve semantic feature representation. The spatial attention branch establishes pixel-level dependencies by applying the response values of all pixels in a single-channel feature map to the target pixel. It further guides the original feature map to filter spatial location information and generate context-related outputs. The grouped attention, along with data augmentation strategies, was incorporated into the Mask R-CNN and Cascade Mask R-CNN task networks to explore their impact on pig segmentation. The experiments showed that introducing data augmentation strategies improved the segmentation performance of the model to a certain extent. Taking Mask-RCNN as an example, under the same experimental conditions, the introduction of data augmentation strategies resulted in improvements of 1.5%, 0.7%, 0.4%, and 0.5% in metrics AP50, AP75, APL, and AP, respectively. Furthermore, our grouped attention module achieved the best performance. For example, compared to the existing attention module CBAM, taking Mask R-CNN as an example, in terms of the metric AP50, AP75, APL, and AP, the grouped attention outperformed 1.0%, 0.3%, 1.1%, and 1.2%, respectively. We further studied the impact of the number of groups in the grouped attention on the final segmentation results. Additionally, visualizations of predictions on third-party data collected using a top-down data acquisition method, which was not involved in the model training, demonstrated that the proposed model in this paper still achieved good segmentation results, proving the transferability and robustness of the grouped attention. Through comprehensive analysis, we found that grouped attention is beneficial for achieving high-precision segmentation of individual pigs in different scenes, ages, and time periods. The research results can provide references for subsequent applications such as pig identification and behavior analysis in mobile settings.


  • Open Access

    Study on the Influence of PCA Pre-Treatment on Pig Face Identification with Random Forest

    by Hongwen Yan, Songrui Cai, Erhao Li, Jianyu Liu, Zhiwei Hu, Qiangsheng Li, Huiting Wang

    To explore the application of a traditional machine learning model in the intelligent management of pigs, in this paper, the influence of PCA pre-treatment on pig face identification with RF is studied. By this testing method, the parameters of two testing schemes, one adopting RF alone and the other adopting RF + PCA, were determined to be 65 and 70, respectively. With individual identification tests carried out on 10 pigs, accuracy, recall, and f1-score were increased by 2.66, 2.76, and 2.81 percentage points, respectively. Except for the slight increase in training time, the test time was reduced to 75% of the old scheme, and the efficiency of the optimized scheme was greatly improved. It indicates that PCA pre-treatment positively improved the efficiency of individual pig identification with RF. Furthermore, it provides experimental support for the mobile terminals and the embedded application of RF classifiers.


  • Open Access

    Concurrent channel and spatial attention in Fully Convolutional Network for individual pig image segmentation

    by Zhiwei Hu, Hua Yang, Tiantian Lou, Hongwen Yan

    Concurrent channel and spatial attention in Fully Convolutional Network for individual pig image segmentation