A VIN parsing rule generation method and system
By generating VIN parsing rules, the problem of long retrieval time and inaccuracy caused by multi-parameter retrieval in the vehicle maintenance system is solved, fast and accurate matching of vehicle models and engine models is achieved, and system maintenance is simplified.
Patent Information
- Application Number
- CN202410601795.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-05-15
AI Technical Summary
The existing vehicle maintenance system needs to gradually input multiple parameters when retrieving vehicle maintenance data and accessories, resulting in long retrieval time and possible inaccuracy. When the vehicle model is updated, parameter matching rules need to be updated, resulting in a heavy workload.
By building a basic database, VIN parsing rules are generated regularly, the first 11 identical VIN codes are grouped together, and the corresponding vehicle models and engine models are screened out, and parsing rules are generated based on these rules and stored in the rule base for use Match the VIN number to determine its corresponding vehicle model and engine model.
It improves the efficiency and accuracy of vehicle maintenance data retrieval, simplifies system maintenance and expansion, and reduces reliance on multi-parameter matching rules.
Smart Images

Figure CN118170817B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of big data processing, and in particular to a VIN parsing rule generation method and system. Background Art
[0002] In the automotive aftermarket, vehicle maintenance information and matching parts are usually searched based on multiple parameters. Since different matching parts require different parameters, for example, when searching for brake pads suitable for a certain vehicle, you may need to enter data such as vehicle brand and displacement information for screening. For the air conditioning filter of the vehicle, you may need to enter data such as vehicle brand, vehicle model, displacement, engine model, and production year for screening.
[0003] Therefore, the existing vehicle maintenance system based on the multi-parameter input matching mechanism has the following main defects:
[0004] 1. It is necessary to gradually input multiple parameters to filter the search results, which takes a long time to search, and the search results may be inaccurate and non-unique due to incorrect parameter selection / input;
[0005] 2. When the vehicle model is updated, these parameter matching rules need to be updated, which is a lot of work. Summary of the invention
[0006] One or more embodiments of this specification describe a VIN parsing rule generation method and system, which can at least partially solve the above-mentioned problems existing in the prior art.
[0007] In a first aspect, a method for generating VIN parsing rules is provided, the method comprising:
[0008] Building a basic database includes: regularly acquiring basic data from VIN data used by automobile repair shops and storing the basic data in the basic database, wherein the basic data includes a VIN code and a vehicle model and an engine model corresponding to the VIN code;
[0009] The VIN parsing rules are generated regularly based on the basic data in the basic database, including: classifying all VIN codes with the same first 11 digits into a first data group; from the first data group, screening target VIN codes corresponding to the same vehicle model, if the number of the target VIN codes is greater than a preset threshold, sorting the target VIN codes according to the last 6 digits, determining a rule interval based on the sorting result, and finally generating a parsing rule for describing the corresponding relationship between the VIN codes in the rule interval and the vehicle model and the engine model, and storing the parsing rule in a rule base.
[0010] As an optional implementation of the method described in the first aspect, the parsing rule can be expressed as: the range of the first 11 digits of the VIN code + the range of the last 6 digits of the VIN code + the vehicle model + the engine model.
[0011] As an optional implementation manner of the method of the first aspect, the method may further include:
[0012] When the parsing rule in the rule base is updated, determine whether there is an old parsing rule in the rule base that is the same as the first 11 digits of the new parsing rule; if not, store the new parsing rule in the rule base; if yes, determine whether the rule interval of the new parsing rule conflicts with that of the old parsing rule, if not, store the new parsing rule in the rule base; if so, determine the union interval of the rule interval of the old parsing rule and the rule interval of the new parsing rule, then delete the old parsing rule, and find all VIN codes in the basic database that are the same as the first 11 digits of the old parsing rule and whose last 6 digits are within the union interval, then regenerate the parsing rule based on the found VIN code, and store the regenerated parsing rule in the rule base.
[0013] In a second aspect, a vehicle maintenance data retrieval method based on VIN parsing is provided, comprising:
[0014] Get the VIN code to be parsed;
[0015] The VIN code is searched in the real code database. If the VIN code is found, the vehicle maintenance data is searched in the vehicle maintenance data database based on the VIN code, and the search result is fed back to the user; the real code database is used to store the VIN code and vehicle model data, and the vehicle model data includes brand, manufacturer, vehicle model, year, displacement, engine model, gearbox parameters, gear parameters, production year, and vehicle model; the vehicle maintenance data database pre-establishes the association between the vehicle model data and the vehicle maintenance data; the vehicle maintenance data includes vehicle maintenance data and accessories information;
[0016] If the VIN code is not found in the real code database, the first 11 digits of the VIN code are taken as an index, and a parsing rule is retrieved from a rule database based on the index; the parsing rule is constructed according to the above-mentioned VIN parsing rule generation method;
[0017] If the parsing rule is retrieved, the last six digits of the VIN code are matched with the rule interval of the parsing rule; if the last six digits of the VIN code are matched successfully, the vehicle model data is searched in the real code library based on the vehicle model in the parsing rule, and the engine model in the found vehicle model data is matched with the engine model in the parsing rule; if the engine model is matched successfully, the production year corresponding to the 10th digit of the VIN code is matched with the production year in the vehicle model data. If the production year matches successfully, it is determined that the VIN code is parsed correctly, and vehicle maintenance data is retrieved from the vehicle maintenance database based on the VIN code, and the search results are fed back to the user.
[0018] As an optional implementation of the method of the second aspect, obtaining the VIN code to be parsed specifically includes:
[0019] Get the VIN code entered by the user;
[0020] Alternatively, a vehicle nameplate image or a driving license image uploaded by a user is obtained, and the VIN code is extracted from the vehicle nameplate image or the driving license image.
[0021] Specifically, the parsing rule can be expressed as: the range of the first 11 digits of the VIN code + the range of the last 6 digits of the VIN code + the vehicle model + the engine model.
[0022] In a third aspect, a VIN parsing rule generation system is provided, the system comprising:
[0023] A first data acquisition module is configured to periodically acquire basic data from VIN data used by automobile repair shops and store it in a basic database, wherein the basic data includes a VIN code and a vehicle model and an engine model corresponding to the VIN code;
[0024] The rule generation module is configured to periodically generate VIN parsing rules based on the basic data in the basic database, including: classifying all VIN codes with the same first 11 digits into a first data group; from the first data group, screening target VIN codes corresponding to the same vehicle model, if the number of the target VIN codes is greater than a preset threshold, sorting the target VIN codes according to the last 6 digits, determining a rule interval based on the sorting result, and finally generating a parsing rule for describing the corresponding relationship between the VIN code within the rule interval and the vehicle model and the engine model, and storing the parsing rule in a rule base.
[0025] As an optional implementation manner of the system according to the third aspect, the rule generation module is further specifically used for:
[0026] When the parsing rule in the rule base is updated, determine whether there is an old parsing rule in the rule base that is the same as the first 11 digits of the new parsing rule; if not, store the new parsing rule in the rule base; if yes, determine whether the rule interval of the new parsing rule conflicts with that of the old parsing rule, if not, store the new parsing rule in the rule base; if so, determine the union interval of the rule interval of the old parsing rule and the rule interval of the new parsing rule, then delete the old parsing rule, and find all VIN codes in the basic database that are the same as the first 11 digits of the old parsing rule and whose last 6 digits are within the union interval, then regenerate the parsing rule based on the found VIN code, and store the regenerated parsing rule in the rule base.
[0027] In a fourth aspect, a vehicle maintenance data query system based on VIN analysis is provided, the system comprising:
[0028] A second data acquisition module is configured to acquire the VIN code to be parsed;
[0029] The first parsing module is configured to retrieve the VIN code in the real code library, and if the VIN code is retrieved, the vehicle maintenance data is retrieved in the vehicle maintenance data library based on the VIN code, and the search result is fed back to the user; the real code library is used to store the VIN code and vehicle model data, and the vehicle model data includes brand, manufacturer, model, year, displacement, engine model, gearbox parameters, gear parameters, production year, and vehicle model; the vehicle maintenance data library pre-establishes the association relationship between the vehicle model data and the vehicle maintenance data; the vehicle maintenance data includes vehicle maintenance data and accessories information;
[0030] a second parsing module configured to, when the VIN code is not found in the real code library, take the first 11 digits of the VIN code as an index and retrieve a parsing rule based on the index in a rule library; the parsing rule is constructed according to the above-mentioned VIN parsing rule generation method;
[0031] If the parsing rule is retrieved, the last six digits of the VIN code are matched with the rule interval of the parsing rule; if the last six digits of the VIN code are matched successfully, the vehicle model data is searched in the real code library based on the vehicle model in the parsing rule, and the engine model in the found vehicle model data is matched with the engine model in the parsing rule; if the engine model is matched successfully, the production year corresponding to the 10th digit of the VIN code is matched with the production year in the vehicle model data. If the production year matches successfully, it is determined that the VIN code is parsed correctly, and vehicle maintenance data is retrieved from the vehicle maintenance database based on the VIN code, and the search results are fed back to the user.
[0032] As an optional implementation of the system described in the fourth aspect, the second parsing module is also used to store the correspondence between the VIN code and the vehicle model data in the real code library when the VIN code is parsed correctly based on the parsing rule.
[0033] Beneficial effect: One or more embodiments of the present specification provide a method for generating VIN parsing rules, which utilizes the encoding rule of the VIN code, that is, VIN codes with the same first 11 digits most likely correspond to the same vehicle model and engine model. Based on this rule, the method constructs a VIN parsing rule based on the retrieval records of limited VIN codes and vehicle model and engine model data obtained in the actual business process. Through the parsing rule, the VIN code not stored in the real code library can be parsed to determine the corresponding vehicle model and engine model.
[0034] By constructing VIN parsing rules, a large amount of corresponding relationship data between VIN codes and vehicle models and engine models can be parsed, and then the association relationship between VIN codes and vehicle maintenance information can be established based on these data. Based on this, vehicle maintenance information can be directly searched based on the VIN code. Compared with the multi-parameter matching rules in the prior art, this solution only needs to maintain the VIN code parsing rules, which is convenient for system maintenance and expansion. On the other hand, retrieving vehicle maintenance information based only on the VIN code can improve retrieval efficiency and higher accuracy.
[0035] Correspondingly, the VIN parsing rule generation system, and the vehicle maintenance information retrieval method and system based on VIN parsing described in the present invention also have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of this specification 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 described below are some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0037] Figure 1 It is a flowchart of a VIN parsing rule generation method involved in an embodiment of this specification.
[0038] Figure 2 It is a flowchart of a vehicle maintenance data retrieval method based on VIN analysis involved in an embodiment of this specification.
[0039] Figure 3 It is a structural diagram of a VIN parsing rule generation system involved in an embodiment of this specification.
[0040] Figure 4 It is a structural diagram of a vehicle maintenance information query system based on VIN analysis involved in an embodiment of this specification. DETAILED DESCRIPTION
[0041] First of all, it should be noted that the terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "the" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates otherwise.
[0042] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Therefore, it should be recognized by those skilled in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0043] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.
[0044] The training method of the image sample generation model, the image sample generation method and the device described in the embodiments of this specification will be further described in detail below in combination with the drawings and specific embodiments of the specification, but this detailed description does not constitute a limitation on the embodiments of this specification.
[0045] In some embodiments, a VIN parsing rule generation method is provided, such as Figure 1 As shown, the method comprises the steps of:
[0046] S100: Build a basic database.
[0047] The basic data in the basic database mainly includes the VIN code and the vehicle model and engine model corresponding to the VIN code. In this embodiment, the basic data meeting the above format can be regularly obtained from the VIN data used by the automobile repair shop and stored in the above basic database.
[0048] S102: Periodically generate VIN parsing rules based on the basic data in the basic database.
[0049] The VIN code is a 17-digit combination of letters and numbers consisting of the country of manufacture code (1st digit), manufacturer code (2nd digit), vehicle type (3rd digit), vehicle feature code (4th to 9th digits), vehicle production year (10th digit), factory code (11th digit), and production serial number (12th to 17th digits).
[0050] Based on the encoding rules of the VIN code, it can be known that for VIN codes with the same first 11 digits, the corresponding vehicle model and engine model are most likely the same. Based on this rule, in this step, all VIN codes with the same first 11 digits stored in the basic database are classified into the first data group; then, from the first data group, the target VIN codes corresponding to the same vehicle model and engine model are screened. If the number of target VIN codes is greater than the preset threshold, the target VIN codes are sorted according to the last 6 digits (production serial number), and for the continuous number segments in the sorting results, the rule interval is determined, and then a parsing rule is generated for this rule interval to describe the corresponding relationship between the VIN code and the vehicle model and engine model within the rule interval, and the parsing rule is stored in the rule base.
[0051] It should be noted that the generation frequency of the parsing rules can be set according to demand, for example, it can be set to one day, one week, etc., and this embodiment does not limit this.
[0052] The following is an example to illustrate the above parsing rule generation principle:
[0053] Assume that there are 100 VIN codes whose first 11 digits are LLV2C3B22N0 in the basic database, and the vehicle models corresponding to these 100 VIN codes are all: LF7154B, and the corresponding engine models are all: JLC-4G15C.
[0054] First, the number of VIN codes is judged. Assuming the threshold is 80 (this threshold is mainly used to ensure that sufficient VIN code feature information is learned in the generated parsing rules, thereby ensuring the reliability of the parsing rules. This threshold can be set according to needs), it can be determined that the parsing rules can be generated for this group of VIN codes. Assuming that the last six digits of these 100 VIN codes are continuous, and the segment interval is [000057, 000156], then the above rule interval is [000057, 000156]. Based on the first 11 digits of these 100 VIN codes, the rule interval, the vehicle model and the engine model, a parsing rule can be generated:
[0055] LLV2C3B22N0+[000057,000156]+LF7154B+JLC-4G15C.
[0056] This parsing rule indicates that the VIN code with the first 11 digits LLV2C3B22N0 and the last 6 digits falling in the interval [000057, 000156] corresponds to the vehicle model LF7154B and the engine model JLC-4G15C.
[0057] In a feasible implementation, the ninth digit of the first 11 digits of the above VIN code can be replaced by "*" because the ninth digit is the correctness check digit of the VIN code itself, which will be checked before data parsing. Therefore, this digit can be ignored when used. Then the above parsing rules can be expressed as:
[0058] LLV2C3B2*N0+[000057,000156]+LF7154B+JLC-4G15C.
[0059] As the basic data stored in the above basic database is continuously updated, it is obvious that these parsing rules will also be updated. When the parsing rules in the rule base are updated, first determine whether there is an old parsing rule in the rule base that is the same as the first 11 digits of the new parsing rule; if not, store the new parsing rule in the rule base; if so, determine whether the rule intervals of the new parsing rule and the old parsing rule conflict (that is, there is a non-empty intersection), if not, store the new parsing rule in the rule base; if there is a conflict, determine the union interval of the rule interval of the old parsing rule and the rule interval of the new parsing rule, then delete the old parsing rule, and find all VIN codes in the basic database that are the same as the first 11 digits of the old parsing rule and whose last 6 digits are within the union interval, then regenerate the parsing rule based on the found VIN code, and then store the regenerated parsing rule in the rule base. That is to say, assuming that the old parsing rule is LLV2C3B2*N0+[000057, 000156]+ LF7154B+ JLC-4G15C, if a new parsing rule LLV2C3B2*N0+[0000138, 000638]+LXA6502SHEVX1+L2E15M is generated based on the data stored in the real code library, the parsing rule update process is:
[0060] First, it is determined that the first 11 bits of the new and old parsing rules are both LLV2C3B2*N0, that is, the first 11 bits of the new and old parsing rules are the same.
[0061] Next, determine whether the new parsing rule conflicts with the old parsing rule. Obviously, [000057, 000156] and [0000138, 000638] conflict. Then, we need to obtain the union interval [000057, 000638] of [000057, 000156] and [0000138, 000638], and regenerate the parsing rule for the VIN code of the union interval:
[0062] LLV2C3B2*N0+[000057,0000137]+ LF7154B+ JLC-4G15C;
[0063] LLV2C3B2*N0+[0000138, 000638] +LXA6502SHEVX1+L2E15M;
[0064] Finally, delete the old parsing rule LLV2C3B2*N0+[000057, 000156]+ LF7154B+ JLC-4G15C, and store the above two new parsing rules LLV2C3B2*N0+[000057, 000137]+ LF7154B+ JLC-4G15C and LLV2C3B2*N0+[000183, 000638] +LXA6502SHEVX1+L2E15M into the rule base.
[0065] In some embodiments, a vehicle maintenance data retrieval method based on VIN parsing is also provided, and the parsing rules in the retrieval method are generated using the above-mentioned VIN parsing rule generation method. Figure 2 As shown, the retrieval method comprises the steps of:
[0066] S200: Obtain the VIN code to be parsed;
[0067] S202: searching the real code database for the VIN code. If the VIN code is found, searching the vehicle maintenance database for vehicle maintenance data based on the VIN code, and feeding back the search result to the user.
[0068] The above-mentioned real code library is used to store VIN codes and vehicle model data, and the vehicle model data includes brand, manufacturer, model, year, displacement, engine model, gearbox parameters, gear parameters, production year, vehicle model and other vehicle model information. The vehicle maintenance database pre-establishes the association between the vehicle model data and the vehicle maintenance data. The vehicle maintenance data includes vehicle maintenance data and accessories information.
[0069] S204: If the VIN code is not found in the real code library, the first 11 digits of the VIN code are taken as an index, and a parsing rule is retrieved in the rule library based on the index.
[0070] S206: If the parsing rule is retrieved, the last six digits of the VIN code are matched with the rule interval of the parsing rule; if the last six digits of the VIN code are matched successfully, the vehicle model data is searched in the real code library based on the vehicle model in the parsing rule, and the engine model in the found vehicle model data is matched with the engine model in the parsing rule; if the engine model is matched successfully, the production year corresponding to the 10th digit of the VIN code is matched with the production year in the vehicle model data. If the production year matches successfully, it is determined that the VIN code is parsed correctly, and vehicle maintenance data is retrieved from the vehicle maintenance database based on the VIN code, and the search results are fed back to the user.
[0071] In some more specific embodiments, obtaining the VIN code to be parsed specifically includes: obtaining the VIN code input by the user; or, obtaining the vehicle nameplate image or driving license image uploaded by the user, and extracting the VIN code from the vehicle nameplate image or driving license image. The extraction method can use OCR recognition, or call third-party recognition software for recognition, such as PaddlePaddle recognition.
[0072] In some more specific implementations, the above parsing rule can be expressed as: the range of the first 11 digits of the VIN code + the range of the last 6 digits of the VIN code + the vehicle model + the engine model.
[0073] In some embodiments, a VIN parsing rule generation system is also provided, which is used to implement the above-mentioned VIN parsing rule generation method. Figure 3 As shown, the system includes:
[0074] The first data acquisition module 301 is configured to periodically acquire basic data from the VIN data used by the automobile repair shop and store it in the basic database, wherein the basic data includes the VIN code and the vehicle model and engine model corresponding to the VIN code;
[0075] The rule generation module 302 is configured to periodically generate VIN parsing rules based on the basic data in the basic database, including: classifying all VIN codes with the same first 11 digits into a first data group; from the first data group, screening target VIN codes corresponding to the same vehicle model, if the number of target VIN codes is greater than a preset threshold, sorting the target VIN codes according to the last 6 digits, determining the rule interval based on the sorting result, and finally generating a parsing rule for describing the correspondence between the VIN codes within the rule interval and the vehicle model and the engine model, and storing the parsing rule in the rule base.
[0076] In some more specific implementations, the rule generation module 302 is further used to:
[0077] When the parsing rules in the rule base are updated, determine whether there are old parsing rules in the rule base that are the same as the first 11 digits of the new parsing rules; if not, store the new parsing rules in the rule base; if yes, determine whether the rule intervals of the new parsing rules conflict with those of the old parsing rules, if not, store the new parsing rules in the rule base; if they conflict, determine the union interval of the rule interval of the old parsing rules and the rule interval of the new parsing rules, then delete the old parsing rules, and find all VIN codes in the basic database that are the same as the first 11 digits of the old parsing rules and whose last 6 digits are within the union interval, then regenerate the parsing rules based on the found VIN codes, and store the regenerated parsing rules in the rule base.
[0078] In some embodiments, a vehicle maintenance data query system based on VIN analysis is also provided, and the system is used to implement the above-mentioned vehicle maintenance data retrieval method based on VIN analysis. Figure 4 As shown, the system includes:
[0079] The second data acquisition module 401 is configured to acquire the VIN code to be parsed;
[0080] The first parsing module 402 is configured to search for the VIN code in the real code database, and if the VIN code is found, search for vehicle maintenance data in the vehicle maintenance database based on the VIN code, and feed back the search result to the user.
[0081] The above-mentioned real code library is used to store VIN codes and vehicle model data, and the vehicle model data includes brand, manufacturer, model, year, displacement, engine model, gearbox parameters, gear parameters, production year, vehicle model and other vehicle model information. The vehicle maintenance database pre-establishes the association between the vehicle model data and the vehicle maintenance data. The vehicle maintenance data includes vehicle maintenance data and accessories information.
[0082] The second parsing module 403 is configured to take the first 11 digits of the VIN code as an index and retrieve a parsing rule based on the index in the rule library when the VIN code is not found in the real code library.
[0083] If the parsing rule is retrieved, the last six digits of the VIN code are matched with the rule interval of the parsing rule; if the last six digits of the VIN code are matched successfully, the vehicle model data is searched in the real code library based on the vehicle model in the parsing rule, and the engine model in the found vehicle model data is matched with the engine model in the parsing rule; if the engine model is matched successfully, the production year corresponding to the 10th digit of the VIN code is matched with the production year in the vehicle model data. If the production year matches successfully, it is determined that the VIN code is parsed correctly, and vehicle maintenance data is retrieved from the vehicle maintenance database based on the VIN code, and the search results are fed back to the user.
[0084] In some more specific implementations, the second parsing module 403 is further used to store the corresponding relationship between the VIN code and the vehicle model data in the real code library when the VIN code is parsed correctly based on the parsing rule. In this way, the real code library can be enriched to facilitate subsequent retrieval.
[0085] It is to be understood that the structure illustrated in the embodiments of this specification does not constitute a specific limitation on the system of the embodiments of this specification. In other embodiments of the specification, the above system may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0086] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0087] 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.
[0088] It should be noted that the above examples are only specific embodiments of the present invention, and the present invention is obviously not limited to the above examples, and there are many similar variations. All variations directly derived or associated from the contents disclosed by the technicians in this field should fall within the protection scope of the present invention.
Claims
1. A VIN parsing rule generation method, characterized in that: include: Building a basic database includes: regularly acquiring basic data from VIN data used by automobile repair shops and storing the basic data in the basic database, wherein the basic data includes a VIN code and a vehicle model and an engine model corresponding to the VIN code; Generate VIN parsing rules based on the basic data in the basic database on a regular basis, including: grouping all VIN codes with the same first 11 digits into a first data group; screening target VIN codes corresponding to the same vehicle model from the first data group, and if the number of the target VIN codes is greater than a preset threshold, sorting the target VIN codes according to the last 6 digits, determining a rule interval based on the sorting result, and finally generating a parsing rule for describing the corresponding relationship between the VIN codes within the rule interval and the vehicle model and the engine model, and storing the parsing rule in a rule base; When the parsing rule in the rule base is updated, determine whether there is an old parsing rule in the rule base that is the same as the first 11 digits of the new parsing rule; if not, store the new parsing rule in the rule base; if yes, determine whether the rule interval of the new parsing rule conflicts with that of the old parsing rule, if not, store the new parsing rule in the rule base; if so, determine the union interval of the rule interval of the old parsing rule and the rule interval of the new parsing rule, then delete the old parsing rule, and find all VIN codes in the basic database that are the same as the first 11 digits of the old parsing rule and whose last 6 digits are within the union interval, then regenerate the parsing rule based on the found VIN code, and store the regenerated parsing rule in the rule base.
2. The method according to claim 1, characterized in that The parsing rule is expressed as: the range of the first 11 digits of the VIN code + the range of the last 6 digits of the VIN code + the vehicle model + the engine model.
3. A vehicle maintenance data retrieval method based on VIN analysis, characterized in that: include: Get the VIN code to be parsed; The VIN code is searched in the real code database. If the VIN code is found, the vehicle maintenance data is searched in the vehicle maintenance data database based on the VIN code, and the search result is fed back to the user; the real code database is used to store the VIN code and vehicle model data, and the vehicle model data includes brand, manufacturer, vehicle model, year, displacement, engine model, gearbox parameters, gear parameters, production year, and vehicle model; the vehicle maintenance data database pre-establishes the association between the vehicle model data and the vehicle maintenance data; the vehicle maintenance data includes vehicle maintenance data and accessories information; If the VIN code is not found in the real code library, the first 11 digits of the VIN code are taken as an index, and a parsing rule is retrieved from a rule library based on the index; the parsing rule is constructed according to the method according to any one of claims 1 to 2; If the parsing rule is retrieved, the last six digits of the VIN code are matched with the rule interval of the parsing rule; if the last six digits of the VIN code are matched successfully, the vehicle model data is searched in the real code library based on the vehicle model in the parsing rule, and the engine model in the found vehicle model data is matched with the engine model in the parsing rule; if the engine model is matched successfully, the production year corresponding to the 10th digit of the VIN code is matched with the production year in the vehicle model data. If the production year matches successfully, it is determined that the VIN code is parsed correctly, and vehicle maintenance data is retrieved from the vehicle maintenance database based on the VIN code, and the search results are fed back to the user.
4. The method according to claim 3, characterized in that The step of obtaining the VIN code to be parsed specifically includes: Get the VIN code entered by the user; Alternatively, a vehicle nameplate image or a driving license image uploaded by a user is obtained, and the VIN code is extracted from the vehicle nameplate image or the driving license image.
5. The method according to claim 4, characterized in that The parsing rule is expressed as: the range of the first 11 digits of the VIN code + the range of the last 6 digits of the VIN code + the vehicle model + the engine model.
6. A VIN parsing rule generation system, characterized in that: include: A first data acquisition module is configured to periodically acquire basic data from VIN data used by automobile repair shops and store it in a basic database, wherein the basic data includes a VIN code and a vehicle model and an engine model corresponding to the VIN code; A rule generation module is configured to periodically generate VIN parsing rules based on the basic data in the basic database, including: grouping all VIN codes with the same first 11 digits into a first data group; From the first data group, target VIN codes corresponding to the same vehicle model are screened; if the number of the target VIN codes is greater than a preset threshold, the target VIN codes are sorted according to the last 6 digits, a rule interval is determined based on the sorting result, and finally a parsing rule is generated for describing the correspondence between the VIN codes within the rule interval and the vehicle model and the engine model, and the parsing rule is stored in a rule base; when the parsing rule in the rule base is updated, it is determined whether there is an old parsing rule in the rule base that is the same as the first 11 digits of the new parsing rule; if not, the new parsing rule is updated. The rule is stored in the rule base; if so, it is determined whether the rule interval of the new parsing rule conflicts with that of the old parsing rule, if not, the new parsing rule is stored in the rule base; if so, the union interval of the rule interval of the old parsing rule and the rule interval of the new parsing rule is determined, and then the old parsing rule is deleted, and all VIN codes whose first 11 digits are the same as those of the old parsing rule and whose last 6 digits are within the union interval are found in the basic database, and then the parsing rule is regenerated based on the found VIN code, and the regenerated parsing rule is stored in the rule base.
7. A vehicle maintenance data query system based on VIN analysis, characterized in that: include: A second data acquisition module is configured to acquire the VIN code to be parsed; The first parsing module is configured to search the VIN code in the real code library, and if the VIN code is retrieved, the vehicle maintenance data is searched in the vehicle maintenance data library based on the VIN code, and the search result is fed back to the user; the real code library is used to store the VIN code and vehicle model data, and the vehicle model data includes brand, manufacturer, model, year, displacement, engine model, gearbox parameters, gear parameters, production year, and vehicle model; the vehicle maintenance data library pre-establishes the association relationship between the vehicle model data and the vehicle maintenance data; the vehicle maintenance data includes vehicle maintenance data and accessories information; a second parsing module, configured to, when the VIN code is not retrieved in the real code library, take the first 11 digits of the VIN code as an index, and retrieve a parsing rule based on the index in a rule library; the parsing rule is constructed according to the method according to any one of claims 1 to 2; If the parsing rule is retrieved, the last six digits of the VIN code are matched with the rule interval of the parsing rule; if the last six digits of the VIN code are matched successfully, the vehicle model data is searched in the real code library based on the vehicle model in the parsing rule, and the engine model in the found vehicle model data is matched with the engine model in the parsing rule; if the engine model is matched successfully, the production year corresponding to the 10th digit of the VIN code is matched with the production year in the vehicle model data. If the production year matches successfully, it is determined that the VIN code is parsed correctly, and vehicle maintenance data is retrieved from the vehicle maintenance database based on the VIN code, and the search results are fed back to the user.
8. The system according to claim 7, characterized in that The second parsing module is further configured to store the corresponding relationship between the VIN code and the vehicle model data in the real code library when the VIN code is parsed correctly based on the parsing rule.
Citation Information
Patent Citations
Method and system for acquiring automobile four-wheel positioning model data
CN101382470A
System and method for carrying out searching match on automobile component products by using VIN (Vehicle Identification Number)
CN102930000A
Method for recognizing vehicle type through vehicle identification number (VIN)
CN103049498A
Vehicle washing device, system and method capable of automatically identifying vehicle types
CN105205468A
Method and apparatus for automatically identifying vehicle configuration through VIN code of passenger vehicle
CN107491776A
