Model training method, device and electronic equipment
By automatically dividing and training vehicle sound data, the problems of high cost and low accuracy of vehicle operation sound labeling are solved, and efficient fault detection is achieved.
Patent Information
- Application Number
- CN202411059873.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-11-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, the annotation of vehicle running sounds requires a lot of manual time and cost, and the labeling results are inconsistent, resulting in low accuracy and efficiency of the sound recognition model.
By obtaining vehicle sound data and maintenance time, it is automatically divided into normal and abnormal sound data. The recognition accuracy formula is used to calculate and train the sound algorithm model, determine the target sound algorithm model, reduce the cost of manual labeling and improve the recognition accuracy.
It realizes automated vehicle sound data labeling, reduces manual labeling costs, improves the accuracy and processing efficiency of sound recognition models, and ensures accurate detection of faulty mechanical equipment.
Smart Images

Figure CN118588110B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle safety monitoring, and in particular to a model training method, device and electronic equipment. Background Art
[0002] With the popularity of vehicles in people's daily lives, vehicle safety has received more and more attention. Failure of the vehicle's engine, motor, differential, reducer and other equipment during driving will cause serious safety accidents. In order to prevent the occurrence of safety accidents, it is necessary to monitor the sound generated by the mechanical equipment in the vehicle during driving.
[0003] The sound produced when a mechanical device in the vehicle fails is different from the sound produced when it works normally. In order to monitor the safety risks of the vehicle in a timely manner, it is necessary to obtain the vehicle operation sound, and then the staff will identify the vehicle operation sound and mark the normal sound and fault sound in the vehicle operation sound. Finally, the marked vehicle operation sound is input into the sound recognition model for training to obtain the target sound recognition model, so that the vehicle operation sound can be detected based on the target sound recognition model.
[0004] In the above process, it takes a lot of time for the staff to label the vehicle running sounds. The staff can only label the vehicle running sounds based on their experience, which places high demands on the staff. For the same vehicle running sound, there are inconsistent labeling results for the same staff at different times. In addition, the staff needs to play the vehicle running sounds multiple times to achieve the labeling of the vehicle running sounds, which makes the cost of manual labeling too high. Summary of the invention
[0005] The present application provides a model training method, device and electronic device for solving the problem of high cost of manual labeling and improving the accuracy of the target sound algorithm model.
[0006] In a first aspect, the present application provides a model training method, the method comprising:
[0007] Acquiring vehicle sound data and maintenance time, wherein the vehicle sound data is continuous sound data collected within an initial time period;
[0008] dividing the vehicle sound data into normal sound data and abnormal sound data based on the maintenance time;
[0009] Inputting the normal sound data and the abnormal sound data into a sound algorithm model for training to obtain the recognition accuracy corresponding to the vehicle sound data;
[0010] When the recognition accuracy is greater than the set accuracy, the sound algorithm model is used as the target sound algorithm model.
[0011] Through the above method, the initial time period is automatically divided based on the maintenance time, so that the vehicle sound data is divided into normal sound data and abnormal sound data, avoiding manual labeling, and determining the target sound algorithm model through the relationship between the recognition accuracy and the set accuracy, thereby ensuring the accuracy of the target sound algorithm model.
[0012] In a possible design, dividing the vehicle sound data into normal sound data and abnormal sound data based on the maintenance time includes:
[0013] Determining a split time that is the same as the maintenance time in the initial time period;
[0014] dividing the initial time period into a first time period and a second time period based on the division time;
[0015] The vehicle sound data corresponding to the first time period is labeled to obtain the normal sound data, and the vehicle sound data corresponding to the second time period is labeled to obtain the abnormal sound data.
[0016] By using the above method, the initial time period is divided into a first time period and a second time period, thereby obtaining normal sound data and abnormal sound data, avoiding manual labeling of vehicle sound data and improving the efficiency of processing vehicle sound data.
[0017] In a possible design, inputting the normal sound data and the abnormal sound data into a fault sound recognition model for training to obtain the recognition accuracy corresponding to the vehicle sound data includes:
[0018] Matching the normal sound data with the standard normal sound data to obtain a first similarity value, and matching the abnormal sound data with the marked abnormal sound data to obtain a second similarity value;
[0019] Substitute the first similarity value and the second similarity value into an accuracy formula to calculate the recognition accuracy corresponding to the vehicle sound data.
[0020] Through the above method, the recognition accuracy is calculated based on the first similarity and the second similarity, thereby ensuring the accuracy of the recognition accuracy.
[0021] In a possible design, after the sound algorithm model is used as the target sound algorithm model, the method further includes:
[0022] Obtaining a vehicle model corresponding to the vehicle sound data;
[0023] Determine the mechanical equipment of all detection positions corresponding to the vehicle model, as well as the failure probability and set weight value of each mechanical equipment, wherein the set weight value represents the importance of the mechanical equipment;
[0024] Determine the associated mechanical devices corresponding to each mechanical device, and calculate the corresponding fault parameters according to the failure probability of each mechanical device and the associated mechanical devices of each mechanical device and the set weight value;
[0025] If the fault parameter is greater than a set threshold, it is determined that the mechanical equipment corresponding to the fault parameter is a faulty mechanical equipment.
[0026] Through the above method, the fault parameters are calculated, and the faulty mechanical equipment is determined through the size relationship between the fault parameters and the set threshold value, thereby ensuring the accuracy of the determined faulty mechanical equipment.
[0027] In a second aspect, the present application provides a model training device, the device comprising:
[0028] An acquisition module, used to acquire vehicle sound data and maintenance time, wherein the vehicle sound data is continuous sound data collected within an initial time period;
[0029] A classification module, used for classifying the vehicle sound data into normal sound data and abnormal sound data based on the maintenance time;
[0030] A training module, used for inputting the normal sound data and the abnormal sound data into a sound algorithm model for training, so as to obtain the recognition accuracy corresponding to the vehicle sound data;
[0031] The target module is used to use the sound algorithm model as a target sound algorithm model when the recognition accuracy is greater than a set accuracy.
[0032] In a possible design, the division module is specifically used to determine a division time that is the same as the maintenance time in the initial time period, divide the initial time period into a first time period and a second time period based on the division time, mark the vehicle sound data corresponding to the first time period to obtain the normal sound data, and mark the vehicle sound data corresponding to the second time period to obtain the abnormal sound data.
[0033] In one possible design, the training module is specifically used to match the normal sound data with the standard normal sound data to obtain a first similarity value, and to match the abnormal sound data with the labeled abnormal sound data to obtain a second similarity value, and to bring the first similarity value and the second similarity value into the accuracy formula to calculate the recognition accuracy corresponding to the vehicle sound data.
[0034] In one possible design, the target module is specifically used to obtain the vehicle model corresponding to the vehicle sound data, determine the mechanical equipment of all detection positions corresponding to the vehicle model, as well as the failure probability and set weight value of each mechanical equipment, determine the associated mechanical equipment corresponding to each mechanical equipment, and calculate the corresponding fault parameters according to the failure probability and set weight value of each mechanical equipment and the associated mechanical equipment of each mechanical equipment; if the fault parameter is greater than the set threshold, the mechanical equipment corresponding to the fault parameter is determined to be a faulty mechanical equipment.
[0035] In a third aspect, the present application provides an electronic device, including:
[0036] Memory, used to store computer programs;
[0037] The processor is used to implement the above-mentioned model training method steps when executing the computer program stored in the memory.
[0038] In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned model training method are implemented.
[0039] For each aspect from the first to the fourth aspect and the technical effects that may be achieved by each aspect, please refer to the above description of the technical effects that can be achieved by the first aspect or various possible schemes in the first aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A flowchart of the steps of a model training method provided in this application;
[0041] Figure 2 A schematic diagram of segmenting vehicle sound data provided by this application;
[0042] Figure 3 A schematic diagram of a target sound algorithm model provided by the present application;
[0043] Figure 4 A schematic diagram of the structure of a model training device provided in this application;
[0044] Figure 5A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The specific operating methods in the method embodiments can also be applied to device embodiments or system embodiments. It should be noted that in the description of the present application, "multiple" is understood as "at least two". "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A is connected to B, which can represent: A is directly connected to B and A is connected to B through C. In addition, in the description of the present application, words such as "first" and "second" are only used to distinguish the purpose of description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0046] In previous technologies, staff members identify vehicle running sounds and mark normal sounds and fault sounds in the vehicle running sounds. Marking the vehicle running sounds requires staff members to spend a lot of time. Staff members can only mark the vehicle running sounds based on experience, which places high demands on staff members. For the same vehicle running sound, there may be inconsistent marking results by the same staff member at different times. In addition, staff members need to play the vehicle running sounds multiple times to achieve the marking of the vehicle running sounds, resulting in excessively high costs for manual marking.
[0047] In order to solve the above-described problems, the embodiments of the present application provide a model training method for reducing the cost of manual labeling in unsupervised learning. The method and device described in the embodiments of the present application are based on the same technical concept. Since the principles of the problems solved by the method and the device are similar, the embodiments of the device and the method can refer to each other, and the repeated parts will not be repeated.
[0048] The embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0049] Reference Figure 1 , this application provides a model training method, which can reduce the cost of manual labeling. The implementation process of the method is as follows:
[0050] Step S1: Obtain vehicle sound data and maintenance time.
[0051] In order to prevent the occurrence of safety accidents during driving, it is necessary to install sound collection equipment on the mechanical equipment inside the vehicle, and record the vehicle model of the installed vehicle, the installation location of the sound collection equipment and the mechanical equipment around the installation location, so as to obtain vehicle sound data and maintenance data. The vehicle sound data is continuous sound data collected during the initial time period, and the maintenance data includes vehicle model, maintenance time, vehicle mileage, maintenance type, vehicle failure type, maintenance material list, etc.
[0052] Furthermore, the maintenance types may be: brake pad maintenance, battery maintenance, air conditioning maintenance, tire maintenance, etc., the vehicle failure types include: mechanical failure, electrical failure, etc., and the maintenance material list includes: spark plugs, light bulbs, flashers, relays, fuses, voltage regulators, exhaust interface gaskets, oil seals, electrical switches, etc. These are only used as examples, so they will not be elaborated one by one.
[0053] By using the above method, the vehicle sound data and the maintenance time in the maintenance data are determined, which is conducive to realizing fault detection during the operation of the vehicle.
[0054] Step S2: Classifying the vehicle sound data into normal sound data and abnormal sound data based on the maintenance time.
[0055] After determining the vehicle sound data and the maintenance time, the schematic diagram of segmenting the vehicle sound data is as follows: Figure 2 As shown, in Figure 2 In the method, a division time which is the same as the maintenance time is determined in the initial time period, and the initial time period is divided according to the division time to obtain a first time period and a second time period, and then the vehicle sound data corresponding to the first time period is labeled to obtain normal sound data, and the vehicle sound data corresponding to the second time period is labeled to obtain abnormal sound data, wherein the normal sound data is the sound data of the vehicle during driving after the fault is repaired, and the abnormal sound data is the sound data of the vehicle during driving before the fault is repaired.
[0056] Furthermore, the annotation content of the abnormal sound data at least includes: vehicle model, vehicle mileage, and vehicle fault type.
[0057] Through the above method, the vehicle sound data is automatically divided into normal sound data and abnormal sound data according to the maintenance time, so that the normal sound data is compared with the abnormal sound data, which is conducive to ensuring the accuracy of sound recognition during vehicle driving.
[0058] Step S3: Input the normal sound data and the abnormal sound data into the sound algorithm model for training to obtain the recognition accuracy corresponding to the vehicle sound data.
[0059] After determining the normal sound data and the abnormal sound data, both the normal sound data and the abnormal sound data are input into the sound algorithm model for training. The sound algorithm model contains pre-set standard normal sound and standard abnormal sound. The normal sound data is matched with the standard normal sound data to obtain a first similarity, and the abnormal sound data is matched with the labeled abnormal sound data to obtain a second similarity value. The first similarity value and the second similarity value are brought into the accuracy formula. The accuracy formula is as follows:
[0060] A=αx+βy
[0061] In the above accuracy formula, A is the recognition accuracy, α and β are both constants, x is the first similarity value, y is the second similarity value, and the values of α and β can be set according to actual experience values, which will not be explained in detail here.
[0062] In the process of determining the recognition accuracy, if the normal sound data and the abnormal sound data are converted into time-frequency data frame by frame, the standard normal sound data and the standard abnormal sound data are also time-frequency data, thereby ensuring that the normal sound data and the standard normal sound data can be compared, and ensuring that the abnormal sound data and the standard abnormal sound data can be compared. The sound algorithm model will mark the detection results in the normal sound data and the abnormal sound data. The detection results include: abnormal sound and normal sound. After determining the detection results, the detection results are tested again to ensure the accuracy of the sound algorithm model.
[0063] By using the above method, the recognition accuracy is calculated, which is helpful for judging the sound algorithm model based on the recognition accuracy, and is helpful for ensuring the accuracy of the sound algorithm model in identifying fault sounds.
[0064] Step S4: When the recognition accuracy is greater than the set accuracy, the sound algorithm model is used as the target sound algorithm model.
[0065] After determining the recognition accuracy, if the recognition accuracy is greater than the set accuracy, it means that the sound algorithm model can accurately identify the fault sound, and the sound algorithm model is used as the target sound algorithm model; if the recognition accuracy is not greater than the set accuracy, the sound algorithm model continues to be trained until the recognition accuracy of the sound algorithm model is greater than the set accuracy.
[0066] Through the above method, based on the comparison between the recognition accuracy and the set accuracy, the sound algorithm model is screened, so that the recognition accuracy of the target sound algorithm model is improved.
[0067] Optionally, the sound algorithm model can identify whether a certain mechanical device in a certain vehicle model is faulty. In actual applications, there are various types of vehicle models, and different vehicle models correspond to different mechanical devices. The same mechanical device has differences in different vehicle models. Therefore, the embodiment of the present application can train sound algorithm recognition models corresponding to different installation positions of the same vehicle model according to the method described above. After obtaining multiple sound algorithm models, the multiple sound algorithm models are merged based on the machine learning library (full name in English: PyTorch, abbreviated as: PyTorch) to obtain the target sound algorithm model. The schematic diagram of specifically determining the target sound algorithm model is shown in the figure. Figure 3 As shown, in Figure 3 In the process, the sound data of each vehicle is first obtained, and then the sound data of each vehicle is divided and labeled according to the maintenance time to obtain the corresponding normal sound data and abnormal sound data, and the respective sound algorithm models are trained by the normal sound data and the abnormal sound data to obtain multiple sound algorithm models, and then a target sound algorithm model is constructed based on the multiple sound algorithm models. The target sound algorithm model can detect mechanical equipment with internal faults in the vehicle.
[0068] After the target sound algorithm model is determined, the specific process of detecting the fault sound based on the target sound algorithm model is as follows:
[0069] Obtain the vehicle model corresponding to the vehicle sound data, and determine the mechanical equipment of all detection positions corresponding to the vehicle model. Each detection position is installed with a corresponding sound collection device. During the operation of the vehicle, all mechanical equipment must be in normal working condition and coordinate with each other to maintain the normal operation of the vehicle. Therefore, to determine that a certain mechanical equipment of the vehicle has failed, it is also necessary to obtain other mechanical equipment associated with the mechanical equipment.
[0070] Furthermore, the embodiments of the present application also need to determine the failure probability of each mechanical equipment and set a weight value. The set weight value represents the importance of the mechanical equipment. When detecting whether a certain mechanical equipment is faulty, it is necessary to determine the associated mechanical equipment corresponding to the mechanical equipment to be detected, and calculate the fault parameters based on the failure probabilities of the mechanical equipment to be detected and the corresponding associated mechanical equipment and the set weight values. If the determined fault parameter is greater than the set threshold, the mechanical equipment corresponding to the fault parameter is determined to be a faulty mechanical equipment. If the determined fault parameter is not greater than the set threshold, the mechanical equipment corresponding to the fault parameter cannot be determined to be faulty.
[0071] For example: the mechanical equipment in the vehicle are A, B, and C. Equipment B is an associated mechanical equipment of equipment A, and equipment C has no direct association with equipment A. The server identifies that the corresponding failure probability of equipment A is 0.8, and the corresponding set weight of equipment A is 0.3. The server identifies that the corresponding failure probability of equipment B is 0.6 and the set weight value is 0.5. The server identifies that the corresponding failure probability of equipment C is 0.3 and the set weight value is 0.2. Then the fault parameter = 0.8*0.3+0.6*0.5=0.54. If the threshold is set to 0.5, it can be determined that equipment A is faulty. If the threshold is set to 0.7, equipment A is in normal working condition.
[0072] Optionally, the method for determining the failure of mechanical equipment also includes: determining the mechanical equipment to be detected, and the associated mechanical equipment corresponding to the mechanical equipment to be detected, and then determining the failure probability of the mechanical equipment to be detected, and the failure probability of the corresponding associated mechanical equipment. Each mechanical equipment has its own corresponding failure probability threshold. If the failure probabilities of the mechanical equipment to be detected and the corresponding associated mechanical equipment are both greater than their respective failure probability thresholds, the mechanical equipment to be detected is determined to be faulty. Otherwise, the mechanical equipment to be detected is determined to be in normal working condition.
[0073] For example: the mechanical device to be detected is C, and the associated mechanical device of C is D. If the server identifies that the failure probability corresponding to device C is 0.5, and the server identifies that the failure probability corresponding to device D is 0.6, the failure probability threshold corresponding to device C is 0.7, and the failure probability threshold corresponding to device D is 0.4, 0.5<0.7, 0.6>0.4, then it is determined that device C is in normal working condition; if the failure probability threshold corresponding to device C is 0.3, 0.5>0.3, 0.6>0.4, then it is determined that device C is faulty.
[0074] Optionally, after calculating the fault parameters, if the fault parameters are not greater than the set threshold, the difference between the fault parameters and the set threshold can be calculated, and the fault risk level of the mechanical equipment can be determined based on the difference in different difference ranges. The larger the difference range, the greater the corresponding fault risk level of the mechanical equipment.
[0075] For example: when the difference range is [0, 1), the fault risk level is level 1; when the difference range is [1, 2), the fault risk level is level 2; when the difference range is [2, 3), the fault risk level is level 3; if the calculated difference is 2, the corresponding fault risk level is the highest, which is level 3, indicating that the risk of mechanical equipment failure corresponding to the difference is relatively high, so effective measures can be taken and prompts can be issued to the vehicle driver, which is conducive to ensuring the safety of the vehicle during driving.
[0076] It should be noted that the set weight value of the mechanical equipment can also be determined together with the offset of the sound collection equipment installed in the detection position, vehicle maintenance consumables, vehicle mileage, etc. The factors affecting the set weight value can be added or deleted according to actual conditions. This is only used as an example.
[0077] When installing the sound collection device on the corresponding mechanical equipment, in order to reduce the vibration of the mechanical equipment and thus cause the vibration of the sound collection device, porous cement can be used to connect the space inside the car and the mechanical equipment. This allows the sound collection device to collect ambient sound transmitted through air in the vehicle space and avoid collecting sound transmitted by non-solid connectors, which is beneficial to ensure the accuracy of the collected vehicle sound data.
[0078] Based on the method described above, the sound algorithm model is trained using normal sound data and abnormal sound data, so that the sound algorithm model learns the normal sound data and the abnormal sound data, and determines the target sound algorithm model by identifying the relationship between the accuracy and the set accuracy, thereby ensuring the accuracy of the target sound algorithm model.
[0079] Based on the same inventive concept, a model training device is also provided in the embodiment of the present application. The model training device is used to implement the function of a model training method. Figure 4 , the device comprises:
[0080] An acquisition module 401 is used to acquire vehicle sound data and maintenance time, wherein the vehicle sound data is continuous sound data collected within an initial time period;
[0081] A classification module 402, configured to classify the vehicle sound data into normal sound data and abnormal sound data based on the maintenance time;
[0082] A training module 403 is used to input the normal sound data and the abnormal sound data into a sound algorithm model for training to obtain the recognition accuracy corresponding to the vehicle sound data;
[0083] The target module 404 is used to use the sound algorithm model as a target sound algorithm model when the recognition accuracy is greater than a set accuracy.
[0084] Based on the same inventive concept, an electronic device is also provided in the embodiment of the present application, and the electronic device can realize the function of the aforementioned model training device, referring to Figure 5 , the electronic device comprises:
[0085] At least one processor 501, and a memory 502 connected to the at least one processor 501. The specific connection medium between the processor 501 and the memory 502 is not limited in the embodiment of the present application. Figure 5 In the example, the processor 501 and the memory 502 are connected via a bus 500. The bus 500 is Figure 5 The connections between other components are shown in bold lines, and are not intended to be limiting. The bus 500 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 501 can also be called a controller, and there is no limitation on the name.
[0086] In the embodiment of the present application, the memory 502 stores instructions that can be executed by at least one processor 501. The at least one processor 501 can execute a model training method discussed above by executing the instructions stored in the memory 502. The processor 501 can implement Figure 4 The functions of each module in the device shown.
[0087] Among them, the processor 501 is the control center of the device, and can use various interfaces and lines to connect the various parts of the entire control device. By running or executing instructions stored in the memory 502 and calling data stored in the memory 502, the various functions of the device and processing data, the device can be monitored as a whole.
[0088] In one possible design, the processor 501 may include one or more processing units, and the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 501. In some embodiments, the processor 501 and the memory 502 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.
[0089] Processor 501 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of a model training method disclosed in conjunction with the embodiments of the present application can be directly embodied as a hardware processor execution, or a combination of hardware and software modules in the processor.
[0090] The memory 502 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 502 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 502 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 502 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0091] By programming the processor 501, the code corresponding to the model training method described in the above embodiment can be fixed into the chip, so that the chip can execute the code when running. Figure 1 A model training step of the embodiment shown. How to design and program the processor 501 is a technique known to those skilled in the art and will not be described in detail here.
[0092] Based on the same inventive concept, an embodiment of the present application also provides a storage medium, which stores computer instructions. When the computer instructions are executed on a computer, the computer executes a model training method discussed above.
[0093] In some possible implementations, various aspects of a model training method provided by the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on an apparatus, the program code is used to enable the control device to execute the steps of a model training method according to various exemplary implementations of the present application described above in this specification.
[0094] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0095] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. 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 processes in the flowchart and / or block diagram. 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.
[0096] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0097] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0098] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A model training method, characterized in that: The method comprises: Acquiring vehicle sound data and maintenance time, wherein the vehicle sound data is continuous sound data collected within an initial time period; dividing the vehicle sound data into normal sound data and abnormal sound data based on the maintenance time; Matching the normal sound data with the standard normal sound data to obtain a first similarity value, and matching the abnormal sound data with the marked abnormal sound data to obtain a second similarity value; Substituting the first similarity value and the second similarity value into an accuracy formula to calculate the recognition accuracy corresponding to the vehicle sound data; When the recognition accuracy is greater than the set accuracy, the sound algorithm model is used as a target sound algorithm model; Obtaining a vehicle model corresponding to the vehicle sound data; Determine the mechanical equipment of all detection positions corresponding to the vehicle model, as well as the failure probability and set weight value of each mechanical equipment, wherein the set weight value represents the importance of the mechanical equipment; Determine the associated mechanical devices corresponding to each mechanical device, and calculate the corresponding fault parameters according to the failure probability of each mechanical device and the associated mechanical devices of each mechanical device and the set weight value; If the fault parameter is greater than a set threshold, it is determined that the mechanical equipment corresponding to the fault parameter is a faulty mechanical equipment.
2. The method according to claim 1, characterized in that The dividing the vehicle sound data into normal sound data and abnormal sound data based on the maintenance time includes: Determining a split time that is the same as the maintenance time in the initial time period; dividing the initial time period into a first time period and a second time period based on the division time; The vehicle sound data corresponding to the first time period is labeled to obtain the normal sound data, and the vehicle sound data corresponding to the second time period is labeled to obtain the abnormal sound data.
3. A model training device, characterized in that: include: An acquisition module, used to acquire vehicle sound data and maintenance time, wherein the vehicle sound data is continuous sound data collected within an initial time period; A classification module, used for classifying the vehicle sound data into normal sound data and abnormal sound data based on the maintenance time; a training module, configured to match the normal sound data with standard normal sound data to obtain a first similarity value, and match the abnormal sound data with labeled abnormal sound data to obtain a second similarity value, and bring the first similarity value and the second similarity value into an accuracy formula to calculate the recognition accuracy corresponding to the vehicle sound data; A target module, used for taking the sound algorithm model as a target sound algorithm model when the recognition accuracy is greater than a set accuracy; Obtain the vehicle model corresponding to the vehicle sound data, determine the mechanical equipment at all detection positions corresponding to the vehicle model, as well as the failure probability and set weight value of each mechanical equipment, determine the associated mechanical equipment corresponding to each mechanical equipment, and calculate the corresponding fault parameters according to the failure probability and set weight value of each mechanical equipment and the associated mechanical equipment of each mechanical equipment; if the fault parameter is greater than the set threshold, determine that the mechanical equipment corresponding to the fault parameter is a faulty mechanical equipment.
4. The device according to claim 3, characterized in that The division module is specifically used to determine a division time that is the same as the maintenance time in the initial time period, divide the initial time period into a first time period and a second time period based on the division time, mark the vehicle sound data corresponding to the first time period to obtain the normal sound data, and mark the vehicle sound data corresponding to the second time period to obtain the abnormal sound data.
5. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1-2 when executing the computer program stored in the memory.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 2 are implemented.
Citation Information
Patent Citations
Service anomaly detection method, method for training service anomaly detection model and method for training sound model
CN111951560A
Vehicle fault detection method and system
CN116092519A
Method and system for detecting abnormal sound of transformer and electronic equipment
CN117451171A
Model training method and apparatus
WO2023092439A1
Sound recognition method and apparatus, medium, device, program product and vehicle
WO2023137908A1
