A deep learning-based cable eccentricity detection method
By combining deep learning with X-ray imaging and CE-Net, the stability and accuracy issues of cable eccentricity detection under different conditions were solved, achieving high-precision online detection of cable eccentricity.
Patent Information
- Application Number
- CN202611153973.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-31
- Publication Date
- 2026-11-27
AI Technical Summary
Existing cable eccentricity detection methods are ill-suited to adapting to differences in imaging when faced with installation deviations of the detection device, changes in the direction of mold core adjustment, and different cable specifications. This results in insufficient stability and accuracy of eccentricity detection, especially when there is interference from the internal texture of the stranded conductor and the presence of a metal shielding structure, making boundary identification unclear.
By employing a deep learning-based approach combined with X-ray imaging and CE-Net, images are acquired through core perturbation, orientation mapping is established, stranded textures are hidden, and directional re-exposure and feature replacement are performed to achieve online detection of cable eccentricity.
It improves the accuracy and stability of cable eccentricity detection, can adapt to different production conditions, reduces the influence of detection device deviation, improves the identification of the lower boundary of the metal shielding structure, and realizes high-precision eccentricity detection for continuous production.
Smart Images

Figure CN123175189A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of cable nondestructive testing technology, and in particular to a cable eccentricity detection method based on deep learning. Background Technology
[0002] Cable insulation eccentricity can cause insufficient insulation thickness in certain areas, affecting the cable's electrical performance and service life. Therefore, it is necessary to inspect the conductor position and insulation thickness during the cable extrusion process. Existing technologies typically employ mechanical measurement, ultrasonic testing, or X-ray imaging. X-ray imaging can obtain cross-sectional images of the cable without damaging its structure. Image processing or deep learning segmentation networks can then be used to identify conductor and insulation regions, thereby calculating the cable eccentricity.
[0003] Existing detection methods often employ fixed models and exposure parameters, making it difficult to adapt to installation deviations in the detection device, changes in the mold core adjustment direction, and imaging differences caused by different cable specifications. The edges and gaps between strands inside the stranded conductor create periodic textures that easily interfere with the identification of the conductor's outer boundary. When the cable contains a metal shielding structure or has strong local radiation attenuation, a single full-section exposure can easily cause boundary interruptions or overlaps. Existing methods typically lack directional re-exposure for abnormal circumferential areas, feature replacement, and axial tracking mechanisms for the same cable segment, resulting in insufficient stability and accuracy in online eccentricity detection.
[0004] Therefore, how to provide a deep learning-based cable eccentricity detection method is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] One objective of this invention is to propose a deep learning-based cable eccentricity detection method. This invention combines X-ray imaging with CE-Net to perform hidden line removal on stranded textures and implement directional re-exposure and feature replacement on abnormal sector boundaries, thereby achieving online detection of cable eccentricity. It has the advantages of high detection accuracy, strong anti-interference ability, and adaptability to continuous production.
[0006] A cable eccentricity detection method based on deep learning according to an embodiment of the present invention includes the following steps: In the waste section, the control mold core is in the reference position, the first direction perturbation position, and the second direction perturbation position. X-ray images are acquired and input into the CE-Net encoder and densely holed convolutional unit. Based on the feature changes, the channel arrangement index and direction mapping relationship are established. X-ray images covering one strand pitch are continuously acquired, stranding phase features are extracted, strand pitch is determined, and a stranding phase texture template is established. Full-section exposure is performed on the cable segment to be inspected. The reconnaissance image is input into CE-Net. Dense hole convolution features are processed according to the channel arrangement index. The current stranding phase is identified and the corresponding texture template is used to eliminate the stranding texture inside the conductor to obtain the preliminary structural boundary. Based on the continuous state of the preliminary structural boundary, determine the circumferential sector to be re-exposed, generate sector exposure instructions, and record the axial identification. The cable segment to be inspected is tracked to the re-exposure position based on the axial marking. The sector collimator is controlled to perform local exposure. The re-exposure image is input into CE-Net and the features of the corresponding circumferential sector in the reconnaissance image are replaced with the re-exposure features. The replaced features are input into the residual multi-core pooling unit and decoder to obtain the final structural boundary and extract the cable cross-section geometric parameters. The eccentricity of the cable segment to be tested is calculated based on the geometric parameters of the cable cross-section, and the eccentricity test results are output.
[0007] Optionally, the acquisition of X-ray images specifically includes: Select the waste section at the start of cable production, place the mold core in the reference position, and acquire the first set of X-ray images; The control mold core is moved a preset distance along the first direction, and a second set of X-ray images are acquired after the production state stabilizes. The mold core is restored to the reference position and moved a preset distance along the second direction perpendicular to the first direction. After the production state is stable, the third set of X-ray images is acquired. After the data acquisition is complete, restore the mold core to the reference position.
[0008] Optionally, the step of inputting the X-ray image into the CE-Net encoder and the densely dilated convolutional unit specifically includes: The first set of X-ray images, the second set of X-ray images, and the third set of X-ray images are respectively input into the parameter-frozen CE-Net encoder and the densely dilated convolutional unit; The dense dilated convolutional unit consists of dilated convolutional branches with different dilation rates, a hierarchical connection structure, and a residual connection structure, which respectively obtain the baseline feature, the first-direction perturbation feature, and the second-direction perturbation feature. The first-direction perturbation feature is subtracted from the reference feature channel by channel, and the second-direction perturbation feature is subtracted from the reference feature channel by channel. The channel numbers are arranged according to the feature change amplitude generated by each channel for the two-direction perturbations, and a channel arrangement index is generated. Based on the correspondence between the movement direction of the two sets of difference features in the image coordinates and the first and second directions of the mold core, a directional mapping relationship between the image coordinates and the mold core adjustment coordinates is established.
[0009] Optionally, determining the strand pitch and establishing the stranded phase texture template specifically includes: X-ray images covering at least one complete strand pitch are continuously acquired. The continuous X-ray images are input into the CE-Net encoder and densely holed convolutional unit according to the axial position of the cable to extract the texture features formed by the strand edges and strand gaps in the conductor area. The strand pitch is determined based on the axial position of repeated texture features, and the stranding phase is divided according to the axial position within one strand pitch. The densely dilated convolutional features corresponding to the same twisted phase are aligned with the center of the conductor region and then input into the residual multi-kernel pooling unit. The internal features of the conductor output by the residual multi-core pooling unit are collected to form a texture template corresponding to the stranding phase. A stranding phase texture template library is established according to the correspondence between the stranding phase and the texture template.
[0010] Optionally, the low-dose full-section exposure of the cable segment to be tested specifically includes: When performing full-section exposure on the cable segment to be inspected, the X-ray tube voltage should be kept consistent with the stranded phase texture template establishment stage; Set the product of X-ray tube current and exposure time to 40%-70% of the product corresponding to the stranded phase texture template establishment stage, and acquire reconnaissance images. The reconnaissance image is input into the CE-Net encoder and the densely dilated convolutional unit. The densely dilated convolutional features are rearranged according to the channel arrangement index to extract the stranded phase response features in the conductor region. The twisted phase response features are matched one by one with the twisted phase texture template library, and the twisted phase texture template with the highest similarity is selected. Within the template region inside the conductor, the densely holed convolutional features are subtracted from the selected twisted phase texture template, while retaining the boundary features corresponding to the outer envelope of the conductor. The processed dense dilated convolutional features are input into the residual multi-kernel pooling unit and the decoder to obtain the preliminary structural boundaries.
[0011] Optionally, determining the circumferential sector to be re-exposed based on the continuous state of the preliminary structural boundary specifically includes: The initial structural boundary is transformed to a circumferential coordinate system with the center of the cable section as the origin, and the circumferential interval is divided according to a preset angular interval. The integrity of the conductor boundary and the insulation layer boundary is detected in interval by interval. Continuous circumferential intervals with boundary interruption, boundary overlap and boundary spacing that cannot be determined are merged into circumferential sectors to be re-exposed. Based on the geometric calibration relationship between the X-ray source, sector collimator and detector, the circumferential sector to be re-exposed is converted into the collimator rotation angle and opening range, and a sector exposure command is generated. Read the axial encoder count value when the cable segment to be tested passes through the full-section exposure position, and record the axial encoder count value as the axial identifier corresponding to the circumferential sector to be re-exposed.
[0012] Optionally, the control sector collimator performing partial exposure specifically includes: The axial distance between the full-section exposure position and the re-exposure position is measured in advance, and the axial distance is converted into the number of axial encoder pulses; The transmission pulses are accumulated starting from the encoder count value that records the axial marking. When the accumulated transmission pulses reach the number of pulses corresponding to the axial distance, the control cable transmission speed is kept stable and re-exposure is triggered. Read the collimator rotation angle, aperture range, and exposure parameters associated with the axial marker, drive the sector collimator to rotate to the target angle, and adjust the slit opening; After confirming the collimator is in position using the position sensor, start the X-ray source so that the X-ray beam covers the circumferential sector to be re-exposed. The detector acquires sector re-exposure images, and the sector re-exposure images are associated with and stored along with axial markers.
[0013] Optionally, replacing the features of the corresponding circumferential sector in the reconnaissance image with re-exposure features specifically includes: The sector re-exposure image is input into the CE-Net encoder and densely dilated convolutional units that share parameters with the reconnaissance image to obtain the sector re-exposure features; Based on the rotation angle, aperture range, and detector geometric calibration relationship of the sector collimator, the sector re-exposure features are converted to the coordinates of the densely holed convolutional features corresponding to the reconnaissance image. The spatial size of the sector re-exposure features is adjusted and a circumferential sector mask is generated. Based on the original densely dilated convolutional features of each channel in the corresponding area of the reconnaissance image deleted by the circumferential sector mask, the sector re-exposure features are written into the deleted area according to the same channel number and spatial position. The original dense dilated convolution features outside the circumferential sector mask are preserved to form complete dense dilated convolution features that complete the localized replacement.
[0014] Optionally, obtaining the final structural boundary and extracting the cable cross-sectional geometric parameters specifically includes: The complete dense dilated convolutional features that have completed the localization replacement are input into the residual multi-kernel pooling unit. The context features of the conductor region and the insulating layer region are extracted through different pooling scales. The context features are input into the decoder to restore the corresponding size of the reconnaissance image and output the conductor region and the insulating layer region. Extract the outer contours of the conductor region and the insulation layer region respectively, delete unclosed contours and isolated regions with an area smaller than the preset area to form the final structural boundary; Based on the detector pixel size and imaging magnification, the pixel coordinates of the final structural boundary are converted into actual size coordinates. Based on the actual size coordinates, the cable cross-sectional geometric parameters characterizing the relative position of the conductor and the insulation layer and the insulation layer thickness distribution are extracted.
[0015] Optionally, the calculation of the eccentricity of the cable segment to be tested based on the cable cross-sectional geometric parameters specifically includes: The insulation layer thickness at each circumferential position is determined based on the cable cross-sectional geometric parameters, and the maximum and minimum insulation layer thicknesses are extracted. The eccentricity of the cable segment to be tested is determined by the ratio of the difference between the maximum and minimum insulation layer thickness to the maximum insulation layer thickness. The eccentricity direction is determined based on the circumferential position and directional mapping relationship corresponding to the minimum insulation layer thickness, and the eccentricity, eccentricity direction and axial identification are associated and output.
[0016] The beneficial effects of this invention are: (1) The present invention acquires X-ray images at different positions by micro-perturbation of the mold core, establishes the directional mapping relationship between the image coordinates and the mold core adjustment coordinates, and forms a channel arrangement index with dense hole convolution features. This can reduce the impact of installation deviation of the detection device and changes in the mold core adjustment direction on the detection results and improve the consistency of eccentricity detection under different production conditions.
[0017] (2) The present invention determines the strand pitch and strand phase based on the periodic change of the strand texture, establishes a strand phase texture template, and eliminates the texture of the strand edges and strand gaps inside the conductor in the feature layer. This can reduce the interference of strand texture on the identification of the conductor outer envelope and improve the detection accuracy of conductor boundary, insulation layer boundary and insulation layer thickness.
[0018] (3) The present invention performs directional re-exposure on the circumferential sector of the initial structural boundary anomaly, tracks the same cable segment by axial identification, and directly replaces the features of the corresponding area of the reconnaissance image with the re-exposure feature. It can improve the quality of the local boundary while controlling the overall exposure range, and improve the stability of online eccentricity detection under the conditions of metal shielding structure and strong radiation attenuation. Attached Figure Description
[0019] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings: Figure 1 This is a flowchart of a cable eccentricity detection method based on deep learning proposed in this invention; Figure 2 This is a schematic diagram of stranding texture culling for a deep learning-based cable eccentricity detection method proposed in this invention. Figure 3This is a schematic diagram of circumferential sector re-exposure for a cable eccentricity detection method based on deep learning proposed in this invention. Detailed Implementation
[0020] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.
[0021] refer to Figures 1-3 A deep learning-based method for detecting cable eccentricity includes the following steps: In the waste section, the control mold core is in the reference position, the first direction perturbation position, and the second direction perturbation position. X-ray images are acquired and input into the CE-Net encoder and densely holed convolutional unit. Based on the feature changes, the channel arrangement index and direction mapping relationship are established. X-ray images covering one strand pitch are continuously acquired, stranding phase features are extracted, strand pitch is determined, and a stranding phase texture template is established. Full-section exposure is performed on the cable segment to be inspected. The reconnaissance image is input into CE-Net. Dense hole convolution features are processed according to the channel arrangement index. The current stranding phase is identified and the corresponding texture template is used to eliminate the stranding texture inside the conductor to obtain the preliminary structural boundary. Based on the continuous state of the preliminary structural boundary, determine the circumferential sector to be re-exposed, generate sector exposure instructions, and record the axial identification. The cable segment to be inspected is tracked to the re-exposure position based on the axial marking. The sector collimator is controlled to perform local exposure. The re-exposure image is input into CE-Net and the features of the corresponding circumferential sector in the reconnaissance image are replaced with the re-exposure features. The replaced features are input into the residual multi-core pooling unit and decoder to obtain the final structural boundary and extract the cable cross-section geometric parameters. The eccentricity of the cable segment to be tested is calculated based on the geometric parameters of the cable cross-section, and the eccentricity test results are output.
[0022] In this embodiment, acquiring X-ray images specifically includes: Select the starting waste section of cable production, place the die core in the reference position, and acquire the first set of X-ray images; the starting waste section is selected as a continuous cable section that does not enter the finished product winding after the extrusion production begins. In one embodiment, the length of the starting waste section is 10-30m; the reference position is the position where the die core adjustment mechanism completes mechanical return to zero and is confirmed by the displacement sensor, and the deviation of the die core relative to the mechanical zero point is no greater than 0.01mm; after the cable section corresponding to the reference position moves to the X-ray detection position, continuously acquire 20-50 frames of images as the first set of X-ray images; The control die moves a preset distance along the first direction, and a second set of X-ray images is acquired after the production status stabilizes. The first direction is a radial horizontal direction perpendicular to the cable conveying axis, and the preset distance is 0.05-0.20mm. During the movement of the die, the extrusion temperature, traction speed, and X-ray exposure parameters remain unchanged. The cable segment formed after the die moves is tracked by the production line encoder. When the corresponding cable segment reaches the X-ray detection position, and the traction speed fluctuation does not exceed 2% of the set value and the extrusion pressure fluctuation does not exceed 3% of the set value within 5 consecutive seconds, a second set of X-ray images is acquired. The mold core is restored to the reference position and moved a preset distance along a second direction perpendicular to the first direction. After the production state stabilizes, a third set of X-ray images is acquired. After the mold core is restored to the reference position, the reset deviation is confirmed by a displacement sensor to be no greater than 0.01mm. The second direction is a radial-vertical direction perpendicular to the cable conveying axis and perpendicular to the first direction, and the moving distance is 0.05-0.20mm. A third set of X-ray images is acquired according to the same production state judgment conditions and exposure parameters as the second set of X-ray images. After the acquisition is completed, the mold core is restored to the reference position; after the acquisition of the third set of X-ray images is completed, the mold core adjustment mechanism is controlled to move in the reverse direction to the mechanical zero point. The displacement sensor confirms that the reset deviation is not greater than 0.01mm, and the mold core is kept in the reference position to enter normal production.
[0023] In this embodiment, inputting the X-ray image into the CE-Net encoder and the dense dilated convolutional unit specifically includes: The first, second, and third sets of X-ray images are input into the parameter-frozen CE-Net encoder and densely dilated convolutional unit, respectively. The three sets of X-ray images use the same grayscale normalization parameters and image size. 20-50 frames are selected from each set of images, and corresponding frames are registered according to the axial position recorded by the encoder of the cable production line. The CE-Net encoder and densely dilated convolutional unit keep the network parameters unchanged during the processing of the three sets of X-ray images, and output feature tensors with the same number of channels and spatial size, respectively. The dense dilated convolutional unit consists of dilated convolutional branches with different dilation rates, hierarchical connection structures, and residual connection structures, which respectively obtain the baseline features, the first-direction perturbation features, and the second-direction perturbation features. The feature tensors of multiple frames corresponding to each group of X-ray images are averaged pixel by pixel according to the same channel to form the baseline features, the first-direction perturbation features, and the second-direction perturbation features, so as to reduce the influence of X-ray random noise and single-frame twisted texture changes on the self-calibration results. The first-direction perturbation feature is subtracted from the reference feature channel by channel, and the second-direction perturbation feature is subtracted from the reference feature channel by channel. The channel numbers are arranged according to the feature change amplitude of each channel in response to the perturbation in the two directions, generating a channel arrangement index. After subtracting each channel, the absolute difference of all pixels in each difference channel is averaged and divided by the core movement distance corresponding to the first and second directions, respectively, to obtain the response value of each channel to the unit displacement in the two directions. The first-direction response channels are arranged in descending order of the first-direction response value, and the second-direction response channels are arranged in descending order of the second-direction response value. Duplicate channels are assigned to the direction with the larger response value. The channel numbers are recorded according to the arrangement results to form a channel arrangement index. Based on the correspondence between the movement directions of the two sets of difference features in the image coordinates and the first and second directions of the mold core, a directional mapping relationship between the image coordinates and the mold core adjustment coordinates is established. The first and second direction difference features are superimposed on the channels respectively, and the horizontal and vertical displacement directions of the difference features relative to the reference features are determined by the two-dimensional cross-correlation method. The two image displacement directions are respectively mapped to the first and second directions of the mold core adjustment mechanism, and the axial correspondence and positive and negative directions between the horizontal axis and vertical axis of the image and the mold core adjustment coordinate axis are recorded to generate a directional mapping matrix. The directional mapping matrix remains unchanged during the formal testing process of the current cable specification.
[0024] In this embodiment, determining the strand pitch and establishing the stranded phase texture template specifically includes: X-ray images covering at least one complete strand pitch are continuously acquired. These images are then input into a CE-Net encoder and a densely spaced convolutional unit according to the cable's axial position to extract texture features formed by strand edges and gaps within the conductor region. The continuous acquisition length is set according to the nominal strand pitch of the cable under test, ranging from 1.5 to 3 times the nominal strand pitch. 24-72 frames of X-ray images are acquired within each nominal strand pitch. The axial position corresponding to each frame of X-ray image is recorded using a cable production line encoder. Candidate conductor regions are extracted from the densely spaced convolutional features, retaining the feature channels within these regions that reflect strand edges and gaps. The twist pitch is determined based on the axial position of repeated texture features, and the twisting phase is divided according to the axial position within a twist pitch. The texture features of each frame are arranged according to the axial position, and the similarity of texture features at different axial distances is calculated. The axial distance corresponding to the first similarity peak after the zero-interval position is determined as the twist pitch. A twist pitch is divided into 12-36 phase intervals, and the corresponding twisting phase is determined based on the axial distance of each frame of X-ray image relative to the starting position of the twist pitch. The densely dilated convolutional features corresponding to the same twisted phase are aligned with the center of the conductor region and then input into the residual multi-kernel pooling unit. The centroid of the region is determined based on the candidate conductor region in the densely dilated convolutional features. The corresponding densely dilated convolutional features are translated by the offset between the centroid of the region and the preset feature center, so that the center of the conductor region of each frame image under the same twisted phase coincides. During the center alignment process, the number of channels and spatial size of the densely dilated convolutional features remain unchanged. The residual multi-kernel pooling unit is a component of the CE-Net context extraction part and is set after the densely dilated convolutional unit (DAC) and before the decoder. The context extraction part in the original CE-Net structure is formed by sequentially connecting the DAC and RMP. The conductor internal region features output by the residual multi-kernel pooling unit are collected to form texture templates corresponding to the stranding phase. A stranding phase texture template library is established according to the correspondence between the stranding phase and the texture template. The boundary of the conductor candidate region is shrunk inward by 5%-10% of the conductor's equivalent diameter to form the conductor internal template region, so as to exclude the conductor's outer envelope features. The median value of the conductor internal region features output by the residual multi-kernel pooling unit under the same stranding phase is calculated channel by channel and pixel by pixel to form the texture template corresponding to the stranding phase. The stranding phase texture template library records the stranding phase number, the axial interval corresponding to the phase, and the texture template. The complete X-ray image and the final segmentation result are not saved.
[0025] In this embodiment, performing low-dose full-section exposure on the cable segment to be tested specifically includes: When performing full-section exposure on the cable segment to be inspected, the X-ray tube voltage should be kept consistent with the stranded phase texture template establishment stage; Set the product of X-ray tube current and exposure time to 40%-70% of the product corresponding to the stranded phase texture template establishment stage, and acquire reconnaissance images; select a fixed ratio from 40%-70% according to the conductor diameter and material attenuation of the cable to be inspected, and keep the selected ratio unchanged during continuous inspection of the same cable specification; acquire 1-5 frames of reconnaissance images for each cable segment to be inspected, and input them into CE-Net after dark field correction, flat field correction and grayscale normalization; The reconnaissance image is input into the CE-Net encoder and the densely dilated convolutional unit. The densely dilated convolutional features are rearranged according to the channel arrangement index to extract the stranded phase response features in the conductor region. The channel positions of the densely dilated convolutional features are adjusted according to the channel number order recorded in the channel arrangement index, while keeping the pixel values and feature space size in each channel unchanged. The internal features are extracted based on the preliminary conductor candidate region, and the features marked as stranded phase response channels in the channel arrangement index are read. The stranded phase response features are matched one by one with the stranded phase texture template library, and the stranded phase texture template with the highest similarity is selected. Under the condition that the template area size inside the conductor is consistent, the cosine similarity is used to compare the stranded phase response features with each stranded phase texture template in turn, and the template with the highest similarity and a similarity of not less than 0.80 is determined as the current stranded phase texture template. When the similarity is less than 0.80, the cable segment to be detected is marked as a phase unidentified segment. Within the conductor's internal template region, the densely hollow convolutional features are subtracted from the selected stranded phase texture template, preserving the boundary features corresponding to the conductor's outer envelope. The conductor's internal template region is formed by shrinking the outer boundary of the conductor candidate region inward by 5%-10% of the conductor's equivalent diameter. In the stranded phase response channel, channel-by-channel and pixel-by-pixel feature subtraction is performed, truncating negative values to zero. The densely hollow convolutional features outside the conductor's internal template region are not processed, thus preserving the features of the conductor's outer envelope and the interface between the conductor and the insulation layer. The processed dense dilated convolutional features are input into the residual multi-kernel pooling unit and the decoder to obtain the preliminary structural boundary. The residual multi-kernel pooling unit performs regional context aggregation on the processed dense dilated convolutional features, and the decoder restores the corresponding size of the reconnaissance image and outputs the conductor region and the insulating layer region. The preliminary structural boundary is obtained based on the contours of the two regions.
[0026] When a change in cable specifications, conductor strand count, or strand direction is detected, the original stranding phase texture template library is stopped from being called. Instead, continuous X-ray images covering at least one complete strand pitch are re-acquired according to the changed cable structure. The strand pitch and stranding phase are re-determined, and a stranding phase texture template library corresponding to the changed cable structure is generated. After the template library is updated, the new template library is associated with the current cable specification identifier for subsequent stranding phase identification and conductor internal texture blanking.
[0027] In this embodiment, determining the circumferential sector to be re-exposed based on the continuous state of the preliminary structural boundary specifically includes: The initial structural boundary is transformed to a circumferential coordinate system with the center of the cable cross-section as the origin, and the circumferential intervals are divided according to a preset angle interval. The center of the cable cross-section is determined based on the centroid of the region corresponding to the initial structural boundary. The circumferential section of the cable cross-section is divided into circumferential intervals with an angle interval of 5°-10°, and the conductor boundary and insulation layer boundary are detected along the center direction of each circumferential interval. The integrity of conductor and insulation boundaries is detected interval by interval. Continuous circumferential intervals with boundary interruptions, boundary overlaps, and uncertain boundary spacing are merged into circumferential sectors to be re-exposed. When the proportion of detection directions lacking conductor or insulation boundary intersections in a circumferential interval reaches 30%, the corresponding circumferential interval is identified as a boundary interruption interval. When the minimum distance between two types of boundaries is no more than 2 pixels, the corresponding circumferential interval is identified as a boundary overlap interval. Adjacent abnormal circumferential intervals are continuously merged, and the merged area is extended by 5°-10° at both ends to form circumferential sectors to be re-exposed. Based on the geometric calibration relationship between the X-ray source, sector collimator, and detector, the circumferential sector to be re-exposed is converted into the collimator rotation angle and aperture range, generating a sector exposure command. The correspondence between the image circumferential angle and the collimator rotation position is pre-determined using geometric calibration components. The collimator rotation angle is determined based on the central angle of the circumferential sector to be re-exposed, and the collimator aperture range is determined based on the angle range of the circumferential sector to be re-exposed. The sector exposure command includes at least the collimator rotation angle, the collimator aperture range, and the exposure parameter number. The axial encoder count value is read when the cable segment to be tested passes through the full-section exposure position, and the axial encoder count value is recorded as the axial identifier corresponding to the circumferential sector to be re-exposed; when the full-section exposure is triggered, the axial encoder count value of the cable conveying mechanism is read, and the count value corresponding to the center of the exposure area is used as the axial identifier; the axial identifier is associated with the circumferential sector to be re-exposed and the sector exposure command and stored to determine the time when the cable segment to be tested reaches the re-exposed position.
[0028] In this embodiment, controlling the sector collimator to perform partial exposure specifically includes: The axial distance between the full-section exposure position and the re-exposure position is measured in advance, and the axial distance is converted into the number of axial encoder pulses. The axial distance between the full-section exposure position and the re-exposure position is taken as the straight-line distance between the centers of the two exposure areas, and is set to 0.5~2m. The axial encoder is installed on the traction wheel, and the encoder resolution is set to 10~100 pulses per millimeter. The corresponding number of pulses is determined according to the axial distance and the encoder resolution. The system starts accumulating pulses from the encoder count value recording the axial marker. When the accumulated pulses reach the number of pulses corresponding to the axial distance, the control cable conveying speed is stabilized and a re-exposure is triggered. The system also starts accumulating pulses from the encoder count value corresponding to the full-section exposure trigger moment. When the deviation between the accumulated pulses and the target pulse number does not exceed 5 pulses, and the cable conveying speed fluctuation does not exceed 2% of the set speed within 1-3 seconds, a re-exposure trigger signal is issued. When the speed fluctuation exceeds the set range, the trigger is delayed and the axial marker is continued to be tracked. The collimator rotation angle, opening range, and exposure parameters associated with the axial identifier are read, and the sector collimator is driven to rotate to the target angle and the slit opening is adjusted. A servo motor is used to drive the sector collimator to rotate, and the rotation angle error is controlled within ±0.5°. The slit opening is set according to the angle range of the circumferential sector to be re-exposed, and a coverage margin of 2°-5° is added on both sides of the circumferential sector to be re-exposed. The exposure parameters are retrieved from the pre-stored tube voltage, tube current, and exposure time according to the current cable specification. After the collimator is confirmed to be in position by the position sensor, the X-ray source is activated so that the X-ray beam covers the circumferential sector to be re-exposed. The position sensor detects the rotation position of the collimator and the position of the slit opening. When the rotation angle deviation does not exceed ±0.5° and the opening position deviation does not exceed 0.2mm, the collimator is in position signal is output. The X-ray source is activated after receiving the collimator in position signal. Re-exposure is prohibited when the collimator is in position signal is not received. The detector acquires sector re-exposure images and stores them in association with the axis marker. Each re-exposure acquires 1-5 frames of sector re-exposure images and records the re-exposure time, collimator angle, slit opening, and exposure parameters. The sector re-exposure images and corresponding records are written into the data record belonging to the axis marker for subsequent sector feature mapping and replacement.
[0029] In this embodiment, replacing the features of the corresponding circumferential sector in the reconnaissance image with re-exposure features specifically includes: The sector re-exposure image is input into the CE-Net encoder and densely dilated convolutional unit with the same parameters as the reconnaissance image to obtain sector re-exposure features. The sector re-exposure image is preprocessed with the same image size, grayscale normalization parameters and channel arrangement index as the reconnaissance image. The CE-Net encoder and densely dilated convolutional unit use the same network weights in the two feature extraction processes, and output sector re-exposure features with the same number of channels and feature space size. Based on the sector collimator's rotation angle, aperture range, and detector geometric calibration relationship, the sector re-exposure features are transformed to the coordinates of the densely dilated convolutional features corresponding to the reconnaissance image. The spatial size of the sector re-exposure features is adjusted, and a circumferential sector mask is generated. The correspondence between detector pixel coordinates, reconnaissance image coordinates, and densely dilated convolutional feature coordinates is determined in advance through geometric calibration. The sector center direction is determined based on the collimator rotation angle, and the sector's two side boundaries are determined based on the collimator aperture range. Bilinear interpolation is used to adjust the sector re-exposure features to the spatial size of the densely dilated convolutional features in the reconnaissance image. After expanding 1-3 feature pixels on each side of the sector, a circumferential sector mask is generated. According to the original dense dilated convolution features of each channel in the corresponding area of the reconnaissance image deleted by the circumferential sector mask, the sector re-exposure features are written into the deleted area according to the same channel number and spatial position; the original dense dilated convolution features in the area covered by the circumferential sector mask are set to zero, and the sector re-exposure features are written into the same channel according to the channel arrangement index, and written into the same spatial position according to the feature coordinates after geometric transformation; the replacement process adopts the direct writing method, and no weighted average is performed on the two exposure features. The original dense dilated convolution features outside the circumferential sector mask are preserved to form a complete dense dilated convolution feature for localized replacement. The original dense dilated convolution features outside the circumferential sector mask retain the channel values and spatial positions unchanged. When there is more than one circumferential sector to be re-exposed, the replacement is completed according to the corresponding sector mask. After all sectors are replaced, a complete dense dilated convolution feature with the same size as the dense dilated convolution feature of the reconnaissance image is formed.
[0030] In this embodiment, obtaining the final structural boundary and extracting the cable cross-section geometric parameters specifically includes: The complete dense dilated convolutional features after region replacement are input into the residual multi-kernel pooling unit. Contextual features of the conductor and insulating layer regions are extracted through different pooling scales. These contextual features are then input into the decoder to restore the corresponding size of the reconnaissance image, outputting the conductor and insulating layer regions. The decoder outputs conductor and insulating layer region segmentation maps with pixel sizes consistent with the reconnaissance image. Binarization is performed on both segmentation maps, filling in holes with an area smaller than 1% of the corresponding region area to obtain continuous conductor and insulating layer regions. The outer contours of the conductor region and the insulation layer region are extracted separately. Unclosed contours and isolated regions with an area smaller than the preset area are deleted to form the final structural boundary. Closed contours are extracted using contour tracking. Regions where the beginning and end of the contours are not connected are deleted, and isolated regions with an area smaller than 0.1% of the total area of the reconnaissance image are deleted. The conductor region contour and the insulation layer region contour with the largest area are selected from the remaining contours to form the final boundary of the conductor and the final boundary of the insulation layer. Based on the detector pixel size and imaging magnification, the pixel coordinates of the final structural boundary are converted into actual size coordinates. Based on the actual size coordinates, the cable cross-sectional geometric parameters characterizing the relative position of the conductor and the insulation layer and the thickness distribution of the insulation layer are extracted. The actual length and imaging magnification corresponding to a single pixel of the detector are determined in advance using a calibration component with known dimensions, and the calibration results are saved when the installation position of the same detection device remains unchanged. The pixel coordinates of the final boundary of the conductor and the final boundary of the insulation layer are converted into millimeter coordinates, and the geometric center of the two boundaries is determined respectively. The radial distance between the two boundaries is obtained at angular intervals of 1°-5° along the 0° to 360° direction. The cable cross-sectional geometric parameters are formed by the geometric center position and the radial distance.
[0031] In this embodiment, calculating the eccentricity of the cable segment to be tested based on the cable cross-sectional geometric parameters specifically includes: The insulation layer thickness at each circumferential position is determined based on the cable cross-sectional geometric parameters, and the maximum and minimum insulation layer thicknesses are extracted. The eccentricity of the cable segment to be tested is determined by the ratio of the difference between the maximum and minimum insulation layer thickness to the maximum insulation layer thickness. The eccentricity direction is determined based on the circumferential position and directional mapping relationship corresponding to the minimum insulation layer thickness, and the eccentricity, eccentricity direction and axial identification are associated and output.
[0032] This invention is applicable to online eccentricity detection in the cable extrusion production process. The detection device is located downstream of the extruder head and upstream of the winding device. It performs full-section X-ray imaging, stranding phase blanking, circumferential sector re-exposure, and eccentricity calculation on the continuously conveyed cable, and records the location of abnormal cable segments based on axial markings. The detection results can be used to determine the eccentricity state of the cable insulation layer, and generate core adjustment commands based on the eccentricity direction and degree of multiple consecutive cable segments to adjust the core position of subsequent cables, thereby achieving online detection of cable eccentricity and closed-loop control of the production process. This invention can also be used for periodic sampling inspections on the production line and offline sampling inspections of finished cables.
[0033] Example 1: To verify the feasibility of this invention in practice, it was applied to the online detection of cable eccentricity in a continuous extrusion production line. The cable under test has a stranded conductor, an insulation layer, and some specifications have a metal shielding structure. During continuous production, die core installation deviations, uneven material flow, and traction fluctuations can cause the conductor to deviate from the center of the insulation layer. Ordinary X-ray segmentation methods can easily misidentify the strand edges and strand gaps as the outer boundary of the conductor. The metal shielding structure can also cause local X-ray attenuation, resulting in interruptions, overlaps, and blurred spacing at the boundaries, leading to instability in the determination of minimum insulation thickness and eccentricity direction.
[0034] The detection device is located downstream of the extruder head. The cable is continuously conveyed by a traction mechanism, and an axial encoder is mounted on the traction wheel. The X-ray source and detector are located on opposite sides of the cable, and a rotatable sector collimator is positioned at the X-ray source exit end. At the start of detection, online calibration is performed using the starting waste section. The first set of images is acquired when the die core is in the reference position. Subsequently, minute displacements are performed along two mutually perpendicular directions, and images are acquired. All three sets of images are processed using a CE-Net encoder with frozen input parameters and densely dilated convolutional units. By comparing the response changes of each channel to the two perturbation directions, a channel arrangement index is formed, and a directional mapping relationship is established based on the correspondence between the image feature movement direction and the die core movement direction.
[0035] After calibration, X-ray images covering the entire strand pitch are continuously acquired. CE-Net extracts repeating texture features along the axial direction inside the conductor, determines the strand pitch based on the repetition location, and divides one strand pitch into multiple stranding phases. Features of the same stranding phase are aligned according to the center of the conductor region, aggregated by residual multi-core pooling units to form texture templates, thereby establishing a stranding phase texture template library. When the cable specification, number of strands, or stranding direction changes, continuous images are reacquired and the template library is updated.
[0036] During normal inspection, the cable segment under inspection undergoes full-section exposure. The reconnaissance image is input into CE-Net and processed using densely dilated convolutional features arranged by channel index. The system identifies the current stranding phase, selects the corresponding texture template, and eliminates stranding textures in the template region inside the conductor while preserving boundary features near the conductor's outer envelope. The processed features are then processed by residual multi-core pooling units and a decoder to output preliminary structural boundaries, thereby reducing the interference of periodic textures inside the strands on conductor boundary recognition.
[0037] The system determines the circumferential sector to be re-exposed based on the continuous state of the initial structural boundary, and generates the rotation angle, aperture range, and exposure parameters according to the geometric calibration relationship of the X-ray source, collimator, and detector. During full-section exposure, the axial encoder count is recorded as an axial identifier. After the corresponding cable segment is delivered to the re-exposed position, the collimator is controlled to cover only the abnormal sector and acquire the re-exposed image. The re-exposed image is input into CE-Net, which shares parameters with the reconnaissance image. The obtained features are mapped to the corresponding regions of the reconnaissance features, directly replacing the original features within the abnormal sector, while features outside the sector remain unchanged. The replaced features are processed by residual multi-core pooling units and a decoder to obtain the final boundary, and the conductor center, insulation layer center, and circumferential thickness distribution are calculated. Based on this, the eccentricity, eccentricity direction, and axial position are output.
[0038] To compare the detection capabilities of this invention with commonly used semantic segmentation models, the same training samples, test image sizes, and manually labeled results were used as evaluation benchmarks to compare U-Net, DeepLabv3+, basic CE-Net, and the method of this invention. Each method outputs conductor and insulating layer regions, and the region segmentation quality, boundary quality, eccentricity error, and processing time were statistically analyzed in the same manner. Table 1 shows exemplary data generated under the verification conditions of this embodiment.
[0039] Table 1: Comparison of the overall performance of different cable eccentricity detection methods
[0040] As shown in Table 1, the crossover ratio of the conductor region, the crossover ratio of the insulation layer region, and the boundary F1 value of the method of the present invention reach 0.969, 0.975, and 0.961, respectively, which are all higher than the other methods. This indicates that stranded phase texture blanking can reduce the missegmentation caused by the internal texture of the conductor, and sector re-exposure and feature replacement can supplement the boundary information of the local strong attenuation region.
[0041] The method of this invention achieves an average absolute error of 0.48 percentage points in eccentricity, a decrease of approximately 47.3% compared to the basic CE-Net, indicating more stable calculations for minimum insulation thickness and eccentricity direction. The average processing time per cross-section is 71 milliseconds, slightly higher than the basic model, but still suitable for online detection under continuous transport conditions. Since re-exposure is performed only on abnormal circumferential sectors, it is not necessary to increase the exposure intensity of the entire cross-section, thus balancing local imaging quality and overall detection efficiency. The detection results are associated with axial markings and saved, which can be used for tracing abnormal cable segments and providing a basis for subsequent core adjustment.
[0042] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A method for detecting cable eccentricity based on deep learning, characterized in that, Includes the following steps: In the waste section, the control mold core is in the reference position, the first direction perturbation position, and the second direction perturbation position. X-ray images are acquired and input into the CE-Net encoder and densely holed convolutional unit. Based on the feature changes, the channel arrangement index and direction mapping relationship are established. X-ray images covering one strand pitch are continuously acquired, stranding phase features are extracted, strand pitch is determined, and a stranding phase texture template is established. Full-section exposure is performed on the cable segment to be inspected. The reconnaissance image is input into CE-Net. Dense hole convolution features are processed according to the channel arrangement index. The current stranding phase is identified and the corresponding texture template is used to eliminate the stranding texture inside the conductor to obtain the preliminary structural boundary. Based on the continuous state of the preliminary structural boundary, determine the circumferential sector to be re-exposed, generate sector exposure instructions, and record the axial identification. The cable segment to be inspected is tracked to the re-exposure position based on the axial marking. The sector collimator is controlled to perform local exposure. The re-exposure image is input into CE-Net and the features of the corresponding circumferential sector in the reconnaissance image are replaced with the re-exposure features. The replaced features are input into the residual multi-core pooling unit and decoder to obtain the final structural boundary and extract the cable cross-section geometric parameters. The eccentricity of the cable segment to be tested is calculated based on the geometric parameters of the cable cross-section, and the eccentricity test results are output.
2. The cable eccentricity detection method based on deep learning according to claim 1, characterized in that, The acquisition of X-ray images specifically includes: Select the waste section at the start of cable production, place the mold core in the reference position, and acquire the first set of X-ray images; The control mold core is moved a preset distance along the first direction, and a second set of X-ray images are acquired after the production state stabilizes. The mold core is restored to the reference position and moved a preset distance along the second direction perpendicular to the first direction. After the production state is stable, the third set of X-ray images is acquired. After the data acquisition is complete, restore the mold core to the reference position.
3. The cable eccentricity detection method based on deep learning according to claim 2, characterized in that, The specific steps of inputting the X-ray image into the CE-Net encoder and dense dilated convolutional unit include: The first set of X-ray images, the second set of X-ray images, and the third set of X-ray images are respectively input into the parameter-frozen CE-Net encoder and the densely dilated convolutional unit; The dense dilated convolutional unit consists of dilated convolutional branches with different dilation rates, a hierarchical connection structure, and a residual connection structure, which respectively obtain the baseline feature, the first-direction perturbation feature, and the second-direction perturbation feature. The first-direction perturbation feature is subtracted from the reference feature channel by channel, and the second-direction perturbation feature is subtracted from the reference feature channel by channel. The channel numbers are arranged according to the feature change amplitude generated by each channel for the two-direction perturbations, and a channel arrangement index is generated. Based on the correspondence between the movement direction of the two sets of difference features in the image coordinates and the first and second directions of the mold core, a directional mapping relationship between the image coordinates and the mold core adjustment coordinates is established.
4. The cable eccentricity detection method based on deep learning according to claim 3, characterized in that, The specific steps of determining the strand pitch and establishing the stranded phase texture template include: X-ray images covering at least one complete strand pitch are continuously acquired. The continuous X-ray images are input into the CE-Net encoder and densely holed convolutional unit according to the axial position of the cable to extract the texture features formed by the strand edges and strand gaps in the conductor area. The strand pitch is determined based on the axial position of repeated texture features, and the stranding phase is divided according to the axial position within one strand pitch. The densely dilated convolutional features corresponding to the same twisted phase are aligned with the center of the conductor region and then input into the residual multi-kernel pooling unit. The internal features of the conductor output by the residual multi-core pooling unit are collected to form a texture template corresponding to the stranding phase. A stranding phase texture template library is established according to the correspondence between the stranding phase and the texture template.
5. The cable eccentricity detection method based on deep learning according to claim 4, characterized in that, The low-dose full-section exposure of the cable segment to be tested specifically includes: When performing full-section exposure on the cable segment to be inspected, the X-ray tube voltage should be kept consistent with the stranded phase texture template establishment stage; Set the product of X-ray tube current and exposure time to 40%-70% of the product corresponding to the stranded phase texture template establishment stage, and acquire reconnaissance images. The reconnaissance image is input into the CE-Net encoder and the densely dilated convolutional unit. The densely dilated convolutional features are rearranged according to the channel arrangement index to extract the stranded phase response features in the conductor region. The twisted phase response features are matched one by one with the twisted phase texture template library, and the twisted phase texture template with the highest similarity is selected. Within the template region inside the conductor, the densely holed convolutional features are subtracted from the selected twisted phase texture template, while retaining the boundary features corresponding to the outer envelope of the conductor. The processed dense dilated convolutional features are input into the residual multi-kernel pooling unit and the decoder to obtain the preliminary structural boundaries.
6. The cable eccentricity detection method based on deep learning according to claim 5, characterized in that, The determination of the circumferential sector to be re-exposed based on the continuous state of the preliminary structural boundary specifically includes: The initial structural boundary is transformed to a circumferential coordinate system with the center of the cable section as the origin, and the circumferential interval is divided according to a preset angular interval. The integrity of the conductor boundary and the insulation layer boundary is detected in interval by interval. Continuous circumferential intervals with boundary interruption, boundary overlap and boundary spacing that cannot be determined are merged into circumferential sectors to be re-exposed. Based on the geometric calibration relationship between the X-ray source, sector collimator and detector, the circumferential sector to be re-exposed is converted into the collimator rotation angle and opening range, and a sector exposure command is generated. Read the axial encoder count value when the cable segment to be tested passes through the full-section exposure position, and record the axial encoder count value as the axial identifier corresponding to the circumferential sector to be re-exposed.
7. The cable eccentricity detection method based on deep learning according to claim 6, characterized in that, The control sector collimator performs partial exposure specifically including: The axial distance between the full-section exposure position and the re-exposure position is measured in advance, and the axial distance is converted into the number of axial encoder pulses; The transmission pulses are accumulated starting from the encoder count value that records the axial marking. When the accumulated transmission pulses reach the number of pulses corresponding to the axial distance, the control cable transmission speed is kept stable and re-exposure is triggered. Read the collimator rotation angle, aperture range, and exposure parameters associated with the axial marker, drive the sector collimator to rotate to the target angle, and adjust the slit opening; After confirming the collimator is in position using the position sensor, start the X-ray source so that the X-ray beam covers the circumferential sector to be re-exposed. The detector acquires sector re-exposure images, and the sector re-exposure images are associated with and stored along with axial markers.
8. The cable eccentricity detection method based on deep learning according to claim 7, characterized in that, The specific steps of replacing the features of the corresponding circumferential sector in the reconnaissance image with re-exposure features include: The sector re-exposure image is input into the CE-Net encoder and densely dilated convolutional units that share parameters with the reconnaissance image to obtain the sector re-exposure features; Based on the rotation angle, aperture range, and detector geometric calibration relationship of the sector collimator, the sector re-exposure features are converted to the coordinates of the densely holed convolutional features corresponding to the reconnaissance image. The spatial size of the sector re-exposure features is adjusted and a circumferential sector mask is generated. Based on the original densely dilated convolutional features of each channel in the corresponding area of the reconnaissance image deleted by the circumferential sector mask, the sector re-exposure features are written into the deleted area according to the same channel number and spatial position. The original dense dilated convolution features outside the circumferential sector mask are preserved to form complete dense dilated convolution features that complete the localized replacement.
9. The cable eccentricity detection method based on deep learning according to claim 8, characterized in that, The specific steps of obtaining the final structural boundary and extracting the cable cross-section geometric parameters include: The complete dense dilated convolutional features that have completed the localization replacement are input into the residual multi-kernel pooling unit. The context features of the conductor region and the insulating layer region are extracted through different pooling scales. The context features are input into the decoder to restore the corresponding size of the reconnaissance image and output the conductor region and the insulating layer region. Extract the outer contours of the conductor region and the insulation layer region respectively, delete unclosed contours and isolated regions with an area smaller than the preset area to form the final structural boundary; Based on the detector pixel size and imaging magnification, the pixel coordinates of the final structural boundary are converted into actual size coordinates. Based on the actual size coordinates, the cable cross-sectional geometric parameters characterizing the relative position of the conductor and the insulation layer and the insulation layer thickness distribution are extracted.
10. The cable eccentricity detection method based on deep learning according to claim 9, characterized in that, The calculation of the eccentricity of the cable segment to be tested based on the geometric parameters of the cable cross-section specifically includes: The insulation layer thickness at each circumferential position is determined based on the cable cross-sectional geometric parameters, and the maximum and minimum insulation layer thicknesses are extracted. The eccentricity of the cable segment to be tested is determined by the ratio of the difference between the maximum and minimum insulation layer thickness to the maximum insulation layer thickness. The eccentricity direction is determined based on the circumferential position and directional mapping relationship corresponding to the minimum insulation layer thickness, and the eccentricity, eccentricity direction and axial identification are associated and output.
