Passenger car fault diagnosis method, device and electronic equipment based on neural network
By using the fault diagnosis model of convolutional neural network and softmax activation function in the automobile fault diagnosis system, combined with the intelligent diagnosis of the cloud platform, the complexity and misjudgment problems of the existing system in complex dimensional information processing are solved, and the problem of misjudgment is realized. Accurate and efficient diagnosis of car faults.
Patent Information
- Application Number
- CN202110020526.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-07
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-01-07
AI Technical Summary
Existing neural network-based automotive fault diagnosis systems have model complexity and misjudgment risks in complex dimensional information processing, and cannot achieve accurate diagnosis of full-dimensional fault information.
By acquiring vehicle data, parsing and inputting it into the preset fault diagnosis model, training based on historical fault information, using convolutional neural network and softmax activation function to reduce model complexity, and providing an intelligent diagnosis model on the cloud platform to achieve near-term terminal and remote fault diagnosis.
It improves the accuracy and efficiency of fault diagnosis, reduces the risk of misjudgment, realizes real-time query of vehicle faults and intelligent elimination of hidden faults, and reduces operation and maintenance costs.
Smart Images

Figure CN114740815B_ABST
Abstract
Description
Technical Field
[0001] The exemplary embodiments of the present invention relate to the field of deep learning technology, and more particularly to a bus fault diagnosis method, device and electronic device based on neural network. Background Art
[0002] The research on the intelligent diagnosis system for automobile faults based on neural networks proposed the use of artificial neural networks to build a model with two hidden layers for training, and made diagnostics based on the characteristics of automobile engine faults, achieving an accuracy of more than 90%.
[0003] However, it mainly diagnoses the engine failure of the car. In the face of complex car dimensional information, it is unable to extract effective fault features and make accurate fault diagnosis. One of the existing methods uses a deep convolutional neural network to extract features from the test data and finally gives a fault number, but the full connection output increases the complexity of the model; the existing methods also obtain the original diagnostic data of the car through the OBD interface and add subjective uncertainty fault judgment methods, which is prone to misjudgment or inaccuracy; and communicate with the lower computer through Bluetooth technology and perform fault diagnosis through artificial intelligence diagnosis. Its artificial intelligence diagnosis uses BP neural network, which is not optimal in feature extraction and other aspects. It uses Bluetooth technology to achieve near-end fault diagnosis, but lacks in remote diagnosis.
[0004] There is currently no better method or device for intelligent diagnosis of vehicle fault information in all dimensions. Summary of the invention
[0005] In view of this, the purpose of the exemplary embodiment of the present invention is to propose a bus fault diagnosis method, device and electronic device based on neural network to solve the problem that the current neural network model is complex and cannot diagnose fault information in all dimensions.
[0006] Based on the above purpose, an exemplary embodiment of the present invention provides a bus fault diagnosis method based on a neural network, comprising:
[0007] Acquire vehicle data sent by the vehicle terminal, and parse the vehicle data to obtain fault information of the vehicle terminal and non-fault data of a preset number of days before and after the occurrence of the fault information;
[0008] Inputting non-fault data of a preset number of days before and after the occurrence point of the fault information into a preset fault diagnosis model to obtain a fault code and a fault cause corresponding to the fault information;
[0009] In combination with the fault code and the fault cause, a solution is output through the preset fault diagnosis model.
[0010] In combination with the above description, in another possible implementation of the embodiment of the present invention, the preset fault diagnosis model is:
[0011] Historical fault information is used as sample data, vehicle data of a preset number of days before and after the occurrence of the historical fault information is used as input data, and the fault cause and the solution corresponding to the fault code are used as labels to divide the data into a training set and a test set, and training and testing are performed according to a preset algorithm.
[0012] In combination with the above description, in another possible implementation of the embodiment of the present invention, the step of obtaining the vehicle data sent by the vehicle-mounted terminal includes:
[0013] The vehicle data is sliced, and the average value and variance of the vehicle data are obtained by taking one node per hour.
[0014] In combination with the above description, in another possible implementation of the embodiment of the present invention, the combining the fault code and the fault cause and outputting a solution through the preset fault diagnosis model includes:
[0015] According to the fault code and the fault cause, a match is performed in the fault diagnosis database to obtain a solution to the fault.
[0016] In combination with the above description, in another possible implementation of the embodiment of the present invention, the method further includes:
[0017] New fault information is collected and combined with the historical fault information to form new sample data. The vehicle data of a preset number of days before and after the occurrence of the historical fault information and the new fault information is used as input data, and iterative training is performed according to a preset algorithm.
[0018] In combination with the above description, in another possible implementation of the embodiment of the present invention, the method further includes:
[0019] Constructing a neural network, wherein the construction of the neural network includes:
[0020]
[0021] Where Relu is the activation function, N is the number of convolution kernels, and y l , represents the input and output of the lth layer of convolution, Represents the nth convolution kernel of the lth layer, Conv represents and Perform convolution operation, b n Indicates bias;
[0022] The pooling layer of the neural network uses maximum pooling;
[0023] The softmax of the neural network constructs a Huffman tree based on the frequency of the category to reduce the complexity of the softmax from N to logN.
[0024] In a second aspect, an exemplary embodiment of the present invention further provides a bus fault diagnosis device based on a neural network, comprising:
[0025] An acquisition module, used to acquire vehicle data sent by the vehicle terminal, and parse the vehicle data to obtain fault information of the vehicle terminal and non-fault data of a preset number of days before and after the occurrence of the fault information;
[0026] An input module, used to input non-fault data of a preset number of days before and after the occurrence time of the fault information into a preset fault diagnosis model to obtain a fault code and a fault cause corresponding to the fault information;
[0027] The output module is used to combine the fault code and the fault cause and output a solution through the preset fault diagnosis model.
[0028] In the above device, the output module is also used for:
[0029] Historical fault information is used as sample data, vehicle data of a preset number of days before and after the occurrence of the historical fault information is used as input data, and the fault cause and the solution corresponding to the fault code are used as labels to divide the data into a training set and a test set, and training and testing are performed according to a preset algorithm.
[0030] In the above device, the acquisition module is further used for:
[0031] The vehicle data is sliced, and the average value and variance of the vehicle data are obtained by taking one node per hour.
[0032] In a third aspect, an exemplary embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the neural network-based bus fault diagnosis method when executing the program.
[0033] From the above, it can be seen that the bus fault diagnosis method, device and electronic device based on neural network provided by the exemplary embodiment of the present invention can realize fault diagnosis of the car in both near-end and remote ways, and conveniently and quickly realize real-time query of existing faults of the car and intelligent elimination and diagnosis of hidden faults, while providing targeted solutions and schemes. At the same time, the intelligent diagnosis model is provided in combination with the cloud platform to further reduce the hidden dangers such as misjudgment of car faults and diagnosis of hidden faults. The diagnostic efficiency is greatly improved and the manpower and material costs of vehicle operation and maintenance are reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the exemplary embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only exemplary embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 A schematic diagram of a system framework of an exemplary embodiment of the present invention;
[0036] Figure 2 A schematic diagram of a system architecture of an exemplary embodiment of the present invention;
[0037] Figure 3 A schematic diagram of the structure of a data intelligent diagnosis module of an exemplary embodiment of the present invention;
[0038] Figure 4 A basic flow chart of a method of an exemplary embodiment of the present invention;
[0039] Figure 5 is a schematic diagram of a neural network structure of an exemplary embodiment of the present invention;
[0040] Figure 6 is a schematic diagram of the device structure of an exemplary embodiment of the present invention;
[0041] Figure 7 is a schematic diagram of an electronic device according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0043] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the exemplary embodiments of the present invention should be understood by people with ordinary skills in the field to which the present disclosure belongs. The words "first", "second" and similar words used in the exemplary embodiments of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. The words "include" or "comprise" and the like mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects.
[0044] The present invention relates to a bus fault diagnosis method, device and electronic equipment based on neural network, which are mainly used in the scenario of intelligent diagnosis of fault information of new energy buses. The basic idea is to obtain vehicle data, fault information and non-fault information of a preset number of days of fault information from an on-board terminal, input a preset fault diagnosis model for diagnosis to obtain a solution to the fault, and iteratively self-train the preset fault diagnosis model to further improve the recognition accuracy of fault information and the accuracy of outputting a solution.
[0045] The method of the exemplary embodiment of the present invention can generally be implemented by an intelligent fault diagnosis system for a new energy bus, combined with Figure 1 The system architecture shown in the figure, the intelligent fault diagnosis system of new energy buses mainly includes three main parts: mobile terminal, T-BOX terminal (vehicle terminal), and cloud platform. The mobile terminal includes: Bluetooth connection module, automobile fault diagnosis original data request module, data preprocessing module, fault code analysis module, fault diagnosis information display module; the vehicle terminal includes: automobile fault diagnosis original data acquisition module, data preprocessing module, data communication interface module; the cloud platform includes: data intelligent diagnosis analysis module, TCP communication module, information interaction module.
[0046] Combination Figure 2 As shown, it is a schematic diagram of the system structure of an exemplary embodiment of the present invention, wherein the mobile terminal mainly refers to mobile devices such as mobile phones and laptop computers. Generally, the manifestation on the mobile phone side is the installation of a specific type of APP software. The Bluetooth connection module is mainly used for the connection method adopted by near-end communication. When the mobile device is close to a certain range of the new energy bus, the Bluetooth configuration information of the vehicle-mounted terminal can be searched through the mobile device, and the user can choose to bind the searched Bluetooth MAC address to the vehicle-mounted terminal. Realize short-range wireless connection between the mobile device and the terminal of the car to achieve near-end human-computer interaction.
[0047] The mobile terminal automobile fault diagnosis raw data request module is mainly used to trigger the diagnosis raw data request command by refreshing the interface after the mobile terminal is connected to the car, and obtain the fault diagnosis information provided by the ECU (Electronic Control Unit).
[0048] The data preprocessing module of the mobile terminal mainly parses the fault information stream sent by the terminal through the protocol, and obtains the corresponding fault code, fault status and other fault information.
[0049] The fault code analysis module of the mobile terminal uses the fault code obtained by the data preprocessing module to request the APP software background interface to obtain the corresponding fault cause information and the corresponding solution provided by the system. At the same time, the terminal will transmit the data flow information of the three days before and after the fault code to the cloud platform for intelligent diagnosis and analysis. When there is no fault code information, the terminal will transmit the vehicle data information of the last three days to the cloud platform.
[0050] The fault diagnosis information display module mainly processes the fault analysis results obtained by the data analysis module and the results of the intelligent analysis of the cloud platform, makes corresponding result displays, and presents the corresponding solutions to the work processing personnel.
[0051] The T-BOX terminal is mainly an on-board terminal for new energy buses. The vehicle fault diagnosis raw data acquisition module mainly uses CAN communication to establish communication with the vehicle's ECU firmware to obtain the vehicle's component fault information and vehicle body data information.
[0052] The data preprocessing module of the T-BOX terminal mainly processes the original data of system faults provided by the ECU according to the established protocol, and adds the corresponding header and tail information to facilitate transmission to the terminal and cloud platform.
[0053] The data communication interface module mainly includes TCP communication and proximal Bluetooth communication.
[0054] The cloud platform mainly includes TCP server, APP software interface background and FTP server. The TCP communication module is mainly used to establish a remote connection between the platform and the terminal. The information interaction module is used to exchange data after the platform and the terminal are connected, and after the mobile terminal and the platform are connected. The software download module is mainly used for the FTP server to download and upload software and data upgrade packages.
[0055] The data intelligent diagnosis and analysis module mainly obtains the fault cause corresponding to the fault code in the database on the server and extracts features of the original vehicle data after the terminal transmits the fault code and the original vehicle data of the fault to the platform. It then performs intelligent analysis and intelligently infers the most likely cause of the fault. Based on the cause of the fault, it obtains the optimal solution in the fault database on the network or server and pushes the solution to mobile users.
[0056] In one implementation of an exemplary embodiment of the present invention, the data intelligent diagnosis and analysis module mainly uses a preset algorithm related to deep learning to perform intelligent diagnosis processing. The intelligent diagnosis and analysis module is mainly a convolutional neural network (CNN) model.
[0057] The convolutional neural network mainly processes the data stream transmitted from the terminal (streaming data, including fault information and non-fault data for a preset number of days before and after the occurrence of the fault information, such as three days). The data stream data is mainly processed and input for the data information three days before and after the occurrence of the fault, and then the data information is processed by the convolutional neural network. Finally, the prediction result given by the model is obtained through the hierarchical SoftMax. When there is a fault code, the fault information corresponding to the fault code is obtained, and the accuracy of the fault information corresponding to the model result and the system fault code is judged. When the accuracy is high, the fault diagnosis result and solution corresponding to the fault code are given. When the accuracy is low, the fault diagnosis results of the model detection and the fault diagnosis results given by the system are fed back to the user. The user handles and repairs the car according to the diagnosis results, and gives the final processing results and opinions.
[0058] The model self-training module forms a new data set through the sample data acquisition module with the final result of the user's processing and the corresponding original data, and trains the existing model parameters. It includes: collecting new fault information, combining the historical fault information to form new sample data, using the vehicle data of the preset number of days before and after the occurrence of the historical fault information and the new fault information as input data, and iterating training according to the preset algorithm. Specifically, when the accuracy of the training result meets the requirements, the data intelligent diagnosis and analysis module will update the new model parameters for analysis. The sample acquisition module will perform data preprocessing on the data obtained each time to realize the automatic update and iteration of the entire system, and can obtain a more accurate algorithm model.
[0059] The system architecture diagram is as follows Figure 3 FIG. 1 is a schematic diagram of the data intelligent diagnosis module architecture of an exemplary embodiment of the present invention.
[0060] This embodiment can be applied to the case where an intelligent terminal with a deep learning module is used to perform a neural network-based bus fault diagnosis. The method can be executed by a data intelligent diagnosis and analysis module to which the deep learning neural network belongs, wherein the module can be implemented by software and / or hardware, and can generally be integrated into the intelligent terminal, or controlled by a central control module in the terminal, such as Figure 4 FIG. 1 is a flow chart of a bus fault diagnosis method based on a neural network according to an exemplary embodiment of the present invention. The method specifically comprises the following steps:
[0061] In step 410, the vehicle data sent by the vehicle terminal is obtained, and the vehicle data is parsed to obtain the fault information of the vehicle terminal and the non-fault data of the preset number of days before and after the occurrence time of the fault information;
[0062] The vehicle data may be a data stream obtained through a mobile terminal connected to the vehicle-mounted terminal, including fault information and non-fault information, and non-fault data for a preset number of days before and after the occurrence of the fault information, such as all vehicle-related data for a total of 3 days and 72 hours before and after the occurrence of the fault information.
[0063] In step 420, non-fault data of a preset number of days before and after the occurrence time of the fault information is input into a preset fault diagnosis model to obtain a fault code and a fault cause corresponding to the fault information;
[0064] The preset fault diagnosis model uses historical fault information as sample data, vehicle data of a preset number of days before and after the occurrence of the historical fault information as input data, and the fault cause and the solution corresponding to the fault code as labels to divide the data into a training set and a test set, and is trained and tested according to a preset algorithm.
[0065] Specifically, combined Figure 5 The convolutional neural network shown has a total of seven layers, including convolution layer 1, MaxPooling1, convolution layer 2, MaxPooling2, convolution layer 3, convolution layer 4, convolution layer 5, MaxPooling5, a fully connected layer and a hierarchical Softmax layer as output.
[0066] The convolutional neural network model mainly constructs convolutional layers, pooling layers, fully connected layers and hierarchical softmax layers.
[0067] The convolutional layer Conv is constructed as follows:
[0068]
[0069] Where Relu is the activation function, N is the number of convolution kernels, and y l , Represents the input and output of the lth layer of convolution. Represents the nth convolution kernel of the lth layer, Conv represents and Perform convolution operation, b n Indicates bias.
[0070] The pooling layer uses the maximum pooling (MaxPooling).
[0071] Hierarchical softmax reduces the computational complexity of the original softmax, mainly by constructing a Huffman tree based on the frequency of the category. The complexity of softmax can be reduced from N to logN.
[0072] In step 430, a solution is outputted through the preset fault diagnosis model in combination with the fault code and the fault cause.
[0073] The method of the present invention can realize fault diagnosis of automobiles in both near-end and remote ways, conveniently and quickly realize real-time query of existing automobile faults and intelligent elimination and diagnosis of hidden faults, and provide targeted solutions and plans. At the same time, it combines the cloud platform to provide an intelligent diagnosis model to further reduce the hidden dangers of misjudgment of automobile faults and diagnosis of hidden faults. It greatly improves the diagnostic efficiency and reduces the manpower and material costs of vehicle operation and maintenance.
[0074] The training process of the entire model of the exemplary embodiment of the present invention is as follows:
[0075] 1. Dataset Preparation
[0076] The vehicle's previous fault information data is collected as sample data, and the vehicle data for three days before and after the historical fault occurrence point is used as input data. The fault results and the results corresponding to the fault codes are used as labels to divide the data into training sets and test sets.
[0077] Regarding the data set production method, the data of three days before and after the fault occurred was used as input. In order to better extract data features, the data was sliced, and the data was processed by taking the average value and variance of one node per hour. The time axis was used as the row, and the 24 dimensional feature data such as vehicle voltage, SOC, insulation resistance, vehicle speed, current, single cell voltage and current were obtained as the columns to form 24*24 two-dimensional data. At the same time, the data of each day was used as a channel to form 24*24*3 input data.
[0078] 2. Data preprocessing
[0079] The sample data is normalized and mapped to numbers between (0, 1) for easy processing.
[0080] Model Training
[0081] Input the processed 24*24*3 data into the model. The model processing process is as follows: Figure 5 As shown, we finally get a 1*N output. The fault is determined by the number of sample faults in the existing data. Currently, it only targets vehicle faults, so there are about 20 types of faults collected in the sample data. Here, the model output is trained for 20 categories.
[0082] 4. Result processing
[0083] The model outputs the corresponding fault code and fault cause, which are matched with the fault diagnosis database, which stores the relationship between fault information and solutions, to obtain the solution and method for the fault. Finally, the model training parameters that meet the requirements are applied to the entire system.
[0084] The beneficial effects of the present invention include:
[0085] The present invention solves the geographical limitation of fault diagnosis, realizes a fault diagnosis mode of near-end human-computer interaction and remote access, and greatly reduces vehicle maintenance costs.
[0086] The present invention adopts a neural network model and provides an intelligent diagnosis method, which reduces the possibility of misdiagnosis of system faults or missed diagnosis of hidden faults and greatly improves work efficiency.
[0087] The present invention provides a model self-training module to realize automatic model training and automatic parameter updating, thereby improving the accuracy of the model and reducing the cost of system maintenance.
[0088] The intelligent diagnosis module of the present invention adopts the structure of weight contribution and hierarchical SoftMax, which reduces the complexity of the model. At the same time, the model runs on the cloud platform, which will not increase the operating load on the terminal and mobile terminal, and will not reduce the processing speed.
[0089] The data feature extraction method of the present invention intercepts three days of vehicle data and adopts the data input format of N*N*3, which can improve the model's feature extraction of data and improve the accuracy of the system's intelligent diagnosis.
[0090] It can be understood that the method can be executed by any device, equipment, platform, or device cluster having computing and processing capabilities.
[0091] Based on the same inventive concept, Figure 6 A schematic diagram of the structure of a bus fault diagnosis device based on a neural network provided in an embodiment of the present invention. The device can be implemented by software and / or hardware, is generally integrated in an intelligent terminal, and can be implemented by a bus fault diagnosis method based on a neural network. As shown in the figure, this embodiment provides a bus fault diagnosis device based on a neural network corresponding to any of the above-mentioned method embodiments, which mainly includes: an acquisition module 610, which is used to acquire vehicle data sent by a vehicle-mounted terminal, parse the vehicle data to obtain the fault information of the vehicle terminal and non-fault data of a preset number of days before and after the occurrence point of the fault information;
[0092] An input module 620, used to input non-fault data of a preset number of days before and after the occurrence time of the fault information into a preset fault diagnosis model to obtain a fault code and a fault cause corresponding to the fault information;
[0093] The output module 630 is used to combine the fault code and the fault cause and output a solution through the preset fault diagnosis model.
[0094] In one implementation of an exemplary embodiment of the present invention, the output module 630 is further used for:
[0095] Historical fault information is used as sample data, vehicle data of a preset number of days before and after the occurrence of the historical fault information is used as input data, and the fault cause and the solution corresponding to the fault code are used as labels to divide the data into a training set and a test set, and training and testing are performed according to a preset algorithm.
[0096] In one implementation of an exemplary embodiment of the present invention, the acquisition module 610 is further used for:
[0097] The vehicle data is sliced, and the average value and variance of the vehicle data are obtained by taking one node per hour.
[0098] For the convenience of description, the above-mentioned devices are divided into various modules according to their functions and described separately. Of course, when the exemplary embodiments of the present invention are implemented, the functions of each module can be implemented in the same software and / or hardware. Moreover, the device provided in the above-mentioned embodiment can execute the method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in the above-mentioned embodiments, please refer to the method provided in any embodiment of the present invention, and will not be repeated here.
[0099] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, one or more embodiments of this specification also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the neural network-based bus fault diagnosis method described in any of the above embodiments is implemented.
[0100] The technical carriers involved in the embodiments of this specification may include, for example, near field communication (NFC), WIFI, 3G / 4G / 5G, POS card swiping technology, QR code scanning technology, bar code scanning technology, Bluetooth, infrared, short message service (SMS), multimedia message service (MMS), etc.
[0101] It should be noted that the method of the exemplary embodiment of the present invention can be executed by a single device, such as a computer or a server. The method of this embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only execute one or more steps in the method of the exemplary embodiment of the present invention, and the multiple devices will interact with each other to complete the bus fault diagnosis method based on neural network.
[0102] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0103] For the convenience of description, the above devices are described as various modules according to their functions. Of course, when implementing the exemplary embodiments of the present invention, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0104] Figure 7 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0105] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0106] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1020, and the processor 1010 calls and executes the bus fault diagnosis method based on neural network in the embodiment of the present invention.
[0107] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0108] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0109] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0110] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0111] The electronic device of the above-mentioned embodiment is used to implement the corresponding neural network-based bus fault diagnosis in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0112] Based on the same inventive concept, corresponding to the method of any exemplary embodiment of the present invention, the exemplary embodiment of the present invention also provides a non-transitory computer-readable storage medium, including permanent and non-permanent, removable and non-removable media, which can be used to implement information storage by any method or technology. Information can be computer-readable instructions, data structures, programs and modules of the program itself, or other data. Examples of computer storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media, which can be used to store information that can be accessed by a computing device for performing the neural network-based bus fault diagnosis described in the exemplary embodiment of the present invention.
[0113] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. Under the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of the exemplary embodiments of the present invention as described above, which are not provided in detail for the sake of simplicity.
[0114] In addition, to simplify the description and discussion, and in order not to obscure the exemplary embodiments of the present invention, known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the devices may be shown in the form of block diagrams to avoid obscuring the exemplary embodiments of the present invention, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the exemplary embodiments of the present invention will be implemented (i.e., these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe the exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that the exemplary embodiments of the present invention may be implemented without these specific details or with variations in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0115] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0116] The exemplary embodiments of the present invention are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the exemplary embodiments of the present invention should be included in the scope of protection of this disclosure.
Claims
1. A bus fault diagnosis method based on neural network, characterized in that: include: Acquire vehicle data sent by an onboard terminal of a new energy bus, and parse the vehicle data to obtain fault information corresponding to a first fault code of the onboard terminal, and non-fault data of a preset number of days before and after the occurrence of the fault information; Inputting non-fault data of a preset number of days before and after the occurrence point of the fault information into a preset fault diagnosis model to obtain fault information and fault cause corresponding to the second fault code; Comparing the accuracy of the fault information corresponding to the first fault code with the fault information corresponding to the second fault code, and if the accuracy is high, combining the second fault code and the fault cause, outputting a solution through the preset fault diagnosis model; If the accuracy is low, the fault diagnosis result output by the preset fault diagnosis model and the fault diagnosis result given by the fault information corresponding to the first fault code are respectively given.
2. The method according to claim 1, characterized in that: The preset fault diagnosis model is: Historical fault information is used as sample data, vehicle data of a preset number of days before and after the occurrence of the historical fault information is used as input data, and the fault cause and the solution corresponding to the fault code are used as labels to divide the data into a training set and a test set, and training and testing are performed according to a preset algorithm.
3. The method according to claim 1, characterized in that Get vehicle data sent by the vehicle terminal, including: The vehicle data is sliced, and the average value and variance of the vehicle data are obtained by taking one node per hour.
4. The method according to claim 1, characterized in that: The combining the second fault code and the fault cause and outputting a solution through the preset fault diagnosis model includes: According to the second fault code and the fault cause, a match is performed in a fault diagnosis database to obtain a solution to the fault.
5. The method according to claim 2, characterized in that: The method further comprises: New fault information is collected and combined with the historical fault information to form new sample data. The vehicle data of a preset number of days before and after the occurrence of the historical fault information and the new fault information is used as input data, and iterative training is performed according to a preset algorithm.
6. The method according to claim 1, characterized in that The method further comprises: Constructing a neural network, wherein the construction of the neural network includes: Among them, Relu is the activation function, N is the number of convolution kernels, and y 1 , represents the input and output of the lth layer of convolution, Represents the nth convolution kernel of the lth layer, Conv represents and Perform convolution operation, b n Indicates bias; The pooling layer of the neural network uses maximum pooling; the softmax of the neural network constructs a Huffman tree according to the frequency of the category to reduce the complexity of the softmax from N to logN.
7. A bus fault diagnosis device based on neural network, characterized in that: include: An acquisition module, used to acquire vehicle data sent by an onboard terminal of a new energy bus, and parse the vehicle data to obtain fault information corresponding to a first fault code of the onboard terminal, and non-fault data of a preset number of days before and after the occurrence point of the fault information; An input module, used for inputting non-fault data of a preset number of days before and after the occurrence point of the fault information into a preset fault diagnosis model to obtain fault information corresponding to the second fault code and the fault cause; an output module, used to compare the accuracy of the fault information corresponding to the first fault code with the fault information corresponding to the second fault code, and if the accuracy is high, output a solution through the preset fault diagnosis model in combination with the second fault code and the fault cause; If the accuracy is low, the fault diagnosis result output by the preset fault diagnosis model and the fault diagnosis result given by the fault information corresponding to the first fault code are respectively given.
8. The device according to claim 7, characterized in that The output module is also used for: Historical fault information is used as sample data, vehicle data of a preset number of days before and after the occurrence of the historical fault information is used as input data, and the fault cause and the solution corresponding to the fault code are used as labels to divide the data into a training set and a test set, and training and testing are performed according to a preset algorithm.
9. The device according to claim 7, characterized in that The acquisition module is also used for: The vehicle data is sliced, and the average value and variance of the vehicle data are obtained by taking one node per hour.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the neural network-based bus fault diagnosis method as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Train fault diagnosis system and method based on vehicle and cloud
CN106406296A
Vehicle failure diagnosis method and related device
CN109163913A
Automobile fault remote diagnosis method, device and system
CN111983992A
