Methods and apparatus for material classification

By extracting and matching features from the text information of materials, the problem of poor correlation in material coding is solved, automatic classification and coding of materials is realized, and the correlation of materials and the scalability of coding are improved.

CN118364116BActive Publication Date: 2024-10-01ZHEJIANG DAHUA TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410799156.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-01
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

In the existing technology, material coding mainly relies on manual labor, which results in poor correlation between materials and the inability to effectively identify implicit correlations between materials and linkage identification problems caused by attribute changes.

Method used

By extracting features from the text information of the material, obtain the target feature set and match it with the preset feature database to obtain the feature matching results to encode the material, including missing features, partial matching and full matching, thereby realizing automatic classification of materials .

Benefits of technology

It improves the correlation between materials, solves the problem of poor material correlation caused by manual coding, realizes accurate classification and coding of materials, and enhances the scalability and portability of material coding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118364116B_ABST
    Figure CN118364116B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for material classification, including: extracting features from a text information set of a target material to obtain a target feature set, wherein the text information set includes multiple text information, and the target feature set includes multiple features, and the features correspond to the text information one by one; matching multiple features in the target feature set with a preset feature database to obtain feature matching results, wherein the feature matching results include feature missing, feature partial matching, and feature full matching; encoding the target material according to the feature matching results to obtain a target encoding result of the target material, and the target encoding result is used to classify the target material. Through the present invention, the problem of poor correlation between materials due to manual coding in the related art is solved, thereby achieving the effect of improving the correlation between materials.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the computer field, and in particular, to a material classification method and device. Background Art

[0002] Material classification is a method of classifying materials into different categories according to their properties, uses and characteristics for the convenience of management, use and processing, and material coding is a common means of material classification. At present, material coding and classification are mainly done manually, which is not only inefficient and has poor accuracy, but also because the coding is based on the creation order, without considering the hierarchy and association between material characteristics, the implicit association between materials cannot be reflected, and the classification between materials is only reflected according to the number segment. Therefore, it is easy to cause the problem of material association cannot be identified, resulting in the inability to link the material once the attribute changes.

[0003] There is currently no effective solution to the above problems. Summary of the invention

[0004] The embodiments of the present invention provide a method and device for classifying materials, so as to at least solve the problem of poor correlation between materials due to manual coding in the related art.

[0005] According to one embodiment of the present invention, a method for classifying materials is provided, comprising: extracting features from a text information set of a target material to obtain a target feature set, wherein the text information set includes multiple text information, and the target feature set includes multiple features, and the features correspond to the text information one by one; matching the multiple features in the target feature set with a preset feature database respectively to obtain a feature matching result, wherein the feature matching result includes feature missing, feature partial matching, and feature full matching, wherein the feature missing is used to indicate that a feature is missing from the target feature set or that a feature matching the feature in the target feature set does not exist in the preset feature database, the feature partial matching is used to indicate that a feature matching some features in the target feature set exists in the preset feature database, and the feature full matching is used to indicate that a feature matching all features in the target feature set exists in the preset feature database; encoding the target material according to the feature matching result to obtain a target encoding result of the target material, and the target encoding result is used to classify the target material.

[0006] In an exemplary embodiment, matching the target feature with a preset feature database includes: performing the following operations on each feature in the target feature set, wherein the feature is the current feature when performing the following operations: searching a standard library for a feature entity that matches the current feature to determine the target feature entity, wherein the preset feature database includes the standard library; searching a semantic library for a mapping relationship corresponding to the target feature entity to obtain a target mapping relationship, wherein the mapping relationship includes a mapping relationship between a feature entity and one or more semantics, and the preset feature database includes the semantic library; matching the current feature with one or more semantics in the target mapping relationship, and determining that the current feature matches the preset feature database when the current feature exists in the target mapping relationship.

[0007] In an exemplary embodiment, after determining that the current feature matches the preset feature database, the method further includes: when all the features in the target feature set match the semantic library, determining the feature matching result as a complete feature match; when there is at least one feature in the target feature set that does not match the semantic library, determining a combined semantic set, wherein the combined semantic set includes multiple combined semantics; and determining the feature matching result as a missing feature or a partial feature match based on the confidence between the target feature set and each combined semantic in the combined semantic set.

[0008] In an exemplary embodiment, determining the combined semantic set includes: determining an unmatched feature in the target feature set as a first feature, and determining a feature entity corresponding to the first feature as a first feature entity;

[0009] Determine the semantics in the first feature entity in the semantic library; combine the semantics in the first feature entity with other features to obtain a combined semantic set, wherein the other features are features in the target feature set other than the first feature.

[0010] In an exemplary embodiment, the feature matching result is determined to be feature missing or feature partial match based on the confidence between the target feature set and each combined semantic in the combined semantic set, including: when the confidences are all less than or equal to a first preset threshold, the feature matching result is determined to be feature missing; when there is a confidence greater than a second preset threshold among the confidences, the feature matching result is determined to be a feature partial match, wherein the first preset threshold is less than or equal to the second preset threshold.

[0011] In an exemplary embodiment, the target material is encoded according to the feature matching result to obtain the target coding result of the target material, including: in the case of partial feature matching and full feature matching, determining the feature entity of each feature in the target feature set; determining the level of each feature entity in the standard library; extracting the attribute value of each feature in the target feature set; determining the encoding method corresponding to each level in the preset encoding library, encoding the attribute value according to the encoding method, and obtaining the target coding result of the target material.

[0012] In an exemplary embodiment, after obtaining the target coding result of the target material, the method further includes: storing the first feature and the first feature entity in the target feature set in the semantic library; storing the target coding result, the hierarchy of each of the features in the target feature set, and the attribute value of each of the features in the target feature set in the coding library.

[0013] According to another embodiment of the present invention, a device for classifying materials is provided, comprising: an extraction module, configured to perform feature extraction on a text information set of a target material to obtain a target feature set, wherein the text information set includes a plurality of text information, and the target feature set includes a plurality of features, and the features correspond to the text information one by one; a matching module, configured to match a plurality of features in the target feature set with a preset feature database respectively to obtain a feature matching result, wherein the feature matching result includes feature missing, feature partial matching, and feature full matching, wherein the feature missing is used to indicate that a feature is missing in the target feature set or that a feature matching the feature in the target feature set does not exist in the preset feature database, the feature partial matching is used to indicate that a feature matching some features in the target feature set exists in the preset feature database, and the feature full matching is used to indicate that a feature matching all features in the target feature set exists in the preset feature database; and an encoding module, configured to encode the target material according to the feature matching result to obtain a target encoding result of the target material, wherein the target encoding result is used to classify the target material.

[0014] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program implements the steps of any of the above methods when executed by a processor.

[0015] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0016] According to yet another embodiment of the present invention, a computer program product is provided, comprising computer instructions, wherein when the computer instructions are executed by a processor, the steps of any of the above methods are implemented.

[0017] Through the present invention, feature extraction is performed on a text information set of a target material to obtain a target feature set, wherein the text information set includes multiple text information, and the target feature set includes multiple features, and the features correspond to the text information one by one; the multiple features in the target feature set are respectively matched with a preset feature database to obtain feature matching results, wherein the feature matching results include feature missing, feature partial matching and feature full matching, wherein feature missing is used to indicate that a feature is missing in the target feature set or that a feature matching the feature in the target feature set does not exist in the preset feature database, feature partial matching is used to indicate that a feature matching some features in the target feature set exists in the preset feature database, and feature full matching is used to indicate that a feature matching all features in the target feature set exists in the preset feature database; the target material is encoded according to the feature matching result to obtain a target encoding result of the target material, and the target encoding result is used to classify the target material.

[0018] By extracting features from the text information of the target material, obtaining a feature set of the target material, and encoding the target material according to the matching result between the feature set of the target material and the preset feature database, the classification of the target material is achieved. Therefore, the problem of poor correlation between materials due to manual coding in the related art can be solved, and the effect of improving the correlation between materials can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a hardware structure block diagram of a mobile terminal according to a material classification method of an embodiment of the present invention;

[0020] Figure 2 is a flow chart of a material classification method according to an embodiment of the present invention;

[0021] Figure 3 is a specific flow chart of the material classification method according to an embodiment of the present invention;

[0022] Figure 4 4 is a structural block diagram of a device for classifying materials according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0025] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a material classification method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0026] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the material classification method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0027] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0028] In this embodiment, a method running on the above mobile terminal or network architecture is provided. Figure 2 is a flow chart of a material classification method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0029] Step S202, extracting features from the text information set of the target material to obtain a target feature set, wherein the text information set includes a plurality of text information, and the target feature set includes a plurality of features, and the features correspond to the text information one by one;

[0030] The above-mentioned target materials may be materials in the security field, such as surveillance cameras, alarms, safety locks, security doors and windows, etc.; the above-mentioned text information set may be a detailed description of the target materials, such as an infrared camera used to detect objects, etc.; the above-mentioned target feature set may be specific features of the target materials, such as name, manufacturer, material, size, etc.

[0031] Optionally, a feature extraction model may be used for feature extraction, and the feature extraction model may be a machine learning model or a neural network model, and the feature extraction model may be obtained by training an industry corpus, such as a security industry corpus, etc. For example, the target material is an infrared camera, and the text information set includes: the name is infrared camera, the size is 6mm*6mm*3mm, the weight is 300g, it is used for vehicle monitoring, the material is plastic, and the manufacturer is supplier A. Then, the feature extraction model is used to extract features from the text information set, and the target set is obtained as (infrared camera, 6mm*6mm*3mm, 300g, plastic, vehicle monitoring, supplier A).

[0032] By using the feature extraction model trained with the industry corpus to extract features from the received text information set, specialized extraction of features and feature values ​​can be completed, thereby improving the accuracy of text information analysis and improving the accuracy and efficiency of material coding.

[0033] Step S204, matching multiple features in the target feature set with a preset feature database respectively to obtain feature matching results, wherein the feature matching results include feature missing, feature partial matching and feature full matching, wherein the feature missing is used to indicate that the target feature set lacks features or that the preset feature database does not contain features that match the features in the target feature set, the feature partial matching is used to indicate that the preset feature database contains features that match some features in the target feature set, and the feature full matching is used to indicate that the preset feature database contains features that match all features in the target feature set;

[0034] The above-mentioned preset feature database is a database for storing the mapping relationship, and the database may include a standard library, a semantic library, a structure identification library, etc., for example:

[0035] The standard library can be used to store the mapping relationship between feature entities and the level where the feature entities are located. The storage method can be , where μ i is a feature entity, a i For this feature entity, the level is as follows, for example, {(camera, 1), (door lock, 1), (6*6*3, 2), (monitoring, 4), (supplier, 5)};

[0036] The semantic library can be used to store the mapping relationship between feature entities and one or more semantics. The storage method can be ,in, For multiple semantics, μ 1 It is a feature entity, such as camera: (camera, infrared camera, PTZ camera, fixed camera), monitoring (monitoring, vehicle-mounted monitoring, face monitoring, home monitoring), 6*6*3 (6*6*3, 6mm*6mm*3mm, length 6mm width 6mm height 3mm, 6mm×6mm×3mm), plastic (plastic, polymer compound, polyethylene, polyvinyl chloride), etc.

[0037] The structure identification library can be used to store the mapping relationship between attributes and attribute values. The storage method can be , where c i is the attribute, d i The attribute value corresponding to this attribute, such as {(name, infrared camera), (size, 6*6*3), (weight, 300), (purpose, vehicle monitoring)}.

[0038] Each feature in the target feature set is matched with a preset feature database to obtain a feature matching result. The feature matching result includes feature missing, feature partial match and feature full match. For example, the feature missing is used to indicate that there is a lack of features in the target feature set or that there are no features in the preset feature database that match the features in the target feature set. The feature partial match is used to indicate that there are features in the preset feature database that match some features in the target feature set. The feature full match is used to indicate that there are features in the preset feature database that match all features in the target feature set.

[0039] By dividing the feature data into a standard library, a semantic library, and a structural identification library for storing a variety of mapping relationships, the correlation between various data is improved. At the same time, the standardized product feature library can facilitate subsequent product data analysis and enhance the scalability of material classification.

[0040] Specifically, the following operations are performed on each feature in the target feature set, and the feature during the following operations is the current feature: searching a feature entity matching the current feature in a standard library to determine the target feature entity, wherein the preset feature database includes the standard library; searching a mapping relationship corresponding to the target feature entity in a semantic library to obtain a target mapping relationship, wherein the mapping relationship includes a mapping relationship between a feature entity and one or more semantics, and the preset feature database includes the semantic library; matching the current feature with one or more semantics in the target mapping relationship, and when the current feature exists in the target mapping relationship, determining that the current feature matches the preset feature database.

[0041] As an optional implementation, the extracted target feature set is (infrared camera, 6mm*6mm*3mm, 300g, plastic, vehicle-mounted monitoring, supplier A). When the current feature is an infrared camera, a feature entity matching the infrared camera is searched in the standard library to determine that the target feature entity is a camera. Then, a mapping relationship corresponding to the camera is searched in the semantic library to obtain a target mapping relationship, camera: (camera, infrared camera, pan-tilt camera, fixed camera). The infrared camera is matched with multiple semantics in the target mapping relationship. Since the infrared camera exists in the target mapping relationship, the current feature infrared camera matches the preset feature database; or, when the current feature is supplier A, a feature entity matching supplier A is searched in the standard library to determine that the target feature entity is a supplier. Then, a mapping relationship corresponding to the supplier is searched in the semantic library to obtain a target mapping relationship, supplier: (supplier, supplier B, supplier C). Supplier A is matched with multiple semantics in the target mapping relationship. Since supplier A does not exist in the target mapping relationship, the current feature infrared camera does not match the preset feature database.

[0042] Step S206, encoding the target material according to the feature matching result to obtain a target encoding result of the target material, and the target encoding result is used to classify the target material.

[0043] Specifically, in the case of partial feature matching and full feature matching, the feature entity of each feature in the target feature set is determined; the level of each feature entity is determined in the standard library; the attribute value of each feature in the target feature set is extracted; the encoding method corresponding to each level is determined in the preset encoding library, the attribute value is encoded according to the encoding method, and the target encoding result of the target material is obtained.

[0044] The above-mentioned coding library can store the mapping relationship between material coding and attributes and attribute values. Its storage method can be , where δ i is the material code, a i is the level where the feature entity is located, c i is the attribute, d i The attribute value corresponding to this attribute is

[0045] For example, the target feature set of the target material (infrared camera, 6mm*6mm*3mm, 300g, plastic, on-board monitoring, supplier A) matches the preset feature database and the result is that all features match. The feature entities of each feature in (infrared camera, 6mm*6mm*3mm, 300g, plastic, on-board monitoring, supplier A) are determined to be camera, 6*6*3, 300, plastic, monitoring, and supplier. The levels of each feature entity are determined to be 1, 2, 6, 3, 4, and 5 in the standard library, and the encoding method corresponding to each level is determined in the preset encoding library. At the same time, the attribute value of each feature in the target feature set is extracted as infrared camera, 6*6*3, 300, plastic, on-board monitoring, and supplier A. The attribute value is encoded according to the encoding method to obtain the target encoding result of the target material, where the encoding result can be N infrared camera-S6*6*3-T plastic-A on-board monitoring-M supplier A-W300, etc. It should be noted that the specific encoding method can be set according to actual conditions, and this application is not limited here.

[0046] Optionally, in the case of missing features, the information of the target material is reacquired to obtain a reacquired text information set; and the target material is encoded under the condition that the reacquired text information set satisfies a partial feature match or a full feature match.

[0047] Optionally, the executor of the above steps may be a background processor, or other devices with similar processing capabilities, or a machine that integrates at least an image acquisition device and a data processing device, wherein the image acquisition device may include a graphics acquisition module such as a camera, and the data processing device may include a computer, a mobile phone or other terminal, but is not limited thereto.

[0048] Through the above steps, feature extraction is performed on the text information set of the target material to obtain a target feature set, wherein the text information set includes multiple text information, and the target feature set includes multiple features, and the features correspond to the text information one by one; the multiple features in the target feature set are matched with the preset feature database respectively to obtain feature matching results, wherein the feature matching results include feature missing, feature partial matching and feature full matching, wherein feature missing is used to indicate that there is a lack of features in the target feature set or that there are no features matching the features in the target feature set in the preset feature database, feature partial matching is used to indicate that there are features matching some features in the target feature set in the preset feature database, and feature full matching is used to indicate that there are features matching all features in the target feature set in the preset feature database; the target material is encoded according to the feature matching result to obtain a target encoding result of the target material, and the target encoding result is used to classify the target material.

[0049] By starting from the material hierarchy and the relationship between materials, the mining of correlation between features is strengthened, and the existing material classification knowledge is integrated. Even if the material classification is continuously refined and the material range is continuously expanded, the materials can be further coded and classified on the basis of the original coding, which is conducive to the real-time update of material coding caused by changes in material characteristics in the later stage, and improves the scalability of the material classification method. The corresponding coding library can be set according to the actual situation, which can be reused for materials under other standards, and the portability of material coding and classification is increased. Therefore, the problem that materials cannot be associated due to manual coding in related technologies is solved, and the association between materials is improved.

[0050] As an optional implementation, after determining that the current feature matches the preset feature database, the method further includes: when all the features in the target feature set match the semantic library, determining the feature matching result as a complete feature match; when there is at least one feature in the target feature set that does not match the semantic library, determining a combined semantic set, wherein the combined semantic set includes multiple combined semantics; and determining the feature matching result as a missing feature or a partial feature match based on the confidence between the target feature set and each combined semantic in the combined semantic set.

[0051] The above-mentioned combined semantics can be a vector obtained by randomly combining multiple semantics in the semantic library. The above-mentioned combined semantic set is a set of multiple combined semantics. The target feature set is first matched with the preset feature database. When the target feature set and the preset feature database are fully matched, the target material is directly encoded. When the target feature set and the preset feature database are not fully matched, the combined semantic set is determined, and the confidence between the target feature set and each combined semantic in the combined semantic set is calculated.

[0052] As an optional implementation, determining a combined semantic set includes: determining an unmatched feature in the target feature set as a first feature, and determining a feature entity corresponding to the first feature as a first feature entity; determining the semantics in the first feature entity in the semantic library; and combining the semantics in the first feature entity with other features to obtain a combined semantic set, wherein the other features are features in the target feature set other than the first feature.

[0053] As an optional implementation, the semantic library includes mapping relationships of cameras: (camera, infrared camera, pan-tilt camera, fixed camera) and suppliers: (supplier, supplier B, supplier C). If the extracted target feature set is (infrared camera, supplier A), the target feature set is not fully matched with the preset feature database, and the unmatched first feature supplier A and its corresponding first feature entity supplier in the target feature set are determined; all semantics in the mapping relationship of the first feature entity are determined in the semantic library: supplier, supplier B, supplier C; all semantics in the first feature entity are respectively combined with the matching features in the target feature set to obtain a combined semantic set, such as (infrared camera, supplier), (infrared camera, supplier B), (infrared camera, supplier C). It should be noted that the first feature here can be multiple first features. When there are multiple first features, a combined semantic set is also determined in a similar manner, wherein the number of semantics in each combined semantic is consistent with the number of features in the target feature set.

[0054] As an optional implementation, the feature matching result is determined to be feature missing or feature partial match based on the confidence between the target feature set and each combined semantic in the combined semantic set, including: when all the confidences are less than or equal to a first preset threshold, the feature matching result is determined to be feature missing; when there is a confidence greater than a second preset threshold among the confidences, the feature matching result is determined to be a feature partial match, wherein the first preset threshold is less than or equal to the second preset threshold.

[0055] The above-mentioned first preset threshold and the second preset threshold can be set according to actual conditions, wherein the first preset threshold and the second preset threshold can be equal, or the first preset threshold can be smaller than the second preset threshold; the calculation of the above-mentioned confidence can be determined by calculating the vector inner product and the text vector distance.

[0056] As an optional implementation, the target feature set can be expressed as D i =(ω i1 ,ω i2 ,…,ω in ), according to the eigenvalue weighting algorithm, each ω is assigned a weight t, and the feature D is obtained. i =(ω i1 t i1 ,ω i2 t i2 ,…,ω in t in ); The combined semantics can be expressed as D j =(ω j1 ,ω j2 ,…,ω jn), according to the eigenvalue weighting algorithm, each ω is assigned a weight t, and the feature D is obtained. j =(ω j1 t j1 ,ω j2 t j2 ,…,ω jn t jn ), it should be noted that the above D i and D j The feature items within are different from each other, and there is no order of precedence among the feature items.

[0057] Specifically, the vector inner product can be calculated as follows:

[0058]

[0059] Among them, D i is the target feature set, D j is the compositional semantics, t ik is the weight of each feature in the target feature set, t jk is the weight of each semantic in the combined semantics, Sim(D i , D j ) is the vector inner product. The larger the vector inner product algebraic value, the greater the confidence.

[0060] Specifically, the text vector distance can be calculated as follows:

[0061]

[0062] Among them, D i is the target feature set, D j is the compositional semantics, ω ik is the weight of each feature in the target feature set, ω jk is the weight of each semantics in the combined semantics, Dis (D i , D j ) is the text vector distance. The smaller the text vector distance, the greater the confidence.

[0063] As an optional implementation, after obtaining the target coding result of the target material, the method also includes: storing the first feature and the first feature entity in the target feature set in the semantic library; storing the target coding result, the hierarchy of each feature in the target feature set, and the attribute value of each feature in the target feature set in the coding library.

[0064] As an optional implementation, the coding results of the target material, the levels of each feature in the target feature set, and the attributes of each feature in the target feature set and their attribute values ​​can be correspondingly backfilled into the coding library; the feature entities of each feature in the target feature set and their corresponding levels can be correspondingly backfilled into the standard library; the unmatched features in the target feature set (i.e., the first feature) and their corresponding feature entities (i.e., the first feature entities) can be correspondingly backfilled into the semantic library; the attributes of each feature in the target feature set and their attribute values ​​can be correspondingly backfilled into the structure identification library.

[0065] Through the preset feature database and coding library with different configurations, material classification layer storage and feature hierarchical storage can be realized.

[0066] As an optional implementation, Figure 3 is a specific flow chart of the material classification method according to an embodiment of the present invention, such as Figure 3 As shown, the specific steps are as follows:

[0067] S10, receiving target material information, and parsing the received information according to the feature filtering strategy;

[0068] Receive target material information, and use the supervised feature extraction model combined with the security industry corpus to mark features and structural identifiers.

[0069] S20, parsing the received information according to the feature matching strategy;

[0070] The identified features are matched with the preset feature database for feature similarity to determine whether all of them can be matched. The judgment logic is divided into two categories: one is that the features are not fully matched, and step S31 is executed; the other is that the features are fully matched, and step S32 is executed.

[0071] S30, output matching results, incomplete feature information;

[0072] If the matching result is that not all features are matched, the confidence between the identified features and the semantic library features in the preset feature database is determined. The judgment logic is divided into two categories: one is that the confidence is greater than a certain set value of one of the features, and step S311 is executed; the other is that all confidences are less than or equal to a certain set value of the features, and step S312 is executed.

[0073] S311 adds features to the semantic library of the preset feature database, and executes step S40.

[0074] S312 does not output matching results, and the feature information needs to be completed, and step S10 is executed.

[0075] If the judgment result in step S32 is that all features match, execute step S40.

[0076] S40, parsing structure identifiers and completing attributes and attribute values;

[0077] Segment the structure identifier to obtain attributes and attribute values.

[0078] S50, performing feature entity matching and material coding according to the feature matching strategy;

[0079] Returns the corresponding feature entity, attributes and attribute values ​​of the identified feature, and performs material coding according to the preset feature database matching coding library, outputs material coding information, and links it with the feature entity, attributes and attribute values.

[0080] S60, the material information is backfilled into the feature matching database (ie, the preset feature database) and the material integration database (ie, the coding database).

[0081] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0082] In this embodiment, a device for material classification is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0083] Figure 4 is a structural block diagram of a device for classifying materials according to an embodiment of the present invention, such as Figure 4As shown, the device includes: an extraction module 402, which is used to extract features from a text information set of a target material to obtain a target feature set, wherein the text information set includes multiple text information, and the target feature set includes multiple features, and the features correspond to the text information one by one; a matching module 404, which is used to match multiple features in the target feature set with a preset feature database respectively to obtain a feature matching result, wherein the feature matching result includes feature missing, feature partial matching and feature full matching, wherein the feature missing is used to indicate that there is a lack of features in the target feature set or that there is no feature matching the features in the target feature set in the preset feature database, the feature partial matching is used to indicate that there is a feature matching some features in the target feature set in the preset feature database, and the feature full matching is used to indicate that there is a feature matching all features in the target feature set in the preset feature database; an encoding module 406, which is used to encode the target material according to the feature matching result to obtain a target encoding result of the target material, and the target encoding result is used to classify the target material.

[0084] In an exemplary embodiment, the device is also used to perform the following operations on each feature in the target feature set, and the feature during the following operations is the current feature: searching a standard library for a feature entity that matches the current feature to determine the target feature entity, wherein the preset feature database includes the standard library; searching a semantic library for a mapping relationship corresponding to the target feature entity to obtain a target mapping relationship, wherein the mapping relationship includes a mapping relationship between a feature entity and one or more semantics, and the preset feature database includes the semantic library; matching the current feature with one or more semantics in the target mapping relationship, and when the current feature exists in the target mapping relationship, determining that the current feature matches the preset feature database.

[0085] In an exemplary embodiment, the device is also used to determine that the feature matching result is a complete feature match when all the features in the target feature set match the semantic library; determine a combined semantic set when there is at least one feature in the target feature set that does not match the semantic library, wherein the combined semantic set includes multiple combined semantics; and determine that the feature matching result is a missing feature or a partial feature match based on the confidence between the target feature set and each combined semantic in the combined semantic set.

[0086] In an exemplary embodiment, the device is also used to determine an unmatched feature in the target feature set as a first feature, and determine a feature entity corresponding to the first feature as a first feature entity; determine the semantics in the first feature entity in the semantic library; and combine the semantics in the first feature entity with other features to obtain a combined semantic set, wherein the other features are features in the target feature set other than the first feature.

[0087] In an exemplary embodiment, the device is also used to determine that the feature matching result is feature missing when all the confidences are less than or equal to a first preset threshold; and to determine that the feature matching result is a partial feature match when there is a confidence greater than a second preset threshold among the confidences, wherein the first preset threshold is less than or equal to the second preset threshold.

[0088] In an exemplary embodiment, the device is also used to determine the feature entity of each feature in the target feature set when the features are partially matched or fully matched; determine the level of each feature entity in the standard library; extract the attribute value of each feature in the target feature set; determine the encoding method corresponding to each level in a preset encoding library, encode the attribute value according to the encoding method, and obtain the target encoding result of the target material.

[0089] In an exemplary embodiment, the device is also used to store the first feature and the first feature entity in the target feature set into the semantic library; and store the target encoding result, the level of each feature in the target feature set, and the attribute value of each feature in the target feature set into the encoding library.

[0090] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0091] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0092] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0093] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0094] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0095] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0096] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps of the method described in each embodiment of the present application when executed by a processor.

[0097] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0098] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for material classification, characterized in that: include: Extracting features from a text information set of a target material to obtain a target feature set, wherein the text information set includes a plurality of text information, and the target feature set includes a plurality of features, and the features correspond to the text information one by one; Matching multiple features in the target feature set with a preset feature database respectively to obtain feature matching results, wherein the feature matching results include feature missing, feature partial matching and feature full matching, wherein the feature missing is used to indicate that the target feature set lacks features or that the preset feature database does not contain features that match the features in the target feature set, the feature partial matching is used to indicate that the preset feature database contains features that match some features in the target feature set, and the feature full matching is used to indicate that the preset feature database contains features that match all features in the target feature set; Encoding the target material according to the feature matching result to obtain a target encoding result of the target material, wherein the target encoding result is used to classify the target material; The target material is encoded according to the feature matching result to obtain the target encoding result of the target material, including: In the case of partial feature matching and full feature matching, the feature entity of each feature in the target feature set is determined; the level of each feature entity is determined in the standard library, wherein the preset feature database includes the standard library; the attribute value of each feature in the target feature set is extracted; the encoding method corresponding to each level is determined in the preset encoding library, the attribute value is encoded according to the encoding method, and the target encoding result of the target material is obtained.

2. The method according to claim 1, characterized in that Matching the multiple features in the target feature set with a preset feature database respectively includes: Perform the following operations on each feature in the target feature set, where the feature in the following operations is the current feature: Searching for a feature entity matching the current feature in the standard library to determine a target feature entity; Searching for a mapping relationship corresponding to a target feature entity in a semantic database to obtain a target mapping relationship, wherein the mapping relationship includes a mapping relationship between a feature entity and one or more semantics, and the preset feature database includes the semantic database; The current feature is matched with one or more semantics in the target mapping relationship, and when the current feature exists in the target mapping relationship, it is determined that the current feature matches the preset feature database.

3. The method according to claim 2, characterized in that After determining that the current feature matches the preset feature database, the method further includes: In the case where all the features in the target feature set match the semantic library, determining that the feature matching result is a complete feature match; In the case that at least one of the features in the target feature set does not match the semantic library, determining a combined semantic set, wherein the combined semantic set includes a plurality of combined semantics; The feature matching result is determined to be feature missing or feature partial matching according to the confidence between the target feature set and each combined semantic in the combined semantic set.

4. The method according to claim 3, characterized in that Determine the set of combined semantics, including: Determine an unmatched feature in the target feature set as a first feature, and determine a feature entity corresponding to the first feature as a first feature entity; Determining the semantics of the first feature entity in the semantic library; The semantics in the first feature entity are combined with other features to obtain a combined semantic set, wherein the other features are features in the target feature set except the first feature.

5. The method according to claim 3, characterized in that: Determining, according to the confidence between the target feature set and each combined semantic in the combined semantic set, that the feature matching result is feature missing or feature partial matching, includes: In a case where all the confidences are less than or equal to the confidence of the first preset threshold, determining that the feature matching result is feature missing; In the case where there is a confidence level greater than a second preset threshold among the confidence levels, the feature matching result is determined to be a partial feature match, wherein the first preset threshold is less than or equal to the second preset threshold.

6. The method according to any one of claims 2 to 5, characterized in that After obtaining the target coding result of the target material, the method further includes: Storing the first feature and the first feature entity in the target feature set into the semantic library; The target encoding result, the level of each feature in the target feature set, and the attribute value of each feature in the target feature set are stored in the encoding library.

7. A device for classifying materials, characterized in that: include: An extraction module, used for performing feature extraction on a text information set of a target material to obtain a target feature set, wherein the text information set includes a plurality of text information, and the target feature set includes a plurality of features, and the features correspond to the text information one by one; A matching module, used for matching multiple features in the target feature set with a preset feature database respectively to obtain feature matching results, wherein the feature matching results include feature missing, feature partial matching and feature full matching, wherein the feature missing is used to indicate that the target feature set lacks features or that the preset feature database does not contain features that match the features in the target feature set, the feature partial matching is used to indicate that the preset feature database contains features that match some features in the target feature set, and the feature full matching is used to indicate that the preset feature database contains features that match all features in the target feature set; A coding module, used for coding the target material according to the feature matching result to obtain a target coding result of the target material, wherein the target coding result is used for classifying the target material; The device is also used to determine the feature entity of each feature in the target feature set when the features are partially matched or fully matched; determine the level of each feature entity in the standard library, wherein the preset feature database includes the standard library; extract the attribute value of each feature in the target feature set; determine the encoding method corresponding to each level in the preset encoding library, encode the attribute value according to the encoding method, and obtain the target encoding result of the target material.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 6 when executed by a processor.

9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Material label construction method and device, readable storage medium and electronic equipment

    CN112395881A

  • Text coding method, device and equipment and computer readable storage medium

    CN112749530A

  • Text data processing method and device, electronic equipment and storage medium

    CN113283238A

  • Entity recognition method and device, model training method and device, equipment and storage medium

    CN117313728A

  • Material and process matching method and device, communication equipment and storage medium

    CN117391596A