Procurement plan allocation method, device and electronic equipment

By building and training an inventory prediction model, and optimizing the spare parts procurement plan based on equipment operating status and historical data, the problem of low spare parts inventory management efficiency in traditional maintenance is solved, and the accuracy of the procurement plan and operation and maintenance efficiency are improved.

CN118333528BActive Publication Date: 2024-09-24江苏中天互联科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410750911.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-24
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

In traditional industrial equipment maintenance, the spare parts procurement plan is limited to a fixed cycle and fails to fully consider the equipment operating status and historical maintenance data, resulting in low efficiency and accuracy of spare parts inventory management and affecting operation and maintenance efficiency.

Method used

By constructing label data based on sample data and inventory data of historical fault information of the equipment to be maintained, the inventory prediction model is trained to predict the inventory of spare parts, and combined with real-time equipment operation data and historical purchase orders to determine the priority of spare parts procurement and optimize the procurement plan arrangement. .

Benefits of technology

It improves the accuracy of spare parts inventory forecasts and procurement plans, improves equipment operation and maintenance efficiency, and avoids spare parts hoarding and shortage problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118333528B
    Figure CN118333528B
Patent Text Reader

Abstract

The present application proposes a method, device and electronic device for arranging a purchase plan. The method includes: constructing sample data based on the historical fault information of the equipment to be maintained; determining the inventory quantity corresponding to each spare part, and the time point when the historical fault is handled, and constructing label data based on the inventory quantity and time point corresponding to each spare part; training an inventory prediction model based on the sample data and label data; inputting the real-time operation data of the equipment to be maintained into the inventory prediction model to obtain predicted inventory data; obtaining the historical purchase orders corresponding to the spare parts, and arranging the purchase plan of the spare parts according to the historical purchase orders and predicted inventory data. The present application relates to the field of intelligent manufacturing technology, and can improve the efficiency of purchasing spare parts during equipment operation and maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent manufacturing technology, specifically to the field of procurement plan scheduling technology, and in particular to a procurement plan scheduling method, device and electronic equipment. Background Art

[0002] At present, with the continuous development of industrialization and manufacturing, in order to improve the production efficiency of the manufacturing industry, the maintenance of industrial equipment has also received more and more attention. In the process of maintaining industrial equipment, it is usually necessary to replace the faulty components in the faulty equipment with spare parts in stock. However, the procurement plan and allocation of spare parts in traditional industrial equipment maintenance are often limited to fixed cycles, and fail to fully consider the operating status and historical maintenance data of industrial equipment, resulting in low efficiency and accuracy of spare parts inventory management. Excessive stockpiling of spare parts will increase storage pressure, and too few spare parts may result in low operation and maintenance efficiency. Summary of the invention

[0003] In view of the above, it is necessary to propose a procurement plan allocation method, device and electronic equipment to solve the technical problem of low accuracy in arranging procurement plans during equipment operation and maintenance.

[0004] The present application provides a procurement plan scheduling method, which is applied to electronic equipment, and the method includes: constructing sample data based on historical fault information of the equipment to be maintained; wherein the historical fault information is used to characterize the operating status of the equipment to be maintained when the historical fault occurs; determining the inventory quantity corresponding to each spare part when the historical fault corresponding to the historical fault information is handled, and the time point when the historical fault is handled, and constructing label data according to the inventory quantity corresponding to each spare part and the time point; training an inventory prediction model based on the sample data and the label data, wherein the inventory prediction model is used to predict the predicted inventory data of each spare part; inputting the operating data of the equipment to be maintained acquired in real time into the inventory prediction model to obtain predicted inventory data; wherein the operating data is used to characterize the real-time operating status of the equipment to be maintained; and scheduling the procurement plan for each of the spare parts according to the historical purchase orders corresponding to each spare part and the predicted inventory data.

[0005] In some embodiments, constructing sample data based on historical fault information of the equipment to be maintained includes: determining the historical operation data of the equipment to be maintained between every two adjacent historical faults; determining the fault interval time between every two adjacent historical faults; and determining the time point, the historical operation data and the fault interval time as the sample data.

[0006] In some embodiments, constructing label data based on the inventory quantity corresponding to each spare part category and the time point includes: determining the inventory quantity corresponding to each spare parts category at each time point; determining the difference between the inventory quantity corresponding to each spare parts category at each time point and the inventory quantity corresponding to the spare parts category at the previous time point; and determining label data based on the time point, the inventory quantity and the difference.

[0007] In some embodiments, the training of the inventory prediction model based on the sample data and the label data includes: inputting the sample data into a pre-constructed initial prediction model in order from early to late according to the time points to obtain initial prediction data corresponding to the sample data; the initial prediction data includes a prediction time point, a predicted inventory amount, and a prediction difference; calculating a loss value of the initial prediction model based on the sample data, the corresponding initial prediction data, and the label data; when the loss value is greater than a preset termination threshold, updating the initial prediction model based on a back propagation algorithm until the loss value is less than or equal to the termination threshold, stopping the update, and obtaining an inventory prediction model trained to a convergence state.

[0008] In some embodiments, the calculation of the loss value of the initial prediction model based on the sample data, the corresponding initial prediction data and the label data includes: determining the confidence of the initial prediction data based on the failure interval time in the sample data; and determining the loss value based on the confidence, the initial prediction data and the label data.

[0009] In some embodiments, determining the loss value based on the confidence level, the initial prediction data, and the label data includes:

[0010] ; Wherein, m represents the number of time points, i represents the index of the time point; n represents the number of spare parts categories, j represents the index of the spare parts category; R i represents the confidence level determined based on the sample data corresponding to the i-th time point; A j represents the predicted inventory quantity corresponding to the j-th spare part in the predicted data corresponding to the i-th time point; B represents the inventory quantity of the j-th spare part in the labeled data corresponding to the i-th time point; C represents the predicted difference corresponding to the j-th spare part in the predicted data corresponding to the i-th time point; D represents the difference corresponding to the j-th spare part in the labeled data corresponding to the i-th time point.

[0011] In some embodiments, the arrangement of the purchase plan for each spare part according to the historical purchase orders corresponding to each spare part and the predicted inventory data includes: determining the historical order quantity and the historical purchase quantity corresponding to each spare part according to the historical purchase orders; determining the change rate of the predicted inventory corresponding to each spare part according to the predicted inventory data; determining the predicted total inventory of each spare part according to the predicted inventory data; calculating the purchase priority of each spare part according to the historical order quantity, the historical purchase quantity, the change rate and the predicted total inventory; wherein, the higher the change rate, the higher the purchase priority of the corresponding spare part, and the lower the predicted total inventory, the higher the purchase priority of the corresponding spare part; and arranging the purchase plan for each category of the spare parts in order of the purchase priority from high to low.

[0012] In some embodiments, the calculation of the procurement priority of each type of spare part based on the historical order quantity, the historical purchase quantity, the change rate and the predicted total inventory includes: normalizing the historical order quantity corresponding to each type of spare part to obtain a normalized order quantity; normalizing the historical purchase quantity corresponding to each type of spare part to obtain a normalized purchase quantity; determining the difference between the predicted inventory quantities of any one type of spare part corresponding to every two adjacent predicted time points; determining the variance of all the differences as the change rate corresponding to any one type of spare part; determining the sum of all predicted inventory quantities of any one type of spare part corresponding to all the predicted time points as the predicted total inventory; determining the sum of the change rate, the normalized order quantity and the normalized purchase quantity corresponding to any one type of spare part; and determining the ratio of the sum to the predicted total inventory as the procurement priority of any one type of spare part.

[0013] An embodiment of the present application also provides a procurement plan scheduling device, which includes: a construction module, which is used to construct sample data based on historical fault information of the equipment to be maintained; wherein the historical fault information is used to characterize the operating status of the equipment to be maintained when a historical fault occurs; the construction module is used to determine the inventory quantity corresponding to each spare part when the historical fault corresponding to the historical fault information is handled, and the time point when the historical fault is handled, and construct label data according to the inventory quantity corresponding to each spare part and the time point; a training module is used to train an inventory prediction model based on the sample data and the label data, wherein the inventory prediction model is used to predict the inventory quantity of spare parts; a prediction module is used to input the operating data of the equipment to be maintained acquired in real time into the inventory prediction model to obtain predicted inventory data; wherein the operating data is used to characterize the real-time operating status of the equipment to be maintained; a scheduling module is used to schedule the procurement plan of each of the spare parts according to the historical purchase orders corresponding to each spare part and the predicted inventory data.

[0014] An embodiment of the present application also provides an electronic device, comprising: a memory storing at least one instruction; and a processor executing the instructions stored in the memory to implement the procurement plan allocation method.

[0015] An embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the procurement plan scheduling method.

[0016] It can be seen from the above technical solutions that the embodiment of the present application trains an inventory prediction model based on the historical fault information of the equipment to be maintained and the inventory quantity corresponding to each spare part when the historical faults are handled, and then processes the real-time operation data of the maintenance equipment according to the inventory prediction model to obtain the corresponding predicted inventory data. In this way, the inventory situation of spare parts can be predicted according to the actual conditions during the operation of the equipment to be maintained, which can improve the accuracy of the predicted spare parts inventory. Subsequently, the purchase priority of each spare part is determined based on the historical purchase orders of the spare parts and the predicted inventory, and then the purchase plan is arranged according to the priority. In this way, the allocation method of the purchase plan can be confirmed in combination with the real-time operating status of the equipment and the historical purchase orders of the spare parts, so that the accuracy of the purchase plan allocation can be improved, and then the efficiency of equipment operation and maintenance can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is an application scenario diagram of a procurement plan scheduling method provided in one embodiment of the present application.

[0018] Figure 2 It is a flowchart of a procurement plan allocation method provided in one embodiment of the present application.

[0019] Figure 3 It is a functional module diagram of a procurement plan allocation device provided in one embodiment of the present application.

[0020] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to more clearly understand the purpose, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other. In the following description, many specific details are set forth to facilitate a full understanding of the present application, and the embodiments described are only a part of the embodiments of the present application, rather than all of the embodiments.

[0022] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art to which the present application belongs. The terms used herein in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0024] An embodiment of the present application provides a procurement plan allocation method, which can be applied to one or more electronic devices. The electronic device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0025] An electronic device can be any electronic product that can interact with customers, such as personal computers, tablet computers, smart phones, personal digital assistants (PDAs), game consoles, Internet Protocol Television (IPTV), smart wearable devices, etc.

[0026] The electronic device may also include a network device and / or a client device, wherein the network device includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud consisting of a large number of hosts or network servers based on cloud computing.

[0027] The networks where electronic devices are located include but are not limited to the Internet, wide area network, metropolitan area network, local area network, virtual private network (VPN), etc.

[0028] like Figure 1 As shown, a procurement plan scheduling method provided by the present application can be applied to an electronic device 100, and the electronic device 100 is communicatively connected with a server 200. The electronic device 100 is used to obtain historical fault information of the equipment to be maintained from the server 200, and construct sample data according to the historical fault information of the equipment to be maintained; wherein the historical fault information is used to characterize the operating status of the equipment to be maintained when the historical fault occurs; determine the inventory quantity corresponding to each spare part when the historical fault corresponding to the historical fault information is handled, and the time point when the historical fault is handled, and construct label data according to the inventory quantity corresponding to each spare part and the time point; train an inventory prediction model based on the sample data and the label data, wherein the inventory prediction model is used to predict the predicted inventory data of each spare part; input the operating data of the equipment to be maintained obtained in real time into the inventory prediction model to obtain the predicted inventory data; wherein the operating data is used to characterize the real-time operating status of the equipment to be maintained; and arrange the procurement plan of each spare part according to the historical purchase order corresponding to each spare part and the predicted inventory data.

[0029] like Figure 2 , is a flowchart of a procurement plan allocation method provided in an embodiment of the present application. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted. A procurement plan allocation method provided in an embodiment of the present application includes the following steps.

[0030] S20, constructing sample data according to historical fault information of the equipment to be maintained; wherein the historical fault information is used to characterize the operating status of the equipment to be maintained when a historical fault occurs.

[0031] In one embodiment of the present application, the equipment to be maintained may be any one or more industrial equipment that needs maintenance in a production environment. For example, the equipment to be maintained may be a generator, a material conveying assembly line, etc. The historical fault information is used to characterize the operating status of the equipment to be maintained when a historical fault occurred. Specifically, the operating status may be data measured by a sensor that is in communication with the equipment to be maintained. For example, when the equipment to be maintained is a generator, the historical fault information includes the time point when the historical fault occurred, the output voltage value, the output current value, etc.

[0032] In one embodiment of the present application, in order to predict the inventory quantity of spare parts through the operation data of the equipment to be maintained, an inventory prediction model for predicting the inventory quantity of spare parts can be trained based on the historical fault information of the equipment to be maintained. Specifically, sample data can be first constructed based on the historical fault information of the equipment to be maintained, including: determining the historical operation data of the equipment to be maintained between each two adjacent historical faults; determining the fault interval time between each two adjacent historical faults; determining the time point, the historical operation data and the fault interval time as the sample data.

[0033] Exemplarily, when the equipment to be maintained is a generator, the format of the sample data can be {24 / 05 / 23 / 19 / 56 / 00, [220 volts, 1 ampere], 2592000 seconds}, wherein 24 / 05 / 23 / 19 / 56 / 00 is used to represent the time point when the historical fault occurred; [220 volts, 1 ampere] is used to represent that the voltage value when the historical fault occurred was 220 volts and the current value was 1 ampere; 2592000 seconds is used to represent that the fault interval between the time point when the historical fault occurred and the time point when the previous historical fault occurred is 2592000 seconds.

[0034] S21, determining the inventory quantity of each spare part when the historical fault corresponding to the historical fault information is processed, and the time point when the historical fault is processed, and constructing label data according to the inventory quantity corresponding to each spare part and the time point.

[0035] In one embodiment of the present application, when a historical failure occurs in the equipment to be maintained, certain components in the equipment to be maintained can be repaired or the damaged components can be replaced with spare parts in inventory, thereby resolving the failure of the equipment to be maintained. Therefore, the inventory quantity of spare parts may have changed when the historical failure is resolved. In this way, the spare parts inventory and time point when the historical failure occurred in the equipment to be maintained can be used as label data, and an inventory prediction model for predicting spare parts inventory can be trained based on the sample data and label data in the subsequent process. Among them, different spare parts belong to different categories. For example, spare parts can be divided into failure type and consumable type; for another example, spare parts can be classified into commonly used spare parts and uncommon spare parts. The present application does not limit the specific classification method of spare parts.

[0036] In one embodiment of the present application, constructing label data based on the inventory quantity corresponding to each spare part category and the time point includes: determining the inventory quantity corresponding to each spare parts category at each time point; determining the difference between the inventory quantity corresponding to each spare parts category at each time point and the inventory quantity corresponding to the spare parts category at the previous time point; and determining the label data based on the time point, the inventory quantity and the difference.

[0037] For example, when the equipment to be maintained is a generator, the tag data may be {24 / 05 / 23 / 19 / 56 / 00, [faulty spare parts, 100, 20], [consumable spare parts, 50, 10]}. 24 / 05 / 23 / 19 / 56 / 00 is used to represent the time point when the historical fault occurred; the inventory of the faulty spare parts at this time point is 100 pieces, and the difference between this inventory and the inventory when the last historical fault was handled is 20 pieces.

[0038] S22: training an inventory prediction model based on the sample data and the label data, wherein the inventory prediction model is used to predict the predicted inventory data of each spare part.

[0039] In one embodiment of the present application, in order to improve the accuracy of predicted inventory data and thereby improve the accuracy of spare parts procurement planning, an inventory prediction model for predicting spare parts inventory may be trained based on sample data and label data.

[0040] In one embodiment of the present application, the training of the inventory forecasting model based on the sample data and the label data includes: inputting the sample data into the pre-constructed initial forecasting model in order from early to late according to the time points, and obtaining the initial forecasting data corresponding to the sample data; the initial forecasting data includes the forecast time point, the forecast inventory and the forecast difference; calculating the loss value of the initial forecasting model based on the sample data, the corresponding initial forecasting data and the label data; when the loss value is greater than a preset termination threshold, updating the initial forecasting model based on the back propagation algorithm until the loss value is less than or equal to the termination threshold, stopping the update and obtaining the inventory forecasting model trained to a convergence state. Among them, the initial forecasting model can be a pre-constructed long short-term memory model, a recurrent neural network model, etc., and the present application does not limit this.

[0041] In one embodiment of the present application, the loss value of the initial prediction model calculated based on the sample data, the corresponding initial prediction data and the label data includes: determining the confidence of the initial prediction data based on the fault interval in the sample data; determining the loss value based on the confidence, the initial prediction data and the label data. Wherein, when the fault interval in the sample data is higher, it means that the interval between two historical faults is longer, and the confidence of replacing spare parts to deal with historical faults to reduce the failure probability of the equipment to be maintained is higher, so the confidence of the initial prediction data corresponding to the sample data to which the fault interval belongs is higher. Specifically, determining the confidence of the initial prediction data based on the fault interval in the sample data includes: normalizing the fault interval to obtain the normalized fault interval; determining the normalized fault interval as the corresponding confidence of the initial prediction data. Specifically, the fault interval can be normalized according to the maximization algorithm, or it can be normalized according to the minimization algorithm. The present application does not limit the specific method of normalization.

[0042] In an embodiment of the present application, determining the loss value based on the confidence, the initial prediction data, and the label data includes:

[0043] ; Wherein, m represents the number of time points, i represents the index of the time point; n represents the number of spare parts categories, j represents the index of the spare parts category; R i represents the confidence level determined based on the sample data corresponding to the i-th time point; A jrepresents the predicted inventory quantity corresponding to the j-th spare part in the predicted data corresponding to the i-th time point; B represents the inventory quantity of the j-th spare part in the labeled data corresponding to the i-th time point; C represents the predicted difference corresponding to the j-th spare part in the predicted data corresponding to the i-th time point; D represents the difference corresponding to the j-th spare part in the labeled data corresponding to the i-th time point.

[0044] S23, inputting the real-time acquired operation data of the equipment to be maintained into the inventory prediction model to obtain predicted inventory data; wherein the operation data is used to characterize the real-time operation status of the equipment to be maintained.

[0045] In one embodiment of the present application, in order to continuously predict the inventory of spare parts, the operating data of the equipment to be maintained can be collected in real time. The operating data is used to characterize the real-time operating status of the equipment to be maintained. The operating data acquired in real time is input into the inventory prediction model to obtain the corresponding predicted inventory data. The predicted inventory data is used to characterize the predicted inventory quantity and predicted difference corresponding to each spare part at one or more future time points predicted based on the current operating data of the equipment to be maintained.

[0046] For example, when the equipment to be maintained is a generator, the predicted inventory data may be {25 / 05 / 23 / 19 / 56 / 00, [faulty spare parts, 50, 10], [consumable spare parts, 20, 7]}. 25 / 05 / 23 / 19 / 56 / 00 is used to represent the time point when the historical fault occurred; the inventory of faulty spare parts at this time point is 50 pieces, and the difference between this inventory and the inventory when the last historical fault was handled is 10 pieces; the inventory of consumable spare parts at this time point is 20 pieces, and the difference between this inventory and the inventory when the last historical fault was handled is 7 pieces.

[0047] S24, arranging a purchase plan for each spare part according to the historical purchase orders corresponding to each spare part and the forecast inventory data.

[0048] In one embodiment of the present application, after predicting the predicted inventory quantity and predicted difference corresponding to each spare part at one or more future time points based on the current operating data of the equipment to be maintained, the procurement priority of each spare part can be determined based on the historical purchase orders of each spare part and the predicted inventory data, and the procurement plan of each spare part can be arranged according to the procurement priority.

[0049] In one embodiment of the present application, the arrangement of the purchase plan for each spare part according to the historical purchase orders corresponding to each spare part and the predicted inventory data includes: determining the historical order quantity and the historical purchase quantity corresponding to each spare part according to the historical purchase orders; determining the change rate of the predicted inventory corresponding to each spare part according to the predicted inventory data; determining the predicted total inventory of each spare part according to the predicted inventory data; calculating the purchase priority of each spare part according to the historical order quantity, the historical purchase quantity, the change rate and the predicted total inventory; wherein, the higher the change rate, the higher the purchase priority of the corresponding spare part, and the lower the predicted total inventory, the higher the purchase priority of the corresponding spare part; and arranging the purchase plan for each category of the spare parts in order of the purchase priorities from high to low.

[0050] In one embodiment of the present application, the calculation of the procurement priority of each spare part based on the historical order quantity, the historical purchase quantity, the change rate and the predicted total inventory includes: normalizing the historical order quantity corresponding to each spare part to obtain a normalized order quantity; normalizing the historical purchase quantity corresponding to each spare part to obtain a normalized purchase quantity; determining the difference between the predicted inventory quantities of any one spare part corresponding to every two adjacent predicted time points; determining the variance of all the differences as the change rate corresponding to any one spare part; determining the sum of all predicted inventory quantities of any one spare part corresponding to all the predicted time points as the predicted total inventory; determining the sum of the change rate, the normalized order quantity and the normalized purchase quantity corresponding to any one spare part; and determining the ratio of the sum to the predicted total inventory as the procurement priority of any one spare part.

[0051] It can be seen from the above technical solutions that the embodiment of the present application trains an inventory prediction model based on the historical fault information of the equipment to be maintained and the inventory quantity corresponding to each spare part when the historical faults are handled, and then processes the real-time operation data of the maintenance equipment according to the inventory prediction model to obtain the corresponding predicted inventory data. In this way, the inventory situation of spare parts can be predicted according to the actual conditions during the operation of the equipment to be maintained, which can improve the accuracy of the predicted spare parts inventory. Subsequently, the purchase priority of each spare part is determined based on the historical purchase orders of the spare parts and the predicted inventory, and then the purchase plan is arranged according to the priority. In this way, the allocation method of the purchase plan can be confirmed in combination with the real-time operating status of the equipment and the historical purchase orders of the spare parts, so that the accuracy of the purchase plan allocation can be improved, and then the efficiency of equipment operation and maintenance can be improved.

[0052] See also Figure 3 , Figure 3It is a functional module diagram of a procurement plan allocation device provided in one embodiment of the present application. A procurement plan allocation device 31 includes a construction module 310, a training module 311, a prediction module 312 and an allocation module 313. The module / unit referred to in this application refers to a series of computer-readable instruction segments that can be executed by the processor 13 and can complete fixed functions, which are stored in the memory 12. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.

[0053] The construction module 310 is used to construct sample data according to the historical fault information of the equipment to be maintained; wherein the historical fault information is used to characterize the operating status of the equipment to be maintained when a historical fault occurs.

[0054] The construction module 310 is also used to determine the inventory quantity of each spare part when the historical fault corresponding to the historical fault information is processed, and the time point when the historical fault is processed, and construct label data according to the inventory quantity corresponding to each spare part and the time point.

[0055] The training module 311 is used to train an inventory prediction model based on the sample data and the label data, wherein the inventory prediction model is used to predict the inventory quantity of spare parts.

[0056] The prediction module 312 is used to input the real-time acquired operation data of the equipment to be maintained into the inventory prediction model to obtain predicted inventory data; wherein the operation data is used to characterize the real-time operation status of the equipment to be maintained.

[0057] The allocation module 313 is used to allocate a purchase plan for each spare part according to the historical purchase orders corresponding to each spare part and the predicted inventory data.

[0058] The construction module 310 is also used to determine the historical operation data of the equipment to be maintained between every two adjacent historical faults; determine the failure interval time between every two adjacent historical faults; and determine the time point, the historical operation data and the failure interval time as the sample data.

[0059] The construction module 310 is also used to determine the inventory quantity corresponding to each spare parts category at each time point; determine the difference between the inventory quantity corresponding to each spare parts category at each time point and the inventory quantity corresponding to the spare parts category at the previous time point; and determine the label data based on the time point, the inventory quantity and the difference.

[0060] The training module 311 is also used to input the sample data into a pre-constructed initial prediction model in sequence according to the time points from early to late, so as to obtain initial prediction data corresponding to the sample data; the initial prediction data includes a prediction time point, a predicted inventory amount and a predicted difference; the loss value of the initial prediction model is calculated based on the sample data, the corresponding initial prediction data and the label data; when the loss value is greater than a preset termination threshold, the initial prediction model is updated based on a back propagation algorithm until the loss value is less than or equal to the termination threshold, and the update is stopped to obtain an inventory prediction model trained to a convergent state.

[0061] The training module 311 is further used to determine the confidence of the initial prediction data based on the fault interval time in the sample data; and determine the loss value based on the confidence, the initial prediction data and the label data.

[0062] The training module 311 is also used to determine the loss value using the following relationship:

[0063] ;

[0064] Wherein, m represents the number of time points, i represents the index of the time point; n represents the number of spare part categories, j represents the index of the spare part category; R i represents the confidence level determined based on the sample data corresponding to the i-th time point; A j represents the predicted inventory quantity corresponding to the j-th spare part in the predicted data corresponding to the i-th time point; B represents the inventory quantity of the j-th spare part in the labeled data corresponding to the i-th time point; C represents the predicted difference corresponding to the j-th spare part in the predicted data corresponding to the i-th time point; D represents the difference corresponding to the j-th spare part in the labeled data corresponding to the i-th time point.

[0065] The scheduling module 314 is also used to determine the historical order quantity and historical purchase quantity corresponding to each of the spare parts based on the historical purchase orders; determine the change rate of the predicted inventory corresponding to each of the spare parts based on the predicted inventory data; determine the predicted total inventory of each of the spare parts based on the predicted inventory data; calculate the procurement priority of each of the spare parts based on the historical order quantity, the historical purchase quantity, the change rate and the predicted total inventory; wherein, the higher the change rate, the higher the procurement priority of the corresponding spare parts, and the lower the predicted total inventory, the higher the procurement priority of the corresponding spare parts; and schedule the procurement plan for each category of the spare parts in order of the procurement priority from high to low.

[0066] The allocation module 314 is also used to normalize the historical order quantity corresponding to each spare part to obtain a normalized order quantity; normalize the historical purchase quantity corresponding to each spare part to obtain a normalized purchase quantity; determine the difference between the predicted inventory quantities of any spare part corresponding to every two adjacent predicted time points; determine the variance of all the differences as the change rate corresponding to any spare part; determine the sum of all predicted inventory quantities of any spare part corresponding to all the predicted time points as the predicted total inventory; determine the sum of the change rate, the normalized order quantity and the normalized purchase quantity corresponding to any spare part; determine the ratio of the sum to the predicted total inventory as the procurement priority of any spare part.

[0067] See also Figure 4 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 100 includes a memory 12 and a processor 13. The memory 12 is used to store computer-readable instructions, and the processor 13 is used to execute the computer-readable instructions stored in the memory to implement a procurement plan allocation method described in any of the above embodiments.

[0068] In an embodiment of the present application, the electronic device 100 further includes a bus, a computer program stored in the memory 12 and executable on the processor 13, such as a procurement plan scheduling program.

[0069] Figure 4 Only the electronic device 100 having the memory 12 and the processor 13 is shown, and those skilled in the art can understand that Figure 4 The structure shown does not constitute a limitation on the electronic device 100 , and the electronic device 100 may include fewer or more components than shown in the figure, or combine some components, or arrange the components differently.

[0070] Combination Figure 2The memory 12 in the electronic device 100 stores a plurality of computer-readable instructions to implement a procurement plan scheduling method, and the processor 13 can execute the plurality of instructions to implement: constructing sample data according to historical fault information of the equipment to be maintained; wherein the historical fault information is used to characterize the operating status of the equipment to be maintained when a historical fault occurs; determining the inventory quantity corresponding to each spare part when the historical fault corresponding to the historical fault information is handled, and the time point when the historical fault is handled, and constructing label data according to the inventory quantity corresponding to each spare part and the time point; training an inventory prediction model based on the sample data and the label data, wherein the inventory prediction model is used to predict the predicted inventory data of each spare part; inputting the operating data of the equipment to be maintained obtained in real time into the inventory prediction model to obtain predicted inventory data; wherein the operating data is used to characterize the real-time operating status of the equipment to be maintained; scheduling a procurement plan for each of the spare parts according to the historical purchase orders corresponding to each spare part and the predicted inventory data.

[0071] Specifically, the specific implementation method of the processor 13 for the above instructions can refer to Figure 2 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0072] Those skilled in the art will appreciate that the schematic diagram is merely an example of the electronic device 100 and does not constitute a limitation on the electronic device 100. The electronic device 100 may be a bus-type structure or a star-type structure. The electronic device 100 may also include more or less other hardware or software than shown in the diagram, or a different arrangement of components. For example, the electronic device 100 may also include input and output devices, network access devices, etc.

[0073] It should be noted that the electronic device 100 is only an example, and other existing or future electronic products that are suitable for the present application should also be included in the protection scope of the present application and included here by reference.

[0074] Among them, the memory 12 includes at least one type of readable storage medium, and the readable storage medium can be non-volatile or volatile. The readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 12 can be an internal storage unit of the electronic device 100, such as a mobile hard disk of the electronic device 100. In other embodiments, the memory 12 can also be an external storage device of the electronic device 100, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the electronic device 100. The memory 12 can not only be used to store application software and various types of data installed in the electronic device 100, such as a code of a procurement plan scheduling program, etc., but also can be used to temporarily store data that has been output or is to be output.

[0075] In some embodiments, the processor 13 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and a combination of various control chips. The processor 13 is the control core (Control Unit) of the electronic device 100, and uses various interfaces and lines to connect various components of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing programs or modules stored in the memory 12 (for example, executing a procurement plan and allocation program, etc.), and calling data stored in the memory 12.

[0076] The processor 13 executes the operating system of the electronic device 100 and various installed applications. The processor 13 executes the applications to implement the steps in each of the above-mentioned procurement plan allocation method embodiments, for example Figure 2 Steps shown.

[0077] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to complete the present application. The one or more modules / units may be a series of computer-readable instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the electronic device 100. For example, the computer program may be divided into a construction module 310, a training module 311, a prediction module 312, and a matching module 313.

[0078] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, and includes a number of instructions for enabling a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a processor to execute a part of a procurement plan allocation method described in each embodiment of the present application.

[0079] If the module / unit integrated in the electronic device 100 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also instruct the relevant hardware devices to complete through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented.

[0080] The computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory and other memory, etc.

[0081] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.

[0082] The bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. Figure 4 Only one arrow is used in the figure, but it does not mean that there is only one bus or one type of bus. The bus is configured to realize the connection and communication between the memory 12 and at least one processor 13, etc.

[0083] An embodiment of the present application also provides a computer-readable storage medium (not shown), in which computer-readable storage medium is stored computer-readable instructions, and the computer-readable instructions are executed by a processor in an electronic device to implement a procurement plan scheduling method described in any of the above embodiments.

[0084] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0085] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0086] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0087] In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the specification can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any specific order.

[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.

Claims

1. A procurement plan allocation method, applied to electronic equipment, characterized in that: The method comprises: Constructing sample data according to historical fault information of the equipment to be maintained; wherein the historical fault information is used to characterize the operating status of the equipment to be maintained when a historical fault occurs; Determine the inventory quantity corresponding to each spare part when the historical fault corresponding to the historical fault information is processed, and the time point when the historical fault is processed, and construct label data according to the inventory quantity corresponding to each spare part and the time point; The inventory prediction model is trained based on the sample data and the label data, wherein the inventory prediction model is used to predict the predicted inventory data of each spare part; wherein the training of the inventory prediction model based on the sample data and the label data includes: inputting the sample data into the pre-constructed initial prediction model in order from early to late according to the time points, and obtaining the initial prediction data corresponding to the sample data; the initial prediction data includes the predicted time point, the predicted inventory amount and the predicted difference; calculating the loss value of the initial prediction model based on the sample data, the corresponding initial prediction data and the label data; when the loss value is greater than a preset termination threshold, updating the initial prediction model based on the back propagation algorithm until the loss value is less than or equal to the termination threshold, stopping the update and obtaining the inventory prediction model trained to a convergent state; wherein the calculation of the loss value of the initial prediction model based on the sample data, the corresponding initial prediction data and the label data includes: determining the confidence of the initial prediction data based on the failure interval time in the sample data; determining the loss value based on the confidence, the initial prediction data and the label data, including: Wherein, m represents the number of time points, i represents the index of the time point; n represents the number of spare part categories, j represents the index of the spare part category; R i represents the confidence level determined based on the sample data corresponding to the i-th time point; A j represents the predicted inventory quantity corresponding to the jth spare part in the predicted data corresponding to the i-th time point; B represents the inventory quantity of the jth spare part in the labeled data corresponding to the i-th time point; C represents the predicted difference corresponding to the jth spare part in the predicted data corresponding to the i-th time point; D represents the difference corresponding to the jth spare part in the labeled data corresponding to the i-th time point; Inputting the real-time acquired operation data of the equipment to be maintained into the inventory prediction model to obtain predicted inventory data; wherein the operation data is used to characterize the real-time operation status of the equipment to be maintained; Arrange a purchase plan for each spare part according to the historical purchase orders corresponding to each spare part and the forecast inventory data.

2. The method for arranging a purchase plan according to claim 1, characterized in that: The constructing of sample data according to the historical fault information of the equipment to be maintained includes: Determine the historical operation data of the equipment to be maintained between every two adjacent historical faults; Determine the failure interval time between every two adjacent historical failures; The time point when the historical fault is processed, the historical operation data, and the fault interval time are determined as the sample data.

3. The method for arranging a purchase plan according to claim 1, characterized in that: The constructing of label data according to the inventory quantity corresponding to each spare part and the time point includes: Determine the inventory quantity corresponding to each of the spare parts categories at each of the time points; Determine the difference between the inventory quantity corresponding to each of the spare parts categories at each time point and the inventory quantity corresponding to the spare parts category at the previous time point; Tag data is determined based on the time point, the inventory quantity, and the difference.

4. The method for arranging a purchase plan according to claim 1, characterized in that: The step of allocating a purchase plan for each spare part according to the historical purchase orders corresponding to each spare part and the forecast inventory data includes: Determine the historical order quantity and historical purchase quantity corresponding to each of the spare parts according to the historical purchase orders; Determine the change rate of the predicted inventory quantity corresponding to each of the spare parts according to the predicted inventory data; Determine the total predicted inventory of each of the spare parts according to the predicted inventory data; Calculate the purchase priority of each spare part according to the historical order quantity, the historical purchase quantity, the change rate and the predicted total inventory; wherein, the higher the change rate, the higher the purchase priority of the corresponding spare part, and the lower the predicted total inventory, the higher the purchase priority of the corresponding spare part; Arrange the procurement plan for each of the spare parts categories in order of the procurement priority from high to low.

5. The method for arranging a purchase plan according to claim 4, characterized in that: The calculating of the purchase priority of each of the spare parts according to the historical order quantity, the historical purchase quantity, the change rate and the predicted total inventory includes: Normalizing the historical order quantity corresponding to each of the spare parts to obtain a normalized order quantity; Normalizing the historical purchase quantity corresponding to each of the spare parts to obtain a normalized purchase quantity; Determine the difference between the predicted inventory quantities of any one type of spare parts corresponding to every two adjacent predicted time points; Determine the variance of all the differences as the change rate corresponding to any one of the spare parts; Determine the sum of all predicted inventory quantities of any one of the spare parts corresponding to all the predicted time points as the predicted total inventory quantity; Determine the sum of the change rate, the normalized order quantity, and the normalized purchase quantity corresponding to any one of the spare parts; The ratio of the sum value to the predicted total inventory is determined as the procurement priority of any one of the spare parts.

6. A purchasing plan arrangement device, characterized in that: The device is used to implement the procurement plan allocation method according to any one of claims 1 to 5, and the device includes: A construction module, used to construct sample data according to historical fault information of the equipment to be maintained; wherein the historical fault information is used to characterize the operating status of the equipment to be maintained when a historical fault occurs; The construction module is used to determine the inventory quantity corresponding to each spare part when the historical fault corresponding to the historical fault information is processed, and the time point when the historical fault is processed, and construct the label data according to the inventory quantity corresponding to each spare part and the time point; A training module, used for training an inventory prediction model based on the sample data and the label data, wherein the inventory prediction model is used for predicting the inventory quantity of spare parts; A prediction module, used for inputting the real-time acquired operation data of the equipment to be maintained into the inventory prediction model to obtain predicted inventory data; wherein the operation data is used to characterize the real-time operation status of the equipment to be maintained; An acquisition module, used to acquire a historical purchase order corresponding to the spare part, wherein the historical purchase order at least includes a demand quantity, an order placement time, and a warehousing time of the spare part; The allocation module is used to allocate the purchase plan of the spare parts according to the historical purchase orders and the predicted inventory data.

7. An electronic device, characterized in that: The electronic device includes a processor and a memory, and the processor is used to implement the procurement plan allocation method as described in any one of claims 1 to 5 when executing the computer program stored in the memory.