WDWeijun Duan

Weijun Duan

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

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article

Previous Organizations / Institutes

The organizations / institutes from the scholar's other articles in the past ten years


Weijun Duan has a total of 17 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    Detection and Continuous Tracking of Breeding Pigs with Ear Tag Loss: A Dual-View Synergistic Method

    by Weijun Duan, Fang Wang, Honghui Li, Na Liu, Xueliang Fu

    The lossof ear tags in breeding pigs can lead to the loss or confusion of individual identity information. Timely and accurate detection, along with continuous tracking of breeding pigs that have lost their ear tags, is crucial for improving the precision of farm management. However, considering the real-time requirements for the detection of ear tag-lost breeding pigs, coupled with tracking challenges such as similar appearances, clustered occlusion, and rapid movements of breeding pigs, this paper proposed a dual-view synergistic method for detecting ear tag-lost breeding pigs and tracking individuals. First, a lightweight ear tag loss detector was developed by combining the Cascade-TagLossDetector with a channel pruning algorithm. Second, a synergistic architecture was designed that integrates a localized top-down view with a panoramic oblique view, where the detection results of ear tag-lost breeding pigs from the localized top-down view were mapped to the panoramic oblique view for precise localization. Finally, an enhanced tracker incorporating Motion Attention was proposed to continuously track the localized ear tag-lost breeding pigs. Experimental results indicated that, during the ear tag loss detection stage for breeding pigs, the pruned detector achieved a mean average precision of 94.03% for bounding box detection and 90.16% for instance segmentation, with a parameter count of 28.04 million and a detection speed of 37.71 fps. Compared to the unpruned model, the parameter count was reduced by 20.93 million, and the detection speed increased by 12.38 fps while maintaining detection accuracy. In the tracking stage, the success rate, normalized precision, and precision of the proposed tracker reached 86.91%, 92.68%, and 89.74%, respectively, representing improvements of 4.39, 3.22, and 4.77 percentage points, respectively, compared to the baseline model. These results validated the advantages of the proposed method in terms of detection timeliness, tracking continuity, and feasibility of deployment on edge devices, providing significant reference value for managing livestock identity in breeding farms.

  • Open Access

    Enhanced Wavelet-Convolution and Few-Shot Prototype-Driven Framework for Incremental Identification of Holstein Cattle

    by Weijun Duan, Fang Wang, Honghui Li, Buyu Wang, Yuan Wang, Xueliang Fu

    Individual identification of Holstein cattle is crucial for the intelligent management of farms. The existing closed-set identification models are inadequate for breeding scenarios where new individuals continually join, and they are highly sensitive to obstructions and alterations in the cattle’s appearance, such as back defacement. The current open-set identification methods exhibit low discriminatory stability for new individuals. These limitations significantly hinder the application and promotion of the model. To address these challenges, this paper proposes a prototype network-based incremental identification framework for Holstein cattle to achieve stable identification of new individuals under small sample conditions. Firstly, we design a feature extraction network, ResWTA, which integrates wavelet convolution with a spatial attention mechanism. This design enhances the model’s response to low-level features by adjusting the convolutional receptive field, thereby improving its feature extraction capabilities. Secondly, we construct a few-shot augmented prototype network to bolster the framework’s robustness for incremental identification. Lastly, we systematically evaluate the effects of various loss functions, prototype computation methods, and distance metrics on identification performance. The experimental results indicate that utilizing ResWTA as the feature extraction network achieves a top-1 accuracy of 97.43% and a top-5 accuracy of 99.54%. Furthermore, introducing the few-shot augmented prototype network enhances the top-1 accuracy by 4.77%. When combined with the Triplet loss function and the Manhattan distance metric, the identification accuracy of the framework can reach up to 94.33%. Notably, this combination reduces the incremental learning forgetfulness by 4.89% compared to the baseline model, while improving the average incremental accuracy by 2.4%. The proposed method not only facilitates incremental identification of Holstein cattle but also significantly bolsters the robustness of the identification process, thereby providing effective technical support for intelligent farm management.

  • Open Access

    Open-Set Recognition of Individual Cows Based on Spatial Feature Transformation and Metric Learning

    by Buyu Wang, Xia Li, Xiaoping An, Weijun Duan, Yuan Wang, Dian Wang, Jingwei Qi

    The automated recognition of individual cows is foundational for implementing intelligent farming. Traditional methods of individual cow recognition from an overhead perspective primarily rely on singular back features and perform poorly for cows with diverse orientation distributions and partial body visibility in the frame. This study proposes an open-set method for individual cow recognition based on spatial feature transformation and metric learning to address these issues. Initially, a spatial transformation deep feature extraction module, ResSTN, which incorporates preprocessing techniques, was designed to effectively address the low recognition rate caused by the diverse orientation distribution of individual cows. Subsequently, by constructing an open-set recognition framework that integrates three attention mechanisms, four loss functions, and four distance metric methods and exploring the impact of each component on recognition performance, this study achieves refined and optimized model configurations. Lastly, introducing moderate cropping and random occlusion strategies during the data-loading phase enhances the model’s ability to recognize partially visible individuals. The method proposed in this study achieves a recognition accuracy of 94.58% in open-set scenarios for individual cows in overhead images, with an average accuracy improvement of 2.98 percentage points for cows with diverse orientation distributions, and also demonstrates an improved recognition performance for partially visible and randomly occluded individual cows. This validates the effectiveness of the proposed method in open-set recognition, showing significant potential for application in precision cattle farming management.


  • Open Access

    The Detection of Ear Tag Dropout in Breeding Pigs Using a Fused Attention Mechanism in a Complex Environment

    by Fang Wang, Xueliang Fu, Weijun Duan, Buyu Wang, Honghui Li

    The utilization of ear tags for identifying breeding pigs is a widely used technique in the field of animal production. Ear tag dropout can lead to the loss of pig identity information, resulting in missing data and ambiguity in production management and genetic breeding data. Therefore, the identification of ear tag dropout is crucial for intelligent breeding in pig farms. In the production environment, promptly detecting breeding pigs with missing ear tags is challenging due to clustering overlap, small tag targets, and uneven sample distributions. This study proposes a method for detecting the dropout of breeding pigs’ ear tags in a complex environment by integrating an attention mechanism. Firstly, the approach involves designing a lightweight feature extraction module called IRDSC using depthwise separable convolution and an inverted residual structure; secondly, the SENet channel attention mechanism is integrated for enhancing deep semantic features; and finally, the IRDSC and SENet modules are incorporated into the backbone network of Cascade Mask R-CNN and the loss function is optimized with Focal Loss. The proposed algorithm, Cascade-TagLossDetector, achieves an accuracy of 90.02% in detecting ear tag dropout in breeding pigs, with a detection speed of 25.33 frames per second (fps), representing a 2.95% improvement in accuracy, and a 3.69 fps increase in speed compared to the previous method. The model size is reduced to 443.03 MB, a decrease of 72.90 MB, which enables real-time and accurate dropout detection while minimizing the storage requirements and providing technical support for the intelligent breeding of pigs.


  • A CNN-SVM Study Based on the Fusion of Spectrogram and Thermal Imaging Heterogeneous Features for Pig Cough Recognition in Field Situation

    by Buyu Wang, Weijun Duan, Na Liu, Jingwei Qi

    Accurate identification of pig cough is essential for comprehensive monitoring and diagnosis of the respiratory health status of pigs. It contributes to stress-free animal health management, reduces pig mortality and improves the economics of farming. Creating a representative multisource signal signature of pig cough is a critical step in achieving automatic recognition of pig cough. For this reason, in this paper, we propose a feature fusion classification method that combines the spectrogram deep features and thermal image deep features to be fed into a support vector machine (SVM) classifier to accomplish cough classification. First, we use a time–frequency transformation algorithm to convert a one-dimensional cough sound signal into a two-dimensional acoustic spectrogram. Then, the corresponding heterogeneous deep features are extracted from the cough spectrogram and thermal image by fine-tuning Lenet-5 and a customized CoughRNet shallow convolutional neural network. Finally, we employ an early fusion technique to align and splice the extracted heterogeneous deep features and feed them into an SVM for the automatic classification task of pig cough. Our study evaluates the classification performance, recognition speed and model size of the proposed deep feature fusion classification network with satisfactory results. Experimental results show that the method achieves 99.77% accuracy in pig cough recognition. This further demonstrates the effectiveness of combining abstract heterogeneous sound and thermal image deep features as a method for automated detection of pig respiratory health.


  • Open Access

    Visual Detection of Lost Ear Tags in Breeding Pigs in a Production Environment Using the Enhanced Cascade Mask R-CNN

    by Fang Wang, Xueliang Fu, Weijun Duan, Buyu Wang, Honghui Li

    As the unique identifier of individual breeding pigs, the loss of ear tags can result in the loss of breeding pigs’ identity information, leading to data gaps and confusion in production and genetic breeding records, which can have catastrophic consequences for breeding efforts. Detecting the loss of ear tags in breeding pigs can be challenging in production environments due to factors such as overlapping breeding pig clusters, imbalanced pig-to-tag ratios, and relatively small-sized ear tags. This study proposes an improved method for the detection of lost ear tags in breeding pigs based on Cascade Mask R-CNN. Firstly, the model utilizes ResNeXt combined with a feature pyramid network (FPN) as the feature extractor; secondly, the classification branch incorporates the online hard example mining (OHEM) technique to improve the utilization of ear tags and low-confidence samples; finally, the regression branch employs a decay factor of Soft-NMS to reduce the overlap of redundant bounding boxes. The experiment employs a sliding window detection method to evaluate the algorithm’s performance in detecting lost ear tags in breeding pigs in a production environment. The results show that the accuracy of the detection can reach 92.86%. This improvement effectively enhances the accuracy and real-time performance of lost ear tag detection, which is highly significant for the production and breeding of breeding pigs.


  • Decentralized Continuous Game for Task Offloading in UAV Cloud

    by Ang Gao, Tianli Geng, Yansu Hu, Wei Liang, Weijun Duan

    UAV cloud which integrates the flexibility and re-silience of mobile cloud computing (MCC) with multiple UAV system provides drones the ability of processing compute-intensive application by offloading task to cloud. However, such task with heterogeneous quality of experience (QoE) requirement generated by massive drones becomes a troublesome burden for cloud resource allocation. Especially the endurance issue related to the energy efficiency makes the problem more complicated. This paper proposes a game theory based decentralized continuous offloading algorithm. Each drone in the UAV cloud optimizes the percentage of offloading task executed at cloud, while minimizes its overhead composed by QoE requirement and energy consumption. This algorithm can be proved to a potential game that can reach a bilateral satisfaction Nash Equilibrium (NE) by finite iteration. Numerical results under various scenario corroborate not only the effectiveness and stability of the proposed continuous offloading game, but also the superiority of computation complexity and communication overhead.


  • Machine vision based physical fitness measurement with human posture recognition and skeletal data smoothing

    by Xuelian Cheng, Mingyi He, Weijun Duan

    A machine vision based measurement system for physical fitness is designed and implemented. Compared with other existing systems, our system only utilizes one Kinect sensor without bulky wearable sensors, thus enabling testees limber and free. To improve the test accuracy, a series of skeletal data smoothing methods and posture recognition algorithms are developed or used. The tests among university students and experimental results show that the performance of our system is increased and it is comparable with human beings, and therefore more practical and labor-saving.