Method and apparatus for training yarn-out state detection model
By integrating image processing and laser scanning with a machine learning-based yarn extrusion state detection model, the method addresses the challenge of high-speed yarn detection, enhancing accuracy and efficiency in identifying abnormalities for improved spinning process stability and product quality.
Patent Information
- Application Number
- JP2025061769
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-25
- Filing Date
- 2025-04-03
- Publication Date
- 2025-07-24
- Estimated Expiration
- 2044-12-20
AI Technical Summary
Conventional methods struggle to accurately detect the state of yarn extrusion from melt spinning containers due to high-speed movement, leading to difficulties in identifying abnormalities like yarn breakage and inefficient maintenance, which affects product quality and resource utilization.
A method combining image processing and laser scanning technologies, utilizing a yarn extrusion state detection model trained with machine learning algorithms to analyze image and laser reflection data for precise yarn state detection.
Enhances the accuracy and efficiency of yarn state detection, enabling early identification of abnormalities and improving the stability and quality of the spinning process.
Smart Images

Figure 2025109204000001_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computers, and in particular, to a method and an apparatus for training a yarn extrusion state detection model.
Background Art
[0002] In the chemical fiber industry, the speed of extruding yarn from a melt spinning container is very fast, and the fiber yarn extruded from the spinneret is extremely thin and visually becomes a strip-shaped ghost. In the conventional technology, it is difficult to accurately check the state of the yarn visually. After abnormal situations such as yarn breakage and yarn floating occur, or blade cleaning is performed on the spinneret at a certain period, the quality of yarn extrusion is guaranteed.
Summary of the Invention
Problems to be Solved by the Invention
[0003] The present disclosure provides a method, an apparatus, a device, and a storage medium for detecting a yarn extrusion state in order to solve or alleviate one or more technical problems in the conventional technology.
Means for Solving the Problems
[0004] According to a first aspect, the present disclosure provides a method for detecting a yarn extrusion state, including: collecting a first image and laser reflection data of a target yarn path in a spinning container; obtaining image features of the target yarn path based on the first image; obtaining laser features of the target yarn path based on the laser reflection data; and obtaining a yarn extrusion state of the target yarn path based on the image features and the laser features by using a yarn extrusion state detection model.
[0005] According to a second aspect, the present disclosure provides a device for detecting a yarn extrusion state, including: A collection module for collecting the first image of the target yarn path in the spinning container and laser reflection data, An image feature determination module for obtaining image features of the target yarn path based on the first image, A laser feature determination module for obtaining laser features of the target yarn path based on the laser reflection data, A detection module for obtaining the yarn extrusion state of the target yarn path based on the image features and the laser features by using a yarn extrusion state detection model, and a detection device for the yarn extrusion state is provided.
[0006] The third aspect is to obtain training image features of the target yarn path based on a sample image of the target yarn path, To obtain training laser features of the target yarn path based on laser sample data of the target yarn path, To obtain a prediction result of the yarn extrusion state of the target yarn path based on the training image features and the training laser features by using a first detection model, To determine a loss function based on the prediction result of the yarn extrusion state of the target yarn path and the true result, To update the parameters of the first detection model based on the loss function to obtain a trained yarn extrusion state detection model, and a training method for the yarn extrusion state detection model is provided. The fourth aspect is an image feature extraction module for obtaining training image features of the target yarn path based on a sample image of the target yarn path, A laser feature extraction module for obtaining training laser features of the target yarn path based on laser sample data of the target yarn path, A prediction module for obtaining a prediction result of the yarn extrusion state of the target yarn path based on the training image features and the training laser features by using a first detection model, A loss function determination module for determining a loss function based on the prediction result of the yarn extrusion state of the target yarn path and the true result, A training module for updating parameters of the first detection model based on a loss function to obtain a trained yarn extrusion state detection model, and a training apparatus for a yarn extrusion state detection model including the training module are provided.
[0007] A fifth aspect includes at least one processor and a memory communicably connected to the at least one processor, and instructions executable by the at least one processor are stored in the memory, and the instructions can cause the at least one processor to execute a method according to any one of the embodiments of the present disclosure, and an electronic device executed by the at least one processor is provided.
[0008] A sixth aspect provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute a method according to any one of the embodiments of the present disclosure.
Advantages of the Invention
[0009] The beneficial effects of the invention according to the present disclosure include at least the following. By comprehensively applying image processing and laser scanning technology, the accuracy and efficiency of yarn state detection can be effectively improved. By adopting an advanced machine learning method, the system can have better adaptability and intelligence, detect abnormal states early, and improve the stability of the entire spinning process and the quality of products.
Brief Description of the Drawings
[0010]
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Embodiments for Carrying Out the Invention
[0011] It should be understood that the content described in this part does not limit the key points or important features related to the embodiments of the present disclosure, nor does it limit the scope of the present disclosure. Other features of the present disclosure can be easily understood based on the following description.
[0012] In the drawings, unless otherwise specified, the same reference numerals in multiple drawings indicate the same or similar members or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only show some embodiments of the present disclosure and should not be regarded as limiting the scope of the present disclosure.
[0013] Hereinafter, the present invention will be described in more detail with reference to the drawings. In each figure, members having the same or similar functions are denoted by the same reference numerals. Although various aspects of the embodiments are shown in the drawings, unless otherwise specified, the drawings are not necessarily drawn to scale.
[0014] In addition, in order to better explain the present disclosure, many specific details are shown in the following specific embodiments. Those skilled in the art should understand that the present disclosure can be implemented similarly even without certain specific details. In some embodiments, methods, means, elements, circuits, etc. well-known to those skilled in the art are not described in detail in order to emphasize the gist of the present disclosure.
[0015] In the related art, after the polyester melt is extruded from the spinneret, it cools and solidifies to form primary fibers. The primary fibers are oiled and bundled by an oiling nozzle, and then sent to a winder through a thread guide hook for winding and forming. After working for a certain period of time, the polyester material remaining around the yarn discharge holes of the spinneret gradually accumulates. After the remaining polyester material hardens, it blocks the yarn discharge holes, thus changing the fine cross-sectional shape of the melt, causing scratches on the fiber yarns, making the extruded yarns thinner, and potentially causing situations such as yarn floating and breakage. The conventional method is to perform blade cleaning on the spinneret at regular intervals to ensure the cleanliness of each yarn discharge hole in the spinneret. Such a regular maintenance policy lacks flexibility, may be performed frequently in some cases, wasting resources and time, or may be insufficient in some cases. Once yarn breakage occurs, the entire winding package has to be discarded.
[0016] Since the yarn extrusion speed is very fast, it is difficult to accurately capture the state of the yarn. Such blurring caused by high-speed movement not only affects the image quality but also reduces the accuracy of fault detection. The conventional technology cannot be visually detected unless obvious abnormal situations such as yarn floating and yarn breakage occur.
[0017] To at least partially solve one or more of the above-mentioned problems and other potential problems, embodiments of the present disclosure combine visual detection and laser scanning, reinforce image data and laser reflection data by an algorithm, and provide a method for detecting the yarn extrusion state that accurately detects the state of the yarn. According to the technical solution of the embodiments of the present disclosure, the accuracy and efficiency of yarn state detection can be effectively improved, abnormal states can be detected early, and the stability of the entire spinning process and the quality of the product can be improved.
[0018] FIG. 1 is a flowchart of a method for detecting the yarn extrusion state according to an embodiment of the present disclosure. As shown in FIG. 1, the method includes at least the following steps.
[0019] S110: Collect the first image of the target yarn path and laser reflection data in the spinning container. In an embodiment of the present disclosure, the spinning container has a plurality of spinning nozzles and the same number of yarn paths. The yarn path can be understood as the movement path of a set of fiber yarn bundles corresponding to each spinning nozzle. Specifically, as shown in FIG. 2, the three first spinning nozzles 210 in the figure are located in the front row, and the two second spinning nozzles 220 are located in the rear row. The yarn path refers to the movement path of a set of fiber yarns 230 extruded from one spinning nozzle, which are oiled and bundled by the oil supply nozzle 240, and then enter the spinning cylinder through the yarn guide hook 250. It is a directly observable movement path of the fiber yarn bundle in one stage during the process. Once it enters the spinning cylinder, it is difficult to observe. The fiber yarn 230 is ghost-like before being bundled. The yarn guide hook may include an upper yarn guide hook and a lower yarn guide hook located above the oil supply nozzle.
[0020] The first image of the target yarn path is an image obtained by imaging at least one yarn path with a camera device. Multiple yarn paths can be imaged at once, and the first image of the target yarn path can be cut out from them. In order to obtain better image quality and a better imaging angle, each target yarn path can be imaged separately. The camera device may be a high-speed camera that uses high-speed imaging technology to capture the yarn path image. The high-speed imaging camera can reduce or eliminate the ghost caused by the fast movement of the yarn bundle by capturing images at an extremely high frame rate. With appropriate light irradiation and imaging angle, the visibility of the yarn state can be enhanced.
[0021] The laser reflection data is the reflection signal data obtained by irradiating the yarn bundle of the target yarn path using laser scanning technology. When a laser beam irradiates the running yarn bundle, scattering, reflection, or refraction phenomena occur. The signals generated by these optical interactions provide important information about the yarn bundle. The collected reflection signal data can be processed by an algorithm to extract the parameter of the key point regarding the yarn state.
[0022] S120: Based on the first image, obtain the image features of the target yarn path. Using an image processing algorithm (e.g., edge detection, contrast enhancement), image features of the yarn in the target yarn path can be extracted, such as the width, shape, and distance between yarn bundles of the yarn.
[0023] S130: Obtain the laser characteristics of the target yarn path based on the laser reflection data. By performing feature extraction on the laser reflection data, laser characteristics of the target yarn path can be obtained, such as diameter, speed, surface roughness, and optical characteristics due to laser scattering and reflection. By analyzing the distribution of the reflection intensity, the diameter and surface condition of the yarn can be estimated.
[0024] S140: Using a yarn extrusion state detection model, obtain the yarn extrusion state of the target yarn path based on the image features and laser characteristics. By using a pre-trained machine learning or deep learning model (e.g., convolutional neural network, support vector machine, etc.) to process the image features and laser characteristics, the yarn extrusion state of the yarn path is output. In one example, since a convolutional neural network (CNN) model is good at processing image data and can provide detailed predictions through probability output, the yarn extrusion state detection model can use a convolutional neural network (CNN) model.
[0025] The yarn extrusion state may include a plurality of state categories defined according to different possible situations and risk levels of the yarn. These state categories not only indicate the current situation of the yarn but also suggest the risk level that can lead to yarn breakage. The following are a set of exemplary states.
[0026] State 1 - Normal: Explanation: The running of the yarn is normal and no abnormality is visible. Risk level: Low. There is almost no risk of yarn breakage. State 2 - Slight fluctuation: Explanation: Slight waves or vibrations occur in the yarn, but they do not exceed the normal range. Risk level: low to medium. It indicates that fine-tuning of the machine's operating conditions may be required. State 3 - Obvious fluctuations Explanation: The fluctuations of the yarn are obvious and may affect the yarn quality. Risk level: medium. If operated for a long time, it may cause quality problems or a small probability of yarn breakage. State 4 - Twisting: Explanation: Twisting or roughening occurs on the yarn surface, and the running path of the yarn is irregular. Risk level: medium to high. In this case, the possibility of yarn breakage and production stoppage is further increased. State 5 - Abnormal tension: Explanation: It can indicate that the tension of the yarn is significantly abnormal, either too loose or too tight. Risk level: high. There is a high possibility of yarn breakage. State 6 - Obvious damage: Explanation: Physical damage such as wear and signs of breakage appears significantly on the yarn. Risk level: very high. There is a very high possibility of immediately causing yarn breakage and severe product quality problems.
[0027] After obtaining the detection result of the yarn extrusion state, further, according to the situation of the operator and the production tact, the blade cleaning operation can be timely performed on the spinning container corresponding to the yarn path with a high risk level.
[0028] According to the technical solution of the embodiment of the present disclosure, by comprehensively applying image processing and laser scanning technologies, the accuracy and efficiency of yarn state detection can be effectively improved, and by adopting an advanced machine learning method, the system can be made to have better adaptability and intelligence, detect abnormal states early, and improve the stability of the entire spinning process and the quality of the product.
[0029] In a possible embodiment, collecting the first image and laser reflection data of the target yarn path in the spinning container in (S110) further includes the following steps.
[0030] S111: Control to move the patrol device in front of the spinning container to be detected. In an embodiment of the present disclosure, the patrol device may be an AGV (Automated Guided Vehicle) operating according to a preset route or command, or a patrol device moving on a fixed track, but is not limited herein. The advantage of using the patrol device is that a single set of collection devices can detect multiple spinning containers in a plurality of adjacent channels one by one. Moreover, the movable patrol device can adjust the imaging angle to collect better quality detection data.
[0031] S112: Trigger the camera device and laser scanning device of the patrol device, and collect the first image and laser reflection data of the target yarn path in the spinning container. The target yarn path includes a moving path in which a plurality of yarn bundles ejected from one spinning die are gathered into one by a yarn guide hook.
[0032] In an embodiment of the present disclosure, a plurality of detection stations can be preset in front of the spinning container to avoid the front row yarn path blocking the rear row yarn path and to facilitate imaging the yarn paths at different positions in the rear row at an appropriate angle. That is, each detection station may be used to collect data of a plurality of yarn paths. After reaching the detection station, the line corresponding to the detection station is used as a plurality of target yarn paths, and the camera device and laser scanning device of the patrol device are triggered to sequentially collect the first image and laser reflection data for each target yarn path.
[0033] According to the technical solution of the embodiment of the present disclosure, by using a movable patrol device to collect data of the target yarn path at a plurality of detection stations, better quality detection data can be collected.
[0034] In a possible embodiment, obtaining the image features of the target yarn path based on the first image (S120) further includes the following steps. S121: Perform morphological processing on the first image to obtain a second image. S122: Based on the second image, obtain the image features of the target yarn path. In the embodiments of the present disclosure, by using morphological transformations (such as shrinking and dilation) to improve the image composition of the yarn, the yarn state features in the obtained second image are more easily recognized by the model.
[0035] In a possible embodiment, S121 performing morphological processing on the first image to obtain a second image further includes the following steps. Using a first sliding window, perform dilation operations across the first image according to the sliding degree to obtain a dilated image. Using a second sliding window, perform shrinking operations across the first image according to the sliding degree to obtain a shrunk image. Based on the morphological gradient of the dilated image and the shrunk image, obtain the second image.
[0036] In the embodiments of the present disclosure, the dilation operation is a morphological operation that has the effect of expanding the objects in the image. Specifically, using a structural element as a sliding window to move the image, when it overlaps with any part of the object (yarn), pixels can be added to the center position of the structural element. As a result, the boundaries of the object expand outward, and larger structures are emphasized.
[0037] Shrinking is an operation opposite to dilation that has the effect of shrinking the objects in the image. Using the "sliding window", the rule is to keep the center pixel of the window unchanged only when all the pixels in the window are part of the object. As a result, the boundaries of the object shrink inward, and details and small objects can be removed.
[0038] The morphological gradient is calculated by subtracting the image after shrinking from the image after dilation. Since the edges of the object are enlarged by dilation and shrunk by shrinking, they are emphasized by the difference between the two. Such a method is particularly suitable for emphasizing thin lines and details such as fiber edges in the thread image.
[0039] According to the technical solution of the embodiment of the present disclosure, by applying the morphological gradient to the thread image, the edges of the thread can be made clearer and more prominent. This contributes significantly to subsequent feature extraction and model prediction. Thereby, in order to provide a clearer thread contour, the algorithm can more easily distinguish the thread from the background. Such edge enhancement technology is particularly advantageous for processing thread images generated under high-speed movement or low-contrast conditions, and strengthens the discrimination ability of the model for the thread state.
[0040] In a possible implementation form, the first sliding window and the second sliding window adopt different structural elements, and the vicinity and shape of the structural element (or kernel) depend on the specific features to be extracted or emphasized from the image. After the fiber yarn bundle is extruded from the spinneret, it gradually gathers into a bundle from top to bottom, that is, the yarn path is substantially in the vertical direction. When processing morphologically, the thickness of the yarn and the degree of surface roughness should be emphasized. Therefore, the constituent elements used for shrinking and dilation need to be designed according to the specific characteristics of the yarn. Considering that the yarn is substantially in the vertical direction and it is necessary to emphasize the horizontal fluff and burrs, the structural elements can be designed according to the following policy.
[0041] As the structural element for shrinking, in order to emphasize the longitudinal characteristics of the yarn and reduce the influence of burrs, a rectangular structural element that is long in the vertical direction can be used. Dimensionally, the height of the structural element needs to be larger than the width, so that in the shrinking process, it can be more affected by the horizontal characteristics of the yarn. The constituent element obtained in this way contributes to reducing the influence of burrs by removing small horizontal protrusions of the yarn edge during shrinking.
[0042] For the structural elements related to expansion, similar rectangular structural elements can be used. In order to recover the longitudinal information of the yarn lost due to shrinkage, the width of the structural elements related to expansion may be slightly larger, but they remain relatively long in the vertical direction. The structural elements obtained in this way contribute to the recovery of the original thickness of the yarn during the expansion process and avoid excessive expansion of the horizontal burrs.
[0043] As an example, the first sliding window is a rectangular structural element with an aspect ratio of 3:2 to 5:2, and the second sliding window is a rectangular structural element with an aspect ratio of 2:1 to 5:1. For example, as shown in Figure 3, the first sliding window has a length of 9*X pixels and a width of 5*X pixels. The second sliding window has a length of 9*X pixels and a width of 3*X pixels. Both are vertical in the longitudinal direction, and X is a positive integer greater than 0.
[0044] In another example, the first sliding window is an inverted trapezoidal structural element with an aspect ratio of 3:2 to 5:2 and wider at the top and narrower at the bottom, and the ratio of the upper and lower widths is 1.1:1 to 1.3:1. The second sliding window is an inverted trapezoidal structural element with an aspect ratio of 2:1 to 5:1, and the ratio of the upper and lower widths is 1.1:1 to 1.3:1. The inverted trapezoidal structure is used to provide a shape that approximates the yarn path, wider at the top and narrower at the bottom.
[0045] It should be noted that the selection of the structural elements needs to be adjusted according to the specific application scenario and the desired results. The optimal size and shape may need to be determined by experiments.
[0046] According to the technical solution of the embodiments of the present disclosure, the structural elements designed in the above manner can effectively emphasize the thickness and surface roughness of the yarn and reduce the influence of horizontal burrs. The design of this customized structural element is a key part of morphological processing and can significantly improve the effect of yarn image processing.
[0047] In one possible implementation, obtaining the image features of the target thread path by S122 based on the second image further includes the following steps. S122-1: Divide the second image into multiple segments along the longitudinal direction of the target thread path to obtain multiple segmented sub-images. S122-2: Perform feature extraction on the multiple segmented sub-images to obtain a plurality of first image features. S122-3: Obtain the image features of the target thread path based on the plurality of first image features and corresponding weight values.
[0048] In the embodiments of the present disclosure, since the thread path gradually converges from top to bottom and becomes narrower, and finally converges into one, the closer to the bottom, the smaller the interval between each fiber thread bundle, and it becomes more difficult to accurately identify the thickness and surface roughness of each thread bundle. Therefore, along the thread path direction, high weight values can be sequentially set for the first image features corresponding to the sub-images of each segment. That is, higher weight values are assigned to the first image features extracted from the multiple sub-images in the upper part of the thread path, and the weight values of the first image features extracted from the sub-images in the lower part of the thread path are lowered.
[0049] According to the technical solution of the embodiment of the present disclosure, by assigning corresponding weight values to the first image features extracted from the sub-images of each segment based on the morphological features of the thread path, it contributes to making the model pay more attention to the image features in the upper region of the thread path.
[0050] In laser scanning detection, threads in different thread extrusion states exhibit obvious differences in laser reflection or scattering data. These differences mainly result from changes in the physical properties and motion states of the threads, specifically including the following.
[0051] (1) Thread diameter: Threads of different specifications may have different diameters, and the pore diameters of the micropores of the spinning plate used are different. For example, the diameter of the thread in the normal state should be uniform and consistent. On the other hand, as the thread extrusion hole is gradually blocked, the diameter of the thread may change abnormally. (2) Surface roughness: In the normal state, the yarn is usually smooth on the surface, but the problematic yarn may exhibit a high surface roughness, which can affect the scattering pattern of the laser beam. (3) Scattering intensity: As the surface properties of the yarn change, the scattering intensity also changes. On a smooth surface, the scattering signal is weak and uniform, but on a rough or irregular surface, it causes amplification and pattern changes of the scattering signal. (4) Scattering angle: During laser scanning, the scattering angles of yarns in different states may vary due to differences in surface characteristics and shapes. For example, the scattering angle of normal yarn is relatively stable, but that of abnormal yarn (e.g., with changed surface roughness or cross-sectional shape) may become irregular. (5) Spectral characteristics: The spectral characteristics generated when the laser light interacts with the yarn may also vary depending on the state of the yarn. Depending on the physical state, the spectrum of the laser light may change slightly. (6) Continuity of the reflected beam: For normal yarn, its reflection is continuous and uniform during laser scanning, while discontinuous yarn may cause interruptions or irregularities in the reflection.
[0052] In short, by analyzing the differences in these laser scanning data, the abnormal characteristics of the fiber can be effectively identified and distinguished, providing important information for the monitoring and quality control of the spinning process.
[0053] In a possible implementation form, for S122-3 to obtain the image features of the target yarn path based on a plurality of first image features and corresponding weight values, it further includes the following steps. Determine the weight value of the multi-stage sub-image based on the width value of the yarn path included in the multi-stage sub-image. Obtain the second image features of the multi-stage sub-image based on the weight value of the multi-stage sub-image and the first image features. Obtain the image features of the target yarn path based on the second image features of the multi-stage sub-image.
[0054] In an embodiment of the present disclosure, based on the value of the width of the thread path in each stage of the sub-image, the corresponding weight value can be set. The value of the width may be the maximum width, the minimum width, or the average width. Multiply the weight value by the first image feature to obtain the second image feature. Further, integrate the second image features of the multi-stage sub-images to finally obtain the image feature of the target thread path.
[0055] In a possible implementation form, obtaining the laser feature of the target thread path based on the laser reflection data in S130 further includes the following steps.
[0056] S131: Perform a short-time Fourier transform on the laser reflection data to obtain a time-frequency representation result. In an embodiment of the present disclosure, perform a short-time Fourier transform (STFT) on the laser reflection data, apply a sliding window to the signal, and perform a Fourier transform on the signal within each window to obtain the time-frequency representation of the signal. The time locality is guaranteed, and the frequency components of the signal over time can be observed.
[0057] S132: Determine the time-frequency feature based on the time-frequency representation result. The time-frequency feature of the laser reflection data is analyzed using the result of the STFT, that is, the time-frequency graph. The time-frequency graph shows the change over time of different frequency components of the signal, provides the frequency information of the signal at different time points, and the time-frequency features to be identified specifically include the following.
[0058] Identifying the distribution of frequency components in the time-frequency graph includes confirming which frequencies are dominant in the signal and how these frequencies change over time. For example, in the laser scanning data of the thread, the prominence of a certain frequency may indicate a specific physical state or change.
[0059] Analyze the energy distribution and evaluate the energy of the frequency components at different times. In the time-frequency graph, the regions with high energy usually appear as brighter regions. The energy distribution can indicate the dynamic characteristics of the signal, such as the stability of the thread or the occurrence of abnormal conditions.
[0060] Observe the time change and pay attention to the change of the frequency components over time. For example, a sudden change in frequency may indicate a change in the thread extrusion state or some abnormality.
[0061] S133: Obtain the laser characteristics of the target thread path based on the time-frequency characteristics. In the embodiments of the present disclosure, by further operating and analyzing the time-frequency characteristics obtained from the time-frequency graph, important information is extracted to obtain the laser characteristics of the target thread path. Specifically, it may include identifying the energy peaks within a specific frequency range, calculating the duration of different frequency components, etc.
[0062] According to the technical solution of the embodiments of the present disclosure, rich information can be extracted from the time-frequency graph, which contributes to accurately identifying the behavior and state of the thread during laser scanning and realizing quality control.
[0063] In a possible implementation form, S133 obtaining the laser characteristics of the target thread path based on the time-frequency characteristics further includes the following steps. Extract the main frequency characteristics, energy peak characteristics, and dynamic change characteristics from the time-frequency characteristics. Obtain the laser characteristics of the target thread path based on the main frequency characteristics, energy peak characteristics, and dynamic change characteristics.
[0064] In the embodiments of the present disclosure, by further performing feature extraction on the time-frequency characteristics, the extracted features should capture the important attributes of the signal, and the specific steps include the following. Extract the main frequency components and confirm the specific values of the main frequencies, their durations, and intensities in the entire signal. In the time-frequency graph, energy peaks indicating that the signal intensity is particularly high at specific times and frequencies are identified. Recording the position (time and frequency) and magnitude of these peaks contributes to identifying specific features or anomalies in the signal. Analyze the pattern of change over time of the frequency components. Pay attention to how the frequency components increase, decrease, or stabilize over time. Any abrupt changes or irregular patterns in the identified frequencies may indicate an abnormal state of the thread.
[0065] Through the above steps, multiple effective time-frequency features can be extracted from the laser signal and used as laser features.
[0066] In one possible implementation, S140 uses a thread extrusion state detection model to obtain the thread extrusion state of the target thread path based on the image features and laser features, which further includes the following steps.
[0067] S141: Based on the image features and laser features, obtain the thread extrusion state features of the target thread path by fusion. S142: Using the thread extrusion state detection model, obtain the thread extrusion state of the target thread path based on the thread extrusion state features.
[0068] In the embodiments of the present disclosure, data fusion technology can be used to integrate image features and laser features, integrate data sets from two different sources, and combine two groups of features into one single feature vector. The thread extrusion state detection model is pre-trained, and by training a machine learning model, various state categories of the thread extrusion state can be identified. This requires a certain number of thread path image data for training the model, and the trained thread extrusion state detection model can quickly and accurately identify the thread extrusion state and maintain high accuracy even under complex or changing conditions.
[0069] The main types of yarns related to the technical solutions of the embodiments of the present disclosure may include one or more of partially oriented yarns (POY), fully drawn yarns (FDY), draw textured yarns (DTY) (or also called low-elasticity yarns), etc. For example, the types of yarns may specifically include polyester partially oriented yarns, polyester fully drawn yarns, polyester drawn yarns, polyester draw textured yarns, etc.
[0070] The present disclosure further provides a method for training a yarn extrusion state detection model. FIG. 4 is a flowchart of the method for training a yarn extrusion state detection model. As shown in FIG. 4, the method includes the following steps.
[0071] S410: Based on the sample image of the target yarn path, obtain the training image features of the target yarn path. S420: Based on the laser sample data of the target yarn path, obtain the training laser features of the target yarn path. S430: Using the first detection model, obtain the prediction result of the yarn extrusion state of the target yarn path based on the training image features and the training laser features. S440: Based on the prediction result of the yarn extrusion state of the target yarn path and the true result, determine the loss function. S450: Based on the loss function, update the parameters of the first detection model to obtain the trained yarn extrusion state detection model.
[0072] In one example, the structure of the first detection model includes an input layer, a convolutional layer, a pooling layer, a fusion layer, a fully connected layer, and an output layer.
[0073] The input layer receives the processed image data and laser reflection data, and these data may need to undergo appropriate conversion and normalization to adapt to the network input. Multiple convolutional layers can effectively extract the spatial features in the image. Each convolutional layer extracts the features of different layers using a set of learnable filters. An activation function (e.g., ReLU) is used to enhance the non-linearity of the network. The pooling layer reduces the number of parameters and the computational amount by adding a pooling layer (e.g., max pooling layer) after the convolutional layer to reduce the spatial size of the feature map. The fusion layer sets up one fusion layer after convolution and pooling to combine the features from the image and laser data. This can be achieved by stitching or other fusion techniques. One or more fully connected layers are used at the end of the network to integrate the previously extracted features. In the fully connected layer, the network model learns how to classify based on the extracted features. The output layer can provide the probability distribution of multiple state levels using the softmax activation function. The output of each neuron represents the probability that the thread is in a specific state level.
[0074] In a possible implementation, the sample image and laser sample data of the target thread path may be pre-collected and manually labeled. Also, they may be the normal images and laser reflection data collected by the patrol device during the daily patrol process. After a thread break occurs in the take-up machine or quality problems are detected in the winding package in the subsequent appearance inspection flow and its level decreases, the corresponding image data and laser data collected during the patrol can be traced back and used as the sample data with abnormal problems.
[0075] In a possible implementation, obtaining the image features of the target thread path based on the sample image in S410 includes the following. Perform morphological processing on the sample image to obtain a third image. Based on the third image, obtain the training image features of the target thread path.
[0076] In a possible implementation form, performing morphological processing on the sample image to obtain the third image includes the following. Using the first sliding window, perform dilation operations on the sample image according to the sliding degree to obtain a dilated image. Using the second sliding window, perform erosion operations on the sample image according to the sliding degree to obtain an eroded image. Based on the morphological gradient of the dilated image and the eroded image, obtain the third image.
[0077] In a possible implementation form, obtaining the training image features of the target thread path based on the third image Divide the third image into multiple segments along the longitudinal direction of the target thread path to obtain multi-segment sample sub-images. Extract features from the multi-segment sample sub-images to obtain a plurality of sample sub-image features. Based on the plurality of sample sub-image features and the corresponding weight values, obtain the first training image features of the target thread path.
[0078] In a possible implementation form, obtaining the first training image features of the target thread path based on the plurality of sample sub-image features and the corresponding weight values Based on the values of the widths of the thread paths included in the plurality of sample sub-images, determine the weight values of the multi-segment sample sub-images. Based on the weight values and the training image features of the multi-segment sample sub-images, obtain the second training image features of the multi-segment sample sub-images. Based on the second training image features of the multi-segment sub-images, obtain the training image features of the target thread path.
[0079] In a possible implementation form, S420 obtaining the training laser features of the target thread path based on the laser sample data of the target thread path includes the following. Perform short-time Fourier transform on the laser sample data to obtain the time-frequency representation result. Based on the time-frequency representation results, time-frequency features are determined. Based on the time-frequency features, the training laser features of the target thread path are obtained.
[0080] In a possible implementation form, obtaining the training laser features of the target thread path based on the time-frequency features includes the following. Extract the main frequency feature, energy peak feature, and dynamic change feature from the time-frequency features. Based on the main frequency feature, energy peak feature, and dynamic change feature, the training laser features of the target thread path are obtained.
[0081] In a possible implementation form, for S430 to obtain the prediction result of the thread extrusion state of the target thread path using the first detection model based on the training image features and the training laser features includes the following. Based on the training image features and the training laser features, the training state features of the target thread path are obtained by fusion. Using the first detection model, based on the training state features, the prediction result of the thread extrusion state of the target thread path is obtained.
[0082] In a possible implementation form, for S440 to determine the loss function based on the prediction result of the thread extrusion state of the target thread path and the actual result includes the following. In each iteration, the first detection model predicts the input training image features and training laser features and outputs the probability of each thread extrusion state. Compare the prediction result of the model with the actual thread state (actual label), and calculate the loss value based on the loss function. For a multi-class classification problem, usually, the cross-entropy loss function is used. The cross-entropy loss function can quantify the difference between the probability distribution of the model prediction and the actual label.
[0083] In a possible implementation form, for S450 to update the parameters of the first detection model based on the loss function to obtain a trained thread extrusion state detection model includes the following. The entire training dataset is divided into multiple batches, and for each batch, an optimizer is used to update the model's parameters based on the gradient of the loss function. This process usually repeats for multiple epochs (the number of times through the complete dataset). After each epoch, the performance of the model usually improves. Through the above process, a trained yarn extrusion state detection model can be obtained, and this model can predict the state of the yarn based on image features and laser features.
[0084] FIG. 5 is a schematic configuration diagram of a yarn extrusion state detection device according to an embodiment of the present disclosure. As shown in FIG. 5, the device includes at least a collection module 501, an image feature determination module 502, a laser feature determination module 503, and a detection module 504.
[0085] The collection module 501 collects the first image of the target yarn path in the spinning container and laser reflection data. The image feature determination module 502 obtains the image features of the target yarn path based on the first image. The laser feature determination module 503 obtains the laser features of the target yarn path based on the laser reflection data. The detection module 504 uses the yarn extrusion state detection model to obtain the yarn extrusion state of the target yarn path based on the image features and laser features.
[0086] In a possible implementation form, the collection module 501 is used for the following. Control the patrol device to move in front of the spinning container to be detected. Trigger the camera device and the laser scanning device of the patrol device, and collect the first image of the target yarn path in the spinning container and the laser reflection data. The target yarn path includes a moving path in which a plurality of yarn bundles ejected from one spinning die are bundled into one by a yarn guide hook.
[0087] In a possible implementation form, the image feature determination module 502 is used for the following purposes. Perform morphological processing on the first image to obtain a second image. Based on the second image, obtain the image features of the target thread path.
[0088] In a possible implementation form, the image feature determination module 502 is used for the following purposes. Use the first sliding window to perform dilation operations on the first image according to the sliding degree to obtain a dilated image. Use the second sliding window to perform erosion operations on the first image according to the sliding degree to obtain an eroded image. Based on the morphological gradient of the dilated image and the eroded image, obtain the second image.
[0089] In a possible implementation form, the image feature determination module 502 is used for the following purposes. Divide the second image into multiple segments along the longitudinal direction of the target thread path to obtain multi-segment sub-images. Perform feature extraction on the multi-segment sub-images to obtain a plurality of first image features. Based on the plurality of first image features and the corresponding weight values, obtain the image features of the target thread path.
[0090] In a possible implementation form, the image feature determination module 502 is used for the following purposes. Determine the weight values of the multi-segment sub-images based on the values of the widths of the thread paths included in the multi-segment sub-images. Based on the weight values of the multi-segment sub-images and the first image features, obtain the second image features of the multi-segment sub-images. Based on the second image features of the multi-segment sub-images, obtain the image features of the target thread path.
[0091] In a possible implementation form, the laser feature determination module 503 is used for the following purposes. Perform a short-time Fourier transform on the laser reflection data to obtain a time-frequency representation result. Based on the time-frequency representation result, determine the time-frequency features. Based on the time-frequency characteristics, obtain the laser characteristics of the target thread path.
[0092] In a possible implementation form, the laser characteristic determination module 503 is used for the following. Extract the main frequency characteristic, energy peak characteristic, and dynamic change characteristic from the time-frequency characteristics. Based on the main frequency characteristic, energy peak characteristic, and dynamic change characteristic, obtain the laser characteristics of the target thread path.
[0093] In a possible implementation form, the detection module 504 is used for the following. Based on the image characteristics and laser characteristics, obtain the thread extrusion state characteristics of the target thread path by fusion. Using the thread extrusion state detection model, obtain the thread extrusion state of the target thread path based on the thread extrusion state characteristics.
[0094] For the specific functions and implementation forms of each module and sub-module of the device according to the embodiments of the present disclosure, reference can be made to the relevant descriptions of the corresponding steps in the above method embodiments, but the descriptions will not be repeated here.
[0095] FIG. 6 is a schematic structural diagram of a training device for a thread extrusion state detection model. As shown in FIG. 6, the device includes an image feature extraction module 601 for obtaining the training image features of the target thread path based on the sample image of the target thread path, and a laser feature extraction module 602 for obtaining the training laser features of the target thread path based on the laser sample data of the target thread path, and a prediction module 603 for obtaining the prediction result of the thread extrusion state of the target thread path based on the training image features and training laser features using the first detection model, and a loss function determination module 604 for determining the loss function based on the prediction result of the thread extrusion state of the target thread path and the real result. A training module 605 for updating parameters of the first detection model based on a loss function to obtain a trained yarn extrusion state detection model.
[0096] For the specific functions and embodiments of each module and sub-module of the device according to the embodiments of the present disclosure, reference may be made to the related descriptions of the corresponding steps in the above method embodiments, and the description will not be repeated here.
[0097] FIG. 7 is a block diagram of the configuration of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 7, the electronic device includes a memory 710 and a processor 720. The memory 710 stores a computer program executable by the processor 720. The number of the memory 710 and the processor 720 may be one or more. The memory 710 can store one or more computer programs, and when the one or more computer programs are executed by the electronic device, the electronic device is caused to execute the method according to the above method embodiment. The electronic device may further include a communication interface 730 for communicating with an external device and performing data interaction transmission.
[0098] When the memory 710, the processor 720, and the communication interface 730 are independently realized, they are connected to each other via a bus and can complete communication with each other. The bus may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For convenience, in FIG. 7, only one thick line is shown, but it does not mean that there is only one bus or one type of bus.
[0099] Optionally, when specifically implemented, if the memory 710, the processor 720, and the communication interface 730 are integrated on a single chip, they can communicate with each other via an internal interface.
[0100] The processor may be a Central Processing Unit (CPU), or other general-purpose processors, Digital Signal Processing (DSP), Application Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates, transistor logic devices, discrete hardware components, etc. It should be understood that the general-purpose processor may be a microprocessor or any conventional processor. Note that the processor may also be a processor corresponding to the Advanced RISC Machine (ARM) architecture.
[0101] Further, optionally, the memory may include a read-only memory and a random access memory, and may further include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both a volatile memory and a non-volatile memory. The non-volatile memory may include a ROM (Read-Only Memory), PROM (Programmable ROM), EPROM (Erasable PROM), EEPROM (Electrically EPROM), or flash memory. The volatile memory may include a random access memory (Random Access Memory, RAM) used as an external cache. The above description is merely illustrative and not restrictive. Many forms of RAM can be used. For example, static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic Random Access Memory, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Date SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchlink dynamic random access memory (Synchlink DRAM, SLDRAM), and direct memory bus random access memory (Direct RAM BUS RAM, DR RAM).
[0102] In the above embodiments, all or part thereof may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part thereof can be realized in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed by a computer, all or part of the flows or functions described in the embodiments of the present disclosure are generated. The computer may be a general-purpose computer, a dedicated computer, a computer network, or another programmable device. The computer instructions may be stored in a computer-readable storage medium, or may be transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wire (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, Bluetooth (registered trademark), microwave, etc.). The computer-readable storage medium may be any available medium accessible by a computer, or a data storage device such as a server or data center integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy (registered trademark) disk, hard disk, or magnetic tape), an optical medium (such as a Digital Versatile Disc (DVD)), a semiconductor medium (such as a Solid State Disk (SSD)), etc. It should be noted that the computer-readable storage medium according to the present disclosure may be a non-volatile storage medium, in other words, a non-temporary storage medium.
[0103] A person skilled in the art can understand that all or part of the steps for implementing the above embodiments may be executed by hardware, or may be completed by instructing related hardware through a program. The program may be stored in a computer-readable storage medium, and the above storage medium may be a read-only memory, a magnetic disk, an optical disk, or the like.
[0104] In the description of the embodiments of the present disclosure, the descriptions of terms such as "one embodiment", "some embodiments", "exemplification", "specific exemplification", or "some exemplifications" mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or exemplification are included in at least one embodiment or exemplification of the present disclosure. In addition, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or exemplifications. Also, unless conflicting with each other, a person skilled in the art can combine different embodiments or exemplifications described in this specification and the features in different embodiments or exemplifications.
[0105] In the description of the embodiments of the present disclosure, unless otherwise specified, " / " means "or". For example, "A / B" can represent "A" or "B". The "and / or" in this specification is only a relational description of the related objects, indicating the possibility of three types of relationships. For example, "A and / or B" can indicate three situations: "A" exists alone, "A" and "B" exist simultaneously, and "B" exists alone.
[0106] In the description of the embodiments of the present disclosure, the terms "first" and "second" are for description only and should not be understood as indicating or implying relative importance or indicating the number of the indicated components. Thus, the features defined by "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present disclosure, unless otherwise specified, the meaning of "a plurality" is two or more.
[0107] The above are only exemplary embodiments of the present disclosure, and do not limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made in accordance with the spirit and principles of the present disclosure should all be included within the protection scope of the present disclosure.
Claims
1. Performing morphological processing on a sample image to obtain a third image, Dividing the third image into multiple stages along the length direction of the target yarn path to obtain multi-stage sample sub-images, Performing feature extraction on the multi-stage sample sub-images to obtain a plurality of sample sub-image features, Obtaining training image features of the target yarn path based on the plurality of sample sub-image features and corresponding weight values, Performing short-time Fourier transform on laser sample data to obtain a time-frequency representation result, Determining time-frequency features based on the time-frequency representation result, Obtaining training laser features of the target yarn path based on the time-frequency features, Using a first detection model to obtain a prediction result of the state category of the target yarn path based on the training image features and the training laser features, Determining a loss function based on the prediction result of the state category of the target yarn path and the true result, Updating the parameters of the first detection model based on the loss function to obtain a trained yarn extrusion state detection model, The weight value is determined based on the value of the width of the yarn path included in the multi-stage sample sub-image, A training method for a yarn extrusion state detection model.
2. An image feature extraction module for performing morphological processing on a sample image to obtain a third image, dividing the third image into multiple stages along the length direction of the target yarn path to obtain multi-stage sample sub-images, performing feature extraction on the multi-stage sample sub-images to obtain a plurality of sample sub-image features, and obtaining training image features of the target yarn path based on the plurality of sample sub-image features and corresponding weight values, A laser feature extraction module for performing short-time Fourier transform on laser sample data to obtain a time-frequency representation result, determining time-frequency features based on the time-frequency representation result, and obtaining training laser features of the target yarn path based on the time-frequency features, A prediction module for using a first detection model to obtain a prediction result of the state category of the target yarn path based on the training image features and the training laser features, A loss function determination module for determining a loss function based on the prediction result of the state category of the target yarn path and the true result, A training module for updating parameters of the first detection model based on the loss function to obtain a trained yarn extrusion state detection model; The weight value is determined based on a value of a width of a yarn path included in the multi-stage sample sub-image A training device for a yarn extrusion state detection model.
Citation Information
Patent Citations
Spinning machine fault monitoring methods
CN110175659B
Intelligent inspection device for chemical fiber spinning process yarn path
CN210775245U