Naval vessel medicinal material management method and system based on wireless Bluetooth data transmission
By using wireless Bluetooth data transmission and intelligent management nodes for real-time monitoring and analysis in the ship medicinal material management system, the problem of insufficient real-time data update capabilities in the ship medicinal material management system is solved, the automated and remote management of medicinal material inventory is realized, and the efficiency is improved Efficiency and accuracy in medicinal material management.
Patent Information
- Application Number
- CN202410713631.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-08-30
AI Technical Summary
The existing ship medicinal material management system lacks real-time data update and processing capabilities and cannot respond to changes in medicinal material stock in a timely manner, resulting in low efficiency in medicinal material management.
Intelligent management nodes based on wireless Bluetooth data transmission are used to monitor the ship's medicinal material inventory in real time, and the monitoring data is transmitted to the central console through wireless Bluetooth to perform autoregressive analysis and demand forecasting, generate medicinal material replenishment plans, and realize medicinal material demand forecasting and inventory management. .
Through real-time monitoring of intelligent management nodes and wireless Bluetooth data transmission, the accuracy and efficiency of medicinal material management are improved, the automated and remote management of medicinal material inventory is realized, and the timeliness and accuracy of medicinal material supply are ensured.
Smart Images

Figure CN118569776A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent medicine management, and in particular to a ship medicine management method and system based on wireless Bluetooth data transmission. Background Art
[0002] In modern ship operations, the efficiency and accuracy of medicine management are crucial to ensuring the health of crew members and the long-term deployment of ships. Traditional ship medicine management systems mostly rely on manual operations for the storage, inventory and distribution of medicines. These methods are not only time-consuming and labor-intensive, but also easily affect the management quality of medicines due to human errors. Although information and automation technologies have been introduced into medicine management in recent years, such as the use of barcodes and RFID technologies for tracking and inventory control, these technologies still face problems such as signal interference, equipment costs and maintenance difficulties. Especially in the metal-intensive and space-constrained ship environment, existing technologies have failed to make full use of efficient wireless communication technologies to optimize data transmission and remote management processes. These systems usually lack the ability to update and process real-time data and cannot respond to changes in medicine inventory in a timely manner, resulting in inefficient medicine management. Summary of the invention
[0003] In view of the problems existing in the above-mentioned existing ship medicine management method and system based on wireless Bluetooth data transmission, the present invention is proposed.
[0004] Therefore, the problem to be solved by the present invention is that these systems usually lack the ability to update and process real-time data and cannot respond to changes in the inventory of medicinal materials in a timely manner, resulting in low efficiency in medicinal material management.
[0005] To solve the above technical problems, the present invention provides the following technical solutions: a method for ship medicinal material management based on wireless Bluetooth data transmission, which includes deploying intelligent management nodes to organize and monitor the ship medicinal material inventory, and transmitting the monitoring data to the central control console via wireless Bluetooth; management personnel connect to the central control console via mobile terminals to remotely manage medicinal materials; medicinal materials are scanned and registered when they are out of the warehouse, and the central control console sets the inventory threshold for real-time inventory warning; autoregressive analysis is performed based on the monitoring data, and a demand forecasting model is constructed to predict the demand for medicinal materials and generate a medicinal material replenishment plan; the central control console stores the data in a database.
[0006] As a preferred solution of the ship medicine management method based on wireless Bluetooth data transmission described in the present invention, wherein: the deployment of intelligent management nodes to organize and monitor the ship medicine inventory, and transmit the monitoring data to the central control console via wireless Bluetooth means installing intelligent nodes at each medicine storage location in the ship medicine storage warehouse to monitor the medicine inventory, and the medicines are scanned and recorded by the intelligent nodes when entering the warehouse. The intelligent nodes include sensors, Bluetooth and microcontrollers. The intelligent nodes transmit the monitoring data to the central control console in real time via Bluetooth. After receiving the monitoring data transmitted by the intelligent nodes, the central control console updates the medicine inventory information in real time.
[0007] As a preferred solution of the ship medicinal material management method based on wireless Bluetooth data transmission described in the present invention, wherein: the management personnel remotely manage medicinal materials by connecting the central control console via a mobile terminal means that the Bluetooth of the management personnel's mobile terminal is remotely connected to the central control console, and the central control console sends the real-time updated medicinal material inventory data to the mobile terminal via wireless Bluetooth, and the management personnel remotely manage the medicinal material inventory through the mobile terminal and receive notifications from the central control console.
[0008] As a preferred solution of the ship medicine management method based on wireless Bluetooth data transmission described in the present invention, wherein: the medicine is scanned and registered when it is out of the warehouse, and the central console sets the inventory threshold to conduct real-time inventory warning, which means that the medicine needs to be scanned and registered by the intelligent management node when taking out the inventory. The intelligent management node automatically updates the medicine inventory monitoring data after the medicine is out of the warehouse and sends it to the central console. The management personnel set the inventory threshold of the ship medicine inventory through the central console. When the central console monitors that the medicine inventory is lower than the inventory threshold, it automatically sends a medicine replenishment request to the management personnel's mobile terminal.
[0009] As a preferred solution of the ship medicinal material management method based on wireless Bluetooth data transmission described in the present invention, the autoregressive analysis based on monitoring data refers to collecting historical monitoring data of ship medicinal material inventory, drawing autocorrelation function and partial autocorrelation function diagrams through historical monitoring data to identify the autoregressive term order and moving average term order, and establishing an autoregressive model as follows:
[0010]
[0011] Where X t is the model output value, p and q are the order of autoregressive term and moving average term respectively, ε t is the error term, c is the constant term, is the autoregressive coefficient, θ i is the moving average coefficient, X t-i is the input value at the previous i moments, ε t-i is the error term of the previous i moments;
[0012] Establish the likelihood function L:
[0013]
[0014] where σ 2 is the variance of the error term, n is the total number of historical monitoring data, where ε t It is obtained by the difference between the actual value of the autoregressive property of historical monitoring data and the output value of the model;
[0015] Initialize the autoregressive model parameters, use the gradient descent method to iteratively update the model parameters, calculate the likelihood function value after each update, stop iteration after maximizing the likelihood function, and output the model parameters to update the autoregressive model;
[0016] Input the monitoring data into the autoregressive model for analysis to obtain the autoregressive analysis result X t .
[0017] As a preferred solution of the ship medicinal material management method based on wireless Bluetooth data transmission of the present invention, wherein: the construction of a demand forecasting model to forecast medicinal material demand and generate a medicinal material replenishment plan refers to using a random forest algorithm to construct a demand forecasting model:
[0018] The autoregressive analysis results of the monitoring data are X t As features, we form a total feature set, and randomly sample feature subsets from the total feature set. The total number of feature subsets is the same as the number of initial random forest decision trees, and each feature subset constructs an independent decision tree.
[0019] Select features from the feature subset for decision tree segmentation. For each selected feature, calculate the Gini impurity of its segmentation decision tree, and select the feature with the smallest Gini impurity as the decision tree segmentation point for decision tree segmentation;
[0020] Set the maximum depth of the decision tree, iterate the decision tree segmentation until the decision tree reaches the maximum depth, and then form a random forest of all the segmented decision trees to form a demand forecasting model:
[0021]
[0022] Where Y is the forecast result of medicinal material demand, B is the number of decision trees, and F is the number of decision trees. b (X t ) is the prediction result of the bth decision tree, w b is the weight of the bth decision tree;
[0023] The demand forecasting model is trained using the training set, and the model weights are iteratively optimized using the mean square error and gradient descent method until the mean square error reaches the minimum, and then the iteration is stopped and the model parameters are output to obtain the demand forecasting model;
[0024] The constructed demand forecasting model will be deployed in the central console to forecast the demand for medicinal materials, and a medicinal material replenishment plan will be generated based on the forecast results. The central console will send the medicinal material replenishment plan to the manager's mobile terminal simultaneously with the medicinal material inventory warning notification.
[0025] As a preferred solution of the ship medicinal material management method based on wireless Bluetooth data transmission described in the present invention, wherein: the central console stores the data in the database means that the central console stores the collected monitoring data and the data generated by the analysis in the database and implements security protection measures for the stored data, the database backs up the stored data in the cloud, regularly performs integrity checks on the stored data and the backup data, and generates a test report for synchronous storage.
[0026] Another object of the present invention is to provide a ship medicine management system based on wireless Bluetooth data transmission, which comprises:
[0027] Inventory monitoring module, used to monitor the inventory of ship medicinal materials and the entry and exit of medicinal materials, and transmit the monitoring data;
[0028] The demand forecasting module is used to construct an autoregressive model to perform autoregressive analysis on the monitoring data, and to construct a decision tree model based on the results of the autoregressive analysis to forecast the demand for medicinal materials and generate a medicinal material replenishment plan;
[0029] The central control module is used to collect medicinal material inventory monitoring data, store the collected data and analysis data, and control the operation of the inventory monitoring module and the demand forecasting module;
[0030] The remote management module is used by managers to remotely connect to the central control module through a mobile terminal for remote management and control.
[0031] A computer device comprises: a memory and a processor; the memory stores a computer program, and the processor implements the steps of the above-mentioned ship medicine management method based on wireless Bluetooth data transmission when executing the computer program.
[0032] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned ship medicinal material management method based on wireless Bluetooth data transmission.
[0033] The beneficial effects of the present invention are as follows: the present invention monitors the ship's medicinal materials in real time through the intelligent management node and sends it to the central control console via wireless Bluetooth for autoregressive analysis and medicinal material demand forecasting to generate a medicinal material replenishment plan, and can adjust the replenishment plan based on the actual medicinal material usage, thereby improving the applicability of intelligent management of medicinal materials and realizing the automation and remote management of ship medicinal materials. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0035] Figure 1 The figure is a flowchart of a method for managing ship medicinal materials based on wireless Bluetooth data transmission.
[0036] Figure 2 This is a structural diagram of the ship's medicinal materials management system based on wireless Bluetooth data transmission. DETAILED DESCRIPTION
[0037] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.
[0038] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0039] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor is it a separate or selective embodiment that is mutually exclusive with other embodiments.
[0040] Example 1
[0041] Reference Figure 1 , which is the first embodiment of the present invention, and which provides a ship medicine management method based on wireless Bluetooth data transmission. The ship medicine management method based on wireless Bluetooth data transmission includes:
[0042] S1. Deploy intelligent management nodes to organize and monitor the inventory of medicinal materials on ships, and transmit monitoring data to the central console via wireless Bluetooth;
[0043] Specifically, deploying intelligent management nodes to organize and monitor the ship's medicinal material inventory, and transmitting the monitoring data to the central control console via wireless Bluetooth means installing intelligent nodes at each medicinal material storage location in the ship's medicinal material storage warehouse to monitor the medicinal material inventory. The medicinal materials are scanned and recorded by the intelligent nodes when they are put into the warehouse. The intelligent nodes include sensors, Bluetooth and microcontrollers. The intelligent nodes transmit the monitoring data to the central control console in real time via Bluetooth. After receiving the monitoring data transmitted by the intelligent nodes, the central control console updates the medicinal material inventory information in real time.
[0044] Intelligent management nodes are installed at each medicinal material storage location to achieve real-time monitoring of medicinal materials, improve data accuracy and update speed, reduce errors and delays caused by manual inspection, and ensure effective management and use of medicinal materials through real-time data monitoring to avoid the risk of expired medicinal materials. The intelligent node transmits the collected data wirelessly to the central control console through the built-in Bluetooth module to ensure efficient and real-time data transmission, allow instant response to inventory changes, reduce physical connection requirements, and improve system flexibility and reliability. After receiving the data transmitted by the intelligent node, the central control console updates the medicinal material inventory information in real time, provides continuously updated inventory status, supports efficient inventory management and decision-making, optimizes the use of medicinal materials, and reduces resource waste through accurate inventory data.
[0045] S2. Managers use mobile terminals to connect to the central control console to remotely manage medicinal materials;
[0046] Specifically, the manager remotely manages medicinal materials by connecting the mobile terminal to the central console, which means that the Bluetooth of the manager's mobile terminal is remotely connected to the central console, and the central console sends the real-time updated medicinal material inventory data to the mobile terminal via wireless Bluetooth. The manager remotely manages the medicinal material inventory through the mobile terminal and receives notifications from the central console.
[0047] The manager's mobile terminal establishes a secure remote connection with the central control console through Bluetooth technology to achieve two-way data transmission. The manager can obtain the latest medicinal material inventory data in real time and respond quickly to inventory changes. The remote connection allows the manager to manage medicinal materials at any location on the ship, improving the convenience of operation. The medicinal material inventory can be remotely monitored and adjusted through the user interface of the mobile terminal, including but not limited to checking inventory levels, updating inventory records, issuing replenishment requests, etc., reducing manual recording errors and ensuring the accuracy of inventory data through an automated system. Through real-time data updates, managers can adjust the inventory of medicinal materials in a timely manner to prevent surplus or shortages, ensuring the accuracy and timeliness of medicinal material management, which is crucial to maintaining medical support on board and the health of crew members. The central control console sends notifications or alarms to the manager's mobile terminal based on the real-time data analysis results, such as low inventory alarms, drug expiration warnings, etc. The early warning system can prevent potential shortages or expiration of medicinal materials and ensure the reliability of ship medical resources.
[0048] S3. Scan and register the outbound delivery of medicinal materials. The central console sets the inventory threshold and issues real-time inventory warnings.
[0049] Specifically, medicinal materials are scanned and registered when they are shipped out, and the central console sets the inventory threshold to issue real-time inventory warnings. This means that medicinal materials need to be scanned and registered by the intelligent management node when they are taken out of the inventory. The intelligent management node automatically updates the medicinal material inventory monitoring data after the medicinal materials are shipped out and sends it to the central console. The manager sets the inventory threshold of the ship's medicinal material inventory through the central console. When the central console monitors that the medicinal material inventory is lower than the inventory threshold, it automatically sends a medicinal material replenishment request to the manager's mobile terminal.
[0050] When medicinal materials are taken out, they are automatically scanned and registered through the intelligent management node. This process includes verifying medicinal material information, updating inventory data and recording the time and quantity of outbound delivery. Automatic scanning reduces human errors and ensures the accuracy of inventory data. The automated process reduces the burden on managers and improves the speed and efficiency of outbound registration. The inventory data updated by the intelligent management node is transmitted to the central console in real time. The console monitors the inventory in real time according to the preset inventory threshold. Once the medicinal material inventory drops below the threshold, the system automatically triggers an early warning and sends a replenishment request to the manager. The real-time early warning system ensures that medical services will not be interrupted due to depletion of medicinal materials, increases the self-sufficiency of the ship, and optimizes the use and procurement of medicinal materials by precisely controlling the inventory threshold to prevent excessive storage and expiration.
[0051] S4. Perform autoregressive analysis based on monitoring data, build a demand forecasting model to forecast demand for medicinal materials, and generate a medicinal material replenishment plan;
[0052] Specifically, the autoregressive analysis based on monitoring data refers to collecting historical monitoring data of the ship's medicinal material inventory, drawing autocorrelation function and partial autocorrelation function graphs through historical monitoring data to identify the order of autoregressive terms and moving average terms, and using statistical software to draw autocorrelation function ACF graph and partial autocorrelation function PACF graph. For the autoregressive term part, PACF is usually truncated after the p order, and for the moving average term part, ACF is usually truncated after the q order. The autoregressive model is established as follows:
[0053]
[0054] Where X t is the model output value, p and q are the order of autoregressive term and moving average term respectively, ε t is the error term, c is the constant term, is the autoregressive coefficient, θ i is the moving average coefficient, X t-i is the input value at the previous i moments, ε t-i is the error term of the previous i moments;
[0055] Establish the likelihood function L:
[0056]
[0057] where σ 2 is the variance of the error term, n is the total number of historical monitoring data, where ε t The difference between the actual value of the autoregressive property of historical monitoring data and the model output value is obtained:
[0058]
[0059] in is the actual value of the autoregressive property of historical monitoring data;
[0060] Initialize the autoregressive model parameters, use the gradient descent method to iteratively update the model parameters, calculate the likelihood function value after each update, stop iteration after maximizing the likelihood function, and output the model parameters to update the autoregressive model;
[0061] Input the monitoring data into the autoregressive model for analysis to obtain the autoregressive analysis result X t .
[0062] Collect historical monitoring data on ship medicinal material inventory, draw ACF and PACF graphs to determine the order of autoregressive and moving average models, and by identifying appropriate p and q values, a more accurate prediction model can be constructed to improve the accuracy of the prediction, ensure that medicinal material inventory management decisions are based on historical data trends and patterns, reduce intuitive or empirical errors, establish an autoregressive model, initialize model parameters, use gradient descent method to iteratively update parameters, and refine the model through likelihood function optimization. By continuously optimizing model parameters, the accuracy and reliability of the prediction can be gradually improved. Dynamically updating model parameters allows the system to flexibly respond to changes in medicinal material inventory, especially under uncertain supply conditions. Apply the updated autoregressive model to new monitoring data to predict future inventory needs and replenish medicinal materials accordingly. Predicting future demand can foresee future inventory conditions and prepare in advance to avoid shortages or surpluses of medicinal materials. Through accurate predictions, excessive procurement can be avoided, thereby reducing resource waste and expiration risks.
[0063] Furthermore, constructing a demand forecasting model to forecast the demand for medicinal materials and generating a medicinal material replenishment plan refers to using a random forest algorithm to construct a demand forecasting model:
[0064] The autoregressive analysis results of the monitoring data are X t As features, we form a total feature set, and randomly sample feature subsets from the total feature set. The total number of feature subsets is the same as the number of initial random forest decision trees, and each feature subset constructs an independent decision tree.
[0065] Select features from the feature subset for decision tree segmentation. For each selected feature, calculate the Gini impurity of its segmentation decision tree, and select the feature with the smallest Gini impurity as the decision tree segmentation point for decision tree segmentation;
[0066] Set the maximum depth of the decision tree, iterate the decision tree segmentation until the decision tree reaches the maximum depth, and then form a random forest of all the segmented decision trees to form a demand forecasting model:
[0067]
[0068] Where Y is the forecast result of medicinal material demand, B is the number of decision trees, and F is the number of decision trees. b (X t ) is the prediction result of the bth decision tree, w b is the weight of the bth decision tree;
[0069] The demand forecasting model is trained using the training set, and the model weights are iteratively optimized using the mean square error and gradient descent method until the mean square error reaches the minimum, and then the iteration is stopped and the model parameters are output to obtain the demand forecasting model;
[0070] The constructed demand forecasting model will be deployed in the central console to forecast the demand for medicinal materials, and a medicinal material replenishment plan will be generated based on the forecast results. The central console will send the medicinal material replenishment plan to the manager's mobile terminal simultaneously with the medicinal material inventory warning notification.
[0071] Using the results of autoregressive analysis as input features, feature subsets are constructed from the total feature set through random sampling technology, and a decision tree is initialized for each feature subset. Each decision tree uses a different feature subset to increase the diversity of the model and reduce the risk of single model bias. The aggregation results of independently constructed decision trees can reduce the impact of noise and outliers and improve the overall prediction accuracy. In each decision tree, the feature with the smallest Gini impurity is selected as the split point for tree splitting. This process is repeated until the tree reaches the preset maximum depth. By optimizing the Gini impurity, it is ensured that each split is to maximize the purity of the data and the accuracy of the prediction. The maximum depth is set to avoid overfitting and ensure the generalization ability of the model. The random forest model is trained using the training set, and the model weights are iteratively optimized using the mean square error and gradient descent method. Through accurate demand forecasting, resources can be reasonably allocated to ensure the balance between the supply and demand of medicinal materials, optimize inventory management, and avoid waste of resources caused by obsolescence or excess.
[0072] S5. The central control console stores the data in a database.
[0073] Specifically, the central console stores the data in the database, which means that the central console stores the collected monitoring data and the data generated by the analysis in the database and implements security protection measures on the stored data. The database backs up the stored data in the cloud, regularly performs integrity checks on the stored data and the backup data, and generates a test report for synchronous storage.
[0074] The central control console stores the collected medicinal material monitoring data and the predictive data generated by analysis methods such as autoregressive models into a dedicated database. Centralized storage helps to unify the management and processing of data and improve data processing efficiency. Centralized data storage makes data query and further analysis more convenient. Encryption, access control and firewall protection are implemented on the stored data to ensure data security, prevent data leakage, theft or illegal modification, protect privacy and business secrets, strengthen data security measures, and enhance the trust of crew members and related personnel in the system. The database content is regularly backed up to the cloud and integrity checks are performed to ensure the accuracy and completeness of the backup data. In the event of data loss or system failure, data can be quickly restored from cloud backup. By generating and storing test reports, the status of data integrity can be continuously monitored.
[0075] Example 2
[0076] Reference Figure 2, which is the second embodiment of the present invention, and which is different from the previous embodiment, provides a ship medicine management system based on wireless Bluetooth data transmission, which includes:
[0077] Inventory monitoring module, used to monitor the inventory of ship medicinal materials and the entry and exit of medicinal materials, and transmit the monitoring data;
[0078] The demand forecasting module is used to construct an autoregressive model to perform autoregressive analysis on the monitoring data, and to construct a decision tree model based on the results of the autoregressive analysis to forecast the demand for medicinal materials and generate a medicinal material replenishment plan;
[0079] The central control module is used to collect medicinal material inventory monitoring data, store the collected data and analysis data, and control the operation of the inventory monitoring module and the demand forecasting module;
[0080] The remote management module is used by managers to remotely connect to the central control module through a mobile terminal for remote management and control.
[0081] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0082] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0083] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0084] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0085] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A ship medicinal material management method based on wireless Bluetooth data transmission, characterized in that: include, Deploy intelligent management nodes to organize and monitor the inventory of medicinal materials on ships, and transmit monitoring data to the central console via wireless Bluetooth; Managers can remotely manage medicinal materials by connecting to the central control console via mobile terminals; The medicines are scanned and registered when they are out of the warehouse, and the central console sets the inventory threshold to issue real-time inventory warnings; Carry out autoregressive analysis based on monitoring data, build a demand forecasting model to forecast demand for medicinal materials, and generate a medicinal material replenishment plan; The central console stores the data in a database.
2. The method for managing ship medicinal materials based on wireless Bluetooth data transmission according to claim 1, characterized in that: The deployment of intelligent management nodes to organize and monitor the ship's medicinal material inventory and transmit the monitoring data to the central control console via wireless Bluetooth means installing an intelligent node at each medicinal material storage location in the ship's medicinal material storage warehouse to monitor the medicinal material inventory. The medicinal materials are scanned and recorded by the intelligent nodes when they are put into storage. The intelligent nodes include sensors, Bluetooth and microcontrollers. The intelligent nodes transmit the monitoring data to the central control console in real time via Bluetooth. After the central control console receives the monitoring data transmitted by the intelligent nodes, it updates the medicinal material inventory information in real time.
3. The ship medicinal material management method based on wireless Bluetooth data transmission as claimed in claim 2 is characterized in that: The manager remotely manages medicinal materials by connecting the mobile terminal to the central console, which means that the Bluetooth of the manager's mobile terminal is remotely connected to the central console, and the central console sends the real-time updated medicinal material inventory data to the mobile terminal via wireless Bluetooth. The manager remotely manages the medicinal material inventory through the mobile terminal and receives notifications from the central console.
4. The method for managing ship medicinal materials based on wireless Bluetooth data transmission as claimed in claim 3, characterized in that: The medicinal materials are scanned and registered when they are shipped out, and the central console sets the inventory threshold to issue real-time inventory warnings. This means that medicinal materials need to be scanned and registered by the intelligent management node when they are taken out of the inventory. The intelligent management node automatically updates the medicinal material inventory monitoring data after the medicinal materials are shipped out and sends it to the central console. The management personnel set the inventory threshold of the ship's medicinal material inventory through the central console. When the central console monitors that the medicinal material inventory is lower than the inventory threshold, it automatically sends a medicinal material replenishment request to the management personnel's mobile terminal.
5. The method for managing ship medicinal materials based on wireless Bluetooth data transmission as claimed in claim 4, characterized in that: The autoregressive analysis based on monitoring data refers to collecting historical monitoring data of the ship's medicinal material inventory, drawing autocorrelation function and partial autocorrelation function diagrams through historical monitoring data to identify the order of autoregressive terms and moving average terms, and establishing an autoregressive model as follows: Where X t is the model output value, p and q are the order of autoregressive term and moving average term respectively, ε t is the error term, c is the constant term, is the autoregressive coefficient, θ i is the moving average coefficient, X t-i is the input value at the previous i moments, ε t-i is the error term of the previous i moments; Establish the likelihood function L: where σ 2 is the variance of the error term, n is the total number of historical monitoring data, where ε t It is obtained by the difference between the actual value of the autoregressive property of historical monitoring data and the output value of the model; Initialize the autoregressive model parameters, use the gradient descent method to iteratively update the model parameters, calculate the likelihood function value after each update, stop iteration after maximizing the likelihood function, and output the model parameters to update the autoregressive model; Input the monitoring data into the autoregressive model for analysis to obtain the autoregressive analysis result X t .
6. The method for managing ship medicinal materials based on wireless Bluetooth data transmission as claimed in claim 5, characterized in that: The construction of a demand forecasting model to forecast the demand for medicinal materials and generate a medicinal material supplementation plan refers to using a random forest algorithm to construct a demand forecasting model: The autoregressive analysis results of the monitoring data are X t As features, we form a total feature set, and randomly sample feature subsets from the total feature set. The total number of feature subsets is the same as the number of initial random forest decision trees, and each feature subset constructs an independent decision tree. Select features from the feature subset for decision tree segmentation. For each selected feature, calculate the Gini impurity of its segmentation decision tree, and select the feature with the smallest Gini impurity as the decision tree segmentation point for decision tree segmentation; Set the maximum depth of the decision tree, iterate the decision tree segmentation until the decision tree reaches the maximum depth, and then form a random forest of all the segmented decision trees to form a demand forecasting model: Where Y is the forecast result of medicinal material demand, B is the number of decision trees, and F is the number of decision trees. b (X t ) is the prediction result of the bth decision tree, w b is the weight of the bth decision tree; The demand forecasting model is trained using the training set, and the model weights are iteratively optimized using the mean square error and gradient descent method until the mean square error reaches the minimum, and then the iteration is stopped and the model parameters are output to obtain the demand forecasting model; The constructed demand forecasting model will be deployed in the central console to forecast the demand for medicinal materials, and a medicinal material replenishment plan will be generated based on the forecast results. The central console will send the medicinal material replenishment plan to the manager's mobile terminal simultaneously with the medicinal material inventory warning notification.
7. The method for managing ship medicinal materials based on wireless Bluetooth data transmission as claimed in claim 6, characterized in that: The central console storing the data in the database means that the central console stores the collected monitoring data and the data generated by the analysis in the database and implements security protection measures for the stored data. The database backs up the stored data in the cloud, regularly performs integrity checks on the stored data and the backup data, and generates a test report for synchronous storage.
8. A management system for a ship-based medicinal material management method based on wireless Bluetooth data transmission as claimed in any one of claims 1 to 7, characterized in that: include, Inventory monitoring module, used to monitor the inventory of ship medicinal materials and the entry and exit of medicinal materials, and transmit the monitoring data; The demand forecasting module is used to construct an autoregressive model to perform autoregressive analysis on the monitoring data, and to construct a decision tree model based on the results of the autoregressive analysis to forecast the demand for medicinal materials and generate a medicinal material replenishment plan; The central control module is used to collect medicinal material inventory monitoring data, store the collected data and analysis data, and control the operation of the inventory monitoring module and the demand forecasting module; The remote management module is used by managers to remotely connect to the central control module through a mobile terminal for remote management and control.
9. A computer device comprising: Memory and processor; The memory stores a computer program, characterized in that: when the processor executes the computer program, the steps of the ship medicinal material management method based on wireless Bluetooth data transmission described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the ship medicine management method based on wireless Bluetooth data transmission described in any one of claims 1 to 7 are implemented.
