Attribute alignment-based mobilization demand and inventory resource matching and docking method, equipment and medium
By calculating the alignment and similarity of attribute names of required resources and stock resources, the problem of insufficient resource data alignment in national defense mobilization was solved, achieving efficient resource matching and improving the scientificity and feasibility of national defense mobilization plans.
Patent Information
- Application Number
- CN202511718000.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-21
- Publication Date
- 2026-02-17
AI Technical Summary
In the field of national defense mobilization, insufficient data alignment between demand and stockpiled resources leads to ineffective resource matching, affecting the formulation and implementation of mobilization plans and hindering the improvement of national defense mobilization planning capabilities.
By calculating the attribute name alignment and attribute value similarity between demand resources and inventory resources, and using word vector transformation and cosine similarity calculation, an attribute name alignment set is formed. Finally, the comprehensive matching degree is calculated to achieve accurate matching between demand resources and inventory resources.
In situations where demand and inventory resources are mismatched, efficient matching and coordination have been achieved, reducing resource waste and improving the scientific nature and feasibility of national defense mobilization plans.
Smart Images

Figure CN121544174A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of demand and inventory resource matching, in particular to a mobilization demand and inventory resource matching docking method based on attribute alignment, equipment and medium. BACKGROUND
[0002] The core function of scheme planning work in the field of national defense mobilization is to build a scientific and perfect demand and inventory resource matching docking mechanism. However, in the current practice of matching and docking of demand and inventory resources, the problem of insufficient data alignment is generally faced. This data alignment problem not only leads to the existence of resources in the resource reserve that can meet the demand, but also cannot realize effective docking due to the mismatch of data format, standard or dimension, and makes the whole mobilization scheme formulation process severely limited by data quality. The existence of this situation makes it difficult to realize efficient and high-quality planning of national defense mobilization schemes in a multi-field collaborative environment, and restricts the overall improvement of the national defense mobilization research and formulation ability. SUMMARY
[0003] In view of the matching and docking problem under the condition that the demand resource and the inventory resource are not aligned, the present application provides a mobilization demand and inventory resource matching docking method based on attribute alignment, equipment and medium, which specifically solves the following three problems: (1) For the case that the demand resource attribute name and the inventory resource attribute name are inconsistent, the consistency alignment problem of the attribute name needs to be solved; (2) For the case that the demand resource attribute value and the inventory resource attribute value are inconsistent, the consistency alignment problem of the attribute value needs to be solved; (3) On the basis of solving the data alignment problem, the optimal matching and docking problem of the demand resource and the inventory resource also needs to be solved.
[0004] In a first aspect, the present application provides a mobilization demand and inventory resource matching docking method based on attribute alignment, comprising: calculating the attribute name alignment degree of the demand resource and the inventory resource, and forming an attribute name alignment set according to the attribute name alignment degree; calculating the attribute value similarity of the demand resource and the inventory resource in the attribute name alignment set; based on the attribute name alignment degree and the attribute value alignment degree, calculating the comprehensive matching degree of the demand resource and the inventory resource, and outputting according to the comprehensive matching degree.
[0005] In a preferred embodiment, the attribute name alignment degree of the demand resource and the inventory resource is calculated based on word vector conversion and cosine similarity.
[0006] In a preferred embodiment, the attribute name alignment degree of the demand resource and the inventory resource is calculated based on word vector conversion and cosine similarity, comprising: Obtain the required resources and convert the attribute names of the required resources into word vectors using a word vector library; Retrieve inventory resources from the inventory resource repository and convert the inventory resource attribute names into word vectors; Based on the word vectors of the attribute names of demand resources and the word vectors of the attribute names of inventory resources, the cosine similarity of the word vectors is calculated, and the maximum cosine similarity obtained is the attribute name alignment.
[0007] In a preferred embodiment, forming an attribute name alignment set based on attribute name alignment includes: If the alignment of the attribute name is less than the set threshold, it is considered that there are no attribute names that can be aligned. If the attribute name alignment is not less than the set threshold, then the attribute names of the corresponding demand resources and inventory resources are considered to be aligned, and an attribute name alignment set is formed for the demand resources and inventory resources with aligned attribute names.
[0008] In a preferred embodiment, different attribute value similarity calculation methods are used according to the resource attribute value category.
[0009] In a preferred embodiment, the method for calculating the similarity of numerical attribute values is as follows:
[0010] In the formula: Indicates the resource attribute name for calculating numerical requirements. attribute values and the inventory resource attribute name that is aligned with it attribute values Similarity; It is a minimum value.
[0011] In a preferred embodiment, the method for calculating the similarity of text attribute values is as follows:
[0012] In the formula: To calculate text-based resource attribute names attribute values and the inventory resource attribute name that is aligned with it attribute values Similarity; For the required resource attribute name attribute values Word vectors; For inventory resource attribute names attribute values word vector of the demand resource attribute name.
[0013] In a preferred embodiment, the formula for calculating the comprehensive matching degree is:
[0014] In the formula: denotes the demand resource and the inventory resource comprehensive matching degree. denotes the demand resource attribute name set; denotes the weight of the demand resource attribute name denotes the word vector cosine similarity of the demand resource attribute name and the inventory resource attribute name aligned therewith denotes the similarity of the attribute value of the demand resource attribute name and the attribute value of the inventory resource attribute name aligned therewith denotes the result of whether the demand resource attribute name has an inventory resource attribute name aligned therewith.
[0015] In a second aspect, the present application provides an electronic device, comprising: at least one processor; and a memory connected in communication with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the at least one processor, by executing the instructions stored in the memory, performs the method described above.
[0016] In a third aspect, the present application provides a computer-readable storage medium for storing instructions, when the instructions are executed, the method described above is implemented.
[0017] In summary, due to the adoption of the above technical solutions, the present application has the following advantages: The application can realize accurate matching and docking in the case of demand and inventory resources misalignment, effectively solve the problems of low matching efficiency and low success rate of demand and inventory in this case. Through attribute name alignment degree calculation, attribute value similarity calculation and comprehensive matching degree calculation, efficient matching can be realized even if the demand resources or inventory resources are incomplete or ambiguous, resource waste caused by data misalignment is reduced, and the scientificity and feasibility of national defense mobilization scheme planning are improved. BRIEF DESCRIPTION OF DRAWINGS
[0018] Figure 1 A flowchart of a mobilization demand and inventory resource matching and docking method based on attribute alignment is provided for the embodiments of the application.
[0019] Figure 2 A principle diagram of a mobilization demand and inventory resource matching and docking method based on attribute alignment is provided for the embodiments of the application.
[0020] Figure 3 A structural schematic diagram of an electronic device is provided for the embodiments of the application. DETAILED DESCRIPTION
[0021] To make the objectives, technical solutions and advantages of the embodiments of the application clearer, the technical solutions in the embodiments of the application will be described below in connection with the drawings in the embodiments of the application. Obviously, the described embodiments are only some of the embodiments of the application, rather than all the embodiments. The components of the embodiments of the application described and shown in the drawings can be arranged and designed in various different configurations.
[0022] Therefore, the detailed description of the embodiments of the application provided in the drawings below is not intended to limit the scope of the claimed application, but only represents selected embodiments of the application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the application without creative labor are within the scope of protection of the application.
[0023] The embodiments of the application provide a mobilization demand and inventory resource matching and docking method based on attribute alignment, divide resources into attribute name and attribute value sets, propose attribute name alignment degree and attribute value similarity concepts, and respectively give attribute name alignment degree calculation method and attribute value similarity calculation method. Finally, based on attribute name alignment degree and attribute value similarity, a "double high priority" comprehensive matching degree calculation method is given, and an inventory resource recommendation list sorted by comprehensive matching degree is given.
[0024] The specific implementation of the above mobilization demand and inventory resource matching and docking method based on attribute alignment is described below. Referring to Figure 1 、 Figure 2The attribute alignment-based mobilization demand and inventory resource matching method comprises the following steps: S100, calculating the attribute name alignment degree of the demand resource and the inventory resource, and forming an attribute name alignment set according to the attribute name alignment degree; In the embodiment of the application, the attribute name alignment degree of the demand resource and the inventory resource is calculated based on word vector conversion and cosine similarity, and the following is realized: The demand resource is obtained, and the attribute name of the demand resource is converted into a word vector through a word vector library; The inventory resource is obtained from an inventory resource library, and the attribute name of the inventory resource is converted into a word vector; Based on the word vector of the attribute name of the demand resource and the word vector of the attribute name of the inventory resource, the cosine similarity of the word vector is calculated, and the maximum cosine similarity obtained by the calculation is the attribute name alignment degree.
[0025] Specifically, for the demand resource and the inventory resource , let be the attribute name set of the demand resource; let be the attribute name set of the inventory resource.
[0026] For each demand resource attribute name , the cosine similarity is calculated with the inventory resource attribute name set , and the calculation formula is as follows:
[0027] In the formula: The maximum cosine similarity of the demand resource attribute name corresponds to the inventory resource attribute name, that is, the inventory resource attribute name aligned with the demand resource attribute name ; The word vector cosine similarity of the demand resource attribute name and the inventory resource attribute name , and the calculation formula is as follows:
[0028] The word vector of the demand resource attribute name ; The word vector of the inventory resource attribute name .
[0029] Based on the attribute name alignment degree calculated above, an attribute name alignment set can be obtained for subsequent calculation. In the embodiment of the present application, the attribute name alignment degree is formed into an attribute name alignment set by threshold method, and the implementation is as follows: If the attribute name alignment degree is less than the set threshold, it is considered that there is no alignable attribute name; If the attribute name alignment degree is not less than the set threshold, it is considered that the attribute names of the demand resource and the inventory resource are alignable, and the demand resource and the inventory resource with the attribute name alignment are formed into an attribute name alignment set.
[0030] It is expressed by a mask function as follows:
[0031] Among them, is a set threshold, which can be set according to needs and actual application conditions, such as =0.8; represents the attribute name of the demand resource The result of whether there is an attribute name alignment of the inventory resource attribute name, 1 represents that the demand resource attribute name has an alignable inventory resource attribute name, 0 represents that the demand resource attribute name has no alignable inventory resource attribute name.
[0032] S200, calculating the attribute value similarity of the demand resource and the inventory resource in the attribute name alignment set.
[0033] In the embodiment of the present application, different attribute value similarity calculation methods are adopted according to the resource attribute value category. For each pair (a, ), in which, is the attribute value of the demand resource attribute name , and is the attribute value of the inventory resource attribute name aligned with the demand resource attribute name , and the attribute is set to type , then the attribute value similarity calculation formula is as follows:
[0034] In the formula, represents the similarity of the attribute value of the demand resource attribute name and the attribute value of the inventory resource attribute name aligned therewith.
[0035] represents the attribute value of the numerical demand resource attribute name , and and the attribute value of the inventory resource name aligned therewith The similarity of the attribute value of the demand resource name
[0036] is a minimum value to prevent the denominator from being 0; the value range is [0, 1], and the closer to 1, the more similar.
[0037] The attribute value of the demand resource name and the attribute value of the inventory resource name aligned therewith The similarity of the attribute value of the demand resource name
[0038] The word vector of the attribute value of the demand resource name The word vector of the attribute value of the inventory resource name
[0039] Here, the attribute value similarity calculation of the numerical and text resources is shown, and other types such as enumeration type can also select the appropriate attribute value similarity calculation method, which is not described here.
[0040] S300, based on the attribute name alignment degree and the attribute value alignment degree, calculating the comprehensive matching degree of the demand resource and the inventory resource, and outputting according to the comprehensive matching degree.
[0041] Based on the attribute name alignment degree and the attribute value similarity calculation, the comprehensive matching degree of the demand resource and the inventory resource is further calculated, and the inventory resource with the highest comprehensive matching degree is the final matching result of the demand resource. The embodiment of the application proposes a "double high priority" comprehensive similarity calculation method, which integrates the core indicators through multiplication operation, and adjusts the priority through attribute weight dynamic adjustment. The comprehensive matching degree will only significantly increase when the attribute name alignment degree and the attribute value similarity are both high, avoiding the situation that a single indicator is too high to cover the defects of another indicator.
[0042] Considering the attribute weight The calculation formula of the comprehensive matching degree is:
[0043] In the formula, representing demand resources and inventory resources comprehensive matching degree representing demand resources attribute name set representing demand resource attribute name weight representing demand resource attribute name and inventory resource attribute name aligned therewith word vector cosine similarity representing demand resource attribute name attribute value and inventory resource attribute name aligned therewith attribute value similarity representing demand resource attribute name whether there is an attribute name aligned inventory resource attribute name result
[0044] Based on the same technical concept, the embodiment of the present application also provides an electronic device which can realize the attribute alignment based mobilization demand and inventory resource matching docking method provided by the above-mentioned embodiment of the present application. In an embodiment, the electronic device can be a server, a terminal device or other electronic device. As shown in the figure, the electronic device can include: Figure 3 at least one processor, and a memory connected with the at least one processor, and the specific connection medium between the processor and the memory is not limited in the embodiment of the present application, the connection between the processor and the memory is taken as an example of bus connection in the embodiment. The bus is represented by a thick line in the embodiment, Figure 3 and the connection mode between other components is only schematically illustrated and is not limited. The bus can be divided into address bus, data bus, control bus, etc. For convenience of representation, Figure 3 only one thick line is used to represent in the embodiment, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor can also be called controller, and the name is not limited. Figure 3
[0045] In the embodiment of the present application, the memory stores instructions executable by the at least one processor, and the at least one processor can execute the attribute alignment based mobilization demand and inventory resource matching docking method discussed above by executing the instructions stored in the memory.
[0046] The processor is the control center of the device, and can connect all parts of the device through various interfaces and lines. The processor can monitor the device as a whole by running or executing instructions stored in the memory and calling data stored in the memory.
[0047] In an alternative design, the processor can include one or more processing units, and the processor can integrate an application processor and a modem processor. The application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor. In some embodiments, the processor and the memory can be implemented on the same chip, and in some embodiments, they can also be implemented on separate chips respectively.
[0048] The processor can be a general-purpose processor, such as a CPU, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the attribute alignment-based mobilization demand and inventory resource matching method disclosed in the embodiments of the present application can be directly embodied by a hardware processor for execution, or executed by a combination of hardware and software modules in the processor.
[0049] The memory is a non-volatile computer readable storage medium, which can be used to store non-volatile software programs, non-volatile computer executable programs, and modules. The memory can include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable logic memory (PLA), or a data bus. The computer readable medium can be a machine-readable storage medium, a machine-readable storage device, a memory, or a memory on a machine-readable storage device. Examples of the machine-readable storage medium include a hard disk, a floppy disk, a magnetic disk, an optical disk, a CD-ROM, a DVD, a magnetic cassettes, a tape, a silicon memory, and the like. The memory is any device that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto. The memory in the embodiments of the present application can also be a circuit or any other device capable of realizing a storage function, for storing program instructions and / or data.
[0050] By programming the processor, the code corresponding to the method of matching and docking the mobilization demand and the inventory resources based on the attribute alignment introduced in the foregoing embodiments can be fixed into the chip, so that the chip can execute the steps of the method of the foregoing embodiments at runtime. How to program the processor is a technology known to those skilled in the art, which will not be described here.
[0051] Based on the same inventive concept, the embodiments of the present application also provide a storage medium storing computer instructions, which, when running on a computer, cause the computer to execute the method of matching and docking the mobilization demand and the inventory resources based on the attribute alignment discussed above.
[0052] In some optional embodiments, the embodiments of the present application also provide various aspects of the method of matching and docking the mobilization demand and the inventory resources based on the attribute alignment, which can also be implemented in the form of a program product, including program codes, which, when running on a device, are used to cause the control device to execute the steps of the method of matching and docking the mobilization demand and the inventory resources based on the attribute alignment according to various exemplary embodiments of the present application described above.
[0053] It should be noted that although several units or sub-units of the device are mentioned in the foregoing detailed description, such division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units for embodiment. In addition, although the operations of the method of the present application are described in a specific order in the accompanying drawings, this does not require or imply that the operations must be performed in this specific order, or that all of the shown operations must be performed to achieve the desired result. Additionally or alternatively, certain steps can be omitted, multiple steps can be combined into one step, and / or one step can be divided into multiple steps.
[0054] Those skilled in the art will appreciate that embodiments of the application can be devised for a method, a system, or a computer program product. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product on one or more computer readable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) embodying computer readable program code embodied thereon.
[0055] The present application is described in reference to the drawings using a flowchart and / or a block diagram of the method, apparatus (system) and computer program product according to embodiments of the application. It will be understood that each block of the flowchart and / or block diagram, and combinations of blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processing system or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart and / or block diagram block or blocks. Figure 1 Figure 1
[0056] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the flowchart and / or block diagram block or blocks. The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operations to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus implement the flowchart and / or block diagram block or blocks.
[0057] In an embodiment that is in operation in networked environment, a computer, such as the computer 702, can send messages and receive data, and can communicate to and from software applications or processes running on one or more of the other computers, e.g., database servers, application servers, and clients using a communication network.
[0058] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the flowchart and / or block diagram block or blocks. The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operations to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus implement the flowchart and / or block diagram block or blocks. Figure 1 Figure 1
[0059] These computer program instructions can also be loaded into a computer or other programmable data processing devices, so that a series of operational steps are performed on the computer or other programmable data processing devices to generate a computer implemented process, so that the instructions executed on the computer or other programmable data processing devices provide a process for implementing the functions specified in the flowchart Figure 1 one flow or a plurality of flows and / or the functions specified in the block Figure 1 one flow or a plurality of flows and / or the functions specified in the block
[0060] The above only the preferred embodiments of the present application, and is not intended to limit the present application, for those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. within the spirit and principles of the present application, should be included in the protection scope of the present application.
Claims
1. A method for matching and integrating mobilization needs with inventory resources based on attribute alignment, characterized in that, include: Calculate the attribute name alignment between demanded resources and inventory resources, and form an attribute name alignment set based on the attribute name alignment. Calculate the similarity of attribute values between required resources and inventory resources in the attribute name alignment set; Based on attribute name alignment and attribute value alignment, calculate the overall matching degree between required resources and inventory resources, and output them in sorted order according to the overall matching degree.
2. The method for matching mobilization needs with inventory resources based on attribute alignment according to claim 1, characterized in that, The alignment of attribute names between demand resources and inventory resources is calculated based on word vector transformation and cosine similarity.
3. The method for matching and integrating mobilization needs with inventory resources based on attribute alignment according to claim 2, characterized in that, The method of calculating the attribute name alignment between demand resources and inventory resources based on word vector transformation and cosine similarity includes: Obtain the required resources and convert the attribute names of the required resources into word vectors using a word vector library; Retrieve inventory resources from the inventory resource repository and convert the inventory resource attribute names into word vectors; Based on the word vectors of the attribute names of demand resources and the word vectors of the attribute names of inventory resources, the cosine similarity of the word vectors is calculated, and the maximum cosine similarity obtained is the attribute name alignment.
4. The method for matching mobilization needs with inventory resources based on attribute alignment according to claim 1, characterized in that, The process of forming an attribute name alignment set based on attribute name alignment includes: If the alignment of the attribute name is less than the set threshold, it is considered that there are no attribute names that can be aligned. If the attribute name alignment is not less than the set threshold, then the attribute names of the corresponding demand resources and inventory resources are considered to be aligned, and an attribute name alignment set is formed for the demand resources and inventory resources with aligned attribute names.
5. The method for matching and integrating mobilization needs with inventory resources based on attribute alignment according to claim 1, characterized in that, Different attribute value similarity calculation methods are used depending on the category of resource attribute value.
6. The method for matching and integrating mobilization needs with inventory resources based on attribute alignment according to claim 5, characterized in that, The method for calculating the similarity of numerical attribute values is as follows: In the formula: Indicates the resource attribute name for calculating numerical requirements. attribute values and the inventory resource attribute name that is aligned with it attribute values Similarity; It is a minimum value.
7. The method for matching and integrating mobilization needs with inventory resources based on attribute alignment according to claim 5, characterized in that, The method for calculating the similarity of text attribute values is as follows: In the formula: To calculate text-based resource attribute names attribute values and the inventory resource attribute name that is aligned with it attribute values Similarity; For the required resource attribute name attribute values Word vectors; For inventory resource attribute names attribute values Word vectors.
8. The method for matching and integrating mobilization needs with inventory resources based on attribute alignment according to claim 1, characterized in that, The formula for calculating the overall matching degree is: In the formula: Indicates the demand for resources and inventory resources Overall matching degree; Indicates the demand for resources A collection of attribute names; Indicates the required resource attribute name The weights; Indicates the required resource attribute name and the inventory resource attribute name that is aligned with it cosine similarity of word vectors; Indicates the required resource attribute name attribute values and the inventory resource attribute name that is aligned with it attribute values similarity Indicates the required resource attribute name Does the result show whether there are inventory resource attribute names that are aligned with the attribute names? 9. An electronic device, characterized in that, include: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores instructions executable by the at least one processor, which executes the instructions stored in the memory to perform the method as described in any one of claims 1-8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store instructions that, when executed, cause the method as described in any one of claims 1-8 to be implemented.