Inventory early warning method, device, electronic equipment and storage medium

By building a predictive model and using equipment maintenance logs and historical operating data to predict spare parts inventory, the problem of low efficiency in traditional inventory management is solved, achieving more accurate inventory warnings and improving equipment operation and maintenance efficiency.

CN118333529BActive Publication Date: 2024-10-18江苏中天互联科技有限公司

Patent Information

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

AI Technical Summary

Technical Problem

The efficiency and accuracy of spare parts inventory management in traditional industrial equipment maintenance are low, which leads to a decrease in equipment operation and maintenance efficiency and fails to fully consider the relationship between equipment operating status and spare parts inventory quantity.

Method used

By obtaining the maintenance logs and historical operating data of the target equipment, we build sample data, train the prediction model, predict real-time operating data to determine the inventory of spare parts, and output inventory warning information to improve the accuracy of inventory management and equipment operation and maintenance efficiency.

Benefits of technology

It improves the accuracy of spare parts inventory prediction and equipment operation and maintenance efficiency. By combining the relationship between equipment operating status and spare parts inventory, timely inventory warnings are provided to avoid the problem of excess or insufficient inventory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118333529B_ABST
    Figure CN118333529B_ABST
Patent Text Reader

Abstract

The present application proposes an inventory warning method, device, electronic device and storage medium. The inventory warning method includes: obtaining the maintenance log of the target device, determining the time point when the target device fails according to the maintenance log; determining the corresponding historical operation data according to the time point; wherein the historical operation data is used to characterize the operating state of the target device before the failure; obtaining the inventory quantity of each spare part corresponding to the time point; constructing sample data according to the historical operation data; training a prediction model based on the sample data and the inventory quantity of each spare part; obtaining the real-time operation data of the target device; processing the real-time operation data based on the prediction model to obtain the predicted inventory quantity of each spare part at the predicted time point; outputting inventory warning information according to the predicted inventory quantity of each spare part at the predicted time point. The present application relates to the field of equipment operation and maintenance technology, and can improve the efficiency of 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 inventory control technology, and in particular to an inventory early warning method, device, electronic device and storage medium. 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 widespread 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. Too high an inventory of spare parts may cause excessive storage pressure, and too low an inventory of spare parts may hinder equipment operation and maintenance. In traditional industrial equipment maintenance, the management of spare parts inventory is often limited to a fixed cycle, and fails to fully consider the relationship between the operating status of industrial equipment and the inventory quantity of spare parts, which leads to low efficiency and accuracy in spare parts inventory management, resulting in low efficiency in equipment operation and maintenance. Summary of the invention

[0003] In view of the above, it is necessary to propose an inventory warning method, device, electronic device and storage medium to solve the technical problem of low accuracy in the control of spare parts inventory during equipment operation and maintenance.

[0004] The present application provides an inventory warning method, which is applied to electronic devices, and the method includes: obtaining a maintenance log of a target device, and determining a time point when a failure occurs in the target device based on the maintenance log; determining corresponding historical operation data based on the time point; wherein the historical operation data is used to characterize the operating state of the target device before the failure occurs; obtaining the inventory quantity of each spare part corresponding to the time point; constructing sample data based on the historical operation data; training a prediction model based on the sample data and the inventory quantity of each spare part; obtaining real-time operation data of the target device, and processing the real-time operation data based on the prediction model to obtain a predicted inventory quantity corresponding to each spare part at the predicted time point; and outputting inventory warning information based on the predicted inventory quantity corresponding to each spare part at the predicted time point.

[0005] In some embodiments, the historical operation data includes multiple dimensions, and constructing sample data based on the historical operation data includes: determining the characteristic value of each dimension in the multiple dimensions; normalizing the characteristic value to obtain a normalized characteristic value; determining volatility data for each dimension in the multiple dimensions; and determining the sample data based on each dimension, the corresponding normalized characteristic value, and the corresponding volatility data.

[0006] In some embodiments, the method for determining the volatility data of any one of the multiple dimensions includes: determining the variance of any one of the dimensions; determining the mean of any one of the dimensions; and determining the ratio of the variance to the mean as the volatility data of any one of the dimensions.

[0007] In some embodiments, the sample data is input into a pre-constructed initial prediction model to obtain initial prediction data corresponding to the time point of the sample data; the initial prediction data includes the predicted inventory quantity of each spare part corresponding to the time point; the loss value of the initial prediction model is determined based on the sample data, the inventory quantity of each spare part and the initial prediction 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 a prediction model trained to a convergence state.

[0008] In some embodiments, determining the loss value of the initial prediction model based on the sample data, the inventory of each spare part and the initial prediction data includes: determining the volatility data of each dimension in the sample data, and determining the mean of the volatility data of all dimensions in the sample data; determining the mean corresponding to the sample data at any time point as the confidence of the predicted inventory corresponding to the any time point; determining the loss value according to the inventory in the sample data corresponding to the time point, the corresponding confidence and the corresponding predicted inventory of each spare part.

[0009] In some embodiments, determining the loss value according to the inventory in the sample data corresponding to the time point, the corresponding confidence level, and the corresponding predicted inventory of each spare part includes:

[0010] Wherein, Loss represents the loss value; n represents the number of the time points; i represents the index of the time point; z i represents the confidence of the predicted inventory corresponding to the i-th time point; m represents the number of types of the spare parts; j represents the index of the type of the spare parts; A ij represents the inventory quantity of the jth spare part in the sample data corresponding to the i-th time point; B ij Represents the predicted inventory quantity corresponding to the jth spare part in the initial forecast data corresponding to the i-th time point.

[0011] In some embodiments, outputting inventory warning information based on the predicted inventory quantity corresponding to each spare part at the predicted time point includes: determining the ratio of the predicted inventory quantity corresponding to each spare part at the predicted time point to a preset inventory threshold; when the ratio is less than the preset ratio, constructing warning information based on the ratio, the corresponding spare part type and the corresponding predicted time point; and outputting the warning information.

[0012] The embodiment of the present application also provides an inventory warning device, which includes: an acquisition module, which is used to acquire the maintenance log of the target device and determine the time point when the target device fails based on the maintenance log; a determination module, which is used to determine the corresponding historical operation data based on the time point; wherein the historical operation data is used to characterize the operating status of the target device before the failure; the acquisition module is also used to acquire the inventory quantity of each spare part corresponding to the time point; the determination module is also used to construct sample data based on the historical operation data; a training module is used to train a prediction model based on the sample data and the inventory quantity of each spare part; the acquisition module is also used to acquire the real-time operation data of the target device; the determination module is also used to process the real-time operation data based on the prediction model to obtain the predicted inventory quantity of each spare part at the predicted time point; and a warning module is used to output inventory warning information based on the predicted inventory quantity of each spare part at the predicted time point.

[0013] An embodiment of the present application further provides an electronic device, comprising: a memory storing at least one instruction; and a processor executing the instruction stored in the memory to implement the inventory warning method.

[0014] An embodiment of the present application further provides a computer-readable storage medium, wherein at least one instruction is stored in the computer-readable storage medium, and the at least one instruction is executed by a processor in an electronic device to implement the inventory warning method.

[0015] It can be seen from the above technical solutions that the embodiment of the present application first collects the historical operation data before the target device fails, and pre-processes multiple dimensions of the historical operation data to construct sample data. Subsequently, the prediction model is trained based on the sample data and the corresponding inventory of each spare part, and then the real-time operation data of the target device is processed according to the prediction model to obtain the predicted inventory of each spare part. In this way, the performance of the prediction model can be improved according to the correlation between the actual condition during the operation of the target device and the inventory of the spare parts, so that the accuracy of the subsequent inventory prediction using the prediction model can be improved. Subsequently, the real-time operation data of the target device is processed using the prediction model to obtain the predicted inventory of each spare part, and then the inventory warning information is output according to the predicted inventory. In this way, the inventory warning information can be output in combination with the real-time operation status of the equipment and the correlation between the spare parts inventory, so that the accuracy of the inventory warning can be improved, and the efficiency of equipment operation and maintenance can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 This is an application scenario diagram of an inventory warning method provided in one embodiment of the present application.

[0017] Figure 2 This is a flow chart of an inventory warning method provided in one embodiment of the present application.

[0018] Figure 3 It is a functional module diagram of an inventory early warning device provided in one embodiment of the present application.

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

[0020] 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.

[0021] 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.

[0022] 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.

[0023] The embodiment of the present application provides an inventory warning 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 a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a programmable gate array (Field-Programmable Gate Array, FPGA), a digital processor (Digital Signal Processor, DSP), an embedded device, etc.

[0024] An electronic device can be any electronic product that can interact with a customer, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.

[0025] 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.

[0026] The network where the electronic device is located includes but is not limited to the Internet, wide area network, metropolitan area network, local area network, virtual private network (VPN), etc.

[0027] like Figure 1As shown, an inventory warning method provided by the present application can be applied to an electronic device 100, and the electronic device 100 is connected to a server 200 for communication. The electronic device 100 is used to obtain a maintenance log of a target device from the server 200, determine the time point when the target device fails according to the maintenance log; determine the corresponding historical operation data according to the time point; wherein the historical operation data is used to characterize the operation state of the target device before the failure; obtain the inventory quantity of each spare part corresponding to the time point; construct sample data according to the historical operation data; train a prediction model based on the sample data and the inventory quantity of each spare part; obtain the real-time operation data of the target device; process the real-time operation data based on the prediction model to obtain the predicted inventory quantity of each spare part at the predicted time point; output inventory warning information according to the predicted inventory quantity of each spare part at the predicted time point.

[0028] like Figure 2 , is a flow chart of an inventory warning method provided by an embodiment of the present application. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted. An inventory warning method provided by an embodiment of the present application includes the following steps.

[0029] S20, obtaining a maintenance log of the target device, and determining the time point when the target device fails according to the maintenance log.

[0030] In one embodiment of the present application, the target device may be any device to be maintained in an intelligent manufacturing environment. The maintenance log of the target device is used to record the time point when the target device fails, the operating data of the target device, and the fault information of the target device. For example, when the target device is a generator, the operating data recorded in the maintenance log may be the output current, output voltage, and temperature of the generator, etc., and the fault information recorded in the maintenance log may be data such as the generator downtime and downtime duration collected by the generator's sensor.

[0031] S21, determining corresponding historical operation data according to the time point; wherein the historical operation data is used to characterize the operation status of the target device before a failure occurs.

[0032] In one embodiment of the present application, the historical operation data corresponding to the time point at which the target device fails can be determined based on the time point recorded in the maintenance log. Specifically, the operation data between the time point and the time point when the last failure occurred can be determined as the historical operation data corresponding to the time point; the operation data of the target device within a preset time period before the time point can also be determined as the historical operation data. Among them, since the time point represents the moment when the target device fails, the historical operation data is used to characterize the operation status of the target device before the failure occurs.

[0033] S22, obtaining the inventory quantity of each spare part corresponding to the time point.

[0034] In one embodiment of the present application, in order to determine the correlation between the operating status of the target device and the inventory of spare parts, the inventory of each spare part corresponding to the time point when the target device fails can be obtained. This can provide data support for subsequent training of a prediction model for predicting spare parts inventory.

[0035] S23, constructing sample data according to the historical operation data.

[0036] In one embodiment of the present application, the historical operation data includes multiple dimensions. For example, when the target device is a generator, the historical operation data may be the output current, output voltage, and temperature of the generator. In order to improve the performance of the subsequent training of the prediction model based on the historical operation data, the historical operation data may be preprocessed first, so as to construct sample data for training the prediction model based on the historical operation data. Specifically, the historical operation data includes multiple dimensions, and the construction of sample data based on the historical operation data includes: determining the characteristic value of each dimension in the multiple dimensions; normalizing the characteristic value to obtain a normalized characteristic value; determining the volatility data of each dimension in the multiple dimensions; and determining the sample data based on each dimension, the corresponding normalized characteristic value, and the corresponding volatility data.

[0037] In one embodiment of the present application, the method for determining the volatility data of any one of the multiple dimensions includes: determining the variance of the any one dimension; determining the mean of the any one dimension; and determining that the ratio of the variance to the mean is the volatility data of the any one dimension. Wherein, when the variance of any one dimension is higher, it means that the data differentiation of the dimension is greater, and the volatility of the data of the dimension is stronger.

[0038] S24: training a prediction model based on the sample data and the inventory quantity of each spare part.

[0039] In one embodiment of the present application, in order to be able to predict the inventory of spare parts in real time according to the operating status of the equipment during the subsequent equipment operation and maintenance process, a prediction model can be trained based on sample data and the inventory of each spare part. The training prediction model based on the sample data and the inventory of each spare part includes: inputting the sample data into a pre-constructed initial prediction model to obtain the initial prediction data corresponding to the time point of the sample data; the initial prediction data includes the predicted inventory of each spare part corresponding to the time point; based on the sample data, the inventory of each spare part and the initial prediction data, determine the loss value of the initial prediction model; when the loss value is greater than a preset termination threshold, update the initial prediction model based on the back propagation algorithm until the loss value is less than or equal to the termination threshold, stop updating and obtain a prediction model trained to a convergence state. Among them, the initial prediction model can be a recurrent neural network model, a long short-term memory model, etc., which is not limited in this application.

[0040] In one embodiment of the present application, in order to improve the performance of the prediction model, the volatility of each dimension of the sample data can be used to adjust the loss value of the initial prediction model during the training process. Specifically, the loss value of the initial prediction model determined based on the sample data, the inventory of each spare part, and the initial prediction data includes: determining the volatility data of each dimension in the sample data, and determining the mean of the volatility data of all dimensions in the sample data; determining the mean corresponding to the sample data at any time point as the confidence of the predicted inventory corresponding to the any time point; determining the loss value according to the inventory in the sample data corresponding to the time point, the corresponding confidence, and the corresponding predicted inventory of each spare part. Among them, the method for determining the volatility data of each dimension is the same as the method for determining the volatility data in step S23, which will not be repeated here.

[0041] In an embodiment of the present application, determining the loss value according to the inventory in the sample data corresponding to the time point, the corresponding confidence level, and the corresponding predicted inventory of each spare part includes:

[0042] Wherein, Loss represents the loss value; n represents the number of the time points; i represents the index of the time point; z i represents the confidence of the predicted inventory corresponding to the i-th time point; m represents the number of types of the spare parts; j represents the index of the type of the spare parts; A ij represents the inventory quantity of the jth spare part in the sample data corresponding to the i-th time point; B ij Represents the predicted inventory quantity corresponding to the jth spare part in the initial forecast data corresponding to the i-th time point.

[0043] S25, obtaining real-time operation data of the target device.

[0044] In one embodiment of the present application, in order to determine the inventory of each spare part in real time during the equipment operation and maintenance process, and thereby ensure that early warning can be issued for the spare parts inventory in a timely manner, the operation data of the target equipment can be monitored in real time to obtain the real-time operation data of the target equipment. The format of the real-time operation data is the same as the format of the historical operation data.

[0045] S26, processing the real-time operation data based on the prediction model to obtain the predicted inventory quantity corresponding to each spare part at the predicted time point.

[0046] In one embodiment of the present application, real-time operation data may be input into the prediction model trained to a convergence state to obtain the predicted inventory quantity corresponding to each spare part at a predicted time point, wherein the predicted time point is used to represent one or more future time points.

[0047] S27: Outputting inventory warning information according to the predicted inventory quantity corresponding to each spare part at the predicted time point.

[0048] In one embodiment of the present application, the outputting of inventory warning information according to the predicted inventory corresponding to each spare part at the predicted time point includes: determining the ratio of the predicted inventory corresponding to each spare part at the predicted time point to the preset inventory threshold; when the ratio is less than the preset ratio, constructing warning information according to the ratio, the corresponding spare part type and the corresponding predicted time point; and outputting the warning information. Specifically, when the ratio between the predicted inventory and the preset inventory threshold is higher, it indicates that the corresponding predicted inventory at the predicted time point is relatively sufficient; when the ratio between the predicted inventory and the preset inventory threshold is lower, it indicates that the corresponding predicted inventory at the predicted time point is insufficient, and then the warning information can be output to provide inventory warning to the maintenance personnel. Among them, the ratio, the corresponding spare part type and the corresponding predicted time point can be combined into text data, and the text data is determined to be warning information, and the warning information is output to issue an inventory warning. Exemplarily, the warning information can be "the ratio of the inventory corresponding to the spare part of type A to the inventory threshold is expected to be 0.1 on March 10, 2025".

[0049] It can be seen from the above technical solutions that the embodiment of the present application first collects the historical operation data before the target device fails, and pre-processes multiple dimensions of the historical operation data to construct sample data. Subsequently, the prediction model is trained based on the sample data and the corresponding inventory of each spare part, and then the real-time operation data of the target device is processed according to the prediction model to obtain the predicted inventory of each spare part. In this way, the performance of the prediction model can be improved according to the correlation between the actual condition during the operation of the target device and the inventory of the spare parts, so that the accuracy of the subsequent inventory prediction using the prediction model can be improved. Subsequently, the real-time operation data of the target device is processed using the prediction model to obtain the predicted inventory of each spare part, and then the inventory warning information is output according to the predicted inventory. In this way, the inventory warning information can be output in combination with the real-time operation status of the equipment and the correlation between the spare parts inventory, so that the accuracy of the inventory warning can be improved, and the efficiency of equipment operation and maintenance can be improved.

[0050] See also Figure 3 , Figure 3 3 is a functional module diagram of an inventory warning device provided in an embodiment of the present application. An inventory warning device 31 includes an acquisition module 310, a determination module 311, a training module 312 and an early warning module 313. The module / unit referred to in the present 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.

[0051] The acquisition module 310 is used to acquire a maintenance log of a target device and determine a time point when a failure of the target device occurs according to the maintenance log.

[0052] The determination module 311 is used to determine the corresponding historical operation data according to the time point; wherein the historical operation data is used to characterize the operation state of the target device before the failure occurs.

[0053] The acquisition module 310 is further used to acquire the inventory quantity of each spare part corresponding to the time point.

[0054] The determination module 311 is further configured to construct sample data according to the historical operation data.

[0055] The training module 312 is used to train a prediction model based on the sample data and the inventory quantity of each spare part.

[0056] The acquisition module 310 is also used to acquire the real-time operation data of the target device.

[0057] The determination module 311 is further configured to process the real-time operation data based on the prediction model to obtain the predicted inventory quantity corresponding to each spare part at the predicted time point.

[0058] The warning module 313 is used to output inventory warning information according to the predicted inventory quantity corresponding to each spare part at the predicted time point.

[0059] In some embodiments, the determination module 311 is also used to determine the characteristic value of each dimension in the multiple dimensions; normalize the characteristic value to obtain a normalized characteristic value; determine the volatility data of each dimension in the multiple dimensions; and determine the sample data according to each dimension, the corresponding normalized characteristic value and the corresponding volatility data.

[0060] In some embodiments, the determination module 311 is further used to determine the variance of any one dimension; determine the mean of any one dimension; and determine the ratio of the variance to the mean as the volatility data of any one dimension.

[0061] In some embodiments, the training module 312 is also used to input the sample data into a pre-constructed initial prediction model to obtain initial prediction data corresponding to the time point of the sample data; the initial prediction data includes the predicted inventory quantity of each spare part corresponding to the time point; based on the sample data, the inventory quantity of each spare part and the initial prediction data, the loss value of the initial prediction model is determined; 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 a prediction model trained to a convergence state.

[0062] In some embodiments, the training module 312 is also used to determine the volatility data of each dimension in the sample data, and determine the mean of the volatility data of all dimensions in the sample data; determine the mean corresponding to the sample data at any time point as the confidence level of the predicted inventory corresponding to the any time point; determine the loss value based on the inventory in the sample data corresponding to the time point, the corresponding confidence level and the corresponding predicted inventory of each spare part.

[0063] In some embodiments, the training module 312 determines the loss value according to the inventory in the sample data corresponding to the time point, the corresponding confidence level, and the corresponding predicted inventory of each spare part, including:

[0064] Wherein, Loss represents the loss value; n represents the number of the time points; i represents the index of the time point; z irepresents the confidence of the predicted inventory corresponding to the i-th time point; m represents the number of types of the spare parts; j represents the index of the type of the spare parts; A ij represents the inventory quantity of the jth spare part in the sample data corresponding to the i-th time point; B ij Represents the predicted inventory quantity corresponding to the jth spare part in the initial forecast data corresponding to the i-th time point.

[0065] In some embodiments, the warning module 313 outputs inventory warning information based on the predicted inventory quantity corresponding to each spare part at the predicted time point, including: determining the ratio of the predicted inventory quantity corresponding to each spare part at the predicted time point to a preset inventory threshold; when the ratio is less than the preset ratio, constructing warning information based on the ratio, the corresponding spare part type and the corresponding predicted time point; and outputting the warning information.

[0066] 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 an inventory warning method described in any of the above embodiments.

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

[0068] 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.

[0069] Combination Figure 2, the memory 12 in the electronic device 100 stores multiple computer-readable instructions to implement an inventory warning method, and the processor 13 can execute the multiple instructions to achieve: obtain the maintenance log of the target device, and determine the time point when the target device fails according to the maintenance log; determine the corresponding historical operation data according to the time point; wherein the historical operation data is used to characterize the operating state of the target device before the failure; obtain the inventory quantity of each spare part corresponding to the time point; construct sample data according to the historical operation data; train a prediction model based on the sample data and the inventory quantity of each spare part; obtain the real-time operation data of the target device; process the real-time operation data based on the prediction model to obtain the predicted inventory quantity of each spare part at the predicted time point; output inventory warning information according to the predicted inventory quantity of each spare part at the predicted time point.

[0070] 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.

[0071] 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.

[0072] 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.

[0073] 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 (Flash Card), 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 the code of an inventory warning program, etc., but also can be used to temporarily store data that has been output or is to be output.

[0074] 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 combinations 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 or executes programs or modules stored in the memory 12 (for example, executes an inventory warning program, etc.), and calls data stored in the memory 12 to execute various functions of the electronic device 100 and process data.

[0075] 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 embodiments of the inventory warning method, for example Figure 2 Steps shown.

[0076] 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 an acquisition module, a determination module, a training module, and an early warning module.

[0077] 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 an inventory early warning method described in each embodiment of the present application.

[0078] 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.

[0079] 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.

[0080] 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.

[0081] 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.

[0082] An embodiment of the present application further 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 an inventory warning method described in any of the above embodiments.

[0083] 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.

[0084] 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.

[0085] 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.

[0086] 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.

[0087] 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. An inventory early warning method, applied to electronic equipment, characterized in that: The method comprises: Obtaining a maintenance log of a target device, and determining a time point when a failure of the target device occurs according to the maintenance log; Determine the corresponding historical operation data according to the time point; wherein the historical operation data is used to characterize the operation state of the target device before the failure occurs; Obtaining the inventory quantity of each spare part corresponding to the time point; constructing sample data according to the historical operation data; The prediction model is trained based on the sample data and the inventory quantity of each spare part, including: inputting the sample data into a pre-built initial prediction model to obtain the initial prediction data corresponding to the time point of the sample data; the initial prediction data includes the predicted inventory quantity of each spare part corresponding to the time point; determining the loss value of the initial prediction model based on the sample data, the inventory quantity of each spare part and the initial prediction 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 a prediction model trained to a convergence state; wherein, the prediction model is trained based on the sample data, the Determining the loss value of the initial prediction model based on the inventory of each spare part and the initial prediction data includes: determining the volatility data of each dimension in the sample data, and determining the mean of the volatility data of all dimensions in the sample data; determining the mean corresponding to the sample data at any time point as the confidence of the predicted inventory corresponding to the any time point; determining the loss value according to the inventory in the sample data corresponding to the time point, the corresponding confidence and the corresponding predicted inventory of each spare part; wherein, determining the loss value according to the inventory in the sample data corresponding to the time point, the corresponding confidence and the corresponding predicted inventory of each spare part includes: Wherein, Loss represents the loss value; n represents the number of the time points; i represents the index of the time point; z i represents the confidence of the predicted inventory corresponding to the i-th time point; m represents the number of types of the spare parts; j represents the index of the type of the spare parts; A ij represents the inventory quantity of the jth spare part in the sample data corresponding to the i-th time point; B ij Represents the predicted inventory quantity corresponding to the jth spare part in the initial forecast data corresponding to the i-th time point; Acquire real-time operation data of the target device; Processing the real-time operation data based on the prediction model to obtain the predicted inventory quantity corresponding to each spare part at the predicted time point; Output inventory warning information according to the predicted inventory quantity corresponding to each spare part at the predicted time point.

2. The inventory early warning method according to claim 1, characterized in that: The historical operation data includes multiple dimensions, and constructing sample data according to the historical operation data includes: Determining a characteristic value of each dimension in the plurality of dimensions; Normalizing the eigenvalues ​​to obtain normalized eigenvalues; determining volatility data for each of the plurality of dimensions; The sample data is determined according to each dimension, the corresponding normalized eigenvalue and the corresponding volatility data.

3. The inventory early warning method according to claim 2, characterized in that: The method for determining the volatility data of any one of the multiple dimensions includes: Determining the variance of any one of the dimensions; Determining the mean of any one of the dimensions; Determine the ratio of the variance to the mean as the volatility data of any one dimension.

4. The inventory early warning method according to claim 1, characterized in that: Outputting inventory warning information according to the predicted inventory quantity corresponding to each spare part at the predicted time point includes: Determine the ratio of the predicted inventory quantity corresponding to each spare part at the predicted time point to a preset inventory quantity threshold; When the ratio is less than a preset ratio, constructing early warning information according to the ratio, the corresponding spare part type and the corresponding predicted time point; Output the warning information.

5. An inventory early warning device, characterized in that: The device is used to implement the inventory early warning method according to any one of claims 1 to 4, and the device includes: An acquisition module, used to acquire a maintenance log of a target device, and determine a time point when a failure of the target device occurs according to the maintenance log; A determination module, used to determine the corresponding historical operation data according to the time point; wherein the historical operation data is used to characterize the operation state of the target device before the failure occurs; The acquisition module is further used to acquire the inventory quantity of each spare part corresponding to the time point; The determination module is further used to construct sample data according to the historical operation data; A training module, used for training a prediction model based on the sample data and the inventory quantity of each spare part; The acquisition module is further used to acquire the real-time operation data of the target device; The determination module is further used to process the real-time operation data based on the prediction model to obtain the predicted inventory quantity corresponding to each spare part at the predicted time point; The early warning module is used to output inventory early warning information according to the predicted inventory quantity corresponding to each spare part at the predicted time point.

6. An electronic device, characterized in that: The electronic device comprises a processor and a memory, and the processor is used to implement the inventory early warning method according to any one of claims 1 to 4 when executing a computer program stored in the memory.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the inventory early warning method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Four-line one-storehouse spare part inventory prediction system and establishing method thereof

    CN105046370A

  • Method and system for identifying and early warning risk of missing parts in computer hardware stock

    CN116128417A

Cited By

  • Plastic bag inventory early warning method and system for automatic bag taking machine

    CN121938139A