Verification method and device of vehicle bill of materials, medium and product
By converting the bill of materials into a tree structure and using a random forest model for verification, the problem of vehicle bill of materials is solved, and efficient and accurate bill of materials is achieved, which helps traditional car companies to compete and intelligent manufacturing.
Patent Information
- Application Number
- CN202510442771.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-09
- Publication Date
- 2025-08-01
AI Technical Summary
In the prior art, the verification accuracy and efficiency of vehicle bills of materials are low, manual verification takes a long time and is prone to errors, making it difficult to meet the high standards requirements of modern manufacturing.
Convert the bill of materials into a tree structure, generate a standard format file and send it to a pre-trained random forest model for verification, output the verification results, and supplement missing rules within the model to improve accuracy.
Reduce manual participation, improve verification speed and accuracy, reduce production costs, enhance enterprise response capabilities, and promote intelligent manufacturing.
Smart Images

Figure HDA0005354184360000011 
Figure HDA0005354184360000021 
Figure HDA0005354184360000022
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of manufacturing informatization, and particularly to a method, device, medium and product for verifying a vehicle bill of materials. Background Art
[0002] In the design of a complete vehicle, the material data of various products related to the vehicle must be verified through a bill of materials (English full name: Bill of Materials, English abbreviation: BOM) before being officially released. BOM is a very important document in the manufacturing process, which details all the parts, raw materials and components required to produce a vehicle, as well as information such as their quantities and specifications, to ensure that the quantities and types of all parts in the configuration strictly meet the requirements.
[0003] Currently, the commonly used method in the industry is to use tools such as Excel or write simple scripts to check item by item manually. However, since the BOM usually contains a large number of parts and complex hierarchical relationships, relying on manual verification not only requires a large amount of time and manpower, but also is prone to human omissions, resulting in verification errors and causing inaccurate or inconsistent data in the final bill of materials. Especially when dealing with complex products, traditional manual inspections often fail to capture all details, further increasing the risk of errors and having a negative impact on production planning and supply chain management.
[0004] Therefore, in the face of the high standards of modern manufacturing, the traditional manual verification method can no longer meet the requirements, and there is an urgent need for a new verification method to greatly improve the accuracy and efficiency of BOM verification. Summary of the Invention
[0005] The purpose of the present application is to provide a method, device, medium and product for verifying a vehicle bill of materials to solve the problem of low accuracy and efficiency in verifying the vehicle bill of materials described in the background art.
[0006] To achieve the above purpose, the present application provides the following solutions:
[0007] In a first aspect, the present application provides a method for verifying a vehicle bill of materials, including:
[0008] Obtaining a bill of materials to be verified, where the bill of materials includes the material numbers of the materials required for a vehicle model, and the hierarchical relationships between the material numbers;
[0009] Generating a tree structure of the bill of materials based on the material numbers and the hierarchical relationships;
[0010] Generating a standard format file for each material number based on the tree structure, where the standard format file is used to describe the basic information of the material number in the tree structure;
[0011] Send the standard format file to a pre-trained random forest model so that the random forest model verifies the bill of materials and outputs a verification result;
[0012] When the verification result indicates an error, determine that there is an error in the bill of materials or a rule is missing in the random forest model.
[0013] Optionally, generating a standard format file for each of the material numbers based on the tree structure includes:
[0014] Obtain the names of the basic information that the standard format file should include;
[0015] For each material number, determine the content of the basic information corresponding to the name of the basic information based on the tree structure, and establish a correspondence between the determined name of the basic information and the content of the basic information, thereby generating the standard format file.
[0016] Optionally, the names of the basic information include: material number, node name, node depth, parent node name, child node name, maximum depth from the child node to the leaf node.
[0017] Optionally, when the verification result indicates an error, determining that there is an error in the bill of materials or a rule is missing in the random forest model includes:
[0018] When the verification result indicates an error, output the error node and a modification plan;
[0019] Modify the error node according to the modification plan to obtain a modified bill of materials;
[0020] Loop through the steps of "obtaining the bill of materials to be verified" to "modifying the error node according to the modification plan to obtain a modified bill of materials" a predetermined number of times;
[0021] If there are still errors, determine that a rule is missing in the random forest model.
[0022] Optionally, after determining that a rule is missing in the random forest model, the method further includes:
[0023] Supplement the verification rule of the error node to the random forest model to obtain a new random forest model;
[0024] Use a predetermined training method to train the new random forest model to obtain a trained new random model;
[0025] Send the standard format file to the trained new random forest model so that the trained new random forest model verifies the bill of materials and outputs a new verification result.
[0026] Optionally, after determining that there are missing rules in the random forest model, the method further includes:
[0027] When new verification rules need to be supplemented, obtain the new verification rules;
[0028] Check the correctness of the new verification rules;
[0029] When the new verification rules are correct, supplement the new verification rules to the random forest model.
[0030] Optionally, after obtaining the bill of materials to be verified, where the bill of materials includes the material numbers of the materials required for a vehicle model and the hierarchical relationships between the material numbers, the method further includes: preprocessing the bill of materials, and the preprocessing includes abnormal data deletion and format verification.
[0031] In a second aspect, the present application provides a computer device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor executes the computer program to implement the steps of the method according to any one of the above first aspects.
[0032] In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method according to any one of the above first aspects are implemented.
[0033] In a fourth aspect, the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of the above first aspects are implemented.
[0034] According to the specific embodiments provided by the present application, the following technical effects are disclosed in the present application:
[0035] The method for verifying the bill of materials of a vehicle provided by the embodiments of the present application converts the bill of materials into a tree structure form, then converts the tree structure form into a standard format file, and then sends the standard format file to a pre-trained random forest model. The random forest model verifies the bill of materials and outputs a verification result. Compared with the prior art that verifies manually, the present application reduces the participation of personnel, improves the speed and accuracy of verification, and thus improves the verification efficiency. Description of the Drawings
[0036] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.
[0037] Figure 1 It is an application environment diagram of a method for verifying a vehicle bill of materials in an embodiment of the present application;
[0038] Figure 2 It is a schematic flowchart of a method for verifying a vehicle bill of materials provided in an embodiment of the present application;
[0039] Figure 3 It is a schematic flowchart of a method for generating a standard format file provided in an embodiment of the application;
[0040] Figure 4 It is a schematic flowchart of a method for determining whether a verification rule is missing in a random forest model provided in another embodiment of the present application;
[0041] Figure 5 It is a schematic diagram of a method for verifying a vehicle bill of materials provided in an embodiment of the present application;
[0042] Figure 6 It is a schematic diagram of a method for supplementing verification rules for a random forest model provided in another embodiment of the present application;
[0043] Figure 7 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Detailed implementation manners
[0044] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.
[0045] To make the above objects, features, and advantages of the present application more obvious and understandable, the following will further describe the present application in detail with reference to the accompanying drawings and specific implementation manners.
[0046] The method for verifying a vehicle bill of materials provided in the embodiments of the present application can be applied to, for example Figure 1In the application environment shown, the application environment includes a terminal and a server. Among them, the terminal communicates with the server through a network. The data storage system can store the data that the server needs to process. The data storage system can be set up separately, integrated on the server, or placed on the cloud or other servers. The terminal can send the vehicle bill of materials to be verified to the server. After receiving the vehicle bill of materials to be verified, the server can first store the vehicle bill of materials and then obtain it from the storage location when it needs to be verified. Alternatively, the verification task can be executed while storing. The server can feedback the verification result to the terminal. In addition, in some embodiments, the verification method of the vehicle bill of materials can also be implemented by the server or the terminal alone. For example, the terminal can directly verify the vehicle bill of materials to be verified, or the server can obtain the vehicle bill of materials to be verified from the data storage system and verify the vehicle bill of materials to be verified.
[0047] Among them, the terminal can be, but is not limited to, various desktop computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server can be implemented by an independent server or a server cluster composed of multiple servers, and can also be a cloud server.
[0048] In an exemplary embodiment, as Figure 2 shown, a method for verifying a vehicle bill of materials is provided. This method is executed by a computer device, and can be specifically executed by a computer device such as a terminal or a server alone, or jointly executed by the terminal and the server. In the embodiments of the present application, taking this method applied to Figure 1 the server in it as an example for illustration, it includes the following steps 201 to step 205:
[0049] Step 201, obtain the bill of materials to be verified. The bill of materials includes the material numbers of the materials required for a vehicle model, and the hierarchical relationship between the material numbers.
[0050] Among them, the bill of materials is the bill of materials of a whole vehicle. One vehicle model corresponds to one bill of materials.
[0051] Each material number is used to uniquely identify a material name.
[0052] Among them, the hierarchical relationship is used to reflect the subordinate relationship between materials. For example, for the three material names of interior, carpet, and floor mat, the interior has a higher level, and the carpet and floor mat have a lower level and are at the same level. Therefore, the carpet and floor mat are subordinate to the interior.
[0053] In addition, an administrator or an ordinary user can select a bill of materials (BOM) to be verified from the database through the user interface, and then obtain the BOM to be verified. Of course, the administrator and the user can also send the BOM to be verified to the server by manual import.
[0054] Furthermore, before an administrator or an ordinary user performs any operation (including the above operation of obtaining the BOM to be verified) through the user interface, they need to create an account and log in in advance before they can perform the operation. Further, after creating an account, the administrator can modify or delete the accounts of other users. For example, modify the access rights and scope of the ordinary user account, and the ordinary user can modify or delete their own account.
[0055] Furthermore, the server will also provide a data import interface, supporting the import of BOM data from formats such as Excel and CSV.
[0056] The server can automatically collect BOM data from various data sources of the enterprise (such as systems like ERP and PLM) according to the data collection rules and data formats set by the user from the relevant systems. In addition, through the preset data interface and data parsing mechanism, it is ensured that the BOM data can be obtained accurately and completely.
[0057] Step 202: Generate a tree structure of the bill of materials based on the material numbers and the hierarchical relationship.
[0058] According to the hierarchical relationship, obtain each material number in turn starting from the highest level of the bill of materials, and generate the tree structure of the bill of materials in turn according to the hierarchical relationship and the subordinate relationship.
[0059] The material number at the upper level is the parent node of its subordinate material numbers. For example, first obtain the material number at the highest level in the hierarchical relationship (usually the series number) as the root node of the tree structure, and then obtain the material number at the second highest level (usually the vehicle model number) as the child node of the root node; according to this process, obtain the material numbers in turn as the child nodes of the upper level until all the material numbers at all levels are obtained.
[0060] Step 203: Generate a standard format file for each material number based on the tree structure, and the standard format file is used to describe the basic information of the material number in the tree structure.
[0061] For each material number that is a node in the tree structure, in the standard format file, the basic information of this node is recorded. For example, the node ID, the node depth, the parent node ID, the IDs of all child nodes, and the maximum depth from the child node to the leaf node.
[0062] Since each node corresponds to a standard format file, there are multiple standard format files in total.
[0063] Step 204: Send the standard format file to a pre-trained random forest model so that the random forest model verifies the bill of materials and outputs a verification result.
[0064] The random forest model is internally configured with verification rules for verifying the received standard format file. The content of the verification rules is similar to the content of the above standard format file. There are multiple verification rules, and each verification rule is used to describe the basic information of a material number in all possible tree structures it may be in.
[0065] Furthermore, it can be further processed according to the output verification result. For example, when the verification result is correct, subsequent relevant processing can be performed. If there are errors, the bill of materials can be modified and verified again.
[0066] Step 205: When the verification result indicates an error, determine that there is an error in the bill of materials or the verification rules in the random forest model are missing.
[0067] The verification result includes correct and incorrect. When the verification result is correct, it is determined that the bill of materials is correct. The bill of materials can be used to continue the subsequent process. When the verification result is incorrect, it may be that there is indeed an error in the bill of materials or the verification rules of the random forest model are missing.
[0068] The missing verification rules can be understood as: there is no verification rule related to a certain material number in the random forest model. When there is no verification rule related to a certain material number in the random forest model, the random forest model cannot verify the node corresponding to the material number, and thus the output verification result is incorrect. In this case, the missing verification rules need to be supplemented to the random forest model to improve the random forest model.
[0069] The method for verifying the vehicle bill of materials provided by the embodiments of the present application converts the bill of materials into a tree structure form, then converts the tree structure form into a standard format file, and then sends the standard format file to a pre-trained random forest model. The random forest model verifies the bill of materials and outputs a verification result. Compared with the prior art that verifies manually, the present application reduces the participation of personnel, improves the speed and accuracy of verification, and thus improves the verification efficiency.
[0070] In addition, the method for verifying the vehicle bill of materials proposed in this application can overcome the BOM verification problems faced by traditional automobile enterprises in complex production processes and massive data management. This application not only greatly improves the accuracy and work efficiency of bill of materials verification, reduces human errors, but also effectively saves manpower, thereby reducing production costs. At the same time, it enhances the enterprise's ability to quickly respond to market changes, making the production process more intelligent and efficient. With the continuous development of technology, this method for verifying the vehicle bill of materials will help traditional automobile enterprises maintain their competitive advantages and even promote the entire industry to move towards intelligent manufacturing.
[0071] In addition, this application can also set up a user management module: Whether it is an administrator or an ordinary user, they can log in to the verification system corresponding to this verification method through the user interface of this module. Both the administrator and the ordinary user can enter the username and password through the input box displayed on the user interface, and then click the login button to log in. Further, during the login process, the user's identity will be verified. The terminal will send the username and password to the server and obtain the access permission through interaction with the server. After the user logs in, they can obtain the corresponding permissions whether they access a specific page or perform a specific operation. This application realizes the functions and permissions of users by setting multiple different user interface UI components.
[0072] When the administrator logs in, the administrator interface will be displayed. For the administrator interface: First is user management. The administrator can perform addition and deletion operations on users through the user interface of this module. Further, through a user management component, the current user list is displayed, and the functions of adding users and deleting users are provided. The administrator can add a new user by entering the username and password through the user interface. At the same time, the existing users can be selected for deletion operations. The administrator can also register new users through the user interface of this module. In addition, this module also includes a registration component, which contains input boxes for username, password, and confirmed password, as well as a registration button. The administrator can enter the information of the new user through the user interface and add the new user to the verification system by interacting with the server.
[0073] Optionally, after step 201, the method further includes: preprocessing the bill of materials, and the preprocessing includes deleting abnormal data and format verification.
[0074] When obtaining the bill of materials, non-bill-of-materials data may be obtained. For this kind of data, it can be identified through content recognition methods and then directly deleted. In addition, for the data that is a bill of materials but does not conform to the bill-of-materials format, it is adjusted to conform to the bill-of-materials format. For example, if a certain material in the bill of materials lacks a material ID, the material ID will be supplemented as required. The preprocessed BOM is stored in the system database for timely retrieval when needed.
[0075] Optionally, referring to Figure 3 , in another exemplary embodiment of the present application, step 203 may be implemented by the following steps 2031 and 2032:
[0076] Step 2031, obtain the names of the basic information that the standard format file should include.
[0077] Step 2032, for each material number, based on the tree structure, determine the content of the basic information corresponding to the name of the basic information, and establish a correspondence between the determined name of the basic information and the content of the basic information, thereby generating the standard format file.
[0078] Step 2032 is executed for each material number in the material list to be verified.
[0079] Optionally, in the present application, the names of the basic information include: material number, node number, node name, node depth, parent node name, child node name, and the maximum depth from the child node to the leaf node.
[0080] Among them, the node number, node name, node depth, parent node name, child node name, and the maximum depth from the child node to the leaf node are all for the node number, node name, node depth, parent node name, child node name, and the maximum depth from the child node to the leaf node corresponding to the material number in a standard format file. For example, if the material number is at the root node position, the node name is the root node.
[0081] Furthermore, the basic information may further include information such as the English name of the material list, the English name of the material corresponding to the material number, the English name of the parent node, and the English name of the child node. The present application will not describe them one by one here.
[0082] Optionally, referring to Figure 4 , in another exemplary embodiment of the present application, step 205 may be implemented by the following steps 301-step 304:
[0083] Step 301, when the verification result is that there is an error, output the error node and the modification plan.
[0084] Among them, the error node may include one or multiple.
[0085] In addition, since the first error node may cause other correct nodes to also become error nodes, when the first error node is modified, other error nodes may not need to be modified. Therefore, the modification plan may be for a certain or certain error nodes, rather than all error nodes.
[0086] Furthermore, the verification result may also include the cause of the error, so that the staff can clearly understand the cause of the error and check whether the modification plan is feasible based on the cause of the error.
[0087] Step 302: Modify the erroneous node according to the modification plan to obtain a modified bill of materials.
[0088] Step 303, looping through steps 201 to 302 for a predetermined number of times.
[0089] Step 304: If an error still exists, it is determined that a verification rule is missing in the random forest model.
[0090] If the verification result of a certain output is correct during the execution of the loop, it means that the modified bill of materials is correct.
[0091] The predetermined number of times may be an empirical value.
[0092] Alternatively, see Figure 5 In another exemplary embodiment of the present application, after step 304, the method further includes the following steps 401 to 403:
[0093] Step 401: Supplement the verification rules of the error nodes to the random forest model to obtain a new random forest model.
[0094] For newly added validation rules, the administrator needs to determine whether the newly added validation rules meet the requirements. Only validation rules that meet the requirements can be added. For example, the administrator needs to determine whether the name of the new validation rule is unique and whether the expiration date is in compliance with the regulations.
[0095] Step 402: train the new random forest model using a predetermined training method to obtain a trained new random forest model.
[0096] The new random forest model can be trained using the training method mentioned below until the requirements are met, and then step 403 is executed.
[0097] Step 403: Send the standard format file to the trained new random forest model, so that the trained new random forest model verifies the bill of materials and outputs a new verification result.
[0098] Alternatively, see Figure 6 In another exemplary embodiment of the present application, before step 401, the method further includes the following steps 501 to 503:
[0099] Step 501: When a new verification rule needs to be supplemented, the new verification rule is obtained.
[0100] Among them, one verification rule is set for a certain material number, and the content of the verification rule includes: the node name where the material number is set, the maximum node depth, the minimum node depth, the parent node name, the child node name, the maximum maximum depth of the child node, and the minimum maximum depth of the child node.
[0101] In addition, the effective time, expiration time, and priority of the verification rule can also be set.
[0102] Among them, the priority is used to indicate which verification rule should be preferentially used when performing verification using the verification rule.
[0103] Furthermore, the verification rule can be a verification rule configured manually into the random forest model. For example, the administrator verification rule configured by the administrator and the user verification rule configured by the ordinary user, and the priority of the administrator verification rule is higher than that of the user verification rule.
[0104] Step 502, check the correctness of the new verification rule.
[0105] For each verification rule, it can only be supplemented into the random forest model when it is a correct verification rule. For example, the new verification rule includes all the content that the above verification rule should include. When the new verification rule lacks a certain content, the verification rule does not meet the requirements and is incorrect.
[0106] Step 503, when the new verification rule is correct, supplement the new verification rule into the random forest model.
[0107] Of course, when the administrator or ordinary user wants to modify the verification rule, they need to log in to the account in advance, then input the modification request through the user, send the modification request through the terminal, and the server performs the corresponding modification operation according to the received modification request to modify various verification rules, such as modifying the relationship between materials, attribute standards, priority, and time limit requirements, etc.
[0108] In addition, it is supplemented here that when deleting the existing verification rule in the random forest model, it is necessary to review whether the deletion operation is correct through the administrator rule. If it is correct, the deletion operation can be executed.
[0109] Optionally, the content output by the random forest model each time (verification result, error node, error node name, error reason, etc.) is sent to the display terminal.
[0110] For example, when an error is detected, the number of errors, error type, error location, material number, error reason, and modification plan of the error node are output and sent to the display terminal.
[0111] Furthermore, the results can be presented in the form of a list or a table, including material information, attributes, relationships, etc.
[0112] After the display terminal shows it, it can be clearly presented in front of the manager, so that the user can know the current situation of the bill of materials, helping the user quickly locate and solve problems. At the same time, the user can click on the problem item to view the detailed verification report and problem description; then the user can modify and optimize the BOM according to the modification suggestions provided by the system, and then re-verify the corrected BOM data to ensure the accuracy and consistency of the data.
[0113] In addition, the user can manually review, confirm or modify the bill of materials through the user interface according to the verification feedback.
[0114] Optionally, in another exemplary embodiment of the present application, the training process is as follows:
[0115] Obtain multiple bills of materials. The bills of materials can be materials of different brands, different series, and different vehicle models; regard each material number (or each node) on each bill of materials as a separate sample, and generate a standard format file for each node by writing a script. The attributes in the standard format file include: node ID, node depth, parent node ID, IDs of all child nodes, and the maximum depth from the child node to the leaf node, and the unique ID of the BOM corresponding to each node. In addition, here the IDs of all child nodes are used as a string feature, separated by commas between the IDs, and arranged in ascending alphabetical order of the node ID. Input each standard format file as a feature into the initial random forest model (the initial verification rules are configured in the initial random forest model) so that the initial random forest model outputs the verification result. When the training is performed a predetermined number of times, or when the verification accuracy reaches a predetermined value, it is determined that the random forest model can be used for the verification of the bill of materials.
[0116] Furthermore, for the missing verification rules in the random forest model, the missing verification rules can be supplemented into the random forest model, and then a large number of bills of materials related to the missing verification rules (including the material names corresponding to the missing verification rules) are obtained, and the above training process is repeated again to obtain a new random forest model.
[0117] Furthermore, the random forest model can comprehensively verify each node of the bill of materials one by one according to the preset verification rules. Automatically identify and mark the records that do not conform to the verification rules, and at the same time output the corresponding exceptions and error information to help the user quickly locate the problem. The principle inside the random forest model is introduced as follows:
[0118] When performing verification, receive multiple standard format files corresponding to the bill of materials to be verified;
[0119] Read the standard format files one by one, and for each standard format file, obtain each node ID corresponding to the standard format file;
[0120] For each node ID (denoted as the first node ID), query the correspondence list of verification rules and node IDs according to the first node ID, and obtain the verification rules corresponding to the first node ID from the verification rule list. Generally, multiple verification rules will be obtained (including administrator verification rules and user verification rules);
[0121] After obtaining the verification rule list, first traverse the administrator verification rule list, and then the user verification rule list. For each verification rule, determine whether the description of the verification rule for the node ID is consistent with the description of the standard format file for the first node ID. If they are consistent, mark the first node ID as correct, and return the marking result to the terminal and stop further verification;
[0122] If a conflict occurs between peer verification rules during the verification process, determine the verification rule with higher priority according to the priority field of the verification rule, and use the verification rule with higher priority for verification; thus, it can ensure the correct matching of verification rules, and ensure that each standard format file will only match one verification rule with the highest priority, or there is no verification rule to match.
[0123] In an exemplary embodiment, a computer device is provided. The computer device can be a server or a terminal, and its internal structure diagram can be as Figure 7 shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store verification-related data of the vehicle bill of materials. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, a method for verifying a vehicle bill of materials can be implemented.
[0124] Those skilled in the art can understand, Figure 7The structure shown is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0125] In an exemplary embodiment, a computer device is further provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are implemented.
[0126] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0127] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0128] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant regulations.
[0129] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, in each of the embodiments provided in the present application, any reference to a memory, a database, or other media can include at least one of non-volatile and volatile memories. Non-volatile memories can include read-only memory (ROM), magnetic tapes, floppy disks, flash memories, optical memories, high-density embedded non-volatile memories, resistive random access memories (ReRAM), magnetoresistive random access memories (MRAM), ferroelectric random access memories (FRAM), phase change memories (PCM), graphene memories, etc. Volatile memories can include random access memory (RAM) or external cache memories, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0130] In each of the embodiments provided in the present application, the databases involved can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. In each of the embodiments provided in the present application, the processors involved can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logics, data processing logics based on quantum computing, etc., without limitation.
[0131] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0132] In this article, specific examples are used to elaborate on the principles and implementation manners of the present application. The descriptions of the above embodiments are only used to help understand the method and its core idea of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A method for verifying a vehicle bill of materials, characterized in that, Including: Obtain a bill of materials to be verified, where the bill of materials includes the material numbers of the materials required for a vehicle model and the hierarchical relationships among the material numbers; Generate a tree structure of the bill of materials based on the material numbers and the hierarchical relationships; Generate a standard format file for each material number based on the tree structure, where the standard format file is used to describe the basic information of the material number in the tree structure; Send the standard format file to a pre-trained random forest model so that the random forest model verifies the bill of materials and outputs a verification result; When the verification result indicates an error, determine that there is an error in the bill of materials or that the verification rules in the random forest model are missing.
2. The method for verifying a vehicle bill of materials according to claim 1, characterized in that The generating a standard format file for each material number based on the tree structure includes: Obtain the names of the basic information that the standard format file should include; For each material number, determine the content of the basic information corresponding to the name of the basic information based on the tree structure, and establish a correspondence between the determined name of the basic information and the content of the basic information, thereby generating the standard format file.
3. The verification method of the vehicle bill of materials according to claim 2, characterized in that The names of the basic information include: material number, node name, node depth, parent node name, child node name, and the maximum depth from the child node to the leaf node.
4. The verification method of the vehicle bill of materials according to claim 1, characterized in that, The when the verification result indicates an error, determining that there is an error in the bill of materials or that the rules in the random forest model are missing includes: When the verification result indicates an error, output the error node and a modification plan; Modify the error node according to the modification plan to obtain a modified bill of materials; Loop through the steps of "obtain the bill of materials to be verified" to "modify the error node according to the modification plan to obtain a modified bill of materials" a predetermined number of times; If there are still errors, determine that the rules in the random forest model are missing.
5. The verification method of the vehicle bill of materials according to claim 4, characterized in that After determining that the rules in the random forest model are missing, the method further includes: Supplement the verification rules for the error node to the random forest model to obtain a new random forest model; Train the new random forest model using a predetermined training method to obtain a trained new random model; Send the standard format file to the trained new random forest model so that the trained new random forest model verifies the bill of materials and outputs a new verification result.
6. The method for verifying the vehicle parts list according to claim 5, characterized in that, After determining that the rules in the random forest model are missing, the method further includes: When new verification rules need to be supplemented, obtain the new verification rules; Check the correctness of the new verification rules; When the new verification rules are correct, supplement the new verification rules to the random forest model.
7. The verification method of the vehicle bill of materials according to any one of claims 1-6, characterized in that, After obtaining the bill of materials to be verified, where the bill of materials includes the material numbers of the materials required for a vehicle model and the hierarchical relationships among the material numbers, the method further includes: preprocessing the bill of materials, where the preprocessing includes deleting abnormal data and validating the format.
8. A computer device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program to implement the method for verifying a vehicle bill of materials according to any one of claims 1-7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method for verifying a vehicle bill of materials according to any one of claims 1-7.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the method for verifying a vehicle bill of materials according to any one of claims 1-7.
Citation Information
Cited By
Electric power material verification method and device based on dynamic rule tree
CN121094760A
A power material verification method and device based on a dynamic rule tree
CN121094760B