A method for predicting the leakage risk of wall-mounted disinfectant spray in a sterile dispensing room
Through machine learning and deep learning technology, a wall-mounted disinfection spray leakage risk prediction model is constructed to solve the problem of predicting the leakage risk of disinfection spray equipment in sterile dispensing rooms, improve safety and management efficiency, and ensure the safety of drugs and the environment. sterile state.
Patent Information
- Application Number
- CN202410924021.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-07-11
AI Technical Summary
Wall-mounted disinfection spray equipment in sterile dispensing rooms may leak due to aging or improper operation, reducing disinfection effectiveness and causing contamination risks. It is difficult to effectively predict and prevent such leaks with existing technology.
Using machine learning and deep learning technology, by collecting and processing spray equipment operating data and environmental parameters, we build a feature gated screening module, a dual-channel multi-layer sensing network module and a multiple dual-stream interaction module to establish a wall-mounted disinfection spray leakage risk prediction model. Carry out risk prediction and early warning.
It improves the sustainability of the sterile environment and the safety of the dispensing room, reduces maintenance costs, optimizes the management process, ensures drug safety and effectiveness, and protects the health of medical staff and patients.
Smart Images

Figure CN118467993B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of leakage risk prediction, and in particular relates to a method for predicting leakage risk of a wall-mounted disinfectant spray in a sterile dispensing room. Background Art
[0002] The sterile dispensing room is a key place in medical institutions for preparing sterile drugs. Its environment must be strictly controlled to ensure the sterility and safety of the drugs. Wall-mounted disinfection spray equipment is a common disinfection method in sterile dispensing rooms. It maintains the sterility of the indoor environment through timed spraying. However, due to factors such as equipment aging, improper operation or environmental changes, the disinfection spray equipment may leak, resulting in reduced disinfection effect and even pollution risks. Therefore, how to predict and prevent the leakage risk of disinfection spray equipment has become an important issue to ensure the safety of sterile dispensing rooms; with the development of Internet of Things technology, various equipment in the dispensing room can realize real-time data collection and transmission, which provides the possibility for data-driven risk prediction methods. Through machine learning and deep learning technology, the operating data and environmental parameters of the equipment can be analyzed to discover potential leakage risks, thereby achieving early warning and prevention of leakage incidents. Summary of the invention
[0003] The main purpose of this invention is to provide a method for predicting the leakage risk of a wall-mounted disinfectant spray in a sterile dispensing room, which aims to analyze equipment operation data and environmental parameters through machine learning and deep learning technologies, predict leakage events in advance, so as to ensure the continuity of the sterile environment, improve the safety of the dispensing room, reduce maintenance costs, and optimize management processes, thereby ensuring the safety and effectiveness of drugs and protecting the health of medical staff and patients.
[0004] To achieve the above object, the technical solution of the present invention is: a method for predicting the leakage risk of a wall-mounted disinfection spray in a sterile dispensing room, the method comprising:
[0005] S1. Collect the operation data of the wall-mounted disinfection spray equipment in the sterile dispensing room, including spray time, spray pressure, liquid level sensor reading, environmental data of the dispensing room, including temperature, humidity, air pressure, and historical spray leakage event data, including leakage time and cause. The data set is called the disinfection spray data set;
[0006] S2. Process the collected disinfection spray dataset, including missing value filling and normalization operations, so as to improve the dataset quality and maintain data consistency;
[0007] S3, construct a feature gated screening module FGSM to select and enhance different features so that each stream can learn features from different angles;
[0008] S4, construct a dual-path multi-layer perception network module DPMM, which learns feature representation from different feature inputs through two independent MLP networks;
[0009] S5. Build a multiple two-stream interaction module MCSM to capture the high-level feature interaction between the two streams and improve the model's expressiveness and performance;
[0010] S6. Construct a wall-mounted disinfection spray leakage risk prediction model, which consists of an input layer, an entity embedding layer, a feature gated screening module, a dual-channel multi-layer perception network module, a multiple dual-stream interaction module, and an output module.
[0011] S7. Use the disinfection spray dataset to train the wall-mounted disinfection spray leakage risk prediction model. During the training process, use the back propagation method to adjust the weights of the neural network to continuously improve the risk prediction ability of the network;
[0012] S8. Use the risk prediction model described in step S7 to predict the risk of leakage of the wall-mounted disinfectant spray in the sterile dispensing room, and use the newly collected data set to regularly update the weight of the risk prediction model of the wall-mounted disinfectant spray in the sterile dispensing room to avoid the problem of model degradation over time.
[0013] Furthermore, in step S3, for the feature gating screening module FGSM, feature selection is achieved by using a gating network, the gating network generates feature importance weights according to the input features, and the weights are used to weight the input features, thereby selecting and enhancing features; specifically, the steps include: first, through two independent and The network processes the stream-specific input features and generates gating weights and , the two independent gating networks are as follows:
[0014] ;
[0015] ;
[0016] In the formula, and is a gating network of two independent MLPs, and is the input of the stream-specific conditional features, and is the output of the element-wise gating weights; then, the gating weights are transformed by the sigmoid function and multiplied by 2 to generate weight values in the range [0,2]. Finally, these weights are applied to the feature embedding e through the element-wise product (⊙) to obtain the weighted feature output and , the specific formula for calculating the weighted feature output of the two streams is as follows:
[0017] ;
[0018] ;
[0019] In the formula, e is the feature representation after embedding, ⊙ represents the element-by-element product, and is the gating weight, is the sigmoid function, and Output the weighted features of the two streams; by setting different conditional features for different streams and ,The feature gating filtering module can make the feature input of the two streams more differentiable, reduce the “homogeneous” learning between two similar MLP streams, and promote the complementary learning of feature interaction.
[0020] Furthermore, in step S3, the feature gating and filtering module is designed to enhance the expressiveness and prediction accuracy of the model. The feature gating and filtering module weights and selects features so that the model can better focus on important features while suppressing noise features, thereby improving the quality of feature screening by the model.
[0021] Furthermore, in step S4, the dual-path multi-layer perception network module DPMM is composed of two independent MLP networks. The two MLP networks act as two parallel streams to learn feature interactions respectively, and the input feature vectors are respectively passed to the two independent MLP networks for implicit learning of feature interactions. The outputs of the two MLP networks are expressed as:
[0022] ;
[0023] ;
[0024] In the formula, and For two independent MLP networks, and is the feature input of the two streams, and The output representation of the two streams.
[0025] Furthermore, in step S4, by working in parallel with two independent MLP streams, the model can learn feature interactions from different perspectives respectively, and the dual-path multi-layer perception network structure allows each stream to focus on different types of feature interactions (low-order and high-order feature interactions), thereby providing a more comprehensive feature representation; in addition, due to the parallel processing characteristics of the dual-stream structure, the model can effectively utilize the parallel computing capabilities of modern hardware to improve the efficiency of training and prediction.
[0026] Further, in step S5, for the multiple dual-stream interaction module MCSM, first, the two vectors output by the dual-channel multi-layer perception network module are and Divided into k subspaces, the dimension of each subspace is , d is The dimension of , the block formula is:
[0027] ;
[0028] ;
[0029] In the formula, is the jth subspace representation of the ith output vector; It can be expressed as: ; Then, multiple fusion is performed in each subspace, and multiple fusion is calculated for the first subspace j=1. The formula is:
[0030] ;
[0031] In the formula, is the sigmoid function, The calculation formula is:
[0032] ;
[0033] In the formula, and is a linear weight vector with dimension , is the multilinear weight matrix in the subspace, with dimension , is the bias term of subspace j; by performing multiple fusions in each subspace, high-order feature interactions can be effectively captured while reducing computational complexity.
[0034] Furthermore, in step S7, through detailed training steps, the model can effectively learn the relationship between the operation data of the disinfection spray equipment and the leakage event. The training loss function Loss of the present invention adopts a binary cross entropy loss function, and the formula is:
[0035] ;
[0036] In the formula, y is the label of the real data, is the data predicted by the model, and N is the number of samples in each iteration; the back propagation algorithm continuously adjusts the model parameters during the training process to minimize the prediction error, thereby improving the model's leakage risk prediction ability. Finally, the trained model can be used in practical applications to help monitor and predict the leakage risk of disinfection spray equipment in sterile dispensing rooms.
[0037] Compared with the prior art, the present invention has the following technical effects:
[0038] The technical solution provided by the present invention aims to solve the problem of leakage risk prediction of wall-mounted disinfectant spray in sterile dispensing rooms. The technical solution weights and screens features through a gating mechanism, highlights important features, suppresses noise features, and improves the expressiveness of the model. At the same time, a dual-path multi-layer perception network module is constructed to learn feature representation in parallel, thereby increasing the learning ability and efficiency of the model. Finally, a multiple dual-stream interaction module is used to capture the high-order feature interaction between the two streams, thereby improving the expressiveness of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 The present invention is a flowchart of the steps of a method for predicting the leakage risk of a wall-mounted disinfectant spray in a sterile dispensing room.
[0040] Figure 2 This is a structural diagram of the feature gated screening module of a method for predicting the leakage risk of a wall-mounted disinfectant spray in a sterile dispensing room.
[0041] Figure 3 This is a dual-path multi-layer perception network module structure diagram for a wall-mounted disinfection spray leakage risk prediction method for a sterile dispensing room.
[0042] Figure 4 This is a structural diagram of multiple dual-stream interactive modules for a wall-mounted disinfection spray leakage risk prediction method for a sterile dispensing room.
[0043] Figure 5 This is a fitting diagram of the predicted value and the true value of a wall-mounted disinfection spray leakage risk prediction method for a sterile dispensing room. DETAILED DESCRIPTION
[0044] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0045] See also Figure 1-Figure 5 The present invention provides a technical solution: a method for predicting the leakage risk of a wall-mounted disinfectant spray in a sterile dispensing room. The method weights and screens features through a gating mechanism, highlights important features, suppresses noise features, and improves the expressiveness of the model. At the same time, a dual-path multi-layer perception network module is constructed to learn feature representations in parallel, thereby increasing the learning ability and efficiency of the model. Finally, a multiple dual-stream interaction module is used to capture the high-order feature interaction between the two streams, thereby improving the expressiveness of the model.
[0046] See also Figure 1 As shown, a method for predicting the risk of leakage of a wall-mounted disinfectant spray in a sterile dispensing room in an embodiment of the present application is as follows:
[0047] S1. Collect the operation data of the wall-mounted disinfection spray equipment in the sterile dispensing room, including spray time, spray pressure, liquid level sensor reading, environmental data of the dispensing room, including temperature, humidity, air pressure, and historical spray leakage event data, including leakage time and cause. The data set is called the disinfection spray data set.
[0048] S2. Process the collected disinfection spray dataset, including missing value filling and normalization operations, to improve the dataset quality and maintain data consistency.
[0049] S3. Construct a feature gated filtering module FGSM to select and enhance different features so that each stream can learn features from different angles.
[0050] Furthermore, in step S3, for the feature gated screening module FGSM, as Figure 2 As shown in FIG, feature selection is achieved by using a gating network, which generates feature importance weights according to input features, and uses the weights to weight the input features, thereby selecting and enhancing features; specifically, the following steps are performed: first, through two independent and The network processes the stream-specific input features and generates gating weights and , the two independent gating networks are as follows:
[0051] ;
[0052] ;
[0053] In the formula, and It is a gating network of two independent MLPs. The hidden layer of each gating network contains 3 layers. The number of neurons in each layer decreases layer by layer, namely 128, 64, and 32. The activation function selects the ReLU nonlinear activation function. and is the input of the stream-specific conditional features, and is the output of the element-wise gating weights; then, the gating weights are transformed by the sigmoid function and multiplied by 2 to generate weight values in the range [0,2]. Finally, these weights are applied to the feature embedding e through the element-wise product (⊙) to obtain the weighted feature output and , the specific formula for calculating the weighted feature output of the two streams is as follows:
[0054] ;
[0055] ;
[0056] In the formula, e is the feature representation after embedding, ⊙ represents the element-by-element product, and is the gating weight, is the sigmoid function, and Output the weighted features of the two streams; by setting different conditional features for different streams and ,The feature gating filtering module can make the feature input of the two streams more differentiable, reduce the “homogeneous” learning between two similar MLP streams, and promote the complementary learning of feature interaction.
[0057] S4. Construct a dual-path multi-layer perception network module DPMM to learn feature representations from different feature inputs through two independent MLP networks.
[0058] Further, in step S4, for the dual-path multi-layer perception network module DPMM, as Figure 3 As shown in the figure, it consists of two independent MLP networks. The two MLP networks act as two parallel streams to learn feature interactions respectively. The input feature vectors are passed to the two independent MLP networks for implicit learning of feature interactions. The outputs of the two MLP networks are expressed as:
[0059] ;
[0060] ;
[0061] In the formula, and There are two independent MLP networks. Each MLP network has 2 hidden layers, with 64 and 32 neurons in each layer, and a Dropout layer is used to prevent the model from overfitting. and is the feature input of the two streams, and The output representation of the two streams.
[0062] S5. Build a multiple two-stream interaction module MCSM to capture the high-level feature interaction between the two streams and improve the expressiveness and performance of the model.
[0063] Furthermore, in step S5, for the multiple dual-stream interaction module MCSM, as Figure 4 As shown, the two vectors output by the dual-channel multi-layer perception network module are and The dimension is d=8, dividing the two vectors into k=2 subspaces, and the dimension of each subspace is =4, the block formula is:
[0064] ;
[0065] ;
[0066] In the formula, is the jth subspace representation of the ith output vector; and Can be expressed as: , ; Then, multiple fusion is performed in each subspace, and multiple fusion is calculated for the first subspace. The formula is:
[0067] ;
[0068] In the formula, is the sigmoid function, The calculation formula is:
[0069] ;
[0070] In the formula, and is a linear weight vector with a dimension of 4, is the multilinear weight matrix in the subspace, with dimension , is the bias term of subspace j; by performing multiple fusions in each subspace, high-order feature interactions can be effectively captured while reducing computational complexity.
[0071] S6. Construct a wall-mounted disinfection spray leakage risk prediction model, which consists of an input layer, an entity embedding layer, a feature gated screening module, a dual-path multi-layer perception network module, a multiple dual-stream interaction module, and an output module.
[0072] S7. Use the disinfectant spray dataset to train the wall-mounted disinfectant spray leakage risk prediction model for the sterile dispensing room. During the training process, use the back propagation method to adjust the weights of the neural network to continuously improve the risk prediction ability of the network.
[0073] Furthermore, in step S7, through detailed training steps, the model can effectively learn the relationship between the operation data of the disinfection spray equipment and the leakage event. The training loss function Loss of the present invention adopts a binary cross entropy loss function, and the formula is:
[0074] ;
[0075] In the formula, y is the label of the real data, is the data predicted by the model, and N is the number of samples in each iteration. The back propagation algorithm continuously adjusts the model parameters during the training process. The optimizer uses Adam and the Epoch is set to 1000 to minimize the prediction error, thereby improving the model's leakage risk prediction ability. Finally, the trained model can be used in practical applications to help monitor and predict the leakage risk of disinfection spray equipment in sterile dispensing rooms.
[0076] S8. Use the risk prediction model described in step S7 to predict the risk of leakage of the wall-mounted disinfection spray in the sterile dispensing room, such as Figure 5 As shown in the figure, the model prediction status within 30 minutes, the present invention determines that the model output is greater than 0.7 as a leakage risk. Figure 5 It can be seen that with the passage of time, at 22 minutes, the model determines that the equipment will have a risk of leakage, and continues to increase at a higher value. It can be seen that the wall-mounted disinfectant spray leakage risk prediction model for the sterile dispensing room has a higher performance advantage; in addition, in order to avoid the problem of model degradation over time, the present invention uses newly collected data sets to regularly update the weights of the wall-mounted disinfectant spray leakage risk prediction model for the sterile dispensing room.
[0077] The above are only preferred embodiments of the present invention. It should be pointed out that a person skilled in the art can make several modifications and improvements without departing from the inventive concept of the present invention, and these all fall within the protection scope of the present invention.
Claims
1. A method for predicting the leakage risk of a wall-mounted disinfectant spray in a sterile dispensing room, characterized in that: The following steps are involved: S1. Collect the operation data of the wall-mounted disinfection spray equipment in the sterile dispensing room, including spray time, spray pressure, liquid level sensor reading, environmental data of the dispensing room, including temperature, humidity, air pressure, and historical spray leakage event data, including leakage time and cause. The collected data is called the disinfection spray data set; S2. Process the collected disinfection spray dataset, including missing value filling and normalization operations, so as to improve the dataset quality and maintain data consistency; S3, construct a feature gated screening module FGSM to select and enhance different features so that each stream can learn features from different angles; For the feature gating screening module FGSM, feature selection is achieved by using a gating network. The gating network generates feature importance weights according to the input features, and the weights are used to weight the input features, thereby selecting and enhancing the features; specifically, the following steps are performed: first, the stream-specific input features are processed by two independent Gate1 and Gate2 networks to generate gating weights g1 and g2. The two independent gating networks are as follows: g1 = Gate1(x1); g2 = Gate2(x2); Where Gate1 and Gate2 are two independent MLP gating networks, x1 and x2 are the inputs of the stream-specific conditional features, and g1 and g2 are the outputs of the element-by-element gating weights. Then, the gating weights are transformed by the sigmoid function and multiplied by 2 to generate weight values in the range [0,2]. Finally, these weights are applied to the feature embedding e through element-by-element product (⊙) to obtain the weighted feature outputs h1 and h2. The specific formula for calculating the weighted feature outputs of the two streams is as follows: h1=2σ(g1)⊙e; h2=2σ(g2)⊙e; Where e is the embedded feature representation, ⊙ represents the element-by-element product, g1 and g2 are the gating weights, σ is the sigmoid function, and h1 and h2 are the weighted feature output results of the two streams. By setting different conditional features x1 and x2 for different streams, the feature gating filtering module can make the feature inputs of the two streams more different, reduce the "homogeneous" learning between two similar MLP streams, and promote complementary learning of feature interactions. S4, construct a dual-path multi-layer perception network module DPMM, which learns feature representation from different feature inputs through two independent MLP networks; S5. Construct a multiple two-stream interaction module MCSM to capture the high-level feature interaction between the two streams and improve the expression ability and performance of the model. For the multiple two-stream interaction module MCSM, first, the two vectors o1 and o2 output by the two-way multi-layer perception network module are divided into k subspaces, and the dimension of each subspace is d is the dimension of o1, and the block formula is: o1=[o 11 ,o 12 .......,o 1k ]; o2=[o 21 ,the 22 .......,the 2k ]; In the formula, o ij is the jth subspace representation of the ith output vector; subspace o ij It can be expressed as: Subsequently, multiple fusions are performed in each subspace, and the output formula of the multiple two-stream interaction module is: Where σ is the sigmoid function, BF(o 1j , o 2j ) is calculated as: Where W 1j and W 2j is a linear weight vector with dimension W 3j is the multilinear weight matrix in the subspace, with dimension b j is the bias term of subspace j; by performing multiple fusions in each subspace, high-order feature interactions can be effectively captured while reducing computational complexity; S6. Construct a disinfection spray leakage risk prediction model, which consists of an input layer, an entity embedding layer, a feature gated screening module, a dual-channel multi-layer perception network module, a multiple dual-stream interaction module, and an output module. S7. Use the disinfection spray data to train the disinfection spray leakage risk prediction model. During the training process, use the back propagation method to adjust the weights of the neural network to continuously improve the risk prediction ability of the network; S8. Use the leakage risk prediction model to make predictions and update the model regularly. Deploy the trained disinfectant spray leakage risk prediction model for real-time predictions, and use newly collected data sets to regularly update the weights of the wall-mounted disinfectant spray leakage risk prediction model in the sterile dispensing room to avoid the problem of model degradation over time.
2. The method for predicting leakage risk of a wall-mounted disinfectant spray in a sterile dispensing room according to claim 1, characterized in that: In step S3, the feature gating and filtering module is designed to enhance the expressiveness and prediction accuracy of the model. The feature gating and filtering module weights and selects features so that the model can better focus on important features while suppressing noise features.
3. The method for predicting leakage risk of a wall-mounted disinfectant spray in a sterile dispensing room according to claim 1, characterized in that: In step S4, the dual-path multi-layer perception network module DPMM is composed of two independent MLP networks. The two MLP networks act as two parallel streams to learn feature interactions respectively. The input feature vectors are passed to the two independent MLP networks for implicit learning of feature interactions. The outputs of the two MLP networks are expressed as: o1=MLP1(h1); o2=MLP2(h2); In the formula, MLP1 and MLP2 are two independent MLP networks, h1 and h2 are the feature inputs of the two streams, and o1 and o2 are the output representations of the two streams.
4. The method for predicting leakage risk of a wall-mounted disinfectant spray in a sterile dispensing room according to claim 1, characterized in that: In step S4, by working in parallel with two independent MLP streams, the dual-path multi-layer perception network module is able to learn feature interactions from different perspectives respectively, and allows each stream to focus on low-order and high-order feature interactions, thereby providing a more comprehensive feature representation; in addition, due to the parallel processing characteristics of the dual-stream structure, the model can effectively utilize the parallel computing capabilities of modern hardware.
5. The method for predicting leakage risk of a wall-mounted disinfectant spray in a sterile dispensing room according to claim 1, characterized in that: In step S7, through detailed training steps, the leakage prediction model can effectively learn the relationship between the operation data of the disinfection spray equipment and the leakage event. The training loss function Loss of the present invention adopts a binary cross entropy loss function, and the formula is: In the formula, y is the label of the real data, is the data predicted by the model, and N is the number of samples in each iteration; The back-propagation algorithm continuously adjusts the model parameters during the training process to minimize the prediction error, thereby improving the model's ability to predict leakage risk. Ultimately, the trained model can be used in practical applications to help monitor and predict the leakage risk of disinfectant spray equipment in sterile dispensing rooms.
