Remote diagnosis method and system for textile machines based on machine vision and industrial Internet
By establishing fault diagnosis models in textile machines and using machine vision detection technology, combined with the industrial Internet for remote fault diagnosis, the problem of time-consuming and labor-intensive fault diagnosis of textile machinery and unstable results has been solved, and rapid and accurate fault identification and Remote troubleshooting.
Patent Information
- Application Number
- CN202410245528.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-05
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-03-05
AI Technical Summary
Existing textile machinery fault diagnosis methods are time-consuming and labor-intensive, cannot determine the specific fault type, and the diagnosis results are unstable, making it difficult to achieve remote diagnosis.
Using a remote diagnosis method for textile machines based on machine vision and the industrial Internet, a fault diagnosis model is established and built into the textile machine. Abnormal products are detected through machine vision, production parameters and parts images are obtained, and convolutional neural networks and defect detection devices are used to conduct Fault diagnosis, generating fault codes and transmitting them remotely through the industrial Internet.
It achieves fast and accurate fault diagnosis, determines the fault location, improves the efficiency of remote diagnosis, saves manpower, material and financial resources, and ensures the stable operation of the textile machine.
Smart Images

Figure CN118152953B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of remote diagnosis of textile machines, and in particular relates to a remote diagnosis method and system for textile machines. Background Art
[0002] With the continuous improvement of production automation level, the stable operation of sock machines is very important to the economic benefits of enterprises in sock production. For sock production, it is necessary to regularly maintain and check the status of production equipment to ensure the stable operation of production machines.
[0003] Sock machines have complex structures, uncertain parameters and structures, and dynamic time-varying characteristics. Sock machine failures are often complex, and there is coupling between failures, which makes it difficult for traditional fault diagnosis methods to diagnose and analyze weak and compound failures of sock machines. In addition, due to the complexity and high degree of automation of sock machines, the amount of data that needs to be analyzed is also very large, and the efficiency of fault diagnosis is currently insufficient.
[0004] Among the related technologies, the main diagnostic methods are:
[0005] 1. Manual inspection of production equipment is time-consuming, labor-intensive, costly, and has low efficiency and accuracy.
[0006] 2. Use image processing methods to compare the surface density of textiles with the preset density to determine whether the knitting system of the sock machine has a fault. However, this method can only preliminarily determine whether the knitting system of the sock machine has a fault. The knitting system of the sock machine is complex and requires many parts to work together, such as needle hooks, needle tongues, and stitches. It cannot determine the specific fault type and cannot complete remote diagnosis.
[0007] 3. By transplanting methods from other fields, such as using big data analysis methods to conduct sampling inspections on the production products of hosiery machines to determine whether the hosiery machines have failed. However, transplanting other models to hosiery machines with complex structures and uncertain parameters and structures may lead to unstable test results.
[0008] Fault diagnosis of other types of textile machinery, such as looms, glove knitting machines, etc., also has the same problems as hosiery machines. Summary of the invention
[0009] In order to solve the technical problems that the existing textile machinery fault diagnosis methods are time-consuming and labor-intensive, cannot determine the specific fault type and cannot complete remote diagnosis, and the diagnosis results are unstable, the present invention provides a textile machinery remote diagnosis method and system based on machine vision and industrial Internet.
[0010] The technical solution of the present invention is:
[0011] The remote diagnosis method of textile machines based on machine vision and industrial Internet is special in that it includes the following steps:
[0012] Step 1: Establish a fault diagnosis model for the textile machine and embed it into the textile machine;
[0013] Step 2: Abnormal product monitoring
[0014] Step 2.1 Randomly sample the products produced by the textile machine;
[0015] Step 2.2: Use machine vision inspection method to detect defects of sampled products and determine whether there are any defects on the surface of the products. If so, it is diagnosed as an abnormal product and the textile machine is faulty. The sampling inspection program is interrupted and the abnormal products are separated from the standard products, and the process goes to step 3. If not, go to step 2.3.
[0016] Step 2.3 uses a machine vision detection method to obtain the detected weaving density M of the sampled product and compares it with the preset weaving density M0. If the detected weaving density M≥ the preset weaving density M0, it is considered that the product is not abnormal and the textile machine is not faulty, and the process returns to step 2.1; if the detected weaving density M< the preset weaving density M0, the current product is diagnosed as an abnormal product and the textile machine is faulty, and the process proceeds to step 3;
[0017] Step 3: Trace the abnormal product to its source and identify the textile machine that produced it;
[0018] Step 4: Obtain the current production parameters of the textile machine that produces the abnormal product and the images of its parts operation;
[0019] Step 5: Fault Detection:
[0020] Step 5.1 compares the current production parameters with the preset production parameters. If they are inconsistent, the production information of the textile machine is transmitted to the remote device management end through the industrial Internet, and the production parameters of the textile machine are adjusted to the preset production parameters by remote control at the remote device management end. After the adjustment is completed, return to step 2; if they are consistent, go to step 5.2;
[0021] Step 5.2: Input the image of the component operation into the fault diagnosis model built into the textile machine, and the fault diagnosis model outputs the fault type, and then proceeds to step 6; if the fault diagnosis model diagnoses that no fault has occurred, then proceeds to step 5.3;
[0022] Step 5.3: input the image of the component operation into the defect detection device built into the textile machine, process the image of the component operation by the defect detection device, determine the part of the textile machine where the failure may occur, and proceed to step 6;
[0023] Step 6: Use the industrial Internet to send the fault information and production information of the abnormal textile machine to the remote equipment management terminal. The remote equipment management terminal generates a fault code according to the received fault information and production information and the set coding rules, and sends the fault code to the repair management terminal.
[0024] Furthermore, step 1 is specifically as follows:
[0025] Step 1.1 construct a textile machine fault type image dataset and divide it into a training set, a validation set, and a test set;
[0026] Step 1.2 performs image enhancement processing on the training set, validation set and test set;
[0027] Step 1.3 uses a convolutional neural network to extract fault features from the image preprocessed in step 1.2 to form a feature map;
[0028] Step 1.4 performs feature selection and dimensionality reduction on the feature map;
[0029] Step 1.5 constructs a fault diagnosis model, and trains the fault diagnosis model using feature data obtained after feature selection and dimensionality reduction;
[0030] Step 1.6 evaluates the trained fault diagnosis model. If it does not meet the set requirements, the fault diagnosis model is iteratively trained again after correcting the training set and the validation set, adjusting the network structure of the model and / or improving the fault feature extraction method until the evaluation result meets the set requirements;
[0031] Step 1.7 deploys the fault diagnosis model obtained in step 1.6 on an embedded device, and then sets the embedded device in the textile machine.
[0032] Furthermore, the machine vision detection method described in step 2.2 includes a color feature-based detection method and a shape feature-based detection method used in parallel, and the detection result of one of the two is that there is a defect on the product surface, that is, the product is diagnosed as an abnormal product.
[0033] Furthermore, the color feature-based detection method is specifically as follows: using a camera device to obtain an image of a product produced by a textile machine, extracting a color histogram, a color moment and a color aggregation vector from the product image, and comparing them with the color histogram, color moment and color aggregation vector of a preset product image respectively; if one of the three is inconsistent with the preset product image, the product produced by the textile machine is judged to be an abnormal product; when all three are consistent with the preset product image, the product produced by the textile machine is judged to be normal.
[0034] Furthermore, the detection method based on shape features is specifically as follows:
[0035] A plane rectangular coordinate system is established in the plane where the image is located, using the center point of the acquired image information as the coordinate origin; the boundary K of the product to be inspected is distributed in the xy plane;
[0036] Starting from any point (x0, y0), when moving counterclockwise on the boundary K of the product to be inspected, you will encounter coordinate points (x0, y0), (x1, y1), ···, (x K-1 ,y K-1 ), then these coordinate points are expressed as x(k)=x k ,y(k)=y k , the boundary K of the product to be inspected is expressed as s(k)=[x(k),y(k),k=0,1,2,...,K-1]; the discrete Fourier transform (DFT) of s(k) is:
[0037]
[0038] Where, u = 0, 1, 2, ..., K-1; the complex coefficient a(u) is the boundary Fourier descriptor;
[0039] The inverse Fourier transform of the complex coefficients can recover s(k):
[0040]
[0041] Where, k = 0, 1, 2, ..., K-1;
[0042] Since high-frequency components describe fine details and low-frequency components determine the global shape, the smaller K is, the more details are lost at the boundary. This method can quickly detect whether there are any missing details on the surface of the sampled product.
[0043] Furthermore, step 3 is specifically as follows:
[0044] Step 3.1 Obtain the output information of the current abnormal product through machine vision detection technology, including the type of abnormal product, weaving density, product surface pattern, total length and mouth length;
[0045] Step 3.2: matching the output information of the abnormal product obtained in step 3.1 with the output information of all textile machines in the production system one by one, and determining the faulty textile machine that produced the abnormal product;
[0046] Step 3.3: obtaining the production information of the faulty textile machine that produced the abnormal product determined in step 3.2, including the location information, textile machine number and factory information of the textile machine; the factory information includes the production model, operating parameters and rated working voltage;
[0047] Step 3.4 sends the production information of the faulty textile machine obtained in step 3.3 to the remote equipment management terminal through the industrial Internet.
[0048] Furthermore, step 5.3 uses the Gaussian difference method and the gray level co-occurrence matrix method to concurrently determine the parts of the textile machine where failure may occur.
[0049] The present invention also provides a textile machine remote diagnosis system for realizing the above-mentioned textile machine remote diagnosis method based on machine vision and industrial Internet, which is special in that: a camera device, a fault diagnosis model and a visual detection device preset in the textile machine, and a remote device management terminal for data exchange with the textile machine through the industrial Internet;
[0050] The camera device is used to obtain the production parameters of the textile machine during the production process and the images of the operation of its internal parts, and send the production parameters to the remote equipment management end, and send the obtained images to the fault diagnosis model and the visual detection device;
[0051] The visual inspection device is used to detect defects in products produced by textile machines and determine whether they are abnormal products;
[0052] The fault diagnosis model is used to process the images of the operation of the internal parts of the textile machine obtained by the camera device, diagnose whether the textile machine has a fault and determine the possible location of the fault, and send the fault information to the remote device management end through the industrial Internet;
[0053] The remote equipment management terminal is used to generate a fault code according to the received fault information and production information and the set coding rules and send it to the repair management terminal.
[0054] Furthermore, the camera device is an OpenMV camera.
[0055] Furthermore, there are multiple textile machines, which are connected to the industrial Internet server through multiple data links.
[0056] Compared with the prior art, the present invention has the following advantages:
[0057] 1. The present invention first establishes and trains a fault diagnosis model and embeds it into a textile machine. The fault diagnosis model can quickly and accurately diagnose whether a textile machine has a fault and determine the fault location by processing the running images of the parts inside the textile machine; then, during the production of the textile machine, double sampling detection is performed on the products produced by the textile machine in real time. When an abnormal product is detected, the textile machine that produces the abnormal product is determined by tracing the abnormal product; then, the production parameters and the running images of the internal parts of the textile machine that produces the abnormal product are obtained. When the production parameters are inconsistent with the preset parameters, they are modified and the product sampling detection is continued. When the production parameters are consistent with the preset parameters, the running images of the parts are further processed by the fault diagnosis model and defect detection device inside the textile machine, and a hierarchical diagnosis is made as to whether the textile machine has a fault and the location of the fault and the fault is sent to a remote device end, so as to realize remote fault diagnosis, provide a basis for timely maintenance, and ensure that the textile machine can operate stably.
[0058] 2. The present invention performs data transmission based on 6G technology, has the advantages of low latency and high rate, and improves the efficiency of remote diagnosis.
[0059] 3. The detected data is stored and transmitted to the management level equipment through the industrial Internet. There are also certain difficulties in data collection and transmission.
[0060] The remote fault diagnosis system of the textile machine requires the collected image data to be clear and of high resolution. The quality of the collected data directly affects the diagnosis results. In addition, the internal structure of the textile machine is complex, and it is difficult to clearly obtain the production process image during the high-speed production process. In terms of data acquisition, the present invention uses the OpenMV camera in combination with machine vision technology to obtain the internal operation data of the faulty textile machine from the internal image detection device of the textile machine. The OpenMV camera can clearly obtain the internal image of the high-speed running textile machine, and has the advantages of low power consumption, low cost, and excellent performance, which can realize the data acquisition of the present invention.
[0061] The remote fault diagnosis system of textile machines requires fast and efficient data transmission. In order to improve the diagnostic efficiency, the present invention provides multiple data links in terms of data transmission to transmit data from the data source to the data terminal to realize data transmission and exchange. The reason for the stable detection results of the present invention is:
[0062] 1) Combining machine vision and industrial Internet technology, by judging whether there is a problem with the corresponding product produced by the textile machine, the product with the problem is traced to the source and the corresponding faulty textile machine is found. The purpose is clear and the method is effective.
[0063] 2) After the specific fault information of the textile machine is detected using the fault diagnosis model, the fault information is transmitted to the remote device management end through the industrial Internet technology. The remote device management end processes the fault information of the textile machine, generates the corresponding fault code, and completes the remote fault diagnosis of the textile machine. Compared with traditional manual detection, it can save a lot of manpower, material resources and financial resources.
[0064] 3) The training data set used in training the fault diagnosis model covers various types of textile machines. In terms of remote fault diagnosis of textile machines, compared with the fault detection methods transplanted from other fields, the textile machine fault diagnosis model proposed in the present invention is more efficient and stable. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 It is a method flow chart of an embodiment of the present invention.
[0066] Figure 2 It is a flow chart of a method for establishing a fault diagnosis model for a hosiery machine in an embodiment of the present invention.
[0067] Figure 3 It is a flow chart of the method for abnormal product monitoring in an embodiment of the present invention.
[0068] Figure 4 It is a flow chart of a method for tracing abnormal products to determine a faulty hosiery machine in an embodiment of the present invention. Figure 5 It is a fault diagnosis flow chart of a faulty hosiery machine in an embodiment of the present invention.
[0069] Figure 6 It is a schematic diagram of fault information transmission of the present invention.
[0070] Figure 7 1 is an internal structure diagram of a hosiery knitting machine according to an embodiment of the present invention. DETAILED DESCRIPTION
[0071] In order to make the technical solution of the present invention clearer and easier to understand, the present invention is described in detail below by taking a hosiery machine in a textile machine as an example in conjunction with the accompanying drawings.
[0072] Reference Figure 1-5 The method for remote diagnosis of hosiery machine faults based on machine vision and industrial Internet provided in this embodiment specifically includes the following steps:
[0073] Step 1: Establish a fault diagnosis model for a hosiery machine
[0074] Step 1.1 Build a dataset of images of sock knitting machine fault types
[0075] Before constructing the image dataset, we need to classify and define the possible fault types of the hosiery machine. The fault types of the hosiery machine mainly include thread breakage, head and heel breakage, upper yarn breakage, machine oil shortage, lower yarn breakage, elastic breakage, scissor abnormality, and machine head missing needle. Then we construct the corresponding image dataset for each fault type. The specific construction method is as follows:
[0076] Step 1.1.1 Collect sample images:
[0077] The main ways to collect sample images are: ① Using existing hosiery machines to make fault samples, and taking images containing faults when the fault samples appear. ② In actual production, take real-time images of the production process, and select and collect images containing faults. Regardless of the approach, the sample images collected should be diverse and cover various fault types of hosiery machines of different models.
[0078] Step 1.1.2: Process and annotate the collected sample images:
[0079] The processing of the sample image includes sequential image cleaning, resizing and denoising. The annotation is to classify and mark the fault type of the sample image, and the image can be annotated using methods such as bounding boxes or semantic segmentation.
[0080] Step 1.1.3 divides and verifies the image dataset obtained after annotation:
[0081] Use the random partitioning and cross-validation method to divide the image dataset into training set, validation set and test set to avoid overfitting and underfitting problems, and proceed to step 1.2.
[0082] Step 1.2 Establish a fault diagnosis model for hosiery machines
[0083] Step 1.2.1 Data preprocessing
[0084] Image enhancement technology is used to preprocess the image data in the training set, validation set, and test set to enhance the fault features in the image data so that the convolutional neural network can better notice the fault type. The specific method of the image enhancement technology used: the geometric transformation of the image is used to enhance the image fault features, including flipping, rotating, and center cropping the image.
[0085] Step 1.2.2 Fault feature extraction to form feature map:
[0086] The convolutional neural network is used to perform multi-layer convolution and pooling operations on the images in the training set after preprocessing in step 1.2.1, and the fault features are extracted to form a feature map. Preferably, the present invention uses a multi-head attention mechanism improved by a one-dimensional convolutional neural network (cutting the input image into several parts, assigning corresponding weights to each part, which can better extract the fault features in the input image, and then fusing the extracted fault features to improve the accuracy of fault detection) to extract the deep features of multi-mode data, and realizes the self-feature fusion of single signal data through the splicing of the multi-head attention mechanism to form a feature map.
[0087] Step 1.2.3 Feature selection and dimensionality reduction:
[0088] Through feature selection algorithms or principal component analysis and other methods, the features to be extracted are purposefully selected from the feature map obtained in step 1.2.2, so that the fault classifier constructed subsequently can be repeatedly trained for the features that are more difficult to extract. The feature dimension after selection is smaller than that before selection, reducing the operation parameters of the model.
[0089] Step 1.2.4 Build and train the fault diagnosis model:
[0090] A fault diagnosis model is constructed by using one of the classification algorithms such as SVM, decision tree, random forest, logistic regression, etc., and the constructed fault diagnosis model is trained using the feature data obtained after feature selection and dimensionality reduction. In practice, a suitable classifier can be selected for classification according to the extracted hosiery machine fault feature information to improve the accuracy of the training model. Preferably, the SVM algorithm is used to construct the fault diagnosis model, because SVM is based on nonlinear mapping, and can achieve effective fault diagnosis based on the fault features of a small sample training data set, and has good robustness.
[0091] Step 1.2.5 Diagnostic effect evaluation and optimization:
[0092] Deploy the fault diagnosis model trained in step 1.2.4 on the hardware device, and evaluate the fault diagnosis model on the test set by cross-validation, ROC curve and other methods. If the evaluation result cannot meet the set requirements, for example, some faults are difficult to identify and detect, the model can be optimized by modifying the training set and validation set, adjusting the network structure of the model, improving the fault feature extraction and other methods, and then iteratively training the model again until the evaluation result meets the set requirements to improve the diagnostic accuracy and robustness of the model; if the evaluation result meets the set requirements, proceed to step 1.3. Among them, the evaluation indicators include classification accuracy (P), recall rate (R), precision rate and the area enclosed by the PR curve; the method of modifying the training set and validation set is: further cleaning, labeling and sample supplementation of the data, and using cropping, rotation and amplification of local features to enhance the image data to improve data quality and reliability.
[0093] Step 1.3 Deploy the qualified fault diagnosis model on the hosiery machine
[0094] The fault diagnosis model is deployed on an embedded device (such as Jetson Xavier NX), and then the embedded device is set inside the hosiery machine. The embedded device is connected to an external camera (such as an OpenMV camera) to obtain the operating image data inside the hosiery machine and input it into the fault diagnosis model. After processing the operating image data of the hosiery machine, the fault diagnosis model can output the detected fault type.
[0095] Step 2: Abnormal product monitoring
[0096] Step 2.1 randomly samples the products produced by the hosiery machine; in specific implementation, a controllable steering inspection table can be set at the output position of the hosiery machine and the assembly line for transporting products, and sampling can be carried out after the production is completed;
[0097] Step 2.2: Use machine vision inspection method to inspect the sampled products for defects, and determine whether there are any defects on the surface of the sampled products. If so, it is diagnosed as an abnormal product, and the hosiery machine is faulty. The sampling inspection program enters the interrupt instruction and separates the abnormal products from the standard products by controlling the steering of the inspection table. After the separation is completed, the interrupt program is jumped out and the process goes to step 3; if not, the process goes to step 2.3;
[0098] Step 2.3 Use machine vision detection method to obtain the detection weaving density M of the sampled product and compare it with the preset weaving density M0.
[0099] If the detected knitting density M≥the preset knitting density M0, it is considered that the product is not abnormal and the hosiery machine is not faulty, and the process returns to step 2.1;
[0100] If the detected weaving density M is less than the preset weaving density M0, the current product is diagnosed as an abnormal product and the hosiery machine has a fault. The weaving density M of the current product is sent to the industrial Internet as fault information and proceed to step 3.
[0101] Specifically, the machine vision detection methods used in step 2.2 of the present invention for defect detection mainly include: a detection method based on color features and a detection method based on shape features. These two detection methods are used simultaneously for defect detection. As long as one of the two detection methods determines that there is a defect on the surface of the sampled product, it is diagnosed as an abnormal product.
[0102] Detection method based on color features:
[0103] The image of the product produced by the hosiery machine is obtained by using a camera device, and the color histogram, color moment and color aggregation vector of the image are extracted from the product image. The color histogram, color moment and color aggregation vector of the obtained product image are compared with the color histogram, color moment and color aggregation vector of the preset product image respectively. If one of the three is inconsistent with the preset product image, the product produced by the hosiery machine is judged to be an abnormal product. When all three are consistent with the preset product image, the product produced by the hosiery machine is judged to be normal. The color feature detection method has a small amount of calculation, is less dependent on factors such as the size, direction, and viewing angle of the image itself, and has high robustness. When performing abnormality detection on randomly sampled products, it can quickly and accurately determine whether the color features of the sampled products meet the preset products, and the detection efficiency is high.
[0104] Detection method based on shape features:
[0105] The present invention uses Fourier shape descriptors to perform defect detection on the appearance shape of sampled products. A rectangular coordinate system is established with the center point of the acquired image information as the coordinate origin, and a plane rectangular coordinate system is established with any direction on the plane where the image is located as the horizontal axis x and the direction perpendicular to the horizontal axis as the vertical axis y. The boundary K of the product to be inspected is distributed in the xy plane. Starting from an arbitrary point (x0, y0), when moving counterclockwise on the boundary K of the product to be inspected, you will encounter coordinate points (x0, y0), (x1, y1),..., (x K-1 ,y K-1 ). These coordinate points can be expressed as x(k)=x k ,y(k)=y k In this representation method, the boundary K of the product to be inspected can be expressed as a coordinate sequence in the form of s(k) = [x(k), y(k), k = 0, 1, 2, ..., K-1]. In addition, each coordinate point can be represented as a complex number, then s(k) = x(k) + jy(k), where k = 0, 1, 2, ..., K-1. This representation method simplifies the two-dimensional problem into a one-dimensional problem, and the discrete Fourier transform (DFT) of s(k) is:
[0106]
[0107] Where u = 0, 1, 2, ..., K-1. The complex coefficients a(u) become the boundary Fourier descriptors. The inverse Fourier transform of these complex coefficients can recover s(k):
[0108]
[0109] Where k = 0, 1, 2, ..., K-1. Since high-frequency components describe fine details and low-frequency components determine the global shape, the smaller K is, the more details are lost at the boundary. This method can quickly detect whether there is a missing surface on the sampled product.
[0110] Step 3: Trace the abnormal product to its source and identify the hosiery machine that produced it
[0111] Step 3.1 Obtain the output information of the current abnormal products through machine vision detection technology, including the type of abnormal products, weaving density, product surface pattern, total length and mouth length of the product; if classified by length, the types of abnormal products include long socks, mid-length socks and short socks; if classified by material, the types of abnormal products include cotton socks, silk socks, etc.;
[0112] Step 3.2: Match the output information of the abnormal product obtained in step 3.1 with the output information of all hosiery machines in the production system one by one, and determine the faulty hosiery machine that produced the abnormal product;
[0113] Step 3.3 obtains the production information of the faulty hosiery machine that produced the abnormal product determined in step 3.2, including the location information, hosiery machine number and factory information (production model, operating parameters and rated working voltage, etc.) of the hosiery machine.
[0114] Step 3.4 sends the production information of the faulty hosiery machine obtained in step 3.3 to the remote device management terminal through the Industrial Internet.
[0115] Step 4: Use a camera device connected to the embedded device to obtain the production parameters of the faulty hosiery machine during the production process and the operation images of its internal components, which contain the information of yarn conveying, knitting and edge finishing;
[0116] Step 5: Based on the production parameters and component operation images, perform fault detection on the hosiery machine identified after tracing in step 3
[0117] Step 5.1 checks whether the production parameters of the hosiery machine obtained in step 4 during production are consistent with the preset production parameters. If not, diagnose that the current production parameter settings of the hosiery machine are wrong, transmit the production information of the hosiery machine to the remote device management end through the industrial Internet, and adjust the production parameters of the hosiery machine to the preset production parameters through remote control at the remote device management end. After the adjustment, return to step 2 to continue monitoring; if they are consistent, proceed to step 5.2;
[0118] Step 5.2: input the image information of the operation of each component inside the hosiery machine obtained in step 4 into the fault diagnosis model deployed on the embedded device and built into the hosiery machine to diagnose whether the hosiery machine has a fault. If so, output the fault type and go to step 6; if not, go to step 5.3; the fault type includes at least one of thread breakage, head and heel breakage, upper yarn breakage, machine oil shortage, lower yarn breakage, elastic thread breakage, scissors abnormality and machine head missed needle;
[0119] Step 5.3: Use the defect detection device inside the hosiery machine to determine the location where the hosiery machine may fail, and then proceed to step 6.
[0120] In this step, the defect detection device inside the hosiery machine uses the following two methods to determine the possible fault location of the hosiery machine in parallel:
[0121] Method A1. Use the Gaussian difference method to detect whether the parts inside the hosiery machine are complete:
[0122] The image information obtained in step 4 is convolved with the Gaussian function to obtain a low-pass filtering result of an image.
[0123] First, the Gaussian function is defined as:
[0124]
[0125] Among them, σ1 is the variance. The smaller σ1 is, the clearer the Gaussian function image convolution effect is and the more complete the edge information of the parts is.
[0126] Secondly, two images can be obtained by setting different parameters for Gaussian filtering of the image obtained in step 4. The Gaussian filtering of these two images is expressed as:
[0127]
[0128] Wherein, f(x,y) refers to each pixel point in the image obtained in step 4.
[0129] Finally, the Gaussian filtering results g1 and g2 of the two images obtained by the above filtering are subtracted (i.e., difference) to obtain:
[0130]
[0131] The difference of Gaussian function (DoG) can be expressed as:
[0132]
[0133] The Gaussian difference DoG of the internal image of the hosiery machine is the edge information of the image. It is used to determine whether the edge information of each component in the image is smooth and complete. If so, it is determined that there are no defects in the internal parts of the hosiery machine. If not, it is determined that there are defects in the internal parts of the hosiery machine. The specific defective components can be located based on the non-smooth and complete edge information.
[0134] Method A2. Use the gray-level co-occurrence matrix method to extract the texture information of the parts from the video image information obtained in step 4 to detect whether the surface of the internal parts of the hosiery machine is intact:
[0135] Definition of gray-level co-occurrence matrix: Starting from a pixel (x, y) with gray level i, the probability that another pixel (x+a, y+b) with a distance (a, b) from it has gray level j. The value of the gray-level co-occurrence matrix at point (x, y) indicates the frequency of a specific gray level combination in the image:
[0136] P(i,j|a,b,θ)={(x,y)|f(x,y)=i,f(x+a,y+b)=j},x,y=0,1...L-1
[0137] Where: a, b are distance difference values, which are selected according to the texture period distribution characteristics of the internal parts of the hosiery machine. θ is the scanning direction, usually 0°, 45°, 90°, 135°, corresponding to scanning pixel pairs in horizontal, vertical and left and right diagonal directions; i, j = 0, ..., L-1 represents the gray level of the pixel.
[0138] The gray-level co-occurrence matrix can reflect the texture features of the image grayscale of the internal parts of the hosiery machine, such as direction, adjacent intervals, and change amplitude. For normal parts (complete and usable parts), their texture features tend to be evenly distributed, smooth and stable, and change relatively slowly; for parts that may be missing (parts that cannot be used and will affect the normal production of the hosiery machine), their texture features change rapidly, or even cannot be found. Therefore, through the gray-level co-occurrence matrix, it is possible to more accurately analyze whether the surface of the parts inside the hosiery machine is missing and whether it can operate stably.
[0139] Step 6: Based on the Industrial Internet, the fault information and production information of the abnormal hosiery machine are sent to the remote device management end. The remote device management end generates a fault code according to the received fault information and production information of the hosiery machine according to the set coding rules.
[0140] The fault information of the abnormal hosiery machine specifically includes: the weaving density M of the abnormal product obtained in step 2, the number of the faulty hosiery machine producing the abnormal product obtained in step 3, the production parameters and internal component operation images of the faulty hosiery machine obtained in step 4, and the fault type of the faulty hosiery machine and the surface defect information of the internal components of the faulty hosiery machine obtained in step 5.
[0141] The remote device management terminal analyzes the fault information, generates a fault code based on a preset coding rule in combination with the number of the faulty hosiery machine, the fault area, the fault code type, the fault type, and the fault subtype, and sends the fault code to the repair management terminal to arrange subsequent repair work in a timely manner and provide a reference basis for it. After the repair, the repair plan is stored through the industrial Internet, and then returns to step 2 to continue real-time monitoring;
[0142] Specific method of generating fault codes:
[0143] The fault code is composed of the fault knitting machine number, fault area number, fault code type number, fault type number and fault sub-type number. The coding rules of the fault code in this embodiment are as follows:
[0144] Number of the faulty sock knitting machine: For example, numbers A1, A2, A3...B1, B2...C1, C2...are used to represent specific sock knitting machines, and the number of the faulty sock knitting machine is obtained through step 3.
[0145] Fault code type: 0 indicates the fault is occurring for the first time, 1 indicates the fault has occurred before and occurs again after repair.
[0146] Fault area: such as Figure 4 As shown in the figure, the areas of the hosiery knitting machine are divided into a hosiery turning mechanism, a sewing mechanism, a transfer mechanism, an air flow pulling system, a computer control system, a knitting system, a yarn frame and a handle. The numbers 0, 1, 2, 3, 4, 5, 6 and 7 are used to correspond to the above areas respectively.
[0147] Fault type: Based on step 5, the number 0 is used to represent the fault diagnosed by the fault diagnosis model, and 1 is used to represent the fault detected by the defect detection device.
[0148] Fault subtype: The numbers 0, 1, 2, 3, 4, 5, 6, and 7 are used to represent thread breakage, head and heel breakage, upper yarn breakage, machine oil shortage, lower yarn breakage, elastic breakage, scissors abnormality, and machine head needle missing fault respectively. D is used to indicate that a component is defective or damaged, and the image information of the component is sent to the equipment management end to provide a reference for subsequent maintenance.
[0149] According to the above coding rules, the fault code A10100 means that the hosiery machine numbered A1 has experienced the first thread breakage fault in the sewing mechanism area.
[0150] In order to facilitate workers to check and confirm during maintenance, the repair management terminal can also decode the received fault code according to the same coding rules to achieve fault description.
[0151] An embodiment of the present invention also provides a remote diagnosis system for textile machines based on machine vision and industrial Internet, including a camera device, a fault diagnosis model pre-installed in a hosiery machine, a visual detection device and a defect detection device, and a remote device management terminal that communicates data with the hosiery machine through an industrial Internet server.
[0152] The camera device is used to obtain the production parameters of the hosiery machine during the production process and the images of the operation of its internal components, and send the production parameters to the remote equipment management end, and send the obtained images to the fault diagnosis model and the machine vision detection device.
[0153] The machine vision inspection device is used to detect defects in products produced by hosiery machines and determine whether they are abnormal products.
[0154] The fault diagnosis model and defect detection device are used to process the images of the operation of the internal components of the hosiery machine obtained by the camera device to realize hierarchical fault diagnosis. The fault diagnosis model is used to diagnose whether the hosiery machine has a fault. When a fault occurs, the fault type is output and sent to the remote equipment management end through the industrial Internet. When the diagnosis result is that no fault has occurred, the defect detection device processes the images of the operation of the internal components of the hosiery machine to determine the location where the fault may occur, and sends the fault location to the remote equipment management end through the industrial Internet.
[0155] When the present invention is used to perform remote diagnosis on multiple hosiery machines at the same time, in order to improve the diagnostic efficiency, each hosiery machine can be connected to the industrial Internet server through multiple data links. In this application scenario, the remote device management end is communicated with the machine vision detection device and the fault diagnosis model. The remote device management end is then communicated with multiple hosiery machines respectively, so that the remote device management end can realize remote diagnosis of multiple hosiery machines based on machine vision and industrial Internet data. After remotely diagnosing the specific fault of the hosiery machine, the fault information of the hosiery machine is further encoded and processed by the preset coding rules of the present invention to generate a fault code, which is transmitted to the repair management terminal through the industrial Internet.
[0156] like Figure 6 As shown, when the present invention is used for remote diagnosis, the overall fault information transmission of the hosiery machine consists of three parts, namely, fault detection, network layer and receiving end. The hosiery machine is fault-detected at the fault detection end, and the detection result is sent to the industrial Internet server through the network layer, and then the detection result is further transmitted to the equipment management end.
[0157] Figure 7This is an example of the internal structure of a hosiery machine, which includes a sock turning mechanism, a sewing mechanism, a transfer mechanism, an air flow pulling system, a computer control system, a weaving system, a yarn frame and a handle to complete the production process of the hosiery machine. Based on the basic structure of the hosiery machine, the present invention introduces machine vision, a fault diagnosis model, a defect detection device and industrial Internet technology, and the remote fault diagnosis of the hosiery machine can be completed by using a camera device and a remote equipment management terminal.
[0158] The above description is only an explanation of the present invention using a hosiery machine as an example. The remote diagnosis of other textile equipment, such as a loom, a glove knitting machine, etc., has the same principle and method as that of a hosiery machine, except that when establishing a fault type image data set, the fault types classified and defined are different, which are specifically determined according to the main abnormal types involved in the actual product, and will not be described in detail.
Claims
1. A remote diagnosis method for textile machines based on machine vision and industrial Internet, characterized in that: The following steps are involved: Step 1: Establish a fault diagnosis model for the textile machine and embed it into the textile machine; Step 2: Abnormal product monitoring Step 2.1 Randomly sample the products produced by the textile machine; Step 2.2: Use machine vision inspection method to detect defects of sampled products and determine whether there are any defects on the surface of the products. If so, it is diagnosed as an abnormal product and the textile machine is faulty. The sampling inspection program is interrupted and the abnormal products are separated from the standard products, and the process goes to step 3. If not, go to step 2.
3. Step 2.3 uses a machine vision detection method to obtain the detected weaving density M of the sampled product and compares it with the preset weaving density M0. If the detected weaving density M≥ the preset weaving density M0, it is considered that the product is not abnormal and the textile machine is not faulty, and the process returns to step 2.1; if the detected weaving density M< the preset weaving density M0, the current product is diagnosed as an abnormal product and the textile machine is faulty, and the process proceeds to step 3; Step 3: Trace the abnormal product to its source and identify the textile machine that produced it; Step 4: Obtain the current production parameters of the textile machine that produces the abnormal product and the images of its parts operation; Step 5: Fault Detection: Step 5.1 compares the current production parameters with the preset production parameters. If they are inconsistent, the production information of the textile machine is transmitted to the remote device management end through the industrial Internet, and the production parameters of the textile machine are adjusted to the preset production parameters by remote control at the remote device management end. After the adjustment is completed, return to step 2; if they are consistent, go to step 5.2; Step 5.2: input the image of the component operation into the fault diagnosis model built into the textile machine, and the fault diagnosis model outputs the fault type, and then proceeds to step 6; If the fault diagnosis model diagnoses that no fault has occurred, proceed to step 5.3; Step 5.3: input the image of the component operation into the defect detection device built into the textile machine, process the image of the component operation by the defect detection device, determine the part of the textile machine where the failure may occur, and proceed to step 6; Step 6: Use the industrial Internet to send the fault information and production information of the abnormal textile machine to the remote equipment management terminal. The remote equipment management terminal generates a fault code according to the received fault information and production information and the set coding rules, and sends the fault code to the repair management terminal.
2. The remote diagnosis method for textile machines based on machine vision and industrial Internet according to claim 1 is characterized in that: Step 1 is as follows: Step 1.1 construct a textile machine fault type image dataset and divide it into a training set, a validation set, and a test set; Step 1.2 performs image enhancement processing on the training set, validation set and test set; Step 1.3 uses a convolutional neural network to extract fault features from the image preprocessed in step 1.2 to form a feature map; Step 1.4 performs feature selection and dimensionality reduction on the feature map; Step 1.5 constructs a fault diagnosis model, and trains the fault diagnosis model using feature data obtained after feature selection and dimensionality reduction; Step 1.6 evaluates the trained fault diagnosis model. If it does not meet the set requirements, the fault diagnosis model is iteratively trained again after correcting the training set and the validation set, adjusting the network structure of the model and / or improving the fault feature extraction method until the evaluation result meets the set requirements; Step 1.7 deploys the fault diagnosis model obtained in step 1.6 on an embedded device, and then sets the embedded device in the textile machine.
3. The remote diagnosis method for textile machines based on machine vision and industrial Internet according to claim 1 is characterized in that: The machine vision inspection method described in step 2.2 includes a color feature-based inspection method and a shape feature-based inspection method used in parallel. If the inspection result of one of the two is that there is a defect on the surface of the product, the product is diagnosed as an abnormal product.
4. The remote diagnosis method for textile machines based on machine vision and industrial Internet according to claim 2 is characterized in that: The color feature-based detection method is specifically as follows: using a camera device to obtain an image of a product produced by a textile machine, extracting the image's color histogram, color moment, and color aggregation vector from the product image, and comparing them with the color histogram, color moment, and color aggregation vector of a preset product image, respectively; if one of the three is inconsistent with the preset product image, the product produced by the textile machine is judged to be an abnormal product; when all three are consistent with the preset product image, the product produced by the textile machine is judged to be normal.
5. The remote diagnosis method for textile machines based on machine vision and industrial Internet according to claim 2 is characterized in that: The detection method based on shape features is specifically: A plane rectangular coordinate system is established in the plane where the image is located, using the center point of the acquired image information as the coordinate origin; the boundary K of the product to be inspected is distributed in the xy plane; Starting from any point (x0, y0), when moving counterclockwise on the boundary K of the product to be inspected, you will encounter coordinate points (x0, y0), (x1, y1), ···, (x K-1 ,y K-1 ), then these coordinate points are expressed as x(k)=x k ,y(k)=y k , the boundary K of the product to be inspected is expressed as s(k)=[x(k),y(k),k=0,1,2,...,K-1]; the discrete Fourier transform (DFT) of s(k) is: Where, u = 0, 1, 2, ..., K-1; the complex coefficient a(u) is the boundary Fourier descriptor; The inverse Fourier transform of the complex coefficients can recover s(k): Where, k = 0, 1, 2, ..., K-1; Since high-frequency components describe fine details and low-frequency components determine the global shape, the smaller K is, the more details are lost at the boundary. This method can quickly detect whether there are any missing details on the surface of the sampled product.
6. The remote diagnosis method for textile machines based on machine vision and industrial Internet according to claim 1 is characterized in that: Step 3 is as follows: Step 3.1 Obtain the output information of the current abnormal product through machine vision detection technology, including the type of abnormal product, weaving density, product surface pattern, total length and mouth length; Step 3.2: matching the output information of the abnormal product obtained in step 3.1 with the output information of all textile machines in the production system one by one, and determining the faulty textile machine that produced the abnormal product; Step 3.3: obtaining the production information of the faulty textile machine that produced the abnormal product determined in step 3.2, including the location information, textile machine number and factory information of the textile machine; the factory information includes the production model, operating parameters and rated working voltage; Step 3.4 sends the production information of the faulty textile machine obtained in step 3.3 to the remote equipment management terminal through the industrial Internet.
7. The remote diagnosis method for textile machines based on machine vision and industrial Internet according to claim 1 is characterized in that: Step 5.3 uses the Gaussian difference method and the gray level co-occurrence matrix method to concurrently determine the parts of the textile machine where failure may occur.
8. A textile machine remote diagnosis system for implementing the textile machine remote diagnosis method based on machine vision and industrial Internet as described in any one of claims 1 to 7, characterized in that: It includes a camera device, a fault diagnosis model and a visual detection device preset in the textile machine, and a remote device management terminal that communicates data with the textile machine through the industrial Internet; The camera device is used to obtain the production parameters of the textile machine during the production process and the images of the operation of its internal parts, and send the production parameters to the remote equipment management end, and send the obtained images to the fault diagnosis model and the visual detection device; The visual inspection device is used to detect defects in products produced by textile machines and determine whether they are abnormal products; The fault diagnosis model is used to process the images of the operation of the internal parts of the textile machine obtained by the camera device, diagnose whether the textile machine has a fault and determine the possible location of the fault, and send the fault information to the remote device management end through the industrial Internet; The remote equipment management terminal is used to generate a fault code according to the received fault information and production information and the set coding rules and send it to the repair management terminal.
9. The remote diagnosis system for textile machines according to claim 8, characterized in that: The camera device is an OpenMV camera.
10. The remote diagnosis system for textile machines according to claim 8, characterized in that: There are multiple textile machines, which are connected to the industrial Internet server via multiple data links.
Citation Information
Patent Citations
Textile production quality management system based on big data
CN117372373A
Process for evaluating data from textile fabbics
CN1270669A
