NVH data order identification method and device, equipment and storage medium
By extracting and clustering suspected order elements in the NVH spectrum color map, calculating their order values and eliminating order clusters that do not meet the conditions, the problem of low efficiency and accuracy in order identification of NVH data in the existing technology is solved. Efficient and automated order recognition is achieved.
Patent Information
- Application Number
- CN202410869877.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-01
AI Technical Summary
The identification efficiency and accuracy of NVH data orders in the existing technology are low, and they mainly rely on manual visual means, making it difficult to achieve automated processing.
By obtaining the NVH spectrum color map, extracting suspected order elements, calculating their order values, clustering according to the preset order resolution, calculating the length of the slash, and eliminating order clusters that do not meet the conditions, in order to identify the spectrum color All orders in the diagram.
It improves the identification efficiency and accuracy of NVH data orders, realizes automated processing, and enhances the reliability and efficiency of identification results.
Smart Images

Figure CN118734017A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle fault identification, and in particular to a method, device, equipment and storage medium for identifying NVH data order. Background Art
[0002] Order is a characteristic of rotating parts, such as gearbox gear noise and engine noise. In simple terms, the order of an event is the number of times it occurs during one revolution of the reference shaft. For example, for a four-cylinder four-stroke engine, the crankshaft rotates twice to complete a cycle. In this cycle, the "ignition" event (ignition coil ignition) occurs 4 times, that is, the "ignition" event occurs twice for every revolution of the crankshaft. Therefore, taking the crankshaft speed as the reference speed, the order of the "ignition" event is 2nd order.
[0003] Order is an important data for identifying the quality and cause of failure of automobiles and parts. Each rotating part corresponds to an order. Knowing the order means knowing the source of the failure. Therefore, the identification of order plays a significant role and is extremely important. Currently, the identification of order (which orders exist and what the order value is) is done manually. In the NVH data analysis software, after visually finding the existing order, the software is used to display the order value. This identification method is time-consuming and labor-intensive, inefficient, and not convenient for the automatic processing of subsequent data.
[0004] Therefore, how to improve the efficiency and accuracy of order recognition is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The main purpose of the present invention is to provide a method, device, equipment and storage medium for identifying NVH data orders, which can improve the recognition efficiency and recognition accuracy of NVH data orders and have strong compatibility.
[0006] In a first aspect, the present application provides a method for identifying the order of NVH data, wherein the method comprises the steps of:
[0007] Based on the acquired NVH spectrum color map, extracting suspected order elements in the NVH spectrum color map, and calculating the order values of the suspected order elements;
[0008] Clustering the order values of the suspected order elements according to a preset order resolution to obtain a plurality of order clusters;
[0009] The oblique line lengths corresponding to the plurality of order clusters are calculated, and the order clusters that do not meet the preset conditions are eliminated according to the oblique line lengths, so as to identify all the orders in the spectrum color map.
[0010] In combination with the first aspect, as an optional implementation, a suspected order list is generated according to the order value of the suspected order element;
[0011] Sorting the order values in the suspected order list in ascending or descending order;
[0012] According to a preset order resolution, the sorted order values of the suspected order elements are clustered according to the order resolution to form a plurality of order clusters.
[0013] In combination with the first aspect, as an optional implementation, according to the end point values of the horizontal axis and the vertical axis of the spectrum color map, the order value of the diagonal line passing through the origin in the spectrum color map is calculated;
[0014] When the order average value of the order cluster is less than or equal to the order value of the diagonal line, according to the formula: Calculate the length of the oblique line corresponding to the order average value of the order cluster, where f1 is the top frequency of the oblique line corresponding to the order cluster in the spectrum color map, and n_end is the end value of the vertical axis of the spectrum color map;
[0015] When the order average of the order cluster is greater than the order value of the diagonal line, according to the formula: Calculate the length of the slash corresponding to the order average of the order cluster, where f _ end is the end point value of the horizontal axis of the spectrum color map, and n1 is the top speed of the oblique line corresponding to the order cluster in the spectrum color map;
[0016] According to the formula: Eliminate the order clusters that do not satisfy the formula to identify all orders in the spectrum color map, where Order_num(i) is the number of elements in the i-th order cluster, L(i) is the length of the diagonal line corresponding to the order average of the i-th order cluster, and length_ratio is the custom limit.
[0017] In combination with the first aspect above, as an optional implementation method, the frequency and rotation speed corresponding to each suspected order element are calculated;
[0018] The order value of each suspected order element is calculated according to the frequency and the rotation speed.
[0019] In combination with the first aspect above, as an optional implementation method, according to the formula: Calculate the frequency corresponding to each suspected order element, where f_start is the starting point of the horizontal axis in the spectrum color map, f_end is the end point of the horizontal axis in the spectrum color map, col_num is the number of columns of the R matrix in the spectrum color map, and j refers to the jth column of the R matrix in the spectrum color map where the suspected order element is located;
[0020] According to the formula: Calculate the speed corresponding to each order element, where n_start is the starting point of the ordinate axis in the spectrum color map, n_end is the end point of the ordinate axis in the spectrum color map, row_num is the number of rows in the R matrix in the spectrum color map, and i means that the suspected order element is located in the i-th row of the R matrix in the spectrum color map;
[0021] According to the formula: Compute the order value of each possible order element.
[0022] In combination with the first aspect, as an optional implementation method, the NVH data of vehicle acceleration and deceleration is segmentedly analyzed using fast Fourier transform to obtain an NVH spectrum color map, in which the horizontal axis is the frequency of vibration or noise, the vertical axis is the rotation speed of the reference shaft, and the color represents the amplitude of the vibration or noise;
[0023] The RGB matrix of the spectrum color image is read, and pixel points whose R values are greater than a first set threshold and whose G and B values are greater than a second set threshold are extracted as suspected order elements.
[0024] In combination with the first aspect above, as an optional implementation manner, the boundary area of the spectrum color image is cropped automatically or manually.
[0025] In a second aspect, the present application provides a device for identifying NVH data order, the device comprising:
[0026] An execution module, which is used to extract suspected order elements in the NVH spectrum color map based on the acquired NVH spectrum color map, and calculate the order value of the suspected order element;
[0027] A clustering module, which is used to cluster the order values of the suspected order elements according to a preset order resolution to obtain a plurality of order clusters;
[0028] The processing module calculates the oblique line lengths corresponding to the plurality of order clusters, and removes the order clusters that do not meet the preset conditions according to the oblique line lengths, so as to identify all the orders in the spectrum color map.
[0029] In a third aspect, the present application further provides an electronic device, comprising: a processor; a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the method described in any one of the first aspects is implemented.
[0030] In a fourth aspect, the present application further provides a computer-readable storage medium storing computer program instructions, which, when executed by a computer, enables the computer to execute any of the methods described in the first aspect.
[0031] The present application provides a method, device, equipment and storage medium for identifying the order of NVH data, wherein the method includes the steps of: extracting suspected order elements in the NVH spectrum color map based on the acquired NVH spectrum color map, and calculating the order value of the suspected order element; clustering the order value of the suspected order element according to the preset order resolution to obtain multiple order clusters; calculating the oblique line length corresponding to the multiple order clusters, and according to the oblique line length, eliminating the order clusters that do not meet the preset conditions to identify all orders in the spectrum color map. The present application can improve the recognition efficiency and recognition accuracy of NVH data order, and has strong compatibility.
[0032] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0034] Figure 1 A flow chart of a method for identifying NVH data order provided in an embodiment of the present application;
[0035] Figure 2 A schematic diagram of a device for identifying NVH data order provided in an embodiment of the present application;
[0036] Figure 3 A color spectrum diagram provided in the embodiments of the present application;
[0037] Figure 4 A schematic diagram of an electronic device provided in an embodiment of the present application;
[0038] Figure 5 A schematic diagram of a computer-readable program medium provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0040] Furthermore, the drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. Some of the blocks shown in the drawings are functional entities and do not necessarily correspond to physically or logically separate entities.
[0041] The embodiments of the present application are further described in detail below in conjunction with the accompanying drawings.
[0042] Reference Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for identifying NVH data order provided by the present invention, as shown in FIG. Figure 1 As shown, the method comprises the steps of:
[0043] Step S101: Based on the acquired NVH spectrum color map, extract the suspected order elements in the NVH spectrum color map, and calculate the order values of the suspected order elements.
[0044] Specifically, the NVH data of vehicle acceleration and deceleration is segmented and analyzed using fast Fourier transform to obtain the NVH spectrum color map, where the horizontal axis is the frequency of vibration or noise, the vertical axis is the speed of the reference shaft, and the color represents the amplitude of vibration or noise;
[0045] The RGB matrix of the spectrum color image is read, and pixel points whose R values are greater than a first set threshold and whose G and B values are greater than a second set threshold are extracted as suspected order elements.
[0046] For easy understanding, an example is given to obtain a spectrum color map: the NVH data of acceleration and deceleration is subjected to segmented FFT analysis according to the reference shaft speed to obtain a spectrum color map, in which the horizontal axis is the frequency of vibration and noise, the vertical axis is the reference shaft speed, and the color represents the amplitude of vibration and noise. The relationship between the order, the reference shaft speed, and the signal characteristic frequency can be expressed as: Where O is the order, f is the signal frequency (Hz), and n is the reference shaft speed (r / min). It should be noted that the horizontal and vertical axes of the spectrum color chart should be linear coordinates. In this way, the order data is expressed as a series of "diagonal lines" passing through the lower left corner of the spectrum color chart (the origin of the coordinate system). Such order lines are intuitive and easy to identify.
[0047] Get suspected order elements: The spectrum color map corresponds to an image, and its RGB matrix is read. In order to improve the order recognition effect and recognition efficiency, the boundary area of the spectrum color map must be cleared, and the upper, lower, left, and right boundary areas must be deleted. This can be achieved by using the RGB coordinate value (255, 255, 255) to represent the white pixel point (blank area) and reducing the size of the RGB matrix, that is, deleting the elements of the upper, lower, left, and right boundaries of the RGB matrix.
[0048] Optionally, the reduced RGB matrix may also be achieved by manually or automatically cropping the boundary area of the spectrum color image and then reading its RGB matrix (ie, R matrix, G matrix and B matrix).
[0049] For the (reduced) RGB matrix, extract the pixels whose R value is greater than 225 (here is an example value, which can be changed as needed), and whose G and B values are less than 30 (here is an example value, which can be changed as needed), and obtain the position coordinates of these pixels (the sequence value of the row and column where the pixel is located, that is, the row and column where the pixel is located). These pixels are the suspected order elements.
[0050] It should be noted that the reason why we extract pixels with R values greater than 225 and G and B values less than 30 is that in the spectrum color map, the amplitude of the order data is generally the largest, and the red pixels represent the points with the largest vibration and noise values; therefore, the R value should be large, while the G and B values should be small, and the ones with large R values are suspected to be order elements.
[0051] In addition, it is necessary to explain that the suspected order element means that the extracted pixel point may be an order element, but it cannot be determined that it is an order element. It can be understood that the suspected order element is a candidate order element. It can be understood that the candidate order element means that the extracted pixel point may be an order element, but it cannot be determined that it is an order element.
[0052] It is also necessary to explain that the order elements are located on the same oblique line through the origin, and the points are based on the formula: The calculated orders are the same; non-order elements are scattered on the spectrum color map, not on the same oblique line passing through the origin, and each point is based on the formula: The calculated orders are different.
[0053] Calculate the frequency and speed corresponding to each suspected order element;
[0054] The order value of each suspected order element is calculated according to the frequency and the rotation speed.
[0055] According to the formula: Calculate the frequency corresponding to each suspected order element, where f _ start is the starting point of the horizontal axis in the spectrum color map, f _ end is the end point of the horizontal axis in the spectrum color map, col_num is the number of columns of the R matrix in the spectrum color map, and j refers to the jth column of the R matrix in the spectrum color map where the suspected order element is located;
[0056] According to the formula: Calculate the speed corresponding to each order element, where n_start is the starting point of the ordinate axis in the spectrum color map, n_end is the end point of the ordinate axis in the spectrum color map, row_num is the number of rows in the R matrix in the spectrum color map, and i means that the suspected order element is located in the i-th row of the R matrix in the spectrum color map;
[0057] According to the formula: Compute the order value of each possible order element.
[0058] For easy understanding, an example is given. Each suspected order element (pixel) corresponds to a frequency (frequency of vibration and noise) and a speed (reference shaft speed). According to the formula The corresponding order can be calculated. That is, each suspected order element corresponds to an order; pixels with the same order are located on the same oblique line in the spectrum color map.
[0059] In the RGB matrix, to obtain the frequency and speed corresponding to each suspected order element, it is necessary to know the value range of the horizontal and vertical axes in the spectrum color map. Assume that the starting points of the horizontal and vertical axes in the spectrum color map are f _ start(Hz), n_start(r / mmin); the end points of the horizontal and vertical axes are f _ end(Hz), n_end(r / mmin). In the RGB matrix, let the number of rows of the R matrix be row_num (corresponding to the vertical length of the spectrum color map), the number of columns be col_num (corresponding to the horizontal length of the spectrum color map), and let a suspected order element be located in the i-th row and j-th column of the R matrix.
[0060] According to the formula: Calculate the frequency corresponding to each suspected order element, where f _ start is the starting point of the horizontal axis in the spectrum color map, f _ end is the end point of the horizontal axis in the spectrum color map, col_num is the number of columns of the R matrix in the spectrum color map, and j refers to the jth column of the R matrix in the spectrum color map where the suspected order element is located;
[0061] According to the formula: Calculate the speed corresponding to each order element, where n_start is the starting point of the ordinate axis in the spectrum color map, n_end is the end point of the ordinate axis in the spectrum color map, row_num is the number of rows in the R matrix in the spectrum color map, and i means that the suspected order element is located in the i-th row of the R matrix in the spectrum color map;
[0062] According to the formula: Compute the order value of each possible order element.
[0063] It should be noted that the formulas for calculating frequency and speed are different because the direction in which the rows of the R matrix increase (from top to bottom) is different from the direction in which the ordinate (speed) increases in the spectrum color map (from bottom to top, see Figure 3 )on the contrary.
[0064] Substitute the calculated f and n into the formula The order value of each suspected order element can be obtained and formed into a list, called the suspected order list, recorded as suspected_order_list.
[0065] The extraction and calculation of suspected order elements can be automatically performed through programming languages such as Matlab and Python, without manual operation.
[0066] Step S102: clustering the order values of the suspected order elements according to a preset order resolution to obtain a plurality of order clusters.
[0067] Specifically, generating a suspected order list according to the order value of the suspected order element;
[0068] Sorting the order values in the suspected order list in ascending or descending order;
[0069] According to a preset order resolution, the sorted order values of the suspected order elements are clustered according to the order resolution to form a plurality of order clusters.
[0070] For easy understanding, let's take an example and perform cluster analysis on the elements in suspected_order_list. What is cluster analysis? Figure 3 As shown, considering the impact of test error, the 11.84th order and the 11.93th order should be the same order, so the elements with close values in suspected_order_list should be classified into one category, that is, they belong to the same order. Cluster analysis is to classify elements with close values into one order. How to define "close values" naturally requires setting a limit value according to the actual situation, which is called order resolution, denoted as order_resoluntion. The cluster analysis process of this step is as follows:
[0071] 1. Arrange the data in the suspected order list suspected_order_list in ascending or descending order.
[0072] 2. According to the order resolution order_resoluntion, cluster the data in 1 to form multiple order clusters. In each order cluster, the difference between the maximum and minimum values is less than or equal to order_resoluntion.
[0073] 3. For each order cluster in 2, calculate its size, that is, the number of data contained in the order cluster; calculate the average value of each order cluster (for example, if the order cluster consists of 5.1, 5.2, and 5.3, then the average value is 5.2) as the nominal order value of the order cluster.
[0074] Let's take an example to illustrate. Assume that the sorted values of suspected_order_list are [5.21,5.22,5.23,5.25,8.49,8.51,8.53,8.54,9.12,9.15,9.2,9.4,9.6,9.8,10,11.5,13.5,13.6]. There are 18 data in total. Assume order_resoluntion = 0.2. Based on this, they can be divided into 7 order clusters, namely C1 = {5.21, 5.22, 5.23, 5.25}, C2 = {8.49, 8.51, 8.53, 8.54}, C3 = {9.12, 9.15, 9.2}, C4 = {9.4, 9.6}, C5 = {9.8, 10}, C6 = {11.5}, C7 = {13.5, 13.6}. Obviously, in each cluster, the difference between the maximum and minimum values is less than or equal to order_resoluntion. The sizes of the 7 order clusters are 4, 4, 3, 2, 2, 1, and 2 respectively; the average values (nominal order values) are 5.2275, 8.5175, 9.1567, 9.5, 9.9, 11.5, and 13.55 respectively.
[0075] It can be understood that after clustering, we finally get two arrays, Order and Order_num, which respectively represent the order average (nominal value) of the order cluster and the size of the order cluster (the number of data in the order cluster). Order(i) and Order_num(i) represent the order average (nominal value) and size of the i-th order cluster.
[0076] Step S103: Calculate the oblique line lengths corresponding to the plurality of order clusters, and remove the order clusters that do not meet the preset conditions according to the oblique line lengths, so as to identify all the orders in the spectrum color map.
[0077] Specifically, for the obtained order clusters, if the length of a certain order cluster (located on the diagonal line) is relatively short, it is generally considered that this order is not obvious and should be eliminated. The so-called "relatively short" here means that the ratio of the number of pixels corresponding to a certain order cluster to the length of the corresponding entire diagonal line is small. Note this relative. If the number of pixels corresponding to two order clusters is the same, but the lengths of the diagonal lines they are on are different, there will be different results on whether to eliminate the corresponding order clusters. It is necessary to calculate the length of the diagonal line corresponding to each order cluster and eliminate the order clusters that do not meet the requirements.
[0078] like Figure 3 As shown in the spectrum color map, the order value corresponding to the oblique line from the lower left corner to the upper right corner can be expressed by the formula The frequency and speed corresponding to the upper right corner are f_end and n_end respectively. Substitute them into the formula The order corresponding to the diagonal is called the diagonal order, denoted as diagonal_order (e.g. Figure 3 The order value in is 9.43), and the length of the diagonal line is
[0079] For pixels whose order (denoted as order_1) is less than or equal to diagonal_order, the length of the diagonal line is calculated as follows:
[0080] Pair Make the changes and get: Substituting n=n_end and O=order_1 into the above equation, we can obtain the top frequency f1 of the oblique line corresponding to the order cluster in the spectrum color map, where:
[0081] According to the formula: Calculate the length of the diagonal line corresponding to the order average of the order cluster. Similarly, for the order (denoted as order_1) greater than diagonal_order (such as Figure 3 The pixel point with the middle order value of 11.93) is recorded as n1, where The length of the oblique line is recorded as L2, according to the formula: Calculate the length of the slash corresponding to the order average of the order cluster, where f _ end is the end point value of the horizontal axis of the spectrum color map, and n1 is the top speed of the oblique line corresponding to the order cluster in the spectrum color map.
[0082] The lengths L1 and L2 are collectively referred to as the diagonal line length L. The diagonal line length corresponding to the i-th order cluster is denoted as L(i).
[0083] At this point, the length of the slash corresponding to the order cluster can be obtained, according to the formula: Eliminate the order clusters that do not satisfy the formula to identify all the orders in the spectrum color map, where Order_num(i) is the number of elements in the i-th order cluster, L(i) is the length of the oblique line corresponding to the order average of the i-th order cluster, and lengtn_ratio is the limit of the ratio of the two, which can be set according to actual conditions. When , the order cluster should be eliminated; when it satisfies this formula, the order cluster is accepted.
[0084] It is understandable that the present application applies RGB color space theory to NVH spectrum color map to extract suspected order elements. The order values of the suspected order elements are calculated using the eigenvalues of the spectrum color map. The order values of the suspected order elements are clustered by clustering analysis methods to obtain order clusters. Combined with the application characteristics of spectrum color maps in practice, order clusters are automatically identified to obtain real and comprehensive order data. The principle of the present invention is clear and simple, and the algorithm is simple. The present invention improves the recognition efficiency and accuracy of NVH data order. The content of this patent can also be used for automatic recognition of data order in other industries and other fields.
[0085] Reference Figure 2 , Figure 2 FIG. 1 is a schematic diagram of a device for identifying NVH data order provided by the present invention, such as Figure 2 As shown, the device comprises:
[0086] The execution module 201 is used to extract the suspected order elements in the NVH spectrum color map based on the acquired NVH spectrum color map, and calculate the order values of the suspected order elements.
[0087] Clustering module 202: It is used to cluster the order values of the suspected order elements according to a preset order resolution to obtain a plurality of order clusters.
[0088] Processing module 203: Calculate the oblique line lengths corresponding to the plurality of order clusters, and remove the order clusters that do not meet the preset conditions according to the oblique line lengths, so as to identify all the orders in the spectrum color map.
[0089] Furthermore, in a possible implementation manner, the clustering module is further configured to generate a suspected order list according to the order values of the suspected order elements;
[0090] Sorting the order values in the suspected order list in ascending or descending order;
[0091] According to a preset order resolution, the sorted order values of the suspected order elements are clustered according to the order resolution to form a plurality of order clusters.
[0092] Further, in a possible implementation manner, the processing module is further used to calculate the order value of the diagonal line passing through the origin in the spectrum color map according to the end point values of the horizontal axis and the vertical axis of the spectrum color map;
[0093] When the order average value of the order cluster is less than or equal to the order value of the diagonal line, according to the formula: Calculate the length of the oblique line corresponding to the order average value of the order cluster, where f1 is the top frequency of the oblique line corresponding to the order cluster in the spectrum color map, and n_end is the end value of the vertical axis of the spectrum color map;
[0094] When the order average of the order cluster is greater than the order value of the diagonal line, according to the formula: Calculate the length of the slash corresponding to the order average of the order cluster, where f _ end is the end point value of the horizontal axis of the spectrum color map, and n1 is the top speed of the oblique line corresponding to the order cluster in the spectrum color map;
[0095] According to the formula: Eliminate the order clusters that do not satisfy the formula to identify all orders in the spectrum color map, where Order_num(i) is the number of elements in the i-th order cluster, L(i) is the length of the diagonal line corresponding to the order average of the i-th order cluster, and length_ratio is the custom limit.
[0096] Furthermore, in a possible implementation manner, the processing module is further used to calculate the frequency and rotation speed corresponding to each suspected order element;
[0097] The order value of each suspected order element is calculated according to the frequency and the rotation speed.
[0098] Furthermore, in a possible implementation manner, the processing module is further configured to calculate the following formula: Calculate the frequency corresponding to each suspected order element, where f_start is the starting point of the horizontal axis in the spectrum color map, f_end is the end point of the horizontal axis in the spectrum color map, col_num is the number of columns of the R matrix in the spectrum color map, and j refers to the jth column of the R matrix in the spectrum color map where the suspected order element is located;
[0099] According to the formula: Calculate the speed corresponding to each order element, where n_start is the starting point of the ordinate axis in the spectrum color map, n_end is the end point of the ordinate axis in the spectrum color map, row_num is the number of rows in the R matrix in the spectrum color map, and i means that the suspected order element is located in the i-th row of the R matrix in the spectrum color map;
[0100] According to the formula: Compute the order value of each possible order element.
[0101] Further, in a possible implementation manner, the execution module is also used to perform segmented analysis on the NVH data of vehicle acceleration and deceleration using a fast Fourier transform to obtain an NVH spectrum color map, wherein the horizontal axis is the frequency of vibration or noise, the vertical axis is the rotation speed of the reference shaft, and the color represents the amplitude of the vibration or noise;
[0102] The RGB matrix of the spectrum color image is read, and pixel points whose R values are greater than a first set threshold and whose G and B values are greater than a second set threshold are extracted as suspected order elements.
[0103] Furthermore, in a possible implementation manner, the processing module is further configured to perform cropping processing on a boundary area of the spectrum color image in an automatic or manual manner.
[0104] Reference Figure 3 , Figure 3 The color spectrum diagram provided by the present invention is shown in FIG. Figure 3 As shown:
[0105] The acceleration and deceleration NVH data are subjected to segmented FFT analysis according to the reference shaft speed to obtain a spectrum color map, in which the horizontal axis is the frequency of vibration and noise, the vertical axis is the reference shaft speed, and the color represents the amplitude of vibration and noise.
[0106] It should be noted that the horizontal and vertical axes of the spectrum color map should both be linear coordinates. In this way, the order data is expressed as a series of "diagonal lines" passing through the lower left corner of the spectrum color map (the origin of the coordinate system). Such order lines are intuitive and easy to identify.
[0107] The spectrum color map corresponds to a picture, and its RGB matrix is read. In order to improve the order recognition effect and recognition efficiency, the boundary area of the spectrum color map must be cleared, such as Figure 3 In the process, the blank areas at the top, bottom, left and right boundaries must be deleted, leaving only the color image area.
[0108] like Figure 3 As shown, 9.43, 11.84, and 11.93 are orders. It can be understood that each suspected order element (pixel) corresponds to a frequency (frequency of vibration and noise) and a rotation speed (reference shaft rotation speed), and the corresponding order can be calculated. That is, each suspected order element corresponds to an order; pixels with the same order are located on the same diagonal line in the spectrum color map. Among them, the 11.84th order and the 11.93th order should be the same order, and 9.43 can be understood as the diagonal order of the spectrum color map. Close elements should be classified into one category, that is, they belong to the same order. Cluster analysis is to classify elements with close values into one order.
[0109] Refer to the following Figure 4 An electronic device 400 according to this embodiment of the present invention will be described. Figure 4 The electronic device 400 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0110] like Figure 4 As shown, the electronic device 400 is in the form of a general computing device. The components of the electronic device 400 may include but are not limited to: at least one processing unit 410, at least one storage unit 420, and a bus 430 connecting different system components (including the storage unit 420 and the processing unit 410).
[0111] The storage unit stores program codes, which can be executed by the processing unit 410, so that the processing unit 410 executes the steps according to various exemplary embodiments of the present invention described in the above “Embodiment Method” section of this specification.
[0112] The storage unit 420 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 421 and / or a cache memory unit 422 , and may further include a read-only memory unit (ROM) 423 .
[0113] The storage unit 420 may also include a program / utility 424 having a set (at least one) of program modules 425, such program modules 425 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0114] Bus 430 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0115] The electronic device 400 may also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 400, and / or communicate with any device that enables the electronic device 400 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 450. Furthermore, the electronic device 400 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 460. As shown, the network adapter 460 communicates with other modules of the electronic device 400 via a bus 430. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0116] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0117] According to the solution of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present invention described in the above "Exemplary Method" section of the present specification.
[0118] refer to Figure 5 As shown, a program product 500 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0119] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0120] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0121] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0122] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0123] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0124] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
[0125] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
Claims
1. A method for identifying the order of NVH data, characterized in that: include: Based on the acquired NVH spectrum color map, extracting suspected order elements in the NVH spectrum color map, and calculating the order values of the suspected order elements; Clustering the order values of the suspected order elements according to a preset order resolution to obtain a plurality of order clusters; The oblique line lengths corresponding to the plurality of order clusters are calculated, and the order clusters that do not meet the preset conditions are eliminated according to the oblique line lengths, so as to identify all the orders in the spectrum color map.
2. The method according to claim 1, characterized in that The clustering of the order values of the suspected order elements according to a preset order resolution to obtain a plurality of order clusters includes: Generating a suspected order list according to the order value of the suspected order element; Sorting the order values in the suspected order list in ascending or descending order; According to a preset order resolution, the sorted order values of the suspected order elements are clustered according to the order resolution to form a plurality of order clusters.
3. The method according to claim 1, characterized in that The calculating of the oblique line lengths corresponding to the plurality of order clusters and, based on the oblique line lengths, eliminating the order clusters that do not meet the preset conditions to identify all the orders in the spectrum color map, including Calculate the order value of the diagonal line passing through the origin in the spectrum color map according to the end point values of the horizontal axis and the vertical axis of the spectrum color map; When the order average value of the order cluster is less than or equal to the order value of the diagonal line, according to the formula: Calculate the length of the oblique line corresponding to the order average value of the order cluster, where f1 is the top frequency of the oblique line corresponding to the order cluster in the spectrum color map, and n_end is the end value of the vertical axis of the spectrum color map; When the order average of the order cluster is greater than the order value of the diagonal line, according to the formula: Calculate the length of the oblique line corresponding to the order average value of the order cluster, where f_end is the end value of the horizontal axis of the spectrum color map, and n1 is the top speed of the oblique line corresponding to the order cluster in the spectrum color map; According to the formula: Eliminate the order clusters that do not satisfy the formula to identify all orders in the spectrum color map, where Order_num(i) is the number of elements in the i-th order cluster, L(i) is the length of the diagonal line corresponding to the order average of the i-th order cluster, and length_ratio is the custom limit.
4. The method according to claim 1, characterized in that: The calculating the order value of the suspected order element comprises: Calculate the frequency and speed corresponding to each suspected order element; The order value of each suspected order element is calculated according to the frequency and the rotation speed.
5. The method according to claim 4, characterized in that include: According to the formula: Calculate the frequency corresponding to each suspected order element, where f_start is the starting point of the horizontal axis in the spectrum color map, f_end is the end point of the horizontal axis in the spectrum color map, col_num is the number of columns of the R matrix in the spectrum color map, and j refers to the jth column of the R matrix in the spectrum color map where the suspected order element is located; According to the formula: Calculate the speed corresponding to each order element, where n_start is the starting point of the ordinate axis in the spectrum color map, n_end is the end point of the ordinate axis in the spectrum color map, row_num is the number of rows in the R matrix in the spectrum color map, and i means that the suspected order element is located in the i-th row of the R matrix in the spectrum color map; According to the formula: Compute the order value of each possible order element.
6. The method according to claim 1, characterized in that The extracting of suspected order elements in the NVH spectrum color map based on the acquired NVH spectrum color map includes: The NVH data of vehicle acceleration and deceleration is segmented and analyzed using fast Fourier transform to obtain the NVH spectrum color map, where the horizontal axis is the frequency of vibration or noise, the vertical axis is the speed of the reference shaft, and the color represents the amplitude of vibration or noise; The RGB matrix of the spectrum color image is read, and pixel points whose R values are greater than a first set threshold and whose G and B values are greater than a second set threshold are extracted as suspected order elements.
7. The method according to claim 1, characterized in that After the NVH spectrum color map is obtained, it also includes: The boundary area of the spectrum color image is cropped automatically or manually.
8. A device for identifying NVH data order, characterized in that: include: An execution module, which is used to extract suspected order elements in the NVH spectrum color map based on the acquired NVH spectrum color map, and calculate the order value of the suspected order element; A clustering module, which is used to cluster the order values of the suspected order elements according to a preset order resolution to obtain a plurality of order clusters; The processing module calculates the oblique line lengths corresponding to the plurality of order clusters, and removes the order clusters that do not meet the preset conditions according to the oblique line lengths, so as to identify all the orders in the spectrum color map.
9. An electronic device, characterized in that: The electronic device comprises: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer program instructions are stored therein, and when the computer program instructions are executed by a computer, the computer is caused to execute the method according to any one of claims 1 to 7.
