Component classification and identification method and electronic equipment

By screening and coding the initial classification data of components and constructing a classification identification dictionary and tree structure, the problems of low component classification identification efficiency and poor versatility are solved, and efficient identification and management of component classification are achieved.

CN114461878BActive Publication Date: 2024-10-01AIPCBA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210043273.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-14
Publication Date
2024-10-01
Estimated Expiration
2042-01-14

AI Technical Summary

Technical Problem

The efficiency of component classification and identification in the existing technology is low and lacks versatility, resulting in complex component classification management and reducing the efficiency of information interaction between different manufacturers.

Method used

By obtaining the initial classification data of known components, filtering and encoding classification data at different levels, generating classification coding data for identifying the classification of unknown components, and building a classification identification dictionary and tree structure based on known components. .

Benefits of technology

It improves the effectiveness and efficiency of component classification identification, establishes the parent class relationship between components, and simplifies the query and management of classified data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114461878B_ABST
    Figure CN114461878B_ABST
Patent Text Reader

Abstract

The present application provides a component classification and identification method and electronic equipment, which includes obtaining initial classification data of known components; screening the initial classification data of known components to obtain classification data of different levels; sorting and encoding the classification data of different levels to generate classification and coding data of known components; and classifying and identifying unknown components based on the classification and coding data to generate classification and coding data of unknown components. This component classification and identification method forms a component classification and identification dictionary based on known components by hierarchical screening and classification and coding construction of existing component data, and at the same time completes the construction of a classification and coding dictionary containing a tree structure, which lays a solid foundation for the later use and query of component classification data, and greatly improves the effectiveness and efficiency of component classification and identification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic components, and in particular to a component classification and identification method and an electronic device. Background Art

[0002] In the electronics industry, there are many and complex types of components, with the number reaching thousands. Currently, different users usually use different classification methods to build different classification structures, which makes the component classification not universal, and it is still cumbersome and complicated to use, greatly reducing the efficiency of information exchange between different manufacturers. In order to more effectively manage the classification of these components, accurately classify the components, and establish a hierarchical relationship structure between each classification, it is necessary to design an effective component classification and identification method to improve the current problem. Summary of the invention

[0003] In view of this, the present application provides a component classification and identification method and an electronic device, which solves the technical problems of low efficiency and poor versatility in the prior art for component classification and identification.

[0004] According to one aspect of the present application, the present application provides a component classification and identification method, which includes: obtaining initial classification data of known components; screening the initial classification data of the known components to obtain classification data of different levels; sorting and encoding the classification data of different levels respectively to generate classification coding data of the known components; classifying and identifying unknown components according to the classification coding data to generate classification coding data of the unknown components.

[0005] In one embodiment, the initial classification data of the known components is filtered to obtain classification data of different levels, including: filtering the initial classification data of the components to obtain top-level classification data; obtaining first remaining classification data after removing the top-level classification data based on the top-level classification data; filtering the first remaining classification data to obtain middle-level classification data; obtaining second remaining classification data after removing the middle-level classification data based on the middle-level classification data; filtering the second remaining classification data to obtain bottom-level classification data; wherein the top-level classification data includes the middle-level classification data, and the middle-level classification data includes the bottom-level classification data.

[0006] In one embodiment, the classification data of different levels are sorted and encoded respectively to generate classification coding data of the components, including: obtaining top-level classification data and corresponding top-level encoding formula; encoding the top-level classification data according to the top-level classification data and the corresponding top-level encoding formula to generate classification coding data of the top-level classification data; obtaining middle-level classification data and corresponding middle-level encoding formula; encoding the middle-level classification data according to the middle-level classification data and the corresponding middle-level encoding formula to generate classification coding data of the middle-level classification data; obtaining bottom-level classification data and corresponding bottom-level encoding formula; encoding the bottom-level classification data according to the bottom-level classification data and the corresponding bottom-level encoding formula to generate classification coding data of the bottom-level classification data.

[0007] In one embodiment, the middle-level encoding formula is generated according to the top-level encoding formula; and the bottom-level encoding formula is generated according to the middle-level encoding formula.

[0008] In one embodiment, the unknown components are classified and identified according to the classification code data to generate the classification code data of the unknown components. When the classification data of the unknown components cannot be identified, the method includes: obtaining the classification data of the unknown components; traversing the classification data of the unknown components and the classification data corresponding to the classification code to obtain the similarity score between the classification data of the unknown components and the classification data corresponding to the classification code; obtaining the classification data corresponding to the classification code with the highest similarity score among the classification codes as the similar classification code of the unknown components; and generating the target classification code of the unknown component based on the similar classification code.

[0009] In one embodiment, traversing the classification data of the unknown component and the classification code to obtain the similarity score between the classification data of the unknown component and the classification code includes: traversing the classification data of the unknown component and the classification data corresponding to the classification code to obtain the editing distance between the classification data of the unknown component and the classification data corresponding to the classification code; calculating the editing distance according to a preset relationship to generate a similarity score between the classification data of the unknown component and the classification data corresponding to the classification code.

[0010] In one embodiment, the unknown components are classified and identified based on the classification code data. When the classification data of the unknown components belongs to the classification of multiple known components, it includes: obtaining the source data of the unknown component; obtaining a number of the classification data that are ranked top in descending order containing the source data as the initial classification data of the unknown component; traversing the target classification codes of the initial classification data of the unknown component, and obtaining the target classification code with the largest number of repetitions in the target classification codes step by step as the main classification code of the unknown component.

[0011] In one embodiment, the obtaining of several classification data containing the largest number of the source data as the initial classification data of the unknown component includes: obtaining each classification containing the classification data of the unknown component; traversing the classification containing the classification data of the unknown component and the source data of the unknown component, obtaining the number of the source data in each classification and sorting them; obtaining several classifications with the first two numbers of the source data sorted from most to least as the initial classification of the unknown component.

[0012] In one embodiment, the target classification codes of the initial classification data of the unknown component are traversed, and the target classification code with the most repetitions among the target classification codes is obtained step by step as the main classification code of the unknown component, including: traversing the target classification codes of the unknown component, and obtaining the target classification code with the most repetitions of the top classification code among the target classification codes as the middle-level screening target; traversing the middle-level screening targets, and obtaining the target classification code with the most repetitions of the middle-level classification code among the middle-level screening targets as the bottom-level screening targets; traversing the bottom-level screening targets, and obtaining the target classification code whose bottom-level screening targets contain the bottom-level classification code as the main classification code of the unknown component.

[0013] According to a second aspect of the present application, the present application provides an electronic device, which includes a processor; and a memory for storing executable information of the processor; wherein the processor is used to execute the component classification and identification method described in any one of the above embodiments.

[0014] The component classification and identification method provided by the present application specifically includes obtaining the initial classification data of known components; screening the initial classification data of known components to obtain classification data of different levels; sorting and encoding the classification data of different levels respectively to generate classification and coding data of known components; and classifying and identifying unknown components according to the classification and coding data to generate classification and coding data of unknown components. This component classification and identification method forms a component classification and identification dictionary based on known components by hierarchical screening and classification and coding construction of existing component data, and at the same time completes the construction of a classification and coding dictionary containing a tree structure. For any of the classification and coding data, the user can find its parent class, parent class of parent class and other upper-level relationships through its coding form, which lays a solid foundation for the later use and query of component classification data, and greatly improves the effectiveness and efficiency of component classification and identification. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 The figure is a flow chart of a component classification and identification method provided in one embodiment of the present application.

[0016] Figure 2 The figure is a flow chart of a method for obtaining classification data of different levels in a component classification and identification method provided in another embodiment of the present application.

[0017] Figure 3 The figure is a flow chart of a method for encoding classification data in a component classification and identification method provided in another embodiment of the present application.

[0018] Figure 4 The figure is a flow chart of an unknown component identification method in a component classification and identification method provided in another embodiment of the present application.

[0019] Figure 5 The figure is a flow chart of an unknown component identification method in a component classification and identification method provided in another embodiment of the present application.

[0020] Figure 6 The figure is a flow chart of an unknown component identification method in a component classification and identification method provided in another embodiment of the present application.

[0021] Figure 7 The figure is a flow chart of a method for obtaining an initial classification of unknown components in a component classification and identification method provided in another embodiment of the present application.

[0022] Figure 8 The figure is a flow chart of a method for obtaining unknown component classification codes in a component classification and identification method provided in another embodiment of the present application.

[0023] Fig. 9 Shown is a schematic structural diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0024] In the description of the application, the meaning of "multiple" is at least two, for example, two, three, etc., unless otherwise clearly and specifically limited. In the embodiment of the present application, all directional indications (such as up, down, left, right, front, back, top, bottom ...) are only used to explain the relative position relationship, motion conditions, etc. between the components under a certain specific posture (as shown in the drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their deformations are intended to cover non-exclusive inclusions. For example, the process, method, system, product or equipment comprising a series of steps or units are not limited to the steps or units listed, but optionally also include the steps or units not listed, or optionally also include other steps or units inherent to these processes, methods, products or equipment.

[0025] In addition, the reference to "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0027] Figure 1 FIG. 1 is a flow chart of a component classification and identification method provided by an embodiment of the present application. Figure 1 As shown, this component classification and identification method specifically includes the following steps:

[0028] Step 100: Obtain initial classification data of known components.

[0029] Known components refer to existing components in the system database, including various categories of components obtained through different channels; initial classification data refers to the classification data of known components existing in the system. First, the existing known components in the system are classified, and these classification data are obtained at the same time. This is the basis for further division of the classification data. The classification of known components is relatively simple. Managing the initial classification data of known components first makes this component classification and identification method more efficient.

[0030] Step 200: Screening the initial classification data of known components to obtain classification data at different levels.

[0031] Due to the different classification bases of components, the classification of some components covers a wider range, which is the top-level classification, while the classification of some components covers a smaller range, and the components referred to are more refined, which is the bottom-level classification. Therefore, the classification data of different levels refers to the classification data of each level between the top-level classification and the bottom-level classification. The existing initial classification data in the system contains classification data of different levels. Therefore, by first filtering the above initial classification data, the existing classification data of different levels in the known components can be obtained. Therefore, when the system identifies the classification of the current component, it can compare layer by layer to improve the efficiency of obtaining the classification data of the current component.

[0032] Step 300: Sort and encode the classification data at different levels respectively to generate classification coding data of known components.

[0033] Classification code data is the code for establishing the classification identification framework of components. Using classification codes to refer to the classification data of a group of components can more intuitively query and apply the classification data of components. It can be seen that sorting and encoding classification data at different levels can more effectively establish a classification identification tree structure of known components.

[0034] Step 400: Classify and identify unknown components according to the classification coding data, and generate classification coding data for the unknown components.

[0035] Unknown components refer to components received by the system, which can be components of the same category as the known components in the current system, or new components of different categories from the known components in the current system. The characteristics of the unknown components are compared with the classification coding data to generate the classification coding data of the unknown components. As the system continuously obtains the classification coding data of unknown components, the classification identification tree structure of the components constituted by the classification coding data is also constantly being improved and expanded, and the amount of classification data therein is also constantly increasing, thereby making the subsequent classification and identification process of unknown components faster and more efficient.

[0036] The component classification and identification method provided by the present application specifically includes obtaining the initial classification data of known components; screening the initial classification data of known components to obtain classification data of different levels; sorting and encoding the classification data of different levels respectively to generate classification and coding data of known components; and classifying and identifying unknown components according to the classification and coding data to generate classification and coding data of unknown components. This component classification and identification method forms a component classification and identification dictionary based on known components by hierarchical screening and classification and coding construction of existing component data, and at the same time completes the construction of a classification and coding dictionary containing a tree structure. For any of the classification and coding data, the user can find its parent class, parent class of the parent class and other upper-level relationships through its coding form, which lays a solid foundation for the later use and query of component classification data, and greatly improves the effectiveness and efficiency of component classification and identification.

[0037] In one possible implementation, Figure 2 FIG. 1 is a flow chart of a method for obtaining classification data of different levels in a component classification and identification method provided by another embodiment of the present application. Figure 2 As shown, step 200 of the component classification and identification method may further include the following steps:

[0038] Step 210: Screen the initial classification data of components to obtain top-level classification data.

[0039] The top-level classification data is the most extensive type of data in the component classification data, which can also be called the first-level classification, such as "wire", "structural parts", "resistors" and "capacitors". By first filtering this type of top-level classification data, you can use less classification data to cover all types of components, which is convenient for preliminary classification of components.

[0040] Step 220: According to the top-level classification data, obtain the first remaining classification data after removing the top-level classification data.

[0041] The first remaining classification data is non-top-level data in the initial classification data. When the top-level classification data is determined, the first remaining classification data can be obtained by removing the top-level classification data. Only after the first remaining classification data is obtained can the subsequent screening and classification be continued.

[0042] Step 230: Screen the first remaining classification data to obtain middle-level classification data.

[0043] The middle-level classification data refers to the classification data between the top-level classification data and the bottom-level classification data. It may contain only one layer of data or multiple layers of data, such as second-level classification data, third-level classification data, and fourth-level classification data. The specific number of middle-level classification data should depend on the specific application scenario. This application does not further limit the specific number of layers of the middle-level classification data. When the top-level classification data is determined, the lower-level data of each top-level classification data can be screened to screen out a group of classification data whose inclusion range is second only to the top-level classification data as the middle-level classification data. For example, the top-level classification data of "wire" can contain middle-level classification data such as "accessories" and "audio". By analogy, multiple parallel middle-level classification data are screened out, and the lower-level middle-level classification data contained in each middle-level classification data can be further screened out. According to the above-mentioned screening method of middle-level classification data, the first remaining classification data can be classified layer by layer, so as to obtain hierarchical middle-level classification data, and then form a tree-like classification structure, which is convenient for the subsequent classification and identification of unidentified components.

[0044] Step 240: According to the middle-level classification data, obtain the second remaining classification data after removing the middle-level classification data.

[0045] The second remaining classification data refers to the initial classification data after removing the top-level classification data and all the middle-level classification data. After the middle-level classification data is determined, it can be excluded to obtain the second remaining classification data, so as to determine the bottom-level classification data in the next step, and finally form a complete tree structure.

[0046] Step 250: Screen the second remaining classification data to obtain underlying classification data.

[0047] The bottom-level classification data is the initial classification data that cannot be further classified. The bottom-level classification data also represents some components, but the components it contains are only one type of components that can be directly determined. The top-level classification data, the middle-level classification data, and the bottom-level classification data together form a complete tree structure. Determining the above data is also the premise for sorting and encoding each classification data, and ultimately it can more accurately classify the unidentified components obtained later.

[0048] It should be understood that the top-level classification data includes all the middle-level classification data, and the middle-level classification data includes all the bottom-level classification data related thereto.

[0049] Specifically, Figure 3 FIG. 2 is a flow chart of a method for encoding classification data in a component classification and identification method provided by another embodiment of the present application. Figure 3 As shown, step 300 in the component classification and identification method may further include the following steps:

[0050] Step 310: Obtain top-level classification data and corresponding top-level encoding formula.

[0051] The top-level classification data refers to the classification data obtained by screening in step 210. The top-level coding refers to the coding set to establish the hierarchical relationship between the classification data at each level, which can be composed of a capital letter E and a number, wherein the capital letter E means Electronic. Once the top-level classification data and the top-level coding are determined, all the top-level classification data can be coded one by one to form a tree structure of classification coding.

[0052] It should be understood that the above encoding formula is only for illustration, and the specific encoding formula should depend on the specific application scenario. This application does not limit the specific form of the encoding formula. The same applies to the encoding formula described below and will not be repeated.

[0053] Step 320: Encode the top-level classification data according to the top-level classification data and the corresponding top-level coding formula to generate classification coding data of the top-level classification data.

[0054] The classification code data of the top-level classification data is the code corresponding to each top-level classification data, and this code is jointly determined by the top-level classification data and the top-level coding formula. The specific process is to sort all the top-level classification data, and then distribute them in order after sorting, such as code E0010, code E0020, code E0030, and so on, until all the distribution is completed, and the classification code data of the top-level classification data can be generated, that is, the top-level classification code. According to the coding data of the top-level classification data, the corresponding top-level classification data can be quickly and accurately queried. In addition, the blank numbers between the classification codes of adjacent top-level classification data can make it possible to insert other classification codes into the existing classification codes after the classification data of components outside the system is obtained later, which is convenient for management.

[0055] It should be noted that the above encoding is only for illustration. The numerical part in the specific encoding formula and the numerical interval between two adjacent top-level classification data depend on the specific application scenario. This application does not make specific limitations on the above content. The encoding corresponding to the following middle-level classification data and bottom-level classification data is the same, and will not be repeated in this article.

[0056] Step 330: Obtain middle-level classification data and corresponding middle-level encoding formula.

[0057] Similarly, for the top-level classification data, the middle-level encoding refers to the encoding method preset for the middle-level classification data, which can also be a combination of capital letter E and numbers.

[0058] Step 340: Encode the middle-level classification data according to the middle-level classification data and the corresponding middle-level coding formula to generate classification coding data of the middle-level classification data.

[0059] The classification code data of the middle-level classification data is the code corresponding to each middle-level classification data, and this code is jointly determined by the middle-level classification data and the middle-level coding formula. The specific process is to sort all the middle-level classification data, and then distribute them in order after sorting, such as code E00100010, code E00200020, code E00300030, and so on, until all the distribution is completed, and the classification code data of the middle-level classification data can be generated, that is, the middle-level classification code. According to the coding data of the middle-level classification data, the corresponding middle-level classification data can be quickly and accurately queried. In addition, leaving blank numbers between the classification codes of adjacent middle-level classification data allows other classification codes to be inserted into the existing classification codes after the classification data of components outside the system is subsequently obtained, which is convenient for management.

[0060] Step 350: Obtain the underlying classification data and the corresponding underlying encoding formula.

[0061] The underlying encoding is the encoding method preset for the underlying classification data, and may also be a combination of capital letter E and numbers.

[0062] Step 360: Encode the underlying classification data according to the underlying classification data and the corresponding underlying encoding formula to generate classification encoding data of the underlying classification data.

[0063] The classification code data of the underlying classification data is the code corresponding to each underlying classification data, and this code is jointly determined by the underlying classification data and the underlying coding formula. The specific process is to sort all the underlying classification data, and then distribute them in order, such as code E001000100010, code E002000200020, code E003000300030, and so on, until all the distribution is completed, and the classification code data of the underlying classification data can be generated, that is, the underlying classification code. According to the coding data of the underlying classification data, the corresponding underlying classification data can be quickly and accurately queried. In addition, the blank numbers between the classification codes of adjacent underlying classification data can make it possible to insert other classification codes into the existing classification codes after the classification data of components outside the system is obtained later, which is convenient for management.

[0064] It should be understood that, as shown above, the middle-level encoding is generated based on the top-level encoding, and the bottom-level encoding is generated based on the middle-level encoding. The encodings at each level have a containment or contained relationship, which makes the parent class relationship between different levels more obvious and facilitates query during subsequent use.

[0065] In one possible implementation, Figure 4 FIG. 2 is a flow chart of an unknown component identification method in a component classification identification method provided by another embodiment of the present application. Figure 4 As shown, when the classification data of the unknown component cannot be identified, step 400 in the component classification and identification method may further include the following steps:

[0066] Step 410: Obtain classification data of unknown components.

[0067] During the use of the system, the latest component classification data will be continuously received. The non-local component classification data received by the system is called unknown component classification data. Such unknown component classification data usually comes from a wide range of sources, and its classification form will also vary due to different data sources. Therefore, the system needs to compare and unify such unknown classification data, and obtain data for it, so that it can be compared with the classification data and coding data of local known components, and classified into local classification codes, so as to expand the local classification code tree structure, expand the coverage of the classification code tree structure and improve its use effect.

[0068] Step 420: traverse the classification data of the unknown component and the classification data corresponding to the classification code, and obtain the similarity score between the classification data of the unknown component and the classification data corresponding to the classification code.

[0069] The similarity score is a score value preset by the system for judging the similarity between the existing classification code and the classification data corresponding to the classification code and the classification data of the unknown component. The higher the similarity score value, the higher the similarity between the classification data corresponding to the classification code and the classification data of the unknown component. Through this similarity score calculation, it is possible to more intuitively judge the classification data of the known component that is closest to the classification data of the unknown component, thereby more accurately classifying the unknown component into the tree structure of the classification code.

[0070] Step 430: Obtain the classification code with the highest similarity score among the classification codes as the similar classification code of the classification data of the unknown component.

[0071] The similar classification code is the classification code of the classification data with the highest similarity score with the classification data of the unknown component among the already encoded classification data. The classification code of this classification data is used as the initial target classification code of the unknown component, and the error rate is low.

[0072] Step 440: Generate a target classification code for the unknown component based on the similar classification code.

[0073] The target classification code is the classification code finally determined after the unknown component is compared. After the similar classification code is verified by manual verification and other processes, it is finally determined as the target classification code of the unknown component, which reduces the error rate and ensures the use effect of the classification code tree structure.

[0074] Specifically, Figure 5 FIG. 2 is a flow chart of an unknown component identification method in a component classification identification method provided by another embodiment of the present application. Figure 5 As shown, step 420 may also include the following steps:

[0075] Step 4201: traverse the classification data of the unknown component and the classification data corresponding to the classification code, and obtain the edit distance between the classification data of the unknown component and the classification data corresponding to the classification code.

[0076] Edit distance refers to the minimum number of edit operations required to change one string into another. Edit operations include adding a character, modifying a character, and deleting a character. The fewer the number of edits, the smaller the edit distance and the greater the similarity between the two strings. If the two strings are exactly the same, the edit distance is 0. The edit distance here can be the "Levenstein distance" which allows the three edit operations of adding, deleting, and replacing characters, and the longest common substring length only allows the two edit operations of adding and deleting characters. By calculating the edit distance between the classification data of the unknown component and the classification data corresponding to the classification code, the classification data with a higher similarity to the unknown component in the classification code tree structure can be obtained, so that the unknown components can be classified more accurately.

[0077] Step 4202: Calculate the edit distance according to a preset relationship to generate a similarity score between the classification data of the unknown component and the classification data corresponding to the classification code.

[0078] The preset relationship is a transformation formula for mathematical calculation of the edit distance, such as negation, etc. After calculation, the similarity score between the classification data of the unknown component and the classification data corresponding to the classification code can be obtained, and this similarity score is more intuitive and the judgment process is more convenient.

[0079] Furthermore, Figure 6 FIG. 2 is a flow chart of an unknown component identification method in a component classification identification method provided by another embodiment of the present application. Figure 6As shown, when the classification data of an unknown component contains multiple different source data, the classification data of the different source data of the unknown component belongs to the classification of different known components after the above steps, that is, it is included in the classification of multiple known components at the same time, so that the unknown component corresponds to multiple target classification codes. However, in business use and some algorithm designs, it is often required to exist in only one classification, so we need to select the most reliable and most commonly used main classification from many classifications to use. In this case, step 400 can further include the following steps based on the above steps:

[0080] Step 450: Obtain source data of unknown components.

[0081] The source data of unknown components refers to the data form of the unknown components at the data source, including the data content and the amount of data. Obtaining the source data of unknown components is a prerequisite for subsequent classification and screening of this source data.

[0082] Step 460: Obtain a number of classification data that are ranked top in descending order of the number of source data as initial classification data of unknown components.

[0083] Initial classification data is the classification data determined by the number of source data under each classification data. When there are more source data under a certain classification data, it means that the probability of this classification data being the target classification data of the source data is higher. Therefore, it is more reliable to first filter the classification data based on the number of source data. For example, sort the number of source data contained in all current classification data from most to least, and select the classification data with the highest number of source data as the initial classification data, so that reasonable initial classification data and main classification codes can be further filtered out.

[0084] Step 470: traverse the target classification codes of the initial classification data of the unknown component, obtain the number of repetitions of the target classification code of each initial classification data of the unknown component level by level, and select the target classification code with the largest number of repetitions in the target classification code level by level as the main classification code of the unknown component.

[0085] The initial classification data involved in this step is the initial classification data corresponding to the source data screened out in step 460. Similarly, the target classification code used to screen the main classification code is also the target classification code of the initial classification data corresponding to the above source data. The main classification code is the most reliable and most commonly used target classification code screened out from all target classification codes of unknown components, and is the final target classification code of the unknown component in the coding tree structure. It should be understood that each target classification code can simultaneously include the top-level classification code, the middle-level classification code and the bottom-level classification code, or only one or two levels of classification codes. The meaning of obtaining the target classification code step by step is: first compare the top-level classification code part of all target classification codes, obtain the target classification code containing the most repetitions of the top-level classification code for comparison at the next level; secondly compare the target classification code with the most repetitions of the middle-level classification code in the current remaining target classification codes for comparison at the next level, and so on, until the bottom-level classification code is screened out, that is, all current target classification codes are not repeated. The target classification code obtained through the above screening process is the target classification code closest to the classification of the unknown components, and it is more reliable to use this target classification code as the classification code of the unknown components. Among them, the initial classification data with the most repetitions is the initial classification data closest to the bottom classification data. Finally, the initial classification data closest to the bottom classification data is selected, that is, the target classification code containing the bottom classification code. Since its classification is more refined than the top classification data and the middle classification data, it is more accurate to use it as the classification data of the unknown components.

[0086] Specifically, Figure 7 FIG. 2 is a flow chart of a method for obtaining unknown component classification codes in a component classification identification method provided by another embodiment of the present application. Figure 7 As shown, step 460 may further include the following steps:

[0087] Step 4601: Obtain each classification containing classification data of unknown components.

[0088] The classification here refers to the component classification represented by each classification data in each level. After obtaining the classification of known components, the classification data of unknown components can be compared to obtain the classification code that best matches the unknown components, and the unknown components can be incorporated into the existing classification tree structure.

[0089] Step 4602: Traverse the categories containing the classification data of unknown components and the source data of the unknown components, obtain the number of source data in each category and sort them.

[0090] Since there are often multiple source data, after traversing the categories containing the classification data of unknown components and the source data of unknown components in the existing tree structure, the number of source data in each category can be obtained. The more the number of source data corresponding to the category, the closer this category is to the category of the unknown component. Therefore, it is necessary to obtain the number of source data in each category and sort them to intuitively obtain the category with the largest number of source data.

[0091] Step 4603: Obtain several categories with the first two digits of the source data sorted from most to least as the initial categories of unknown components.

[0092] The initial classification of unknown components refers to the classification obtained by comparing the number of source data under each category. This process is a preliminary comparison and further verification is required to obtain a more accurate classification.

[0093] In one possible implementation, Figure 8 FIG. 2 is a flow chart of a method for obtaining unknown component classification codes in a component classification identification method provided by another embodiment of the present application. Figure 8 As shown, step 470 may further include the following steps:

[0094] Step 4701: traverse the target classification codes of unknown components, and obtain the target classification code with the most repeated top-level classification codes in the target classification codes as the middle-level screening target.

[0095] The middle-level screening target is the classification code with the largest number of repetitions of the top-level classification code in the target classification code of the unknown component. After obtaining the middle-level screening target, the next-level classification code can be screened.

[0096] Step 4702: traverse the middle-level screening targets, obtain the target classification code with the largest number of repetitions of the middle-level classification code in the middle-level screening targets, and use it as the bottom-level screening target.

[0097] The bottom-level screening target is the classification code with the largest number of repetitions of the middle-level classification code in the target classification code of the unknown component. After obtaining the middle-level screening target, the next-level classification code can be screened.

[0098] Step 4703: traverse the bottom-level screening targets, and obtain the target classification codes containing the bottom-level classification codes in the bottom-level screening targets as the main classification codes of the unknown components.

[0099] The target classification code with the most repetitions of the underlying classification code in the underlying screening target can be determined as the target classification code closest to the classification of the unknown component. Therefore, it is more reliable to use it as the main classification code of the unknown component.

[0100] It should be noted that when there are two or more main classification codes finally screened out, a target classification code can be randomly selected as the final main classification code to ensure that the main classification code of the unknown component is unique.

[0101] Below, reference Fig. 9 To describe an electronic device according to an embodiment of the present application. Fig. 9 Shown is a schematic structural diagram of an electronic device provided in one embodiment of the present application.

[0102] like Fig. 9 As shown, the electronic device 600 includes one or more processors 601 and a memory 602 .

[0103] The processor 601 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or information execution capabilities, and may control other components in the electronic device 600 to perform desired functions.

[0104] The memory 601 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program information may be stored on the computer-readable storage medium, and the processor 601 may run the program information to implement the component classification and identification method of each embodiment of the present application described above or other desired functions.

[0105] In one example, the electronic device 600 may further include: an input device 603 and an output device 604 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0106] The input device 603 may include, for example, a keyboard, a mouse, etc.

[0107] The output device 604 can output various information to the outside. The output device 604 can include, for example, a display, a communication network and a remote output device connected thereto.

[0108] Of course, to simplify, Fig. 9 Only some of the components related to the present application in the electronic device 600 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 600 may also include any other appropriate components.

[0109] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program information, which, when executed by a processor, enables the processor to execute the steps of the component classification and identification method according to various embodiments of the present application described in this specification.

[0110] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0111] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program information is stored. When the computer program information is executed by a processor, the processor executes the steps of the component classification and identification method according to various embodiments of the present application described in this specification.

[0112] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0113] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.

[0114] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.

[0115] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.

[0116] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features of the present invention.

[0117] The above description is only a preferred embodiment of the invention of the present application and is not intended to limit the invention of the present application. Any modifications, equivalent substitutions, etc. made within the spirit and principles of the invention of the present application shall be included in the protection scope of the invention of the present application.

Claims

1. A component classification and identification method, characterized in that: include: Obtaining initial classification data of known components; Screening the initial classification data of the components to obtain top-level classification data; According to the top-level classification data, obtaining first remaining classification data after removing the top-level classification data; Screening the first remaining classification data to obtain middle-level classification data; According to the middle-level classification data, obtaining second remaining classification data after removing the middle-level classification data; Screening the second remaining classification data to obtain bottom-level classification data; wherein the top-level classification data includes the middle-level classification data, and the middle-level classification data includes the bottom-level classification data; Obtain top-level classification data and corresponding top-level coding formula; According to the top-level classification data and the corresponding top-level encoding formula, the top-level classification data is encoded to generate classification encoding data of the top-level classification data; Obtain middle-level classification data and corresponding middle-level coding formula; According to the middle-level classification data and the corresponding middle-level coding formula, the middle-level classification data is encoded to generate classification coding data of the middle-level classification data; Get the underlying classification data and the corresponding underlying encoding; According to the underlying classification data and the corresponding underlying coding formula, the underlying classification data is encoded to generate classification coding data of the underlying classification data; According to the classification coding data, unknown components are classified and identified to generate classification coding data of the unknown components.

2. The component classification and identification method according to claim 1, characterized in that: The middle-level encoding formula is generated according to the top-level encoding formula; the bottom-level encoding formula is generated according to the middle-level encoding formula.

3. The component classification and identification method according to claim 1, characterized in that: The step of classifying and identifying unknown components according to the classification coding data to generate the classification coding data of the unknown components, when the classification data of the unknown components cannot be identified, includes: Get classification data of unknown components; Traversing the classification data of the unknown component and the classification data corresponding to the classification code, and obtaining a similarity score between the classification data of the unknown component and the classification data corresponding to the classification code; Obtaining classification data corresponding to the classification code with the highest similarity score among the classification codes as a similar classification code of the unknown component; A target classification code of the unknown component is generated according to the similar classification code.

4. The component classification and identification method according to claim 3, characterized in that: The traversing the classification data and the classification code of the unknown component to obtain a similarity score between the classification data and the classification code of the unknown component includes: Traversing the classification data of the unknown component and the classification data corresponding to the classification code, and obtaining the edit distance between the classification data of the unknown component and the classification data corresponding to the classification code; The edit distance is calculated according to a preset relationship to generate a similarity score between the classification data of the unknown component and the classification data corresponding to the classification code.

5. The component classification and identification method according to claim 1, characterized in that: The step of classifying and identifying unknown components according to the classification coding data, when the classification data of the unknown components belongs to the classification of multiple known components, includes: Obtaining source data of the unknown component; Acquire a number of the classification data that are ranked top in descending order of the number of the source data as the initial classification data of the unknown component; The target classification codes of the initial classification data of the unknown component are traversed, and the target classification codes with the largest number of repetitions among the target classification codes are acquired level by level as the main classification codes of the unknown component.

6. The component classification and identification method according to claim 5, characterized in that: The obtaining of the plurality of classification data containing the largest number of the source data as the initial classification data of the unknown component comprises: Obtaining each classification containing classification data of the unknown component; Traverse the categories containing the classification data of the unknown components and the source data of the unknown components, obtain the quantity of the source data in each category and sort them; The first two classifications of the source data are obtained in descending order of quantity as initial classifications of the unknown components.

7. The component classification and identification method according to claim 5, characterized in that: The traversing the target classification codes of the initial classification data of the unknown component, and gradually acquiring the target classification code with the largest number of repetitions among the target classification codes as the main classification code of the unknown component, comprises: Traversing the target classification codes of the unknown components, obtaining the target classification code with the largest number of repetitions of the top classification code among the target classification codes as a middle-level screening target; Traversing the middle-level screening targets, obtaining the target classification code with the largest number of repetitions of the middle-level classification code among the middle-level screening targets as the bottom-level screening target; The bottom-level screening targets are traversed to obtain the target classification codes of the bottom-level screening targets including the bottom-level classification codes as the main classification codes of the unknown components.

8. An electronic device, characterized in that: The electronic device comprises: Processor; and a memory for storing information executable by the processor; Wherein, the processor is used to execute the component classification and identification method described in any one of claims 1-7 above.