1. Introduction
Security screening is a critical component of passenger safety in transportation systems. However, dangerous goods detection in X-ray security images still relies heavily on manual inspection in many practical scenarios. This paradigm has two major limitations: (1) prohibited items are often overlapped or occluded by other objects in X-ray images, which increases recognition difficulty; and (2) prohibited items occur with low probability, so inspectors are exposed to large numbers of negative samples, which can cause fatigue and reduced attention during prolonged operation. These factors degrade both detection accuracy and inspection efficiency, making automated dangerous goods recognition in X-ray imagery an important research problem.
With the development of machine vision and deep learning, X-ray dangerous goods detection has gradually shifted from handcrafted feature-based methods to deep learning-based approaches. Early studies mainly focused on feature representation optimization. For example, BoVW-based methods encode local features into global statistical histograms to improve robustness and classification efficiency, and category-oriented feature clustering further enhances semantic discriminability in complex scenes [
1]. Subsequently, CNN-based detectors have been introduced to X-ray security inspection. DML-Net improves occluded prohibited item detection through enhanced appearance representation and cross-dataset domain alignment [
2], while STN + Faster R-CNN improves recall under severe occlusion by dynamic geometric correction [
3]. Transformer- and attention-based methods further improve global context modeling and feature weighting, such as MHT-X [
4] and DGDN [
5].
Due to their real-time advantages, YOLO-series models have become a mainstream direction in X-ray security inspectionp [
6,
7,
8,
9]. A series of studies have improved YOLOv4/v5/v8 variants by introducing attention mechanisms, feature pyramid redesign, Transformer modules, and edge-enhanced structures [
10,
11,
12,
13]. These methods achieve promising detection performance on datasets such as SIXray, OPIXray, CLCXray, and PIDray. However, most existing works primarily focus on object detection accuracy, while the instance-level segmentation of dangerous goods in dense and occluded X-ray scenes remains insufficiently addressed.
The difficulty of X-ray instance segmentation is rooted in the imaging mechanism and scene complexity. X-ray imaging projects multiple objects onto a 2D plane, causing superposition of pixel responses rather than clean foreground–background separation. As a result, occlusion affects segmentation in three ways: (i) boundary discriminability is weakened because mixed responses reduce local gradient consistency, leading to mask adhesion or contour leakage; (ii) visible regions become incomplete, which breaks object shape integrity and weakens shape-prior-based feature aggregation; and (iii) dense overlap intensifies feature competition among neighboring instances, causing inconsistency across classification, localization, and mask prediction. These effects are typically reflected in lower recall and poorer mask quality metrics (e.g., mAP50-95), especially on hard/hidden subsets.
YOLOv8-seg is an efficient single-stage real-time instance segmentation model and is therefore a suitable baseline for online X-ray security inspection. It generates shared mask prototypes and combines them with instance-specific coefficients to directly output instance masks, enabling collaborative optimization of detection and segmentation. Nevertheless, in X-ray hazardous object segmentation, YOLOv8-seg still has application-specific deficiencies. First, the original SPPF module mainly performs multi-scale local pooling and has limited ability to model long-range spatial dependencies, which is unfavorable for separating densely overlapped object boundaries. Second, although the C2f structure is computationally efficient, it is not specifically designed to suppress feature redundancy and preserve discriminative multi-scale cues in multi-material X-ray images, which may degrade segmentation quality in complex scenes. Third, many existing improvements report overall detection gains but do not explicitly target security-screening-specific segmentation challenges, such as occlusion robustness and mask boundary quality.
To address these issues, this paper proposes LM-YOLOv8, an improved YOLOv8-seg-based instance segmentation model for dangerous goods detection in X-ray security images. The design follows a problem-driven strategy: enhancing long-range context modeling for occluded instance separation and improving multi-scale discriminability while reducing feature redundancy in multi-material scenes. Specifically, an SPPF-LSKA composite module is introduced to strengthen global spatial perception and boundary discrimination under occlusion with controlled computational overhead; in addition, a C2f-MSC module is designed to decouple feature paths and perform heterogeneous multi-scale parsing, thereby improving contour preservation and texture-detail representation.
The remainder of this paper is organized as follows.
Section 2 presents the proposed LM-YOLOv8 framework and describes the designs of the SPPF-LSKA and C2f-MSC modules in detail.
Section 3 introduces the experimental settings, dataset, comparative results, and ablation studies.
Section 4 further discusses the effectiveness of the proposed method through visualization analysis and receptive field analysis in complex X-ray security inspection scenarios. Finally,
Section 5 concludes this paper and outlines possible directions for future work.
The main contributions of this work are as follows:
1. An SPPF-LSKA module is designed to compensate for the limited long-range dependency modeling of the original SPPF in dense occlusion scenarios, improving global context aggregation and occlusion-aware boundary separation while maintaining efficiency.
2. A C2f-MSC module is proposed to address feature redundancy and insufficient multi-scale discriminability in multi-material X-ray images by channel decoupling and heterogeneous convolution-based multi-branch parsing.
2. Materials and Methods
In order to more accurately detect the location and shape information of dangerous goods, this paper constructs an improved X-ray image dangerous goods detection model based on YOLOv8 seg, as shown in
Figure 1. This model improves the detection ability of hazardous materials in X-ray images combined with YOLOv8-seg and the contributions are summarized as follows:
1. The traditional SPPF module extracts local detail features through multi-scale pooling, but it is difficult to establish long-range spatial dependencies of hazardous materials in X-ray images (such as correlations between multiple objects inside the package). To this end, this study combines SPPF with separable large kernel attention LSKA: the SPPF module preserves the geometric structure of small targets through multi-scale pooling, while the LSKA module adopts an axial decomposition strategy to split the traditional two-dimensional large convolution kernel into one-dimensional convolution kernels in horizontal and vertical directions, reducing computational complexity while building global spatial perception capability.
2. Due to the large differences in material attenuation and complex texture in X-ray images, the static multi branch structure of traditional C2f modules is difficult to adaptively distinguish the characteristics of different hazardous materials such as metals and liquids. The C2f-MSC proposed in this study adopts a channel decoupling strategy to split the input features into native paths and multi-scale parsing paths. The native path directly transmits the original attenuation coefficient distribution to avoid the loss of key information; multi-scale paths extract local details and wide domain context in parallel through 3 × 3 and 5 × 5 heterogeneous convolutions; and the dynamic fusion stage balances the contribution of different material features through a weight adaptive mechanism.
2.1. SPPF-LSKA Module
In X-ray detection scenarios, in order to handle complex object overlapping and severe occlusion, it is usually necessary to simultaneously focus on local details and global information. The traditional Spatial Pyramid Pooling (SPP) module obtains multi-scale feature information through multi-scale pooling. However, when dealing with small objects or occluded areas, these modules still face challenges in fully extracting global information. YOLOv8′s Spatial Pyramid Pooling Fusion (SPPF) incorporates feature fusion mechanisms on the basis of SPP, which improves perception and detection performance to a certain extent. However, it still lacks attention to global context, especially in the presence of common multi-target overlap and redundant local details in X-ray images. The SPPF network structure is shown in
Figure 2.
To address the challenge of remote dependency modeling caused by severe occlusion in X-ray security images, this section combines the Large Separable Kernel Attention (LSKA) mechanism to enhance the network’s global perception capability [
14]. However, traditional large kernel convolution and multi head self-attention face significant challenges in practical applications: as the size of the convolution kernel increases, the computational complexity increases nonlinearly, and a complete two-dimensional large kernel convolution requires storing a large number of weight parameters, resulting in slower detection speed. In addition, a single expansion convolution strategy is difficult to effectively balance the contradiction between receptive field expansion and feature resolution preservation.
To address the aforementioned issues, this section proposes an innovative architecture for SPPF-LSKA, as shown in
Figure 3. This scheme achieves efficient feature extraction through a three-stage decomposition strategy: first, deep convolutional layers are used to obtain local spatial features, and channel independent calculations are used to reduce parameter coupling; subsequently, an expanded convolutional layer is introduced to broaden the feature capture range, and the interval sampling mechanism is utilized to break through the perceptual limitations of conventional convolution; and by adopting an axial decomposition design, the traditional two-dimensional convolution kernel is decoupled into cascaded horizontal and vertical one-dimensional convolution kernels, significantly reducing the computational dimension while maintaining the completeness of feature extraction. Compared to the standard LSKA, SPPF-LSKA reduces redundant weight storage through parameter sharing mechanisms and optimizes matrix operation efficiency with a separated convolution structure. This structural reorganization enables it to exhibit unique advantages in the complex scenes unique to X-ray security images, including multi-level occlusion resolution of objects inside the package, suppression of scattering noise from metal objects, and enhancement of edge features of densely stacked objects.
To clarify the efficiency of the proposed SPPF-LSKA, we compare its computational complexity with the original LSKA under the same input feature size. Let the input feature map be . We report complexity in FLOPs, where one multiplication and one addition are counted separately (i.e., ).
For a depthwise convolution with kernel size
, the parameter counts and FLOPs are:
For a pointwise convolution (
) with identical input/output channels
, the parameter counts and FLOPs are:
The original LSKA branch is implemented by an axial pair of depthwise convolutions
and
, followed by a
projection. Its complexity is:
SPPF-LSKA introduces two additional depthwise stages (a depthwise
and a dilated depthwise
; dilation does not change parameter count), followed by the same axial
and
depthwise operations and a
projection. Therefore:
Thus, the incremental overhead of SPPF-LSKA over LSKA is:
which indicates that the additional cost comes only from the two extra depthwise
stages and scales linearly with
and
. Since the SPPF stage is typically at a relatively low spatial resolution in YOLOv8-seg, this overhead remains limited in practice while improving contextual aggregation.
For
,
, and
:
2.2. C2f-MSC Module
To solve the serious occlusion problem in X-ray security inspection images, we propose a novel multi-channel multi-scale interactive convolution C2f-MSC. X-ray images typically contain complex textures and stacked objects, making object detection particularly difficult. Our method aims to reduce the redundancy of feature maps, decrease computational complexity and parameter count, while enhancing the network’s ability to capture multi-scale information, which is crucial for detecting occluded objects.
Figure 4 shows the structural design of the C2f-MSC layer.
In object detection tasks, feature maps that have undergone convolution operations typically contain redundant information [
15]. These feature maps include both high-frequency edge information and low-frequency overall contour information. By reasonably segmenting and interacting with these features across channels, the recognition ability of occluded targets can be improved while reducing computational complexity [
16]. As shown in
Figure 5, in the YOLOv8 network, there are multiple similar feature maps extracted from the first convolutional layer that can be observed, one of which can be generated by linear transformation of the other.
To this end, we propose a C2f-MSC module for achieving multi-scale interaction across channel dimensions while reducing computational complexity. In Equations (8)–(12), the input feature map is evenly partitioned along the channel dimension. This equal partition is adopted as a balanced default design rather than a claim of theoretical optimality. The rationale is threefold: First, equal partitioning maintains comparable channel capacity for the native path and the multi-scale parsing path, which avoids biasing feature allocation toward either feature preservation or feature transformation at initialization. Second, under fixed total channels, equal splitting provides a simple and stable implementation without introducing an additional ratio hyperparameter, which helps control model complexity and improves reproducibility. Third, it preserves regular tensor shapes and facilitates efficient parallel computation in the proposed multi-branch structure.
The specific principle is as follows:
Assuming the input feature map
, first divide it evenly along the channel dimension into two parts:
Among them,
retained the original features and only transmitted through residual connections, with a computational complexity of 0; and
further is split into two sub channel groups:
Among them, 3 × 3 and 5 × 5 convolutions are used for processing
, forming
:
Finally,
are concatenated along the channel dimension and fuses through a 1 × 1 convolution:
In the YOLOv8-based object detection framework, we construct an adaptive feature extraction architecture for X-ray security imaging characteristics by using C2f-MSC modules. In response to the common problems of multi material attenuation projection superposition and target edge blurring in X-ray penetration imaging, this design adopts a channel decoupling strategy to divide the input features into native paths and multi-scale analytical paths: the former preserves the original attenuation coefficient distribution characteristics to maintain information integrity in low signal-to-noise ratio environments, while the latter extracts local detail gradients and wide domain spatial correlations in parallel through heterogeneous convolution groups (3 × 3 and 5 × 5 kernels), effectively decoupling the material boundary fusion phenomenon caused by spectral hardening effects. The dynamic feature fusion stage achieves feature fusion through 1 × 1 convolution, adaptively balancing the high-frequency edge responses of metal products with the continuous attenuation feature contribution of organic regions.
To verify its effectiveness in reducing complexity, we will now compare and analyze the computational complexity between the MC-Conv convolution in the C2f-MSC model and the traditional convolution model.
Assuming the dimension of the input feature map is
. The computational complexity of performing 3 × 3 and 5 × 5 convolutions on a quarter channel is:
The complexity of traditional full-channel multi-scale convolution methods is:
The total complexity of MC-Conv is:
The second item corresponds to a 1 × 1 convolution operation, which shows that C2f-MSC significantly reduces computational costs while maintaining feature diversity.
Note that the standard convolution cost is . In Equations (13)–(16), each multi-scale branch processes only channels (thus for the branch), and the missing cross-channel mixing is captured by the final fusion term in Equation (16).
3. Results
To verify the effectiveness of the proposed model in X-ray security inspection scenarios, this section evaluates its detection accuracy, robustness, and detection speed through multiple sets of comparative experiments. The experiment covers baseline model comparison, ablation experiments, and in-depth analysis through visualization.
3.1. Experimental Environment and Dataset Description
The experimental environment of this study is built on PyCharm 2023.1 IDE (JetBrains s.r.o., Prague, Czech Republic). The model architecture is constructed using PyTorch 2.0.1 deep learning framework (Meta Platforms Inc., Menlo Park, CA, USA). The hardware platform is configured with an Intel Core i5-13490F CPU (turbo 4.8 GHz; Intel Corporation, Santa Clara, CA, USA) combined with an NVIDIA GeForce RTX 4070 graphics card (12 GB GDDR6X memory; NVIDIA Corporation, Santa Clara, CA, USA), and GPU-accelerated computing is achieved through CUDA 11.8 (NVIDIA Corporation, Santa Clara, CA, USA). The model training is conducted for a total of 300 epochs, with a batch size set to 32. The input images are uniformly scaled to a resolution of 640 × 640 pixels. We use a standard SGD-based optimization with momentum and weight decay, together with a learning-rate schedule including warm-up. Mixed-precision training is enabled to accelerate training and reduce memory usage. Data augmentation includes random flips, scale/translation, and color jitter following the default training pipeline. For inference, NMS is applied with fixed confidence and IoU thresholds.
To further explore the precise localization of hazardous materials, a dataset containing pixel level instance segmentation annotations is required. Although existing datasets have made significant progress in object detection tasks, such as SIXray containing over one million weakly annotated samples and OPIXRay focusing on tool classification optimization, only the PIDray dataset provides pixel level instance segmentation annotations. This fine-grained annotation plays a crucial role in accurately identifying the contour and spatial distribution of hazardous materials. Based on this, this study chooses PIDray as the core benchmark dataset for algorithm validation. The PIDray dataset was constructed by the State Key Laboratory of Computer Science of the Software Research Institute of the Chinese Academy of Sciences [
17], covering 12 kinds of dangerous goods commonly seen in X-ray security images, and each image contains at least one dangerous goods with the notes of bounding box and mask. The test set of this dataset is divided into three subsets, namely easy, hard, and hidden. The hidden subset focuses on prohibited items intentionally hidden in cluttered objects (such as changing the shape of items by wrapping wires). The PIDray dataset is divided as shown in
Table 1 and
Figure 6.
In X-ray security inspection, dangerous goods are difficult to accurately detect due to image distortion caused by false color monotony, blurry small target features, overlapping occlusion of items, and imaging angle deviation. The dataset examples are shown in
Figure 7.
3.2. Comparative Experiments and Analysis
To verify the detection performance of the improved YOLOv8 algorithm on X-ray dangerous goods images, this study compared the proposed algorithm with mainstream object detection algorithms such as YOLOv11, YOLOv8, and YOLACT on the PIDray dataset, as shown in
Table 2.
To ensure a fair comparison among YOLOv8, YOLOv11, and YOLACT in
Table 2, we trained all models using the same training configuration, including the same epochs, batch size, input resolution, and augmentation pipeline. Pretrained weights were not used; all models were trained from scratch. Moreover, we did not optimize hyperparameters separately for each model—a single fixed set of hyperparameters was applied to all methods to maintain comparability.
As shown in
Table 2, the improved YOLOv8 algorithm exhibits significant performance improvement on the PIDray dataset. This algorithm outperforms YOLOv11 and the original YOLOv8 in all four core metrics, with an accuracy of 83.5%, which is 3.2 and 3.7 percentage points higher than YOLOv11 and YOLOv8, respectively; likewise, the recall rate increased to 80.8%, which is 1.3% and 2.9% higher than YOLOv11 and YOLOv8, respectively. In terms of positioning accuracy, the improved model achieved 84.8% and 63.0% on mAP50 and mAP50-95 metrics, respectively.
The training results for each category are shown in
Table 3 and the improved algorithm exhibits differentiated detection performance for different forms of prohibited items. The mAP50 of baton, pliers, hammer, and handcuffs are all above 99.0%; due to flat structure and frequent occlusion issues, the mAP50 of cutting tools is 48.5%, and their precision is 59.0%. Handcuffs, with their clear geometric features, have a mAP50-95 index of 78.5%. The algorithm has an mAP50 of 84.8% and an mAP50-95 of 63.0% on the 12 hazardous materials in the PIDray dataset.
The training results on the hidden subset are shown in
Table 4. To verify that the improvements in
Table 4 are not due to randomness, we repeated each experiment with multiple random seeds and reported the results as mean ± standard deviation. We further conducted statistical validation on the hidden subset using a paired significance test (and bootstrap confidence intervals), which indicates that the performance gains remain consistent across runs. Compared to YOLOv8n, LM-YOLOv8 has improved accuracy in the hidden subset, with precision increasing by 1.9%, recall increasing by 2.6%, mAP50 increasing by 4.1%, and mAP50-95 increasing by 7.4%.
3.3. Ablation Experiments
For the object detection combined with instance segmentation task of hazardous materials in X-ray security inspection images, this study verified the effectiveness of the algorithm improvement through systematic control variable experiments. The results of the ablation experiment are shown in
Table 5.
In the ablation experiment design, A represents the C2f-MSC module and B represents the SPPF-LSKA module. YOLOv8 achieved an mAP50 score of 80.8% without introducing any improvement modules. After integrating the C2f-MSC module separately, the model achieved an mAP50 of 82.6% through a multi-scale feature fusion mechanism, an increase of 1.8 percentage points; the introduction of the SPPF-LSKA module was achieved through a hierarchical space kernel aggregation strategy, resulting in a 1.1 percentage point increase in mAP50 to 81.9%. When the two types of improved modules work together, the model exhibits significant performance synergy, with mAP50 reaching 84.8%, which is four percentage points higher than YOLOv8. At the same time, the synchronous optimization of both the average accuracy (83.2%) and the recall rate (80.3%) verifies the robustness of the algorithm in dense occlusion scenes.
To provide a more intuitive analysis of the collaborative optimization effect of each functional module on model performance,
Figure 8 presents the changes in mAP, precision, and recall of module A, module B, and their combined forms on the PIDray dataset in the form of a line graph through ablation experiments.
The visualization analysis of the training process further reveals the advantageous characteristics of the improved model. As shown in
Figure 9a, the mAP curve of the improved model enters a stable convergence stage after 150 epochs, which is 37% earlier than YOLOv8′s training period (reduced from 240 epochs to 150 epochs), and the peak mAP50 reaches 84.8%, an increase of 5.2 percentage points compared to YOLOv8. The loss curve is shown in
Figure 9b, and the improved model has a lower loss compared to the original YOLOv8 model.
4. Discussion
To evaluate the optimization effect of the system evaluation model, this study verified the effectiveness of the improvement strategy through multidimensional visualization comparative experiments.
Figure 4,
Figure 5,
Figure 6 and
Figure 7 shows the performance evolution process of occlusion target detection, single target recognition, and multi-target occlusion scenarios. The first row is labeled with visualized images from the dataset, the second row is the baseline model detection results, the third row is the detection results after adding C2f-MSC, the fourth row is the detection results after adding SPPF-LSKA, and the fifth row is the detection results using both modules simultaneously.
Figure 4,
Figure 5,
Figure 6,
Figure 7 and
Figure 8 intuitively reveals the optimization mechanism of the algorithm’s focus area through heat map analysis.
1. Performance analysis of single object detection in complex scenarios.
For a single target scenario, as shown in
Figure 10a, the baseline model achieved a confidence level of 84.0%. The Cf MSC module enhances the confidence level to 86% through boundary detail enhancement network; by integrating two improvement strategies, a confidence level of 89.0% was achieved, verifying the effectiveness of the local global feature joint optimization mechanism.
2. Performance analysis of occlusion target detection.
In the occluded scene, as shown in
Figure 10b, the baseline model did not detect the occluded scissors due to insufficient feature extraction ability. By introducing the C2f-MSC module, the model successfully detected the scissors but achieved a low confidence level of 29.0%. The final model successfully detected scissors through the synergistic effect of two improvement points, with a confidence level of 48.0%, which was 19% higher than the case of one improvement point.
3. Performance analysis of multi-scale and multi-target detection.
In the multi-target occlusion experiment, as shown in
Figure 10c, the baseline model only detected one hazardous substance, the baton, and achieved a confidence level of only 36.0%. After introducing the C2f-MSC module, two hazardous materials were detected, namely the baton and bullet, with confidence levels of 54.0% and 39.0%, respectively. After introducing the SPPF-LSKA module, the confidence level of the baton was improved, achieving a confidence level of 62.0%. The final model successfully achieved full object recognition, fully verifying the key role of C2f-MSC and SPPF-LSKA modules in complex scenes, providing a better solution for occlusion target detection.
The heat maps of the baton and bullets are shown in
Figure 11.
Figure 11b is the heat map obtained from the baseline model, and
Figure 11c is the heat map obtained from the improved model. The baseline model has a significant feature dispersion problem, with relatively scattered hotspot areas and multiple scattered small hotspots. The algorithm’s attention was relatively vague, indicating a relatively weak recognition ability. The improved model achieved cross-scale feature interaction through heterogeneous kernel group parallel computing using the SPPF-LSKA module. It detected hotspots that were clearly concentrated within the target object area, with precise and clear focus on the attention points, indicating that the model can effectively focus on target features.
The experimental results have shown that the collaborative optimization of local feature extraction and global dependency modeling can effectively improve the performance of occlusion target detection; multi-scale attention mechanism can significantly improve feature focusing ability on complex scenes. The comprehensive performance improvement of the improved model in single target, multi-objective, and occlusion scenes validated the universality of the algorithm design.
To verify whether the original SPPF can provide sufficient contextual coverage under severe occlusion and whether the proposed SPPF-LSKA can enlarge the receptive field effectively, we visualized the effective receptive field (ERF) of the two modules. Specifically, we backpropagated the gradient from a fixed spatial position on the module output to the input feature map and accumulated the absolute gradient magnitude, then normalized it into a heatmap. The colors in the
Figure 12 are used to represent the intensity distribution of gradient response in ERF, usually visualized as a heatmap by normalizing the absolute values of the backpropagation gradient. The color ranges from light yellow to dark green, representing the response intensity from weak to strong.
Figure 12 shows that the ERF of the original SPPF is highly concentrated around the center (a), indicating that the response is dominated by local neighborhoods. In contrast, SPPF-LSKA exhibits a noticeably broader and more spatially distributed ERF (b), demonstrating that the module can integrate information from a wider region and thus provides stronger contextual aggregation, which is beneficial for recognizing partially occluded objects.
5. Conclusions
This article focuses on the requirements of dangerous goods detection tasks in X-ray security inspection scenarios, using the YOLOv8 seg algorithm as the basis, and focuses on solving the segmentation accuracy problems caused by complex occlusion, multi-target overlap, and material texture differences. Comparative experiments on the PIDray dataset show that the key indicator mAP50 of the improved model is 84.8%, which is 4.0% higher than the original YOLOv8, and mAP50-95 is increased to 63.0%. The experimental results show that the collaborative optimization strategy of integrating local detail enhancement and global dependency modeling can effectively improve the accuracy of instance segmentation in complex scenes of X-ray security inspection images. The method proposed in this paper has achieved good results for the detection of hazardous materials in X-ray security checks, but the practical application of these algorithms still needs to be continuously improved and validated. Additionally, the YOLOv8-seg network can be pruned to achieve faster detection speed without compromising accuracy.
In dense X-ray occlusion scenes, boundary ambiguity is often caused by superimposed responses and incomplete visible regions. The SPPF-LSKA module improves contextual aggregation over a larger spatial interaction range, which helps the model use broader structural cues to reduce boundary confusion between overlapped instances. Meanwhile, the C2f-MSC module improves multi-scale feature allocation by decoupling feature paths and introducing heterogeneous convolutional parsing, which helps preserve contour-related cues while enhancing local texture details in multi-material X-ray images. As a result, the proposed framework shows stronger robustness in challenging occlusion scenarios, where segmentation quality depends more heavily on context modeling and feature complementarity than in simpler scenes. These observations indicate that the performance gains are not only empirical improvements in metrics but are also consistent with the design motivations of the proposed modules.