Many traditional fruit vendors still rely on manual sorting to pick out high-quality apples. This process is not only time-consuming but can also damage the apples. Meanwhile, automated detection technology is still in its early stage and lacks full reliability. To improve this technology, we propose a novel method, which incorporates a learnable scaling factor and residual connection to enhance the Multi-Head Attention mechanism. In our approach, a learnable scaling factor is first applied to adjust the attention weights dynamically, and then a residual connection combines the scaled attention output with the original input to preserve essential features from the initial data. By integrating Multi-Head Attention with Convolutional Neural Networks (CNNs) using this method, we propose a lightweight deep learning model called “Learnable Residual Multi-Head Attention Networks Fusion with CNNs” to detect defective apples. Compared to existing models, our proposed model has lower memory usage, shorter training time, and higher detection precision. On the test set, the model achieves an accuracy of 97.5%, a recall of 98%, and a specificity of 97%, along with the lowest detection time of 46 ms. Experimental results show that the proposed model using our method is highly promising for commercial sorting, as it reduces labor costs, increases the supply of high-quality apples, and boosts consumer satisfaction.
Gesture recognition is a pivotal technology in the realm of intelligent education, and millimeter-wave (mmWave) signals possess advantages such as high resolution and strong penetration capability. This paper introduces a highly accurate and robust gesture recognition method using mmWave radar. The method involves capturing the raw signals of hand movements with the mmWave radar module and preprocessing the received radar signals, including Fourier transformation, distance compression, Doppler processing, and noise reduction through moving target indication (MTI). The preprocessed signals are then fed into the Convolutional Neural Network-Time Domain Convolutional Network (CNN-TCN) model to extract spatio-temporal features, with recognition performance evaluated through classification. Experimental results demonstrate that this method achieves an accuracy rate of 98.2% in domain-specific recognition and maintains a consistently high recognition rate across different neural networks, showcasing exceptional recognition performance and robustness.
In real world recommender systems, users interact with the same item through multiple behaviors—click, favorite, add-to-cart, and purchase that are heterogeneous and time dependent. Existing multi-behavior approaches suffer from three gaps: (i) static behavior categorization that ignores how frequency, intensity, and anomalies dynamically affect preference; (ii) shallow or fixed graph propagation that misses higher-order preferences and cross-graph semantics; and (iii) weak handling of temporal dependencies, which obscures interest evolution. We propose the Behavior-Aware Aggregation and Graph-Attention Fusion Network (BAGAR) to jointly model behavior differences, temporal dynamics, and semantic relations. BAGAR includes: a behavior-aware aggregation module combining behavior-intensity pooling, core-preference pooling, and anomaly filtering, fused by an adaptive graph multilayer perceptron; a multi-hop graph-attention module that forms hierarchical channels for first-order direct interests, higher-order latent preferences, and global semantic paths, reconciled by gating and a joint behavior-time dependency mechanism that embeds behavior relations and inter-event time gaps within a unified attention framework to track preference evolution. Experiments on Taobao, Tmall, and Yelp show that BAGAR outperforms strong baselines on hit rate and normalized discounted cumulative gain, validating its effectiveness for complex behavior modeling.