Intelligent embroidery machine fault detection method, electronic equipment and medium
By constructing a fault detection model and using nonlinear support vector machines and particle swarm algorithms to identify embroidery machine faults, the one-sided problem of embroidery machine fault diagnosis is solved, early warning and equipment status optimization are achieved, fault identification capabilities are improved, and equipment support is supported Intelligence and automation.
Patent Information
- Application Number
- CN202410892800.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-09-20
AI Technical Summary
Fault diagnosis of embroidery machines is one-sided, which causes the equipment to still run even under fault conditions, affecting embroidery quality and work efficiency. Therefore, an efficient fault diagnosis method is needed.
By obtaining the normal and fault operation information of the embroidery machine, data cleaning and preprocessing are performed, a fault detection model is constructed, and nonlinear support vector machines and particle swarm algorithms are used for model optimization to achieve real-time fault identification and early warning.
It achieves early warning of embroidery machine faults, reduces production interruption time, ensures that the equipment operates at its best, and improves the ability to identify complex faults through continuous model updates to support the intelligence and automation of equipment.
Smart Images

Figure CN118668397A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of embroidery machines, and in particular to a fault detection method, electronic equipment and a medium for an intelligent embroidery machine. Background Art
[0002] Embroidery machines, also known as computerized embroidery machines, are used to embroider fabrics to create desired patterns. With the continuous development of embroidery machine technology and the improvement of the parts supply chain in my country, an industrial cluster has been formed in this industry, with large product output, many varieties, and diversified functions, and it also occupies an important position in the world embroidery machine stage.
[0003] At present, embroidery equipment integrates many advanced technologies such as electromechanical, automatic control, and computers. Various components in the equipment are interconnected and interdependent, which makes equipment fault diagnosis more difficult. In particular, there is a one-sidedness in the fault diagnosis of embroidery equipment, which causes the embroidery equipment to continue to operate in the event of a fault, resulting in a decrease in the quality of the embroidery or the working efficiency of the embroidery equipment. Therefore, it is extremely important to conduct comprehensive and efficient fault diagnosis of embroidery equipment. Summary of the invention
[0004] In order to solve the above problems, the present invention provides a fault detection method for an intelligent embroidery machine, an electronic device and a medium.
[0005] In a first aspect of the present invention, a method for detecting faults in an intelligent embroidery machine is provided, comprising:
[0006] Acquire normal operation information and fault operation information of the embroidery machine, each of the normal operation information of the embroidery machine includes normal operation data and normal operation status of the embroidery machine, and each of the fault operation information of the embroidery machine includes fault operation data and fault operation status of the embroidery machine;
[0007] Crawling an embroidery machine knowledge base, cleaning the corresponding embroidery machine fault operation data according to the embroidery machine fault operation status, preprocessing the embroidery machine fault operation status and the cleaned embroidery machine fault operation data to obtain a fault sample set;
[0008] Preprocessing the normal operating state and the normal operating data of the embroidery machine to obtain a normal sample set;
[0009] Training the embroidery machine fault detection model based on the fault sample set and the normal sample set to obtain the trained embroidery machine fault detection model;
[0010] Real-time embroidery machine operation data is acquired, and the real-time embroidery machine operation data is imported into the embroidery machine fault detection model to perform fault identification.
[0011] The present invention is further configured to use various embroidery machine fault operation states as indexes, traverse the embroidery machine knowledge base, and search for associated embroidery machine parameters that cause various embroidery machine fault operation states; according to the embroidery machine fault operation states and the associated embroidery machine parameters, eliminate the embroidery machine operation data that is not related to the embroidery machine fault operation state in each embroidery machine fault operation information, and complete the cleaning of the embroidery machine fault operation information.
[0012] The present invention is further configured to normalize the fault operation data of the embroidery machine after cleaning and arrange them in a specific sequence, construct a first operation feature vector, obtain a fault sample set, and divide the fault sample set into fault sample subsets according to the fault operation status of the embroidery machine.
[0013] The present invention is further configured to normalize the normal operation data of the embroidery machine and arrange them in a specific sequence, construct a second operation feature vector, and obtain a normal sample set.
[0014] The present invention is further configured to use a nonlinear support vector machine to construct the embroidery machine fault detection model.
[0015] Among them, ω is the weight vector, φ() is the mapping function, x i is the first running feature vector of the fault sample subset and the second running feature vector of the normal sample set, y i For x i The label of the hyperplane, b is the intercept of the hyperplane, ξ i is the error function, i is the sample number;
[0016] The embroidery machine fault detection model optimization problem is converted into a dual problem.
[0017] Among them, α i is the Lagrange multiplier, α j is the dual Lagrange multiplier, x j is the j-th sample of the i-th sample pair in the faulty sample subset and the normal sample set, and yj is the label of xj.
[0018] The present invention is further configured to select a Gaussian kernel function as the kernel function of the embroidery machine fault detection model, and the kernel function expression is: k(x i ,x j ) = exp(-γ||x i -y i || 2 );
[0019] According to the kernel function k(x i ,x j) solves the dual problem of the embroidery machine fault detection model:
[0020] The present invention is further configured to divide the first running feature vector of the fault sample subset and the second running feature vector of the normal sample set into a training set and a test set, and adopt a particle swarm algorithm to adaptively optimize the parameters to be optimized, wherein the parameters to be optimized are the penalty factor and the width of the kernel function in the embroidery machine fault detection model; the penalty factor and the width of the kernel function after optimization are updated to the new penalty factor and the width of the new kernel function in the embroidery machine fault detection model, so as to obtain the trained embroidery machine fault detection model.
[0021] The present invention is further configured such that the normal operating data of the embroidery machine and the fault operating data of the embroidery machine both include at least one of embroidery machine motor current parameters, embroidery machine vibration parameters, drive frame displacement parameters, needle bar stitch parameters and hook and cut button timing parameters.
[0022] In a second aspect of the present invention, an electronic device is provided, comprising a memory, a processor and a signal interface, wherein the memory stores a computer program, the signal interface is used to obtain real-time embroidery machine operation data and submit it to the processor for processing, and the processor implements the above-mentioned intelligent embroidery machine fault detection method when executing the computer program.
[0023] In a third aspect of the present invention, a storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned intelligent embroidery machine fault detection method is implemented.
[0024] Compared with the prior art, the technical solution provided by the present invention has the following beneficial effects:
[0025] The present invention collects normal operation information and fault operation information of the embroidery machine, and pre-processes and cleans the information to ensure the accuracy and effectiveness of subsequent training samples, and trains an embroidery machine fault detection model; using the trained embroidery machine fault detection model, the operating status of the embroidery machine can be monitored in real time, and early warning of possible faults can be given; this helps to take necessary maintenance measures before the fault actually occurs, thereby avoiding production interruptions and losses caused by the fault; the intelligent embroidery machine fault detection method can reduce the production interruption time caused by the fault, and ensure that the embroidery machine runs in the best state.
[0026] The embroidery machine fault detection model in the present invention can continuously improve the reliability of the system by continuously updating and optimizing the embroidery machine fault detection model. With the accumulation of data and the iteration of the model, the embroidery machine operation system's ability to identify complex faults and unknown faults will continue to increase, providing strong support for the intelligence and automation of the embroidery machine. By integrating more sensors and data analysis technologies, a higher level of automated control and decision support can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 The present invention is a flowchart of a method for detecting faults in an intelligent embroidery machine according to an embodiment of the present invention.
[0028] Figure 2 Schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] Example 1
[0031] Combined with Figure 1 The technical solution of the present invention is a fault detection method for an intelligent embroidery machine, comprising:
[0032] Step S100, obtaining normal operation information and fault operation information of the embroidery machine, each of which includes normal operation data and normal operation status of the embroidery machine, and each of which includes fault operation data and fault operation status of the embroidery machine;
[0033] Step S200, crawling an embroidery machine knowledge base, cleaning the corresponding embroidery machine fault operation data according to the embroidery machine fault operation state, pre-processing the embroidery machine fault operation state and the cleaned embroidery machine fault operation data to obtain a fault sample set;
[0034] Step S300, pre-processing the normal operating state and normal operating data of the embroidery machine to obtain a normal sample set;
[0035] Step S400, training an embroidery machine fault detection model based on the fault sample set and the normal sample set to obtain the trained embroidery machine fault detection model;
[0036] Step S500, acquiring real-time embroidery machine operation data, importing the real-time embroidery machine operation data into the embroidery machine fault detection model, and performing fault identification.
[0037] In this embodiment, the normal operation data of the embroidery machine and the fault operation data of the embroidery machine are the operation parameters to be collected during the operation of the embroidery machine. For different types of embroidery machines, the types and quantities of the operation parameters are also different; the normal operation status of the embroidery machine and the fault operation status of the embroidery machine are the normal label and fault label of the embroidery machine.
[0038] In this embodiment, the embroidery machine knowledge base includes fault states of various embroidery machines and operating parameters related to the fault states. Since a certain fault state is not associated with all collected embroidery machine operating data, it is necessary to clean the embroidery machine fault operating information according to the embroidery machine knowledge base.
[0039] In this embodiment, the steps S100 to S400 are the training process of the embroidery machine fault detection model, and the step S500 is the process of applying the embroidery machine fault detection model to the embroidery machine.
[0040] In this embodiment, the step S200 specifically includes: taking various embroidery machine fault operation states as indexes, traversing the embroidery machine knowledge base, and searching for associated embroidery machine parameters that cause various embroidery machine fault operation states; according to the embroidery machine fault operation states and the associated embroidery machine parameters, eliminating the embroidery machine operation data that is not related to the embroidery machine fault operation state in each embroidery machine fault operation information, and completing the cleaning of the embroidery machine fault operation information.
[0041] In this embodiment, the fault operation data of the embroidery machine after cleaning is normalized and arranged in a specific sequence to construct a first operation feature vector to obtain a fault sample set, and the fault sample set is divided into fault sample subsets according to the fault operation status of the embroidery machine.
[0042] In this embodiment, the normal operation data of the embroidery machine is normalized and arranged in a specific sequence to construct a second operation feature vector and obtain a normal sample set.
[0043] In this embodiment, a nonlinear support vector machine is used to construct the embroidery machine fault detection model. The input of the nonlinear support vector machine is a fault sample subset and a normal sample set. The output of the nonlinear support vector machine is a classification decision function.
[0044]
[0045] In formula (1), ω is the weight vector, φ() is the mapping function, and xi is the first running feature vector of the fault sample subset and the second running feature vector of the normal sample set, y i For x i The label of the hyperplane, b is the intercept of the hyperplane, ξ i is the error function, i is the sample number, and N is a natural number;
[0046] The embroidery machine fault detection model optimization problem is converted into a dual problem.
[0047]
[0048] In formula (2), α i is the Lagrange multiplier, α j is the dual Lagrange multiplier, x j is the jth sample of the pair of the i-th sample in the faulty sample subset and the normal sample set, y j For x j .
[0049] In this embodiment, a Gaussian kernel function is selected as the kernel function of the embroidery machine fault detection model, and the kernel function expression is: k(x i ,x j ) = exp(-γ||x i -y i || 2 ), formula (3);
[0050] According to the kernel function k(x i ,x j ) solves the dual problem of the embroidery machine fault detection model and obtains formula (4):
[0051]
[0052] In this embodiment, the first operation feature vector and the second operation feature vector are data sets in high-dimensional space, and the embroidery machine fault detection model is constructed with a nonlinear support vector machine, which can process data sets that are inseparable in linear space but separable in high-dimensional space, and has good generalization ability and strong prediction ability on the operation status of the embroidery machine. The embroidery machine fault detection model of the present invention can continuously improve the reliability of the system by continuously updating and optimizing the embroidery machine fault detection model. With the accumulation of data and the iteration of the model, the embroidery machine operation system will continuously enhance its ability to identify complex faults and unknown faults, providing strong support for the intelligence and automation of the embroidery machine. By integrating more sensors and data analysis technologies, a higher level of automated control and decision support can be achieved.
[0053] In this embodiment, the first running feature vector of the fault sample subset and the second running feature vector of the normal sample set are divided into a training set and a test set, and a particle swarm algorithm is used to adaptively optimize the parameters to be optimized, and the parameters to be optimized are the penalty factor and the width of the kernel function in the embroidery machine fault detection model; the penalty factor and the width of the kernel function after optimization are updated to the new penalty factor and the width of the new kernel function in the embroidery machine fault detection model, so as to obtain the trained embroidery machine fault detection model.
[0054] In this embodiment, the particle swarm algorithm is used to adaptively optimize the optimization parameters to be optimized, including: (1) initializing the particle swarm P and randomly generating a certain number of particles P i , and assign each particle a position range Pi(x i1 ,x i2 ) and speed range P i (v i1 ,v i2 ); (2) Set learning factors c1 and c2, where learning factors c1 and c2 represent the weights of the particle learning from its own historical optimal solution and the global optimal solution respectively; set inertia weight w, which is used to adjust the inertia part of the particle velocity update, affecting the global search and local search capabilities of the algorithm; (3) Calculate the speed of each particle P in the particle swarm P. i The fitness value of the particle is obtained by comparing the current fitness value with the fitness value of the individual historical optimal solution (Pbest). If the current fitness value is better, Pbest is updated, and the global optimal solution (Gbest), that is, the solution with the best fitness value, is found in the Pbest of all particles; (4) According to the speed update formula, the speed of each particle is updated until the preset number of iterations is reached, and the penalty factor and kernel function width after optimization are obtained.
[0055] In this embodiment, the normal operation data of the embroidery machine and the fault operation data of the embroidery machine both include at least one of embroidery machine motor current parameters, embroidery machine vibration parameters, drive frame displacement parameters, needle bar stitch parameters and hook and cut button timing parameters.
[0056] The technical solution of the present invention collects the normal operation information and fault operation information of the embroidery machine, and pre-processes and cleans the information to ensure the accuracy and effectiveness of subsequent training samples, and trains the embroidery machine fault detection model; using the trained embroidery machine fault detection model, the operating status of the embroidery machine can be monitored in real time, and early warning of possible faults can be given. This helps to take necessary maintenance measures before the actual fault occurs, thereby avoiding production interruptions and losses caused by the fault; the intelligent embroidery machine fault detection method can reduce the production interruption time caused by the fault and ensure that the embroidery machine operates in the best state.
[0057] Example 2
[0058] Combined with Figure 2 The technical solution of the present invention is an electronic device, including a memory 20, a processor 10 and a signal interface 30. The memory 20 stores a computer program. The signal interface 30 is used to obtain real-time embroidery machine operation data and submit it to the processor 10 for processing. When the processor 10 executes the computer program, the intelligent embroidery machine fault detection method described in Example 1 is implemented.
[0059] In this embodiment, the electronic device communicates with a host computer, a server or a host computer through the signal interface 30, so that the electronic device can detect embroidery machine faults and store data.
[0060] Example 3
[0061] The technical solution of the present invention is a storage medium on which a computer program is stored. When the computer program is executed by a processor, the intelligent embroidery machine fault detection method described in Example 1 is implemented.
[0062] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0063] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0064] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A fault detection method for an intelligent embroidery machine, characterized in that: include: Acquire normal operation information and fault operation information of the embroidery machine, each of the normal operation information of the embroidery machine includes normal operation data and normal operation status of the embroidery machine, and each of the fault operation information of the embroidery machine includes fault operation data and fault operation status of the embroidery machine; Crawling an embroidery machine knowledge base, cleaning the corresponding embroidery machine fault operation data according to the embroidery machine fault operation status, preprocessing the embroidery machine fault operation status and the cleaned embroidery machine fault operation data to obtain a fault sample set; Preprocessing the normal operating state and the normal operating data of the embroidery machine to obtain a normal sample set; Training the embroidery machine fault detection model based on the fault sample set and the normal sample set to obtain the trained embroidery machine fault detection model; Real-time embroidery machine operation data is acquired, and the real-time embroidery machine operation data is imported into the embroidery machine fault detection model to perform fault identification.
2. The intelligent embroidery machine fault detection method according to claim 1, characterized in that: Taking the various embroidery machine fault operation states as indexes, traverse the embroidery machine knowledge base to search for the associated embroidery machine parameters that cause the various embroidery machine fault operation states; according to the embroidery machine fault operation states and the associated embroidery machine parameters, remove the embroidery machine operation data that is not related to the embroidery machine fault operation state in each embroidery machine fault operation information, and complete the cleaning of the embroidery machine fault operation information.
3. The intelligent embroidery machine fault detection method according to claim 2, characterized in that: The fault operation data of the embroidery machine after cleaning is normalized and arranged in a specific sequence, a first operation feature vector is constructed, a fault sample set is obtained, and the fault sample set is divided into fault sample subsets according to the fault operation state of the embroidery machine.
4. The intelligent embroidery machine fault detection method according to claim 3, characterized in that: The normal operation data of the embroidery machine is normalized and arranged in a specific sequence to construct a second operation feature vector to obtain a normal sample set.
5. The intelligent embroidery machine fault detection method according to claim 4, characterized in that: The embroidery machine fault detection model is constructed using nonlinear support vector machine. Among them, ω is the weight vector, φ() is the mapping function, x i is the first running feature vector of the fault sample subset and the second running feature vector of the normal sample set, y i For x i The label of the hyperplane, b is the intercept of the hyperplane, ξ i is the error function, i is the sample number; The embroidery machine fault detection model optimization problem is converted into a dual problem. Among them, α i is the Lagrange multiplier, α j is the dual Lagrange multiplier, x j is the jth sample of the pair of the i-th sample in the faulty sample subset and the normal sample set, y j For x j .
6. The intelligent embroidery machine fault detection method according to claim 5, characterized in that: The Gaussian kernel function is selected as the kernel function of the embroidery machine fault detection model, and the expression of the kernel function is: k(x i ,x j )=exp(-γ||x i -y i || 2 ); According to the kernel function k(x i ,x j ) solves the dual problem of the embroidery machine fault detection model:
7. The intelligent embroidery machine fault detection method according to claim 6, characterized in that: The first running feature vector of the fault sample subset and the second running feature vector of the normal sample set are divided into a training set and a test set, and a particle swarm algorithm is used to adaptively optimize the parameters to be optimized, where the parameters to be optimized are the penalty factor and the width of the kernel function in the embroidery machine fault detection model; the penalty factor and the width of the kernel function after optimization are updated to the new penalty factor and the width of the new kernel function in the embroidery machine fault detection model, so as to obtain the trained embroidery machine fault detection model.
8. A fault detection method for an intelligent embroidery machine according to any one of claims 1 to 7, characterized in that: The normal operation data of the embroidery machine and the fault operation data of the embroidery machine both include at least one of embroidery machine motor current parameters, embroidery machine vibration parameters, drive frame displacement parameters, needle bar stitch parameters and hook and cut button timing parameters.
9. An electronic device, comprising a memory, a processor and a signal interface, wherein the memory stores a computer program, characterized in that: The signal interface is used to obtain real-time embroidery machine operation data and submit it to the processor for processing. When the processor executes the computer program, the intelligent embroidery machine fault detection method according to any one of claims 1 to 8 is implemented.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the intelligent embroidery machine fault detection method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Embroidery machine failure self-diagnosis device and its method
CN101290522A
Intelligent device failure diagnosis method based on support vector machine
CN104462846A
SVM classification model-based equipment fault diagnosing method
CN104573740A
High-voltage power equipment fault diagnosis method and system based on artificial intelligence
CN111948487A
Conveyor belt carrier roller equipment fault detection method based on audio information and PSO-MSVM
CN113353582A
Cited By
Method and system for detecting movement distance of air cylinder
CN120740507A
