Flat wire motor card missing insertion online detection data processing system
By constructing a static spatial topology graph structure with slots as nodes and a graph convolutional network, and combining the timing signals of the insertion mechanism's actions with the image stream at the stator end, the joint iterative aggregation of visual features and timing state labels was achieved. This solved the problem of missed insertion and misjudgment in densely occluded scenarios and improved the reliability of stator insertion detection for flat wire motors.
Patent Information
- Application Number
- CN202610838803.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-11
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2046-06-11
AI Technical Summary
In the process of inserting wires into the stator of a flat wire motor, the existing technology cannot effectively utilize the physical space association of the slots and the timing logic of the insertion action in densely occluded scenarios, resulting in missed insertions and misjudgments, and incomplete visual features of a single slot.
A static spatial topology graph structure is constructed with slots as nodes and the physical distance between adjacent slots as edge weights. By combining the timing signals of the insertion mechanism and the image stream of the stator end, a graph convolutional network is used to perform joint iterative aggregation of visual features and temporal state labels to compensate for the visual features of occluded slots.
This improves the system's recognition error tolerance and reliability of missing insertion state estimation under complex physical occlusion conditions, and reduces the misjudgment rate in densely occluded scenarios.
Smart Images

Figure CN122391812B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology and discloses an online detection data processing system for missing hairpin insertion in flat wire motors. Background Technology
[0002] In the manufacturing process of flat wire motor stators, the insertion process of the hairpin coils is a critical step. Due to the dense arrangement of stator slots, the accurate insertion of the hairpin coils directly affects the motor's electrical performance; therefore, online detection of missing insertions is necessary during the insertion process. Currently, the industry typically employs an online detection solution based on machine vision. The conventional approach involves acquiring an overall image of the stator end using an image acquisition device installed above the insertion station. The image is then preprocessed in an image processing server, including grayscale conversion, filtering and noise reduction, and edge enhancement. After preprocessing, the server segments the overall image into several local slot region images based on the slot coordinates in the stator design drawings. For each local slot region image, visual features such as edge contours and grayscale distribution are independently extracted. Finally, these visual features are matched against a pre-stored standard hairpin feature template, and the matching score determines whether a missing insertion has occurred in the corresponding slot.
[0003] In the actual operation of the aforementioned conventional visual inspection scheme, the hairpin ends of the flat wire motor exhibit an extremely dense, three-dimensional, staggered arrangement. After the insertion mechanism completes the insertion operation of some slots, the inserted hairpin ends severely obstruct the surrounding empty slots where hairpins have not yet been inserted. In the end images acquired by the image acquisition device from a fixed viewpoint, the visual information of a large number of empty slots is obscured by the adjacent inserted hairpin ends. To address the obstruction problem, existing technologies attempt to increase the number of light sources or change the illumination angle to reduce shadows, or use a multi-angle camera array to acquire images from different directions. These improved solutions still rely on independent visual feature matching logic for each slot, that is, in the feature extraction stage, each slot is still treated as an isolated set of pixels, merely enhancing the quality of the input image at the image acquisition hardware level without changing the underlying data processing architecture. When the obstruction area exceeds a certain proportion, no matter how the lighting or shooting angle is adjusted, the key missing insertion visual features of the empty slots cannot be fully presented on the image plane.
[0004] Existing technologies treat each stator slot as an isolated object for visual feature extraction and state determination, completely severing the objective physical arrangement relationship between stator slots and failing to incorporate the sequential logic of the insertion mechanism's actions. This fragmented data processing approach means that when a slot's visual features are missing due to physical occlusion, no compensation information or logical inference can be obtained from the states of adjacent slots. Even if adjacent slots have been inserted and their connector ends should serve as confirmation references for occlusion boundaries, existing technologies still rely solely on incomplete local pixels for isolated judgments. Therefore, existing technologies suffer from a core technical problem: failing to utilize the physical spatial relationship between slots and the sequential logic of insertion actions, leading to incomplete visual features of a single slot in densely occluded scenarios and causing misjudgments of missed insertions. Summary of the Invention
[0005] The purpose of this invention is to provide an online detection data processing system for missing hairpin insertion in flat wire motors, which can effectively solve the problems mentioned in the background art.
[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows: A flat wire motor hairpin insertion missing detection online data processing system includes: based on the stator slot distribution coordinates of the flat wire motor, constructing a static spatial topology graph structure with the slots as nodes and the physical distance between adjacent slots as edge weights; The timing signal of the insertion mechanism action and the image stream of the stator end are acquired synchronously. The initial visual features of each slot end region in the image stream are extracted as the attributes of the node. The execution action sequence in the timing signal of the insertion mechanism action is converted into a timing state label and injected into the dynamic attributes of the node. In the graph convolutional network, the edge weights are used as feature aggregation paths to jointly iteratively aggregate the temporal state labels and initial visual features of adjacent slots, so that the initial visual features of the occluded slots are compensated by the initial visual features and temporal state labels of adjacent slots that have completed the intercalation action. Based on the aggregated node features, the probability of missing insertion in each slot is calculated, and the coordinate data of the missing slot is output.
[0007] Preferably, the edge weights in the static spatial topology graph structure are dynamically initialized based on the physical obstruction angle of the hairpin ends between adjacent slots; Extract the contour topology of the hairpin end in the image stream at the stator end, calculate the spatial overlap of the hairpin end extension direction between adjacent slots, and map the spatial overlap to an occlusion attenuation coefficient. The initial edge weights based on the physical spacing are weighted and corrected using the occlusion attenuation coefficient to obtain dynamic edge weights that reflect the degree of visual occlusion between adjacent slots. This allows the graph convolutional network to control the attenuation of information transmitted by features when aggregating features, based on the dynamic edge weights.
[0008] Preferably, the process of extracting the initial visual features of each slot end region in the image stream includes: extracting multiple frames of end images within a continuous time window from the acquired stator end image stream; Inter-frame difference calculation is performed on the local image region corresponding to the slot in the multi-frame end image to obtain the time-varying light intensity differential features of the slot end region before and after the insertion action; The light intensity time-varying differential features are spliced and fused with the spatial texture features of the local image region in the current frame in the channel dimension to generate the initial visual features that include dynamic change information of the interpolation action and static spatial structure.
[0009] Preferably, the process of converting the execution action sequence in the timing signal of the wiring mechanism into the timing state label includes: parsing the timing signal of the wiring mechanism and extracting the wiring displacement curve and the wiring force curve; Calculate the time offset between the moment when the insertion displacement curve reaches the preset insertion depth position and the moment when the insertion force curve reaches the peak force position, compare the time offset with a preset offset threshold, and determine the position confidence of the current insertion action; The location confidence is combined with the action triggering timing of the insertion mechanism and encoded into a continuous multi-dimensional vector containing the action execution timing and the degree of execution completion. This vector is then injected as the timing state label into the dynamic attribute of the corresponding node.
[0010] Preferably, the process of performing the joint iterative aggregation in the graph convolutional network includes: for a target node in the topological graph structure, obtaining the initial visual features and temporal state labels of the neighboring nodes of the target node; The initial visual features of the target node and the initial visual features of the neighboring nodes are similar to calculate the spatial attention weight. The temporal state label of the target node and the temporal state label of the neighboring nodes are temporally aligned and matched to obtain the temporal attention weight. The features of the neighboring nodes are weighted and summed using the spatial attention weights and the temporal attention weights to update the feature representation of the target node.
[0011] Preferably, the dynamic edge weights are adaptively updated during each joint iteration aggregation process of the graph convolutional network; Obtain the updated temporal state label of each node in the current iteration round. When the number of connected nodes among the adjacent nodes changes, recalculate the spatial occlusion contribution of the connected nodes to the unconnected nodes. Based on the updated spatial occlusion contribution, the exponential decay rate of the occlusion attenuation coefficient is adjusted so that the dynamic edge weight dynamically tightens the feature transfer channel as the number of inserted cards increases during the insertion process, thereby suppressing feature smoothing caused by excessive aggregation.
[0012] Preferably, after obtaining the time-varying differential light intensity features, the time-varying differential light intensity features are converted from the time domain to the frequency domain to obtain the time-varying differential spectrum; A bandpass filter is set according to the operating frequency range of the insertion mechanism, and the time-varying differential spectrum is filtered by the bandpass filter to filter out the difference frequency components in the ambient light flicker frequency band and the high-frequency noise frequency band. The filtered time-varying differential spectrum is converted back to the time domain to obtain a pure light intensity time-varying differential feature that eliminates ambient light fluctuation interference. The pure light intensity time-varying differential feature is then spliced and fused with the spatial texture feature.
[0013] Preferably, a cross-modal interaction mechanism is introduced when calculating the spatial attention weights and the temporal attention weights; The temporal state labels of the adjacent nodes are mapped to temporal guidance vectors in the visual feature space. The initial visual features of the target node and the adjacent nodes are modulated by dot product using the temporal guidance vectors. The spatial attention weights are calculated based on the modulated initial visual features. The initial visual features of the adjacent nodes are synchronously mapped to visual constraint vectors in the temporal space. The temporal state labels are then gating and filtered using the visual constraint vectors. The temporal attention weights are calculated based on the filtered temporal state labels.
[0014] Preferably, after calculating the missing insertion probability of each slot based on the aggregated node features, the undetermined slots whose missing insertion probability is within a preset fuzzy range are identified; For the undetermined slot, the historical original image data and historical time sequence signal of the undetermined slot before and after the insertion action are obtained by tracing back along the time axis; The local image of the undetermined slot in the historical original image data is magnified to a high resolution scale, and high-frequency detail features are re-extracted at the high resolution scale. The high-frequency detail features are then correlated with the force mutation features in the historical time series signal. Based on the results of the correlation test, the missing insertion probability of the undetermined slot is corrected.
[0015] Preferably, before constructing the static spatial topology diagram, the specifications of the flat wire motor stator under the current production task are analyzed, including the stator outer diameter, the number of slots, and the slot distribution angle. The specification parameters are input into the parameterized topology generator, which calculates the polar coordinate position of each slot based on the stator outer diameter and the slot distribution angle, and generates a node set according to the number of slots. Based on the polar coordinate distance between adjacent slots and the hairpin span constraint, the nodes in the node set are automatically connected and assigned weights to directly generate the static spatial topology diagram structure adapted to the current specification parameters, replacing the original stator model's topology diagram structure.
[0016] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. This invention transforms stator slots from isolated objects into a spatially interconnected graph topology network by constructing a static spatial topology graph structure with slots as nodes and the physical distance between adjacent slots as edge weights. It synchronously acquires the timing signals of the insertion mechanism's actions and the image stream of the stator ends, using the initial visual features in the image stream as node attributes and injecting the timing signals of the insertion mechanism's actions into timing state labels as dynamic node attributes, thus achieving data-level fusion of visual features and timing action states. In the graph convolutional network, edge weights are used as feature aggregation paths to jointly iteratively aggregate the timing state labels and initial visual features of adjacent slots, enabling the visual features of occluded slots to be compensated and transferred from the visual features and timing state labels of adjacent slots that have completed insertion actions. This data processing logic breaks through the limitations of independent extraction of visual features from a single slot. It utilizes the temporal action transmission mechanism of the physical spatial neighborhood to jointly reconstruct visual features, and performs cross-space compensation for missing information in occluded areas. This overcomes the misjudgment defects caused by incomplete missing visual features in densely occluded scenes, and improves the system's recognition error tolerance and the reliability of missing state estimation under complex physical occlusion conditions.
[0017] 2. This invention introduces dynamic edge weights and cross-modal interaction mechanisms during feature aggregation. Based on the physical occlusion angle of the card-ends between adjacent slots, the occlusion attenuation coefficient is calculated and the edge weights are dynamically adjusted. During iterative aggregation in the graph convolutional network, the information attenuation amplitude of feature transmission is controlled by the dynamic edge weights, and the edge weights are adaptively updated according to changes in the number of inserted nodes, suppressing feature smoothing caused by over-aggregation. When extracting initial visual features, inter-frame difference calculations are performed on multiple frames of end images within a continuous time window to obtain time-varying light intensity differential features. Combined with time-domain frequency-domain transformation, the difference frequency components of the ambient light flicker frequency band are filtered out, obtaining pure time-varying light intensity differential features and fusing them with spatial texture features, eliminating interference from ambient light fluctuations on feature expression. When calculating attention weights, the temporal guidance vector mapped by the temporal state label is used to perform dot-multiplication modulation on the visual features, and the visual constraint vector mapped by the visual features is used to perform gating filtering of the temporal state labels, achieving feature filtering with bidirectional constraints of vision and temporal time. For undetermined slots with a missing insertion probability in the ambiguous range, historical original image data and historical time-series signals are traced back along the time axis. High-frequency detail features are extracted at a high-resolution scale and their correlation with stress abrupt change features is checked to correct the missing insertion probability and reduce the misjudgment rate in ambiguous boundary areas. Stator specification parameters are parsed and input into a parameterized topology generator to automatically generate a static spatial topology structure adapted to the current specification parameters. Attached Figure Description
[0018] Figure 1 This is a flowchart for the synchronous acquisition process of the present invention; Figure 2 This is a flowchart of the static spatial topology graph dynamic edge weight initialization and iterative adaptive update process of the present invention. Figure 3 This is a flowchart of the initial visual feature extraction and time-frequency domain filtering purification process at the stator end of the present invention. Figure 4 This is a flowchart of the timing signal analysis and timing status tag encoding of the insertion mechanism of the present invention; Figure 5 This is a flowchart of the cross-modal joint iterative aggregation node feature update process of the convolutional network of the present invention; Figure 6 This is a flowchart of the missing insertion probability calculation, undetermined slot correction, and parameterized topology generation process of the present invention. Detailed Implementation
[0019] Please refer to the attached document. Figure 1 In one embodiment, a static spatial topology is first constructed based on the coordinates of the stator slot distribution of the flat wire motor, with slots as nodes and the physical distance between adjacent slots as edge weights. The slots of the flat wire motor stator are uniformly distributed along the circumferential direction, and the spatial position of each slot is described using a polar coordinate system. For a flat wire motor stator with... The stator with the first slot, the first The polar angle of each slot is calculated as follows:
[0020] Where i is the slot number, ranging from 1 to N. The radius from the stator center to the slot center is R. Convert the polar coordinates to rectangular coordinates:
[0021] The physical distance between adjacent slots is used as the initial edge weight and is calculated as follows:
[0022] Where j represents the adjacent slots of i, including physically adjacent slots and slots corresponding to the hairpin span. Physically adjacent slots refer to the slots with a polar angle difference of 1 / 2. The slots, the slots corresponding to the hairpin span, refer to those with polar angle differences of k times. The slots are defined by k, where k is the span of the card. Based on the node coordinates and edge weights, a static spatial topology graph is constructed. Where V is the set of nodes, each node corresponding to a stator slot, and E is the set of edges connecting all adjacent slots. Let be the initial edge weight matrix.
[0023] The timing signal of the insertion mechanism and the image stream at the stator end are acquired synchronously. Synchronization between the insertion mechanism and the image acquisition device is achieved through a hardware trigger signal. When the insertion pins of the insertion mechanism begin their insertion action, the image acquisition device is simultaneously triggered to capture a frame of the stator end image, ensuring strict alignment of the timestamps of the timing signal and the image stream, with a timestamp accuracy of milliseconds. The image acquisition device operates at a frame rate of 30fps, continuously acquiring images of the stator end during the insertion process to form an image stream. The insertion mechanism is equipped with displacement and force sensors, with a sampling frequency of 1kHz, to acquire real-time displacement data of the insertion pins and force data during the insertion process, forming the timing signal of the insertion mechanism's action.
[0024] The initial visual features of the end regions of each slot in the image stream are extracted as node attributes. In the acquired stator end image stream, multiple frames of end images within a continuous time window are extracted. The time window length is 10 frames, corresponding to a time span of 0.33 seconds. Inter-frame difference calculation is performed on the local image regions of the corresponding slots in the multiple frame end images to obtain the time-varying light intensity difference features of the slot end regions before and after the insertion operation. The inter-frame difference image calculation is as follows: in Let be the gray value of the image at coordinates (x, y) at time t. This is the inter-frame time interval, with a value of 1 / 30 of a second. It applies to the local image region corresponding to slot i. Summing the absolute differences of all pixels within the range yields the time-varying difference feature of light intensity: Spatial texture features of local image regions in the current frame are extracted using the gray-level co-occurrence matrix (GLCM) method. The GLCM is calculated in four directions: 0°, 45°, 90°, and 135°. Contrast, energy, and entropy texture features are extracted, and the average value across the four directions is taken as the spatial texture feature. The time-varying differential features of light intensity and spatial texture features are spliced and fused along the channel dimension to generate initial visual features containing dynamic changes in the interpolation action and static spatial structure. The initial visual features are used as static attributes of the corresponding nodes.
[0025] The execution sequence of actions in the timing signal of the wiring mechanism is converted into timing state labels and injected into the dynamic attributes of the nodes. The timing signal of the wiring mechanism is analyzed to extract the wiring displacement curve. Force curve of the insertion line The insertion displacement curve describes the change in displacement of the pin from its initial position to the insertion depth over time, while the insertion force curve describes the change in resistance experienced by the pin during insertion over time. The insertion displacement curve is calculated to reach the preset insertion depth. The moment That is, satisfying The minimum time value. Calculate the moment when the stress curve of the insertion wire reaches its peak stress. That is, satisfying The time value, where This is the moment the plugging action begins. This is the moment the insertion action ends. Calculate the time offset:
[0026] Preset offset threshold With maximum allowed offset ,when At that time, location reliability ;when When the location reliability is calculated, it is as follows: when At that time, location reliability The position confidence level and the timing of the insertion mechanism's action triggering will be determined. Combined, the data is encoded into a continuous multi-dimensional vector containing the timing of action execution and the degree of execution completion, serving as a timing state label: Inject the time-series status label into the dynamic attributes of the corresponding node.
[0027] In graph convolutional networks, edge weights are used as feature aggregation paths. The temporal state labels and initial visual features of adjacent slots are jointly and iteratively aggregated, so that the initial visual features of occluded slots are compensated by the initial visual features and temporal state labels of adjacent slots that have completed intercalation. The graph convolutional network contains three iterative aggregation layers, each with a feature dimension of 128. This is applied to target nodes in the topological graph structure. Get its set of neighboring nodes The initial visual features of the target node. Initial visual features of neighboring nodes ( Similarity calculations are performed to obtain spatial attention weights: in The spatial attention weight matrix is a learnable matrix. Use the sigmoid activation function. This will assign the temporal state labels to the target node. Temporal state labels of adjacent nodes Perform temporal alignment matching to obtain temporal attention weights: in The temporal temperature coefficient controls the decay rate of temporal similarity. The feature representation of the target node is updated by weighted summation of the features of neighboring nodes using spatial attention weights and temporal attention weights. Where l is the iteration number, and its value ranges from 0 to 2. and The feature transformation matrix is a learnable feature. These are the initial node features. After three rounds of iterative aggregation, the final node features are obtained. .
[0028] The probability of missing insertion for each slot is calculated based on the aggregated node features, and the coordinate data of the missing slot is output. The probability of missing insertion is calculated as follows: in and These are learnable classification weights and biases. A preset missing insertion probability threshold is also included. ,when When this occurs, it is determined that a slot has been missed, and its rectangular coordinates are output. The polar coordinates and initial edge weights of the stator slot nodes are shown in Table 1.
[0029] Table 1. Examples of polar coordinates and initial edge weights for stator slot nodes. ; Table 1 shows the polar coordinates, rectangular coordinates, and initial edge weights of the first 8 slots of the 48-slot stator. The radius R from the stator center to the slot center is 100 mm, the polar angle difference between adjacent slots is 0.1309 rad, and the initial edge weight is 13.05 mm, reflecting the physical spatial distance between adjacent slots. Each node corresponds to one stator slot, and the edge connections reflect the spatial adjacency relationship between slots.
[0030] This embodiment integrates the spatial relationships of stator slots into the data processing architecture by constructing a static spatial topology graph structure with slots as nodes and the physical distance between adjacent slots as edge weights. Simultaneously acquiring the timing signals of the insertion mechanism's actions and the image stream of the stator ends enables multimodal data fusion of visual features and timing states of actions. In a graph convolutional network, visual features and timing state labels of adjacent slots are aggregated through joint iteration, allowing occluded slots to obtain feature compensation from adjacent inserted slots, solving the problem of information loss in occluded scenarios when extracting features independently from a single slot. Based on the aggregated node features, the probability of missed insertion is calculated, and the coordinates of the missed slot are output.
[0031] Please refer to the attached document. Figure 2 In a preferred embodiment, the edge weights in the static spatial topology graph structure are dynamically initialized based on the physical occlusion angle of the hairpin ends between adjacent slots. The contour topology of the hairpin ends is extracted from the stator end image stream. The Canny edge detection algorithm is used to extract the edge contours of the hairpin ends, and Hough transform is used to detect straight line segments to identify the extension direction of the hairpin ends. For adjacent slots i and j, the angle between their hairpin end extension directions is calculated: in and These are the unit vectors representing the extension directions of the hairpin ends at slots i and j, respectively.
[0032] Calculate the spatial overlap of the hairpin ends extending in the direction between adjacent slots. Spatial overlap is defined as the ratio of the overlapping area of the projected images of two hairpin ends to the projected area of a single hairpin end. The overlap area is calculated by performing polygon fitting on the contours of the two hairpin ends. The average projected area of a single hairpin end is The spatial overlap is then calculated as follows: Mapping spatial overlap to occlusion attenuation coefficient: Where k is the occlusion coefficient mapping scaling factor, and its value ranges from 0 to 1. hour, This indicates that there is no visual obstruction between adjacent slots; when hour, This indicates that adjacent slots are completely blocked.
[0033] By using an occlusion attenuation coefficient to weight and correct the initial edge weights based on physical spacing, dynamic edge weights reflecting the degree of visual occlusion between adjacent slots are obtained: Dynamic edge weights reflect both the physical spatial distance between adjacent slots and the degree of visual occlusion. When graph convolutional networks aggregate features, the attenuation of information transmitted by the features is proportional to the dynamic edge weights. The more severe the occlusion, the smaller the edge weights, and the greater the attenuation of information transmitted by the features.
[0034] Dynamic edge weights are adaptively updated during each joint iteration aggregation process of the graph convolutional network. The updated temporal state labels of each node in the current iteration l are obtained, and the location confidence is extracted from them. .when When this happens, the node is determined to be an already connected node. The set of adjacent nodes is then counted. Number of wired nodes .when When changes occur, recalculate the spatial occlusion contribution of wired nodes to unwired nodes: in This refers to the spatial overlap between adjacent slots. The location confidence level is the distance to adjacent connected nodes.
[0035] The exponential decay rate of the occlusion attenuation coefficient is adjusted based on the updated spatial occlusion contribution: in This is the attenuation rate adjustment factor, with a value ranging from 0 to 0.1. As the number of connected nodes increases, Increase Decrease, dynamic edge weight This also reduces the dynamic tightening of the feature transfer channel, suppressing feature smoothing caused by over-aggregation. Examples of adjacent slot occlusion parameters and dynamic edge weight calculations are shown in Table 2.
[0036] Table 2. Example of adjacent slot occlusion parameters and dynamic edge weight calculation. ; Table 2 shows the occlusion parameters and dynamic edge weight calculation results for five pairs of adjacent slots. The occlusion coefficient mapping scaling factor k is set to 0.5, and the attenuation rate adjustment factor λ is set to 0.05. The initial dynamic edge weight is calculated based on the initial occlusion attenuation coefficient. After two iterations, as the number of connected nodes increases, the occlusion contribution increases, the occlusion attenuation coefficient decreases, the dynamic edge weight decreases accordingly, and the attenuation of information transmitted by features increases.
[0037] This embodiment calculates the occlusion attenuation coefficient based on the physical occlusion angle and spatial overlap of the card-issuing ends of adjacent slots, and then weights and corrects the initial edge weights to obtain dynamic edge weights that reflect the degree of visual occlusion. This allows the graph convolutional network to control the attenuation of information transmitted by features according to the actual occlusion situation. In each iteration of aggregation, the dynamic edge weights are adaptively updated according to the change in the number of inserted nodes, adjusting the exponential decay rate of the occlusion attenuation coefficient, dynamically tightening the feature transmission channel, avoiding feature smoothing caused by over-aggregation, and improving the discriminative power of node features.
[0038] Please refer to the attached document. Figure 3 In another preferred embodiment, after obtaining the time-varying differential features of light intensity, they are transformed from the time domain to the frequency domain to obtain the time-varying differential spectrum. The time-varying differential feature sequence of length T is then transformed using a discrete Fourier transform: in Here, j represents the frequency component, and j is the imaginary unit. A bandpass filter is set based on the operating frequency range of the wiring mechanism. The operating frequency of the wiring mechanism is typically between 0.5Hz and 2Hz; therefore, the passband range of the bandpass filter is set to 0.4Hz to 2.2Hz. This bandpass filter is used to filter the time-varying differential spectrum, removing difference frequency components in the ambient light flicker band (50Hz or 60Hz and its harmonics) and the high-frequency noise band (greater than 10Hz). The filtered spectrum is... ,in Let be the frequency response function of the bandpass filter, within the passband. Within the stopband The filtered time-varying differential spectrum is transformed back to the time domain using inverse discrete Fourier transform to obtain the pure light intensity time-varying differential characteristics that have eliminated ambient light fluctuation interference. The time-varying difference features of pure light intensity are spliced and fused with spatial texture features to generate initial visual features.
[0039] Please refer to the attached document. Figure 4The timing signal of the insertion mechanism's action is analyzed to extract the insertion displacement curve and the insertion force curve. The time offset between the moment the insertion displacement curve reaches the preset insertion depth and the moment the insertion force curve reaches the peak force is calculated. The time offset is compared with a preset offset threshold to determine the position confidence of the current insertion action. The four parameters—position confidence, action trigger timing, insertion depth, and peak force—are encoded into a continuous multi-dimensional vector and injected as a timing state label into the dynamic attributes of the corresponding nodes.
[0040] Please refer to the attached document. Figure 5 In the joint iterative aggregation process within graph convolutional networks, a cross-modal interaction mechanism is introduced when calculating spatial and temporal attention weights. This maps the temporal state labels of adjacent nodes to temporal guidance vectors in the visual feature space. in This is the temporal-to-visual mapping matrix. This is the bias term. The initial visual features of the target node and its neighboring nodes are modulated by a dot product using the temporal guiding vector. The modulated visual features are as follows: , ,in This represents element-wise dot product. Spatial attention weights are calculated based on the modulated visual features.
[0041] Synchronization maps the initial visual features of neighboring nodes to visual constraint vectors in the temporal space: in This is a mapping matrix from vision to time. This is the bias term. The temporal state labels are gated and filtered using visual constraint vectors; the filtered temporal state labels are... ,in The sigmoid activation function is used. Temporal attention weights are calculated based on the filtered temporal state labels. The features of neighboring nodes are weighted and summed using the spatial and temporal attention weights to update the feature representation of the target node. An example of the interpolation action parameters and temporal state label encoding is shown in Table 3.
[0042] Table 3. Examples of Cable Insertion Action Parameters and Timing Status Labels ; Table 3 shows the parameters and timing status label encoding results for the five sets of wiring actions. (Preset offset threshold) The maximum allowable offset is 5ms. The time offset is 25ms. As the time offset increases, the position confidence gradually decreases, and the insertion depth and peak force also decrease accordingly. The timing status label contains information in four dimensions: action trigger time, position confidence, insertion depth, and peak force, comprehensively reflecting the execution status of the insertion action.
[0043] This embodiment eliminates interference from ambient light fluctuations and high-frequency noise by performing time-domain-frequency transformation and bandpass filtering on the time-varying differential features of light intensity, thus obtaining pure dynamic features. Key parameters of the intercalation displacement curve and force curve are encoded into multi-dimensional temporal state labels, comprehensively reflecting the execution state of the intercalation action. A cross-modal interaction mechanism is introduced during the joint iterative aggregation process of the graph convolutional network. Temporal guiding vectors modulate visual features, and visual constraint vectors gate the temporal state labels, achieving feature selection with both visual and temporal constraints, thus improving the targeting and effectiveness of feature aggregation.
[0044] Please refer to the attached document. Figure 6 In another preferred embodiment, after calculating the missing insertion probability of each slot based on the aggregated node features, the missing insertion probability is identified as falling within a preset fuzzy range. Undetermined slots. Lower limit of the preset fuzzy range. Take 0.3, upper limit The value is set to 0.7. For the undetermined slot, historical original image data and historical time-series signals of the slot within a time range of ΔT before and after the insertion action are obtained by tracing back along the time axis. ΔT is set to twice the duration of the insertion action. The local image of the undetermined slot in the historical original image data is magnified to a high-resolution scale, and the resolution of the local image is improved by 4 times using the ESRGAN super-resolution reconstruction algorithm. High-frequency detail features, including edge details and texture details, are re-extracted at the high-resolution scale. The Laplacian pyramid algorithm is used to decompose the high-resolution image into high-frequency components of different scales, and the components are concatenated to form a high-frequency detail feature vector. .
[0045] Extracting stress abrupt change features from historical time-series signals, these features are defined as the maximum value of the second derivative of the stress curve during the intercalation process. The correlation between high-frequency detail features and abrupt force changes was tested, and their Pearson correlation coefficient was calculated. in For covariance, The standard deviation is used. The preset correlation coefficient threshold is... Take 0.6. When At that time, the missing insertion probability is corrected according to the sign of the correlation coefficient. If The corrected probability of missing insertion is ;if The corrected probability of missing insertion is .when If necessary, maintain the original probability of missing insertion. After correction, reassess the missing insertion status of the undetermined slots.
[0046] Before constructing the static spatial topology diagram, the specifications of the flat wire motor stator under the current production task are analyzed, including the stator outer diameter, number of slots, and slot distribution angle. These specifications are input into a parametric topology generator. The generator calculates the polar coordinate position of each slot based on the stator outer diameter and slot distribution angle, and generates a node set based on the number of slots. According to the polar coordinate distance between adjacent slots and the hairpin span constraint, the nodes in the node set are automatically connected and weighted, directly generating a static spatial topology diagram structure adapted to the current specifications, replacing the original stator model's topology diagram structure. A comparison of different stator specifications and topology diagram generation results is shown in Table 4.
[0047] Table 4 Comparison of different stator specifications and topology generation results ; Table 4 shows the parameters and topology generation results for four different stator specifications. After inputting stator outer diameter, number of slots, and other specification parameters, the parametric topology generator automatically calculates the coordinates of each slot, generates a set of nodes and edges, and outputs the corresponding static spatial topology graph. The number of nodes, edges, and average edge weights differ among stator specifications, reflecting the differences in stator slot distribution.
[0048] This embodiment identifies undetermined slots with a missing insertion probability within an ambiguous range, traces back their historical original image data and historical time-series signals, extracts high-frequency detail features at a high-resolution scale, and performs correlation tests with stress change features. Based on the test results, the missing insertion probability is corrected, reducing the misjudgment rate in ambiguous boundary areas. A parametric topology generator parses stator specification parameters and automatically generates a static spatial topology structure adapted to the current specification, improving the versatility of the detection system.
Claims
1. A flat wire motor hairpin missing insertion online detection data processing system, characterized in that, include: Based on the distribution coordinates of the stator slots of the flat wire motor, a static spatial topology graph structure is constructed with the slots as nodes and the physical distance between adjacent slots as edge weights. The process involves: synchronously acquiring the timing signal of the insertion mechanism's action and the image stream of the stator end; extracting the initial visual features of each slot end region in the image stream as the attributes of the node; and converting the execution sequence of the insertion mechanism's action timing signal into a timing state label and injecting it into the dynamic attributes of the node. This includes: parsing the timing signal of the insertion mechanism's action and extracting the insertion displacement curve and the insertion force curve; calculating the time offset between the moment the insertion displacement curve reaches a preset insertion depth and the moment the insertion force curve reaches its peak force; comparing the time offset with a preset offset threshold to determine the position confidence of the current insertion action; and combining the position confidence with the action triggering timing of the insertion mechanism to encode it into a continuous multi-dimensional vector containing the action execution timing and the degree of execution, which is then injected as the timing state label into the dynamic attributes of the corresponding node. In the graph convolutional network, the edge weights are used as feature aggregation paths to jointly iteratively aggregate the temporal state labels and initial visual features of adjacent slots, so that the initial visual features of the occluded slots are compensated by the initial visual features and temporal state labels of adjacent slots that have completed the intercalation action. Based on the aggregated node features, the probability of missing insertion in each slot is calculated, and the coordinate data of the missing slot is output. The edge weights in the static spatial topology graph structure are dynamically initialized based on the physical occlusion angle of the hairpin ends between adjacent slots; the contour topology of the hairpin ends is extracted from the stator end image stream, the spatial cross-over overlap of the hairpin ends extending in the adjacent slots is calculated, and the spatial cross-over overlap is mapped to an occlusion attenuation coefficient; the initial edge weights based on the physical spacing are weighted and corrected using the occlusion attenuation coefficient to obtain dynamic edge weights that reflect the degree of visual occlusion between adjacent slots, so that the graph convolutional network controls the attenuation of information transmitted by the features according to the dynamic edge weights when aggregating features.
2. The flat wire motor hairpin missing insertion online detection data processing system according to claim 1, characterized in that, The process of extracting the initial visual features of each slot end region in the image stream includes: extracting multiple frames of end images within a continuous time window from the acquired stator end image stream; Inter-frame difference calculation is performed on the local image region corresponding to the slot in the multi-frame end image to obtain the time-varying light intensity differential features of the slot end region before and after the insertion action; The light intensity time-varying differential features are spliced and fused with the spatial texture features of the local image region in the current frame in the channel dimension to generate the initial visual features that include dynamic change information of the interpolation action and static spatial structure.
3. The flat wire motor hairpin missing insertion online detection data processing system according to claim 1, characterized in that, The process of performing the joint iterative aggregation in the graph convolutional network includes: for a target node in the topological graph structure, obtaining the initial visual features and temporal state labels of the neighboring nodes of the target node; The initial visual features of the target node and the initial visual features of the neighboring nodes are similar to calculate the spatial attention weight. The temporal state label of the target node and the temporal state label of the neighboring nodes are temporally aligned and matched to obtain the temporal attention weight. The features of the neighboring nodes are weighted and summed using the spatial attention weights and the temporal attention weights to update the feature representation of the target node.
4. The flat wire motor hairpin missing insertion online detection data processing system according to claim 3, characterized in that, The dynamic edge weights are adaptively updated during each joint iteration aggregation process of the graph convolutional network; Obtain the updated temporal state label of each node in the current iteration round. When the number of connected nodes among the adjacent nodes changes, recalculate the spatial occlusion contribution of the connected nodes to the unconnected nodes. Based on the updated spatial occlusion contribution, the exponential decay rate of the occlusion attenuation coefficient is adjusted so that the dynamic edge weight dynamically tightens the feature transfer channel as the number of inserted cards increases during the insertion process, thereby suppressing feature smoothing caused by excessive aggregation.
5. The flat wire motor hairpin missing insertion online detection data processing system according to claim 2, characterized in that, After obtaining the time-varying differential light intensity feature, the time-varying differential light intensity feature is transformed from the time domain to the frequency domain to obtain the time-varying differential spectrum; A bandpass filter is set according to the operating frequency range of the insertion mechanism, and the time-varying differential spectrum is filtered by the bandpass filter to filter out the difference frequency components in the ambient light flicker frequency band and the high-frequency noise frequency band. The filtered time-varying differential spectrum is converted back to the time domain to obtain a pure light intensity time-varying differential feature that eliminates ambient light fluctuation interference. The pure light intensity time-varying differential feature is then spliced and fused with the spatial texture feature.
6. The flat wire motor hairpin missing insertion online detection data processing system according to claim 3, characterized in that, A cross-modal interaction mechanism is introduced when calculating the spatial attention weights and the temporal attention weights; The temporal state labels of the adjacent nodes are mapped to temporal guidance vectors in the visual feature space. The initial visual features of the target node and the adjacent nodes are modulated by dot product using the temporal guidance vectors. The spatial attention weights are calculated based on the modulated initial visual features. The initial visual features of the adjacent nodes are synchronously mapped to visual constraint vectors in the temporal space. The temporal state labels are then gating and filtered using the visual constraint vectors. The temporal attention weights are calculated based on the filtered temporal state labels.
7. The flat wire motor hairpin missing insertion online detection data processing system according to claim 1, characterized in that, After calculating the missing insertion probability of each slot based on the aggregated node features, the undetermined slots whose missing insertion probability is in a preset fuzzy range are identified. For the undetermined slot, the historical original image data and historical time sequence signal of the undetermined slot before and after the insertion action are obtained by tracing back along the time axis; The local image of the undetermined slot in the historical original image data is magnified to a high resolution scale, and high-frequency detail features are re-extracted at the high resolution scale. The high-frequency detail features are then correlated with the force mutation features in the historical time series signal. Based on the results of the correlation test, the missing insertion probability of the undetermined slot is corrected.
8. The flat wire motor hairpin missing insertion online detection data processing system according to claim 1, characterized in that, Before constructing the static spatial topology diagram, the specifications of the flat wire motor stator under the current production task are analyzed. The specifications include the stator outer diameter, the number of slots, and the slot distribution angle. The specification parameters are input into the parameterized topology generator, which calculates the polar coordinate position of each slot based on the stator outer diameter and the slot distribution angle, and generates a node set according to the number of slots. Based on the polar coordinate distance between adjacent slots and the hairpin span constraint, the nodes in the node set are automatically connected and assigned weights to directly generate the static spatial topology diagram structure adapted to the current specification parameters, replacing the original stator model's topology diagram structure.
Citation Information
Patent Citations
Flat wire motor missing insertion detection method and system based on machine vision
CN120472232A
Resistor disc defect online detection system and grading method based on machine vision
CN120765532A
