1. Introduction
As passenger volumes continue to grow across airports, metro systems, and railways, baggage security inspection places increasing demands on detection accuracy and processing efficiency. X-ray imaging can reveal objects inside baggage without requiring physical inspection and has therefore become an important tool for prohibited item screening in public transportation systems. Conventional security screening still relies heavily on manual interpretation of X-ray images. Prolonged and repetitive inspection can be affected by visual fatigue and differences in operator experience. Automated prohibited item detection based on computer vision can help improve screening efficiency and reduce the workload associated with manual image inspection.
X-ray images differ from natural images because of their projection characteristics. Objects inside baggage are projected onto a two-dimensional plane along the X-ray direction. When multiple objects are stacked together, their projected information may overlap within the same region, causing the contours and local structures of prohibited items to become mixed with information from surrounding objects. To address object overlap in X-ray images, Wei et al. [
1] established the OPIXray dataset and introduced a de-occlusion attention module to improve feature extraction for overlapped prohibited items. Zhao et al. [
2] approached the problem from the perspective of label assignment and proposed a label-aware mechanism for detecting overlapping objects.
CNN-based detectors have been extensively investigated for prohibited item detection in X-ray imagery. Two-stage detectors generally obtain candidate regions before performing object classification and bounding-box refinement. For example, Pai et al. [
3] integrated a spatial transformer network with Faster R-CNN [
4] to study detection under severe occlusion. Single-stage YOLO detectors [
5,
6,
7,
8,
9] have also been widely adopted because of their efficient detection framework. Cheng et al. [
10] developed X-YOLO by incorporating attention and modifying the dynamic detection head of YOLOv5. Zhang et al. [
11] proposed MFPIDet, which combines multiscale feature extraction with adaptive feature fusion. Han et al. [
12] introduced SC-Lite to decrease network complexity through lightweight feature extraction, fusion, and pruning. Wang et al. [
13] developed LM-YOLOv8 based on YOLOv8-seg, using SPPF-LSKA and C2f-MSC to enhance contextual and multiscale feature representation. Zhao et al. [
14] further incorporated state space modeling into the YOLO framework and proposed Xray-YOLO-Mamba. Although these CNN-based approaches have improved feature representation and model efficiency, their feature interaction is still dominated by local convolution and hierarchical propagation. Consequently, contextual information from a wider spatial range may not be sufficiently exploited when prohibited items overlap with surrounding objects.
The self-attention mechanism in Transformer [
15] can establish relationships among different spatial positions. Alansari et al. [
16] proposed MHT-X, which combines multiscale contour information with Vision Transformer to capture the spatial structure of objects and global contextual information. Zhu et al. [
17] proposed FDTNet, which employs dual-stream architecture in the spatial and frequency domains to improve feature extraction from X-ray images. Compared with feature extraction methods dominated by local convolution, Transformers can establish relationships among regions over a broader spatial range, providing another way to use contextual information for detecting overlapping objects.
Carion et al. [
18] introduced DEtection TRansformer (DETR), bringing Transformers into end-to-end object detection and establishing one-to-one correspondence between predictions and ground truth objects through set prediction and bipartite matching. For X-ray prohibited item detection, Sima et al. [
19] proposed MSFA-DETR, which incorporates a multiscale feature extraction structure into the self-attention process and uses foreground feature sequences to improve object query initialization. Li et al. [
20] proposed AO-DETR for object overlap in X-ray images, with modifications to queries specific to each category and object localization. Although DETR-based methods improve interactions among different spatial regions, standard DETR often converges slowly and incurs relatively high computational cost, increasing the computational burden in practical security inspection scenarios.
RT-DETR [
21] was developed for real-time end-to-end Transformer detection, using an efficient hybrid encoder for multiscale feature processing and an IoU-aware query-selection mechanism to improve object-query initialization. Chen et al. [
22] subsequently applied RT-DETR to X-ray prohibited item detection and proposed X-DETR, with modifications to the backbone, AIFI encoder, and bounding box regression process.
However, when objects overlap, their projected information can become mixed within the same region, causing the contours and local structures of prohibited items to be affected by surrounding objects. In such cases, the model needs to establish relationships among different spatial regions while preserving local structures around the target. The AIFI module in RT-DETR uses self-attention to model relationships among spatial positions, whereas its feed-forward network mainly performs channel transformation independently at each position and provides limited direct interaction among neighboring spatial locations. In addition, reducing the number of parameters and computational cost while improving detection performance can lower the computational and storage requirements of the model. During feature fusion, features at different resolutions also require channel transformation and scale adjustment. To address these issues, this study develops RPR-DETR based on RT-DETR-R18, with the following main contributions:
A lightweight RGCSPELAN backbone is constructed. It combines the feature splitting strategy of CSP, the hierarchical aggregation mechanism of ELAN, and the structural reparameterization of RepConv. This design preserves features obtained at different processing depths while decreasing both the parameter count and the required computation.
A Pola-CGLU encoder is designed. Polarity-aware linear attention and CGLU are introduced into the original AIFI. The polarity-aware linear attention captures long-range relationships among different regions, while CGLU further incorporates local neighborhood information. In this way, the encoding process can make use of both global context and local structures.
An RFPN feature fusion structure is constructed. GSConvE and SNI are introduced into the fusion path for feature transformation and scale conversion, respectively, to improve information exchange among features from different levels.
2. RPR-DETR
2.1. RT-DETR-R18 Baseline
RT-DETR follows an end-to-end Transformer detection paradigm. Instead of relying on postprocessing with Non-Maximum Suppression (NMS), it formulates object detection as a set prediction problem and establishes matched pairs between predictions and ground-truth objects through bipartite matching.
In this work, RT-DETR-R18 serves as the baseline. As shown in
Figure 1, the model is composed of a ResNet18 backbone, an efficient hybrid encoder, and a Transformer decoder. ResNet18 first generates hierarchical feature maps at different stages. The high-level feature is processed by the Attention-based Intra-scale Feature Interaction (AIFI) module to model interactions within the same scale. The multi-level features are then aggregated by CCFM.
The fused encoder features are passed to the Transformer decoder for object prediction. Before decoding, RT-DETR employs an Intersection over Union (IoU)-aware query selection strategy to identify informative encoder features and use them as initial object queries. These queries are iteratively refined by the decoder layers to produce category predictions and bounding boxes.
Figure 2 summarizes the three structural changes introduced in RPR-DETR, covering the backbone, the AIFI encoder, and the cross-scale fusion path.
The three modifications are arranged at successive stages of feature processing. RGCSPELAN generates hierarchical features while reducing model complexity. The high-level S5 feature is subsequently processed by Pola-CGLU to model spatial relationships and local structural information under object overlap and occlusion. RFPN further integrates the processed high-level representation with lower-level spatial features across different scales. Together, these stages connect backbone feature extraction, high-level feature interaction, and cross-scale fusion within RPR-DETR.
2.2. Lightweight RGCSPELAN Backbone
ResNet18 obtains hierarchical representations through successive residual stages. To decrease model complexity while retaining information produced at different processing depths, RGCSPELAN is used as the lightweight backbone in RPR-DETR, as shown in
Figure 3.
RGCSPELAN integrates the feature partitioning idea of Cross Stage Partial (CSP) connections with the hierarchical aggregation strategy of the Efficient Layer Aggregation Network (ELAN). After the initial channel adjustment, the feature map is divided into a direct branch and a deeper processing branch. The latter applies RepConv and subsequent convolutions, and intermediate features produced at several depths are concatenated before the final projection to the required output channels.
By retaining feature responses from multiple processing depths, this design avoids forcing all information through convolutional paths of identical depth. The reduced intermediate channel width also limits the additional parameter and computational overhead associated with repeated convolution. RepConv further adopts structural reparameterization: a multi-branch configuration is used during optimization, whereas the learned branches are equivalently merged into a single convolution before inference. Thus, the richer training-time representation does not require a multi-branch structure during deployment.
2.3. Pola-CGLU Encoder
In X-ray images containing overlapping objects, features from neighboring objects may interfere with the representation of the contours and local structures of prohibited items. The encoder should capture dependencies over a sufficiently wide spatial range without discarding local spatial cues. In the original RT-DETR encoder, AIFI is applied to the high-level S5 feature map and performs intra-scale interaction through Multi-Head Self-Attention (MHSA). To alleviate feature ambiguity caused by object overlap and occlusion, the AIFI used in this work is reconstructed by combining the polarity-aware linear attention of PolaFormer [
23] with the Convolutional Gated Linear Unit (CGLU) [
24], resulting in the Pola-CGLU encoder shown in
Figure 4.
The MHSA in the original AIFI computes the relationships among different spatial positions using the query matrix
Q, key matrix
K, and value matrix
V:
where
dk denotes the feature dimension of a single attention head. The attention weights are obtained from pairwise interactions among spatial tokens and are used to aggregate the corresponding value features.
Traditional linear attention commonly applies nonnegative mappings, such as ReLU, to the query and key matrices, causing negative values to be truncated during the mapping process. Polarity-aware linear attention further decomposes the queries and keys according to their polarity into positive and negative components:
Here,
and
represent the scaled forms of the query and key matrices, while
p is a learnable power exponent. Different combinations of the positive and negative components are used to model relationships between features with the same or opposite polarity, allowing both components to participate in the subsequent linear attention computation. The learnable power exponent adjusts the numerical distribution of each polarity component after nonlinear mapping.
In polarity-aware linear attention, learnable positional encoding is added to the key features to preserve information from different spatial positions. The value features are processed by depth-wise convolution for local spatial modeling and are then added to the output of linear attention. The fused features are multiplied element-wise by the gating branch and subsequently passed through a linear projection to obtain the output of polarity-aware linear attention. In this way, polarity-aware linear attention models spatial relationships across the feature map while retaining a local convolutional processing path.
Although the value branch of polarity-aware linear attention already uses depth-wise convolution to process local spatial information, the original Transformer feed-forward network mainly performs channel transformation independently at each position, with limited direct information exchange among neighboring positions. CGLU is further used to replace the original feed-forward network, introducing local spatial processing into the channel transformation process.
CGLU first applies a convolution to map the input features into a new channel space and then divides them into two branches. One branch is processed by depth-wise convolution and a Gaussian Error Linear Unit (GELU) activation and is then combined with the other branch through element-wise gating. A final convolution restores the required number of output channels. The gated branch can be expressed as:
where
U and
V denote the two feature branches obtained after channel mapping,
DWConv3×3 denotes a 3 × 3 depth-wise convolution, and ⊙ denotes element-wise multiplication. The depth-wise convolution enables information exchange among neighboring spatial positions during the feed-forward process, while the gating operation controls information transfer between the two branches. The gated output is added to the original input through a residual path, yielding the final feature representation.
Pola-CGLU modifies both processing paths of the original AIFI. The attention branch establishes interactions among different spatial regions while retaining a local convolutional path, whereas CGLU introduces depth-wise-convolution-based neighborhood interaction and gated feature modulation in the feed-forward branch. The combination of the two paths enhances high-level feature representation and helps alleviate feature ambiguity caused by overlapping and partially occluded objects in X-ray images.
2.4. RFPN Feature Fusion Structure
After the high-level S5 feature is processed by Pola-CGLU, feature transformation, scale adjustment, and fusion are further performed across different feature levels. As the spatial resolutions vary across feature levels, their spatial sizes need to be adjusted before fusion. In RPR-DETR, GSConvE and SNI [
25] are introduced into the feature fusion path to construct RFPN. GSConvE is used for feature transformation and channel rearrangement, while SNI performs scale conversion between features from different levels.
GSConvE is mainly used for feature transformation in the fusion path, and its structure is shown in
Figure 5. Following the initial convolution, the resulting feature is retained as the first branch. The same feature is further processed by a standard convolution, a depth-wise convolution, and GELU activation to form the second branch. The outputs of the two branches are then concatenated along the channel dimension and rearranged using Channel Shuffle. This operation recombines features obtained at different processing depths in the output channels.
Soft Nearest Neighbor Interpolation (SNI) is adopted for scale conversion. SNI first applies nearest-neighbor interpolation and then rescales the upsampled feature according to the input-output resolution ratio. When both spatial dimensions are enlarged by a factor of
r, the operation is expressed as:
where
X and
Y denote the feature maps before and after scale conversion, respectively, and
r is the upsampling factor. SNI does not introduce learnable sampling positions or interpolation weights. Instead, it rescales the output of nearest neighbor interpolation according to the change in spatial resolution.
After feature transformation by GSConvE and scale conversion by SNI, features from different levels are fused at the corresponding spatial resolution, completing multiscale information propagation within the encoder.
3. Experiments and Results
3.1. Experimental Setup
The experiments were performed under Linux on an NVIDIA A800 GPU with 80 GB of memory. The implementation used Python 3.10.14, PyTorch 2.2.2, and CUDA 12.2. During training, images were resized to 640 × 640. A batch size of 4 was used, and optimization was performed with AdamW for 100 epochs using an initial learning rate of 0.0001. For all models trained in this study, training was performed from scratch without pretrained weights. Unless otherwise stated, the same training configuration was used for the comparative and ablation experiments.
For the efficiency evaluation, the batch size was set to 1 with an input size of 640 × 640. Single-image inference latency and peak GPU memory usage were measured. Latency refers to the model inference time per image, excluding preprocessing and post-processing, while peak GPU memory denotes the maximum allocated GPU memory during inference.
3.2. Datasets
Two publicly available X-ray prohibited-item detection datasets, OPIXray and DvXray, were used in the experiments. OPIXray was used for the main comparative experiments, occlusion-level evaluation, and ablation studies, while DvXray was used to further evaluate the detection performance of the proposed model.
OPIXray [
1] provides 8885 X-ray images distributed among five prohibited-item categories: Straight Knife, Multi-tool Knife, Folding Knife, Utility Knife, and Scissor. Its official split contains 7109 training images and 1776 test images. For the experiments in this study, 710 samples were taken from the official training partition as the validation set, resulting in 6399 training images, 710 validation images, and 1776 test images. The official test set is divided into three subsets according to the degree of occlusion: OL1, OL2, and OL3, containing 922, 548, and 306 images, respectively. These three subsets together constitute the complete test set.
DvXray [
26] consists of 16,000 dual-view sample pairs, corresponding to 32,000 X-ray images, and contains 15 prohibited-item categories such as firearms and knives. The official test partition was kept unchanged, and a subset of the original training data was separated to form the validation set.
3.3. Evaluation Metrics
The models are evaluated in terms of detection performance, model complexity, and runtime efficiency. Precision (
P), Recall (
R), mAP50, and mAP50:95 are used to evaluate detection performance, while Params and floating-point operations (FLOPs) characterize model complexity. Single-image inference latency and peak GPU memory usage are additionally reported to evaluate runtime efficiency. Equations (5)–(8) provide the definitions of Precision, Recall, category-level average precision, and mean average precision.
In these equations, TP, FP, and FN correspond to true-positive, false-positive, and false-negative predictions, respectively, and n is the number of object categories. mAP50 denotes mean AP at an IoU threshold of 0.5, whereas mAP50:95 is obtained by averaging mAP over IoU thresholds from 0.5 to 0.95 at intervals of 0.05. Params indicate the total number of model parameters, whereas FLOPs are used to characterize the computational requirement of one forward pass.
3.4. Comparative Experiments on the OPIXray Dataset
To evaluate the overall detection performance of RPR-DETR, the proposed model is compared with several YOLO and RT-DETR models, as shown in
Table 1. Except for RT-DETR (HGNetV2), all models were retrained using the data split described in
Section 3.2. The result of RT-DETR (HGNetV2) was taken from the original study, which used the official 7109-image training set. All results in
Table 1 were evaluated on the same official OPIXray test set of 1776 images.
Compared with RT-DETR-R18, RPR-DETR increases Precision, Recall, and mAP50 from 91.6%, 88.7%, and 88.8% to 93.1%, 89.1%, and 90.0%, respectively, while mAP50:95 increases from 40.8% to 41.1%. The proposed model contains 13.7 M parameters and requires 44.1 G FLOPs, compared with 19.9 M parameters and 57.0 G FLOPs for RT-DETR-R18, corresponding to reductions of 31.2% and 22.6%.
Relative to RT-DETR-R34, RPR-DETR increases mAP50 from 89.6% to 90.0%, while reducing the parameter count from 31.1 M to 13.7 M and FLOPs from 88.8 G to 44.1 G. Compared with the listed YOLO models, RPR-DETR achieves lower mAP50:95, but higher Precision, Recall, and mAP50. In particular, its Precision and mAP50 reach 93.1% and 90.0%, respectively, which are the highest values in
Table 1. Its number of parameters and FLOPs are also lower than those of the listed YOLO models.
As shown in
Table 2, RPR-DETR achieves a single-image inference latency of 32.7 ms, which is close to the 32.3 ms of RT-DETR-R18. Its peak GPU memory usage decreases from 0.243 GB to 0.202 GB, corresponding to a reduction of approximately 16.9%. These results further demonstrate the lightweight characteristics of RPR-DETR, as the model reduces computational complexity and GPU memory usage without a substantial increase in inference latency.
Table 3 further reports the AP50 results for individual prohibited-item categories. The results of AEFNet, GADet-L, FDTNet, and AO-DETR are taken from the corresponding publications. Since their training and evaluation protocols are not fully consistent with those used in this study, these results are included as literature-based references.
Compared with RT-DETR-R18, RPR-DETR improves AP50 by 1.7, 3.2, and 1.0 percentage points for Multi-tool Knife, Folding Knife, and Scissor, respectively. The largest improvement is observed for Folding Knife, while the performance on Straight Knife remains nearly unchanged, and AP50 for Utility Knife decreases by 0.2 percentage points. The overall mAP50 increases from 88.8% to 90.0%. Compared with the other methods listed in
Table 3, RPR-DETR achieves the highest AP50 for Folding Knife and the highest overall mAP50.
3.5. Performance Under Different Occlusion Levels
To further evaluate the detection performance under different occlusion conditions, RT-DETR-R18 and RPR-DETR were tested on the OL1, OL2, and OL3 subsets of OPIXray. The same trained models were directly evaluated on each subset without additional training or parameter adjustment. The results are shown in
Table 4.
As shown in
Table 4, the performance difference between the two models is relatively limited under OL1 and OL2. On OL1, RPR-DETR improves mAP50 from 90.7% to 91.3%, while the other metrics remain close to those of RT-DETR-R18. On OL2, Precision and mAP50:95 increase from 90.1% and 39.5% to 91.9% and 40.7%, respectively, whereas Recall and mAP50 show slight decreases.
A more evident difference is observed on OL3. Compared with RT-DETR-R18, RPR-DETR improves Precision from 90.2% to 92.1%, Recall from 82.7% to 86.2%, and mAP50 from 86.0% to 89.2%, corresponding to gains of 1.9, 3.5, and 3.2 percentage points, respectively, while mAP50:95 remains unchanged at 38.7%. The larger gains under OL3 indicate that the advantage of RPR-DETR becomes more evident under severe occlusion, particularly in Recall and mAP50.
3.6. Module Comparison and Ablation Studies
3.6.1. Comparison of Different Backbones
To evaluate candidate lightweight backbones for this task, RGCSPELAN was compared with ConvNeXtV2, MobileNetV4, and EfficientViT in terms of detection performance and computational cost, while the remaining network structure and training settings were kept unchanged. The results are shown in
Table 5.
As shown in
Table 5, RGCSPELAN achieves a Precision of 92.1%, a Recall of 88.7%, an mAP50 of 89.2%, and an mAP50:95 of 41.0%, all of which are the highest among the candidate backbones. EfficientViT has the lowest number of parameters and FLOPs, but its mAP50 is only 85.3%. Although ConvNeXtV2 requires fewer FLOPs, its mAP50 and mAP50:95 are 87.9% and 40.2%, respectively, both lower than those of RGCSPELAN. Considering the detection metrics, number of parameters, and FLOPs, RGCSPELAN is selected as the backbone of the proposed model.
3.6.2. Evaluation of Feature Fusion Structures
To evaluate different feature fusion structures, RFPN was compared with HWD, CARAFE, and WaveletPool in terms of detection performance, parameter count, and FLOPs, while all other network components and training settings were kept unchanged. The results are presented in
Table 6.
As shown in
Table 6, CARAFE achieves the highest Precision and mAP50:95, whereas RFPN achieves the highest Recall and mAP50, reaching 89.2% and 89.5%, respectively. The FLOPs of RFPN are 56.4 G, slightly higher than those of HWD but lower than those of CARAFE and WaveletPool. Considering Recall, mAP50, and FLOPs, RFPN is selected as the feature fusion structure in the proposed model.
3.6.3. Ablation Study
To evaluate the contribution of each proposed module, RT-DETR-R18 was used as the baseline, and RGCSPELAN, Pola-CGLU, and RFPN were individually introduced into the baseline. Different combinations of these modules were also evaluated on OPIXray.
Table 7 summarizes the corresponding ablation configurations.
With RGCSPELAN alone, mAP50 reaches 89.2% compared with 88.8% for the baseline, while Params and FLOPs change from 19.9 M and 57.0 G to 13.8 M and 44.5 G, respectively. This result shows that RGCSPELAN reduces the number of parameters and computational cost while maintaining detection performance. When Pola-CGLU is used alone, Precision increases to 92.9% and mAP50 reaches 89.2%. With RFPN alone, Recall and mAP50 reach 89.2% and 89.5%, respectively. These results indicate that RGCSPELAN mainly contributes to model lightweighting, Pola-CGLU enhances feature interaction in the encoder, and RFPN improves cross-scale feature fusion.
The combined-module results indicate that the effects of the three modifications are not simply additive. RGCSPELAN changes the hierarchical feature representations generated by the backbone, while RFPN subsequently performs cross-scale transformation and fusion on these features. In the configuration combining RGCSPELAN and RFPN, the original AIFI is retained, and the resulting mAP50 of 89.1% is slightly lower than the 89.5% obtained with RFPN alone, showing that modifications to feature extraction and cross-scale fusion do not necessarily produce cumulative gains. Pola-CGLU replaces the original AIFI for processing the high-level S5 feature and introduces additional feature interaction before cross-scale fusion. By combining spatial relationship modeling with local neighborhood interaction, the S5 feature generated by the modified backbone is further processed before entering RFPN. With all three modifications enabled, mAP50 reaches 90.0%, the highest among the ablation configurations. Although the configuration combining Pola-CGLU and RFPN achieves a slightly higher mAP50:95 of 41.5%, RPR-DETR reduces the number of parameters to 13.7 M and FLOPs to 44.1 G while achieving the highest mAP50. Accordingly, RPR-DETR was selected based on the overall balance between detection performance and model complexity rather than the best result on a single evaluation metric.
3.7. Validation on the DvXray Dataset
RPR-DETR was further evaluated on DvXray to examine its performance on a second X-ray security inspection dataset, with the corresponding results summarized in
Table 8.
On DvXray, RPR-DETR obtains 94.7% Precision, 85.6% Recall, 90.8% mAP50, and 73.7% mAP50:95, as reported in
Table 8. Compared with RT-DETR-R18, these values are higher by 1.6, 0.6, 1.4, and 2.4 percentage points, respectively. Its parameter count and FLOPs decrease from 19.9 M and 57.0 G to 13.7 M and 44.1 G, respectively. RPR-DETR also provides the highest Precision, Recall, mAP50, and mAP50:95 among the listed YOLO models while requiring fewer parameters and FLOPs. These results show that the performance gains of RPR-DETR are maintained on a second X-ray security inspection dataset.
3.8. Detection Results and Visualization Analysis
To visually compare the detection performance of the two models on X-ray images, representative samples with noticeable object overlap or densely distributed surrounding objects are selected from the OPIXray and DvXray datasets.
Figure 6 and
Figure 7 present the detection outputs and Grad-CAM response maps of RT-DETR-R18 and RPR-DETR on OPIXray and DvXray, respectively. In the Grad-CAM heatmaps, colors from blue to red indicate increasing response intensity. The target layers for heatmap visualization were the final P3, P4, and P5 feature maps before the RT-DETR decoder, corresponding to layers 19, 22, and 25 in RT-DETR-R18 and layers 20, 23, and 26 in RPR-DETR.
As shown in
Figure 6 and
Figure 7, RT-DETR-R18 produces several false detections, missed detections, and redundant predictions in the selected samples, whereas RPR-DETR produces fewer such errors. The Grad-CAM heatmaps show that, for some samples, the highlighted regions of the baseline model extend to objects surrounding the target. In contrast, the highlighted regions of RPR-DETR are more concentrated on the prohibited items and their contours. These results indicate that RPR-DETR focuses more closely on prohibited item regions in the selected samples with object overlap and dense surrounding objects.
4. Conclusions
This study presents RPR-DETR, an improved RT-DETR-R18 detector obtained by redesigning the backbone, AIFI encoder, and cross-level feature fusion process. RGCSPELAN is used to decrease model complexity while retaining representations from different processing depths. Pola-CGLU combines polarity-aware attention with local convolutional processing to model interactions among different spatial regions while retaining neighborhood information during encoding. In the fusion stage, GSConvE and SNI modify feature transformation and scale conversion across different levels.
RPR-DETR achieves 90.0% mAP50 on OPIXray, exceeding RT-DETR-R18 by 1.2 percentage points, while the number of parameters and FLOPs are reduced by 31.2% and 22.6%, respectively. Under the most severe OL3 occlusion condition, Recall and mAP50 improve by 3.5 and 3.2 percentage points over RT-DETR-R18, respectively. The peak GPU memory usage is reduced by approximately 16.9%, while the single-image inference latency remains comparable to that of the baseline. On DvXray, RPR-DETR records 90.8% mAP50 and 73.7% mAP50:95, improving on RT-DETR-R18 by 1.4 and 2.4 percentage points, respectively. The ablation experiments further verify the roles of the three introduced components. Qualitative detection examples show fewer missed, false, and redundant predictions in the selected samples, while Grad-CAM results indicate that the response regions of RPR-DETR are more concentrated around prohibited items and their contours.
Future research will investigate deployment and inference performance on practical security inspection equipment and evaluate detection stability under different operating environments.