Vehicle door sub-health diagnosis method and system based on image processing
Through image processing and feature extraction technology, combined with clustering and SVM models, the problem of insufficient accuracy and interpretability of the door sub-health diagnosis model is solved, achieving higher diagnosis accuracy and stronger applicability, and reducing operating costs.
Patent Information
- Application Number
- CN202410613631.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-05-17
AI Technical Summary
Existing car door sub-health diagnosis models have deficiencies in classification accuracy, versatility and interpretability. In particular, the diagnosis of sub-health states has low classification accuracy and easy confusion. The model’s passability, adaptability and acceptability Poor explanation.
An image processing-based method is adopted to collect door operation signals for image processing, use the Dense-sift algorithm to extract features, combine the clustering algorithm and outlier detection, build a bag-of-words feature library, and use the SVM model to diagnose and optimize the model. parameters to improve diagnostic accuracy and model transferability.
It improves the accuracy of door sub-health diagnosis, enhances the interpretability and applicability of the model, reduces the pressure of fault diagnosis under massive data, reduces operating costs, and improves the migration ability of the model.
Smart Images

Figure CN118196096B
Abstract
Description
Technical Field
[0001] The present invention relates to rail transit health diagnosis technology, and in particular to a vehicle door sub-health diagnosis method and system based on image processing. Background Art
[0002] The door system of urban rail vehicles plays an extremely important role in the property and life safety of passengers and the normal operation of the subway. Therefore, improving the quality and reliability of the door system operation is of great significance to the efficient and safe operation of urban rail trains.
[0003] The sub-healthy state of the rail vehicle door system is a state where the door is between the normal state and the faulty state. When the door is in this state, the door can still operate normally, but some parts of the door have deviated from the standard state. If the sub-healthy state of the door is not discovered in time and the operation continues, the state of the door may further deteriorate, eventually leading to door failure, affecting the property and life safety of passengers and the operation of the vehicle.
[0004] The current sub-health diagnosis model for car doors collects motor time domain features through the door controller installed on the car door, then deeply mines the useful information in the features, removes redundancy, and then uses machine learning and other methods to establish an effective model to monitor the sub-health status of the car door. However, in actual applications, the model established by time domain features still has some problems, such as low classification accuracy and easy confusion in the diagnosis of sub-health status; the model's passability, adaptability, and interpretability are poor, and the model has deviations. Summary of the invention
[0005] Purpose of the invention: The present invention aims to provide a vehicle door sub-health diagnosis method and system based on image processing, which can improve the accuracy of sub-health diagnosis and improve the versatility and transferability of the model.
[0006] Technical solution: The vehicle door sub-health diagnosis method based on image processing described in the present invention comprises the following steps:
[0007] Collect door operation signals in healthy state and different types of sub-healthy state and process them in images;
[0008] Feature extraction: Dense-sift algorithm is used to extract features from all sub-health grayscale images after image processing, and the original feature set is established. Based on the clustering algorithm, several cluster centers are determined to build a bag-of-words feature library. Then, the Dense-sift feature vectors extracted from the sub-health grayscale images under each type of sub-health state are assigned to the corresponding cluster centers, thereby obtaining bag-of-words features under different types of sub-health states.
[0009] Feature screening: By comparing the blank area features of the sub-health grayscale image extracted by Dense-sift with the feature values of the non-blank area, the threshold is set, and the threshold is combined with outlier detection to construct an improved outlier detection method to further eliminate interfering bag-of-words features;
[0010] Based on the bag-of-words features of each type of sub-health status after feature screening and the sub-health status type label, a sub-health diagnosis model is constructed and diagnosis is performed.
[0011] Preferably, the determining of a number of cluster centers based on a clustering algorithm and the building of a bag-of-words feature library include using a K-means clustering algorithm and determining the optimal number of cluster centers by an elbow method.
[0012] Preferably, determining the optimal number of cluster centers by the elbow method includes determining the range of the optimal cluster centers by the longest distance between the elbow of the elbow method and the curve composed of the cluster centers and the straight line connected end to end of the cluster centers, and determining the optimal number K of cluster centers.
[0013] Preferably, the setting of the threshold by comparing the blank area features of the sub-health grayscale image extracted by Dense-sift with the feature values of the non-blank area includes: using a binary method, setting the pixel value with a grayscale value less than a certain value to 0, and the area with a pixel value of 0 is the signal image area, that is, the non-blank area; then measuring the non-blank area area and the total area of the sub-health grayscale image, the total area includes the blank area and the non-blank area, and calculating the ratio of the signal image area A to the total area B, that is, the signal image proportion T, and the relationship between the value of the threshold P and the signal image proportion T is as follows:
[0014]
[0015] in, represents the threshold amplitude, represents the threshold coefficient, d represents the pixel base of the image area, which is obtained from historical operation data statistics.
[0016] Preferably, the fixed value is determined by the grayscale value of the sub-health grayscale image.
[0017] Preferably, the improved outlier detection method is: combining the threshold with the outlier detection so that
[0018]
[0019] in, Z Indicates the degree of deviation. X represents the bag-of-words value, represents the bag-of-words mean, represents the standard deviation of the word bag, P represents the threshold, and the record is greater than the outlier Z*P The word bag position is removed.
[0020] Preferably, the constructing of the sub-health diagnosis model includes constructing an SVM sub-health diagnosis model, using hyperparameter optimization to narrow the range of the SVM, and then using a particle swarm algorithm to optimize the parameters of the SVM algorithm, outputting the optimal kernel parameters of the SVM, and finally obtaining a PSO-SVM sub-health diagnosis model.
[0021] Preferably, the door operation signal includes motor operation data.
[0022] Preferably, the motor operation data includes motor current, rotation angle and rotation speed.
[0023] Preferably, the door operation signal is pre-processed before the image processing.
[0024] The vehicle door sub-health diagnosis system based on image processing of the present invention comprises:
[0025] Door operation signal image processing module, used to collect door operation signals in healthy state and various types of sub-healthy state and perform image processing;
[0026] The feature extraction module is used to extract features from all sub-health grayscale images after image processing using the Dense-SIFT algorithm, establish an original feature set, determine several cluster centers based on the clustering algorithm, and build a bag-of-words feature library; then the Dense-SIFT feature vectors extracted from the sub-health grayscale images under each type of sub-health state are assigned to the corresponding cluster centers, thereby obtaining bag-of-words features under different types of sub-health states;
[0027] The feature screening module is used to set the threshold by comparing the blank area features of the sub-health grayscale image extracted by Dense-sift with the feature values of the non-blank area, and to combine the threshold with the outlier detection to construct an improved outlier detection method, further eliminate the interfering bag-of-words features, and realize the screening of bag-of-words features;
[0028] The sub-health diagnosis model building module is used to build a sub-health diagnosis model and perform diagnosis based on the bag-of-words features of each type of sub-health state after feature screening and the sub-health state type label.
[0029] Preferably, the improved outlier detection method is:
[0030]
[0031] in, Z Indicates the degree of deviation. X represents the bag-of-words value, represents the bag-of-words mean, represents the standard deviation of the word bag, P represents the threshold, and the record is greater than the outlier Z*P The word bag position is removed;
[0032] The calculation process of the threshold value P includes:
[0033] Using the binary method, the pixel value with a gray value less than a certain value is set to 0, and the area with a pixel value of 0 is the signal image area, that is, the non-blank area; then the non-blank area and the total area of the sub-health grayscale image are measured. The total area includes the blank area and the non-blank area, and the ratio of the signal image area A to the total area B is calculated, that is, the signal image proportion T. The relationship between the value of the threshold P and the signal image proportion T is as follows:
[0034]
[0035] in, represents the threshold amplitude, represents the threshold coefficient, d represents the pixel base of the image area, which is obtained from historical operation data statistics.
[0036] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: 1. By comparing the Euclidean distance between blank areas and non-blank areas and tracking features, the proportion of the area occupied by non-blank areas, and the outlier detection algorithm of bag-of-words features, the interfering bag-of-words features are determined and removed, thereby improving the diagnostic accuracy of the model; 2. The sub-healthy state of the door can be more intuitively seen by using the image processing of the time domain data of the motor, and the interpretability is stronger than that of the model established based on time domain data, and it is more applicable in actual engineering; 3. The present invention deeply explores the differences between multiple types of sub-healthy states and intelligently adjusts the parameters of the model to establish a diagnostic strategy that is easy to use and has a higher accuracy than conventional current methods, which is beneficial to improving the operational reliability of the door system, reducing the fault diagnosis pressure of the mainline system in the face of massive data, and reducing operating costs; 4. The door images of different rail projects have similar features. The model is established using the image processing method to improve the insufficient model migration ability of the existing sub-health diagnosis method, which is convenient for improving the migration of subsequent models. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 is a flow chart of the method of the present invention;
[0038] Figure 2 It is a sub-healthy grayscale image of the door opening motor corner of the present invention;
[0039] Figure 3 It is a sub-healthy grayscale image of the door closing motor corner of the present invention;
[0040] Figure 4 It is a sub-healthy grayscale image of the door opening motor speed of the present invention;
[0041] Figure 5 It is a sub-healthy grayscale image of the door closing motor speed of the present invention;
[0042] Figure 6 It is a sub-healthy grayscale image of the door opening motor current of the present invention;
[0043] Figure 7 It is a sub-healthy grayscale image of the door closing motor current of the present invention;
[0044] Figure 8 This is a schematic diagram of extracting the sub-health image features of the door opening motor corner using the Dense-SIFT algorithm of the present invention;
[0045] Fig. 9 Schematic diagram of the process of determining the optimal number of cluster centers of the present invention;
[0046] Fig.10 The bag-of-words feature graph before invalid feature removal of the present invention;
[0047] Fig.11 This is the bag-of-words feature graph after invalid features are removed in the present invention. DETAILED DESCRIPTION
[0048] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0049] This embodiment takes seven common sub-health types in plug-in doors as examples, where the seven common sub-health types include V-shaped dimension abnormality, centering dimension abnormality, buffer head wear, upper slideway inward adjustment, upper slideway outward adjustment, lower stop pin lateral interference, and lower stop pin longitudinal interference. Data under the sub-health state of these seven types of doors are collected to construct a sub-health diagnosis model, and the method of the present invention is used to diagnose the sub-health of the door system. The specific steps are as follows: Figure 1 As shown, the process includes the acquisition and preprocessing of motor signals, the imaging processing of motor signals, the extraction and screening of image features, and the establishment of a diagnostic model, specifically including the following steps:
[0050] (1) Collect motor operation data of the door system in healthy state and various types of sub-healthy state during the door opening and closing process, and perform pre-processing.
[0051] Each time the door is opened or closed, the driving motor of the door system will generate three curves of travel, speed and current. Therefore, the motor operation data uses motor current, rotation angle and speed. The preprocessing includes bad point elimination, data alignment, and blocking removal.
[0052] Among them, according to the working principle of the plug-in door, when the plug-in door is opened and closed, the motor does not stop immediately, but continues to run for a period of time, generating a stalled motor signal curve. This stalled curve is irregular and has no effect on the movement of the door leaf. Therefore, it is necessary to remove the stalled curve. According to the door opening data, when the door is fully opened and stalled, the door fully opened data will become smaller after reaching the maximum value. By intercepting the position of the maximum door opening value or the minimum door closing value data of the motor data, the stalled data can be removed.
[0053] (2) The preprocessed motor operation data is processed into images, including image drawing and grayscale processing.
[0054] The image drawing includes: to ensure the consistency of the motor image, select several groups of door opening and closing motor operation data to draw the image. In this embodiment, 40 groups of door opening and closing motor operation data are selected. The image size is unified as 9.6 inches long and 6.4 inches wide, and the dpi is 80. The DarkSalmon value (233, 150, 122) is used to represent the healthy state data, and the navy value (0, 0, 128) is used to represent the sub-healthy state data. The healthy state data and the sub-healthy state data are superimposed to draw the sub-healthy image.
[0055] The purpose of grayscale processing is to improve the efficiency and accuracy of image processing. When performing image processing, the amount of information in a color image is too large, while only the information of a grayscale image is needed for image recognition. In this embodiment, the grayscale processing adopts the weighted average method:
[0056]
[0057] In the formula, Represents the final grayscale value, R represents red pixels, G represents green pixels, and B represents blue pixels. , , Respectively represent the ratio of red pixels, green pixels, and blue pixels. , , , obtain the sub-health grayscale image of the car door, that is, the grayscale image of the door opening and closing motor angle, speed, and current, such as Figure 2-7 shown.
[0058] (3) Image feature extraction
[0059] The Dense-SIFT method is used to extract the feature vectors of all sub-health grayscale images, and several cluster centers are determined based on the clustering method to build a bag-of-words feature library; then the Dense-SIFT feature vectors extracted from the sub-health grayscale images of each type of sub-health state are assigned to the corresponding cluster centers, thereby obtaining the bag-of-words features under different types of sub-health states. Specifically, it includes:
[0060] (3.1) The Dense-SIFT algorithm is used to extract features of the door opening and closing motor angle, speed, and current grayscale images under a certain type of sub-health state, and the matrix F is constructed.
[0061] ,
[0062] Among them, n represents the number of key points extracted, m represents the dimension of dense-sift 128, each row of the matrix F represents all the features of a key point, and F represents all the features of the door opening and closing motor angle, speed, and current image in a certain type of sub-healthy state.
[0063] The Dense-SIFT algorithm is an image processing method based on local features. It captures key information in the image by uniformly sampling positions in the image and extracting dense scale-invariant features around each sampling point. Dense-SIFT uses adjustable parameter sizes to appropriately meet the feature characterization capabilities of images under different classification tasks. Specifically, Dense-SIFT divides the image into several blocks, then extracts SIFT features in each block, and finally concatenates the features of all blocks as the feature representation of the entire image. The advantage of doing this is that more image information can be retained and the robustness and reliability of the features can be improved. The algorithm uses different scales in the scale space to blur the image, detects key points at each scale, and then extracts local feature descriptors of the areas around these key points. Such as Figure 8 The figure shows the grayscale image feature of the door opening motor angle extracted by dense-sift. In this embodiment, the image range extracted is based on a radius of 20 pixels. The pixel step length is the center distance to extract the feature data within each circle.
[0064] (3.2) The extracted sub-health image feature data of all types of sub-health states are stored in the matrix to form the final feature set of all images, that is, the original feature set L
[0065] , where N represents the number of door opening and closing motor operation data sets under all sub-healthy states of the door.
[0066] (3.3) Establish BOF bag-of-words features.
[0067] Taking into account the dimension and scale of image features, the K-means clustering method is used to determine the optimal number of cluster centers based on the original feature set extracted by Dense-SIFT of all images of all types of sub-healthy states, and to construct a bag-of-words feature library. Then, the Dense-SIFT feature vectors extracted from the motor switch door angle, speed, and current grayscale images of each type of sub-healthy state are assigned to the corresponding cluster centers, thereby obtaining bag-of-words features under different types of sub-healthy states.
[0068] Because the number of dense-sift features extracted from images is very large, directly using feature data to build a model will result in low recognition efficiency and accuracy. Therefore, when recognizing images, we draw on the idea of text classification to extract representative features from a picture, put all the features of the pictures together to form a dictionary, and cluster the features in this dictionary into k word bags. The word bag clustering analysis essentially extracts higher-level features of the image.
[0069] In this embodiment, the range of the best cluster center is first determined by finding the elbow of the elbow method and calculating the farthest distance between the curve composed of the cluster centers and the straight line connected from the beginning to the end of the cluster centers, such as Fig. 9 As shown, finally, considering various aspects such as statistics, the optimal number of cluster centers K is comprehensively determined, that is, the inflection point of the cluster center is determined, the balance between efficiency and effect is achieved, and iteration is performed until the cluster center meets the conditions. In order to avoid too long iteration time, the number of iterations is set to 20 times in this embodiment, 70 optimal cluster centers are obtained, and the features in the original feature set are converted into a bag-of-words feature library including 70 cluster centers.
[0070] Then, the Dense-SIFT algorithm is used to extract the features of the motor switch door angle, speed, and current grayscale images of each type of sub-healthy state, and the Dense-SIFT feature vector of the sub-healthy state is obtained. Then each Dense-SIFT feature vector is assigned to the cluster center in the word bag feature library, and the Euclidean distance between each Dense-SIFT feature vector and the cluster center is calculated. If it is closest to a cluster center, the number of the cluster center is increased by 1, so as to obtain the word bag feature of the sub-healthy state.
[0071] (4) Bag-of-words feature screening to eliminate invalid features
[0072] The Dense-SIFT feature extraction algorithm will extract a large number of features from blank areas, and the number of blank area features is much larger than the number of important features. These blank area features will be clustered into a bag-of-words feature to form an interference bag-of-words. If they are not eliminated, they will seriously interfere with the establishment of subsequent diagnostic models and diagnostic results.
[0073] In this embodiment, after the word bag features are generated, the word bag features are screened and invalid features are eliminated by improving the outlier detection method. The improved outlier detection method is: considering the comparison between the blank area features and the non-blank area feature values, setting a threshold P so that
[0074]
[0075] in, Z Indicates the degree of deviation. X represents the bag-of-words value, represents the bag-of-words mean, represents the standard deviation of the word bag, and P represents the threshold. In this embodiment, the deviation degree is set Z The value of is 3, Z Multiplying by the threshold further obtains a more accurate outlier value, and records values greater than the outlier value. Z*P The word bag position of is the interference word bag position.
[0076] The calculation process of the threshold value P is as follows: using the binary method, the pixel value with a grayscale value less than a specified value is set to 0, and the area with a pixel value of 0 is the motor signal image area, that is, the non-blank area. The specified value is determined by the grayscale value of the sub-healthy image area, and 220 pixels are taken in this embodiment. Then the non-blank area and the total area of the grayscale image of the door switch motor operation data are measured. The total area includes blank areas and non-blank areas. The ratio of the motor signal image area A to the total area B is calculated, that is, the motor signal image ratio The threshold value P is the image proportion weight, and its value depends on the motor signal image proportion T. The relationship between the value of the image proportion weight P and the signal image proportion T is as follows:
[0077]
[0078] in, represents the threshold amplitude, represents the threshold coefficient, and d represents the pixel base of the image area ratio, which is obtained from historical operation data statistics. The relationship between the two in this embodiment is shown in Table 1.
[0079] Table 1 Relationship between motor signal image proportion and image proportion weight
[0080] Motor signal image ratio T Image proportion weight P 10%<T 1 5%<T<=10% 2 T<=5% 3
[0081] By comparing the word bag positions of the blank area and non-blank area features with the interference word bag positions detected by outliers, most of the blank area word bag features are consistent with the clustered interference word bags, while the non-blank area will be scattered in the non-interference word bags. After accurately locating the useless word bags of interference, remove them, such as Fig.10As shown, 69 sets of bag-of-words features are finally obtained.
[0082] (5) Constructing a sub-health diagnosis model
[0083] A sub-health diagnosis model was constructed based on support vector machine (SVM), and the particle swarm algorithm was used to optimize the PSO-SVM sub-health diagnosis model.
[0084] The bag-of-words features of each type of sub-healthy state obtained in step (4) and the label of the sub-healthy state are input into the SVM algorithm to establish a sub-healthy diagnosis model and perform parameter optimization. SVM is to find the optimal classification surface in a given data sample so that this classification surface can maximize the segmentation of the data sample. The kernel function is introduced to solve the nonlinear classification problem. The samples in the input space are mapped to the high-dimensional feature space through nonlinear mapping, and the optimal hyperplane is constructed in the high-dimensional feature space. In this embodiment, the kernel function uses a linear kernel. The parameter optimization includes: first, using hyperparameter optimization to narrow the range of SVM, and then using the particle swarm algorithm to optimize the parameters of the SVM algorithm, outputting the optimal kernel parameters of SVM, and finally obtaining the PSO-SVM sub-healthy diagnosis model.
[0085] (6) Sub-health diagnosis
[0086] The data to be tested are processed using steps (1) to (4) and then input into the PSO-SVM sub-health diagnosis model established in step (5). The accuracy is calculated using the cross-validation algorithm. Finally, the accuracy of each type of sub-health diagnosis is shown in Table 2. The global accuracy, i.e., the average accuracy, is 93.3%.
[0087] Table 2 Sub-health diagnosis result accuracy of the present invention
[0088] Sub-health type Accuracy Abnormal centering 86% Buffer head wear 100% Upper slide inner adjustment 100% Upper slideway external adjustment 75% V-shaped abnormality 100% Lower gear lateral interference 92% Lower gear pin longitudinal interference 100%
[0089] In order to further verify the method of the present invention, the sub-health diagnosis model was constructed by using the word bag feature without removing the invalid features in step (4). The calculated diagnostic accuracy of each type of sub-health is shown in Table 3, and the global accuracy is 90%. It can be seen that the diagnostic accuracy of the method of the present invention is higher than that of the sub-health diagnosis model constructed by the word bag feature without removing the invalid features, and after the invalid word bag features are removed, the diagnostic accuracy in the upper slideway outer adjustment item point is increased from 62% to 75%, an increase of 13%, and the overall improvement is (75%-62%) / 62%=21%; the diagnostic accuracy in the lower gear lateral interference item point is increased from 85% to 92%, an increase of 7%, and the overall improvement is (92%-85%) / 85%=8%, which significantly improves the diagnostic effect of this type of sub-health state.
[0090] Table 3 Accuracy of sub-health diagnosis results without invalid feature elimination
[0091] Sub-health type Accuracy Abnormal centering 84% Buffer head wear 100% Upper slide inner adjustment 100% Upper slideway external adjustment 62% V-shaped abnormality 99% Lower gear lateral interference 85% Lower gear pin longitudinal interference 100%
[0092] Further, other sub-health diagnosis methods in the prior art such as random forest method, KNN method and decision tree method are used for sub-health diagnosis, and their global accuracy is shown in Table 3. It can be seen that the accuracy of the diagnosis result of the present invention is significantly improved compared with other common sub-health diagnosis methods in the prior art.
[0093] Table 4 Comparison of the diagnostic accuracy of the present invention and other diagnostic methods
[0094] Diagnostic Methods Accuracy Random Forest 65% KNN 84% Decision Tree 47% The present invention 93.3%
Claims
1. A vehicle door sub-health diagnosis method based on image processing, characterized in that: The following steps are involved: Collect door operation signals in healthy state and different types of sub-healthy state and process them in images; Feature extraction: Dense-sift algorithm is used to extract features from all sub-health grayscale images after image processing, and the original feature set is established. Based on the clustering algorithm, several cluster centers are determined to build a bag-of-words feature library. Then, the Dense-sift feature vectors extracted from the sub-health grayscale images under each type of sub-health state are assigned to the corresponding cluster centers, thereby obtaining bag-of-words features under different types of sub-health states. Feature screening: By comparing the blank area features of the sub-health grayscale image extracted by Dense-sift with the feature values of the non-blank area, the threshold is set, and the threshold is combined with outlier detection to construct an improved outlier detection method to further eliminate interfering bag-of-words features; The threshold setting by comparing the blank area features of the sub-health grayscale image extracted by Dense-sift with the feature values of the non-blank area includes: using a binary method, setting the pixel value with a grayscale value less than a certain value to 0, and the area with a pixel value of 0 is the signal image area, that is, the non-blank area; then measuring the non-blank area area and the total area of the sub-health grayscale image, the total area includes the blank area and the non-blank area, and calculating the ratio of the signal image area A to the total area B, that is, the signal image proportion T, and the relationship between the value of the threshold P and the signal image proportion T is as follows: in, represents the threshold amplitude, represents the threshold coefficient, d represents the pixel base of the image area, which is obtained from historical operation data statistics; Based on the bag-of-words features of each type of sub-health status after feature screening and the sub-health status type label, a sub-health diagnosis model is constructed and diagnosis is performed.
2. The vehicle door sub-health diagnosis method based on image processing according to claim 1 is characterized in that: The method of determining a number of cluster centers based on a clustering algorithm and constructing a bag-of-words feature library includes adopting a K-means clustering algorithm and determining the optimal number of cluster centers by an elbow method.
3. The vehicle door sub-health diagnosis method based on image processing according to claim 2 is characterized in that: Determining the optimal number of cluster centers by the elbow method includes determining the range of cluster centers by the longest distance between the elbow of the elbow method and the curve composed of cluster centers and the straight line connected end to end of the cluster centers, and determining the optimal number of cluster centers.
4. The vehicle door sub-health diagnosis method based on image processing according to claim 1 is characterized in that: The fixed value is determined by the grayscale value of the sub-health grayscale image.
5. The vehicle door sub-health diagnosis method based on image processing according to claim 1 is characterized in that: The improved outlier detection method is: combining the threshold with the outlier detection, so that in, Z Indicates the degree of deviation. X represents the bag-of-words value, represents the bag-of-words mean, represents the standard deviation of the word bag, P represents the threshold, and the record is greater than the outlier Z*P The word bag position is removed.
6. The vehicle door sub-health diagnosis method based on image processing according to claim 1 is characterized in that: The construction of the sub-health diagnosis model includes constructing an SVM sub-health diagnosis model, using hyperparameter optimization to narrow the range of the SVM, and then using a particle swarm algorithm to optimize the parameters of the SVM algorithm, outputting the optimal kernel parameters of the SVM, and finally obtaining a PSO-SVM sub-health diagnosis model.
7. The vehicle door sub-health diagnosis method based on image processing according to claim 1 is characterized in that: The door operation signal includes motor operation data.
8. The vehicle door sub-health diagnosis method based on image processing according to claim 7 is characterized in that: The motor operation data includes motor current, rotation angle and rotation speed.
9. The vehicle door sub-health diagnosis method based on image processing according to claim 1 is characterized in that: The door operation signal is pre-processed before image processing.
10. A vehicle door sub-health diagnosis system based on image processing, characterized in that: include: Door operation signal image processing module, used to collect door operation signals in healthy state and various types of sub-healthy state and perform image processing; The feature extraction module is used to extract features from all sub-health grayscale images after image processing using the Dense-SIFT algorithm, establish an original feature set, determine several cluster centers based on the clustering algorithm, and build a bag-of-words feature library; then the Dense-SIFT feature vectors extracted from the sub-health grayscale images under each type of sub-health state are assigned to the corresponding cluster centers, thereby obtaining bag-of-words features under different types of sub-health states; The feature screening module is used to set the threshold by comparing the blank area features of the sub-health grayscale image extracted by Dense-sift with the feature values of the non-blank area, and to combine the threshold with the outlier detection to construct an improved outlier detection method, further eliminate the interfering bag-of-words features, and realize the screening of bag-of-words features; The sub-health diagnosis model building module is used to build a sub-health diagnosis model and perform diagnosis based on the bag-of-words features of each type of sub-health state after feature screening and the sub-health state type label.
11. The vehicle door sub-health diagnosis system based on image processing according to claim 10, characterized in that: The improved outlier detection method is: in, Z Indicates the degree of deviation. X represents the bag-of-words value, represents the bag-of-words mean, represents the standard deviation of the word bag, P represents the threshold, and the record is greater than the outlier Z*P The word bag position is removed; The calculation process of the threshold value P includes: Using the binary method, the pixel value with a gray value less than a certain value is set to 0, and the area with a pixel value of 0 is the signal image area, that is, the non-blank area; then the non-blank area and the total area of the sub-health grayscale image are measured. The total area includes the blank area and the non-blank area, and the ratio of the signal image area A to the total area B is calculated, that is, the signal image proportion T. The relationship between the value of the threshold P and the signal image proportion T is as follows: in, represents the threshold amplitude, represents the threshold coefficient, d represents the pixel base of the image area, which is obtained from historical operation data statistics.
