Automatic disinfection method based on machine learning

Through data preprocessing and model structure optimization, the stability and search capabilities of the automated disinfection decision-making model are improved, the deficiencies of data quality, feature learning and search algorithms in traditional models are solved, and more efficient disinfection decision-making and operation effects are achieved.

CN118734993AInactive Publication Date: 2024-10-01THE FIRST AFFILIATED HOSPITAL OF ANHUI MEDICAL UNIV +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410743726.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The traditional automated disinfection decision-making model has low stability, reliability and accuracy due to poor training data quality. The model has weak learning and expression capabilities for environmental characteristics, insufficient flexibility and efficiency of parameter search algorithms, low search accuracy and global search capabilities. weak.

Method used

Improve data quality through data correction, feature screening, data normalization, calculation of pixel similarity, image denoising and data enhancement, design model infrastructure, gradient decay activation function, environment feature exploration module, hidden layer and loss function to improve model learning and expression Ability to optimize the search algorithm using search sensitivity, sensitivity-aware search function, random walk distance factor and random walk search function.

Benefits of technology

It improves the stability, reliability and accuracy of the model, enhances the ability to learn and express environmental features, alleviates the problems of gradient disappearance and training difficulties, and improves the flexibility, accuracy and global search capabilities of the search, speeding up the search speed .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734993A_ABST
    Figure CN118734993A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic disinfection method based on machine learning. The method comprises the steps of data acquisition, data preprocessing, establishment of an automatic disinfection decision model, optimization of the automatic disinfection decision model and automatic disinfection. The invention relates to the technical field of automatic disinfection, in particular to an automatic disinfection method based on machine learning, and according to the scheme, the stability, reliability and accuracy of a model are improved through pixel similarity calculation, image denoising and data enhancement; by designing a gradient attenuation activation function, an environment feature exploration module, an origin module and a loss function, the learning and expression ability of the model is improved, and the problems of gradient disappearance and training difficulty are relieved; by designing the search sensitivity, the sensitive sensing search function, the random walk distance factor and the random walk search function, the search accuracy is improved, the global search ability of the search algorithm is improved, and the search speed is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automated disinfection, and in particular to an automated disinfection method based on machine learning. Background Art

[0002] An automated disinfection method based on machine learning is to establish an automated disinfection decision model based on machine learning algorithms and big data processing technology. The model outputs the disinfection decision corresponding to the disinfection area, and the equipment disinfects the target area according to the decision data. However, the traditional automated disinfection decision model has problems with low stability, reliability and accuracy due to the interference of poor training data on model training; the traditional automated disinfection decision model has weak learning and expression capabilities for environmental features, low accuracy, and is prone to gradient disappearance and training difficulties; the traditional parameter search algorithm has problems with insufficient search flexibility and efficiency, low search accuracy, weak global search capabilities and slow search speed. Summary of the invention

[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides an automated disinfection method based on machine learning. In view of the fact that the traditional automated disinfection decision model has the problem of interference with model training due to poor training data quality, resulting in low stability, reliability and accuracy of the model, this solution improves the data quality, reduces interference with the model, and improves the stability, reliability and accuracy of the model through data correction, feature screening, data normalization, calculation of pixel similarity, image denoising and data enhancement; in view of the fact that the traditional automated disinfection decision model has weak learning and expression ability of environmental features, low accuracy, easy gradient disappearance and training difficulties, In order to solve the difficult problem of training, this solution improves the learning and expression ability and accuracy of the model by designing the model infrastructure, gradient decay activation function, environmental feature exploration module, origin module, hidden layer, and loss function, and alleviates the problems of gradient disappearance and training difficulty. In view of the problems of insufficient search flexibility and efficiency, low search accuracy, weak global search ability and slow search speed in traditional parameter search algorithms, this solution makes the search more flexible and efficient, improves the search accuracy, improves the global search ability of the search algorithm, and speeds up the search by designing search sensitivity, sensitive perception search function, random walk distance factor and random walk search function.

[0004] The present invention provides an automated disinfection method based on machine learning, the method comprising the following steps:

[0005] Step S1: data collection;

[0006] Step S2: data preprocessing;

[0007] Step S3: Establishing an automated disinfection decision model;

[0008] Step S4: Optimizing the automated disinfection decision model;

[0009] Step S5: Automated disinfection.

[0010] Furthermore, in step S1, the data collection includes environmental data, pollution data, human flow data, disinfectant data and disinfection decision data; the environmental data includes environmental image data, temperature, humidity, lighting conditions and ventilation conditions; the pollution data includes types and quantities of microorganisms and sources of pollution; the human flow data includes human flow, personnel activity patterns and types of active personnel; the disinfectant data includes disinfectant type and concentration and disinfectant usage history.

[0011] Furthermore, in step S2, the data preprocessing specifically includes the following steps:

[0012] Step S21: Data correction, detecting and processing duplicate values, missing values ​​and outliers, using the data with the highest mean, median and overall repetition rate to fill in missing values, and correcting duplicate values ​​and outliers;

[0013] Step S22: Feature screening: evaluate the data through correlation analysis, calculate the correlation coefficient between the feature and the target, and select the data that is strongly correlated with the target as the feature;

[0014] Step S23: Data normalization, standardizing the numerical data to ensure that the data are on the same scale;

[0015] Step S24: Calculate pixel similarity, expressed as follows:

[0016] ;

[0017] Where p and q represent the indices of the image pixels, represents the similarity between image pixel p and pixel q, represents the normalization factor, e is a natural constant, represents the square of the norm, and They represent the neighborhood vectors of pixel p and pixel q respectively, and u represents the filtering parameter;

[0018] Step S25: Image denoising, denoising is performed by summing the product of the pixel values ​​of all pixels in the image and their corresponding similarity weights, as shown below:

[0019] ;

[0020] Among them, op represents the original image, represents the pixel value of the original image at position p, Nd[op(p)] represents the denoised pixel value of the image at position p, and P represents the set of all pixel indices in the image. Indicates belonging to a symbol;

[0021] Step S26: data enhancement, expressed as follows:

[0022] ;

[0023] Among them, m and l represent the horizontal and vertical index of the pixel respectively. Indicates at location The pixel value at Indicates that after enhancement, The pixel value at , round(·) means rounding the result to the nearest integer, Indicates pixel ratio The cumulative number of small pixels that appear, Indicates the cumulative number of occurrences of the minimum pixel, IR indicates the number of image pixel rows, IC indicates the number of image pixel columns, and Inum indicates the maximum pixel value of the image;

[0024] Step S27: Setting a label, and setting the disinfection decision data as label data.

[0025] Furthermore, in step S3, the establishment of the automated disinfection decision model specifically includes the following steps:

[0026] Step S31: Design the basic structure of the model, which includes an environmental feature exploration module, which includes a front feature module and a rear feature module; a fully connected layer; a feature receiving layer for receiving environmental feature data passed through the environmental feature exploration module and other input feature data; a multi-layer hidden layer; and a disinfection decision layer;

[0027] Step S32: Design a gradient decay activation function, which is expressed as follows:

[0028] ;

[0029] in; represents the gradient decay activation function, represents the input value of the gradient decay activation function, represents the attenuation coefficient, Indicates taking the absolute value;

[0030] Step S33: design a front feature module, which consists of nine sublayers, including four convolutional layers with different numbers of convolutional kernels, wherein the second convolutional layer and the fourth convolutional layer have the same number of convolutional kernels, a normalization layer and a pooling layer are added after the first two convolutional layers, and a pooling layer is added after the fourth convolutional layer;

[0031] Step S34: design a post-feature module, which consists of two pooling layers, two origin modules and a convolutional layer. The two origin modules are sequentially connected between the two pooling layers, and a convolutional layer is added after the second pooling layer.

[0032] Step S35: Design the convolutional layer, as shown below:

[0033] ;

[0034] in, Represents the element value of the output feature map of the convolution layer, v, b, and n represent the height index, width index, and number index of the convolution kernel respectively, V and B represent the height and width of the convolution kernel respectively, and N represents the number of convolution kernels. Represents the element value of the input feature map of the convolutional layer, represents the elements in the convolution kernel weight matrix, Represents the bias of the convolutional layer;

[0035] Step S36: Design the pooling layer, as shown below:

[0036] ;

[0037] in, Represents the element value of the output feature map of the pooling layer, represents the maximum pooling operation, Represents the element value of the input feature map of the pooling layer;

[0038] Step S37: designing a source module, which includes three parallel convolution paths and one pooling path. Each convolution path is activated by a linear rectification function, and finally the outputs of the four paths are concatenated and outputted.

[0039] Step S38: Design the hidden layer, introduce the gradient decay activation function and residual connection, as shown below:

[0040] ;

[0041] Among them, h represents the layer index of the hidden layer, represents the output of the hidden layer of the hth layer, represents the weight of the hidden layer, represents the input of the hidden layer, represents the bias of the hidden layer, represents the residual weight, represents the output of the hidden layer of the h-1th layer;

[0042] Step S39: Design a disinfection decision layer and predict disinfection decision data, which is expressed as follows:

[0043] ;

[0044] in, represents the output of the disinfection decision layer, softmax represents the normalized exponential function, represents the input of the disinfection decision layer, and Respectively represent the weight and bias of the disinfection decision layer;

[0045] Step S310: Design a loss function based on the gap between the predicted value and the actual value of the disinfection decision, and consider the residual contamination rate to design the loss function, which is expressed as follows:

[0046] ;

[0047] in, are the weight and bias parameters of the model, represents the loss function, Disinfection decision actual value, Disinfection decision prediction value, represents the trade-off parameter, log represents the logarithmic sign, and represents the loss weight, It indicates the residual rate of contamination;

[0048] Step S311: Model parameter learning, expressed as follows:

[0049] ;

[0050] Among them, k represents the number of times the model parameters are learned, represents the model parameters during the k-th model parameter learning, represents the model parameters during the k-1th model parameter learning, represents the learning rate of the k-th model parameter learning, Represents the gradient of the loss function with respect to the parameters.

[0051] Furthermore, in step S4, the automatic disinfection decision model tuning specifically includes the following steps:

[0052] Step S41: Model tuning preparation, setting the hyperparameter search space, generating the hyperparameter search initial point group, setting the inverse of the model's loss value as the hyperparameter fitness, setting the maximum number of hyperparameter searches, and setting the hyperparameter fitness threshold;

[0053] Step S42: Design the search sensitivity and dynamically adjust the exploration distance during the hyperparameter search process, as shown below:

[0054] ;

[0055] Among them, t represents the current number of hyperparameter searches, represents the search sensitivity during the tth hyperparameter search, represents the initial search sensitivity, rand(0,1) represents a random number between 0 and 1, and Tmax represents the maximum number of hyperparameter searches;

[0056] Step S43: Design a sensitive perception search function, which is expressed as follows:

[0057] ;

[0058] in, It represents the hyperparameter position searched by the sensitive perception search function during the t+1th hyperparameter search. Indicates the position where the current hyperparameter has the highest fitness. Indicates the hyperparameter position searched by the sensitive perception search function during the t-th hyperparameter search;

[0059] Step S44: Design a random walk distance factor to introduce randomness in the distance relationship between the optimal position and the initial search position, which is expressed as follows:

[0060] ;

[0061] in, represents the random walk distance factor;

[0062] Step S45: Design a random walk search function, and conduct a second exploration based on the random walk distance factor and the initial sensitive perception search results, as shown below:

[0063] ;

[0064] in, It represents the hyperparameter position searched by the random walk search function during the t+1th hyperparameter search. Indicates 0 to Random angles between

[0065] Step S46: Execute the search, calculate and select the position with the highest fitness in the initial point group of the hyperparameter search as the position with the highest fitness of the current hyperparameter, first execute the hyperparameter search of the sensitive perception search function, update the position with the highest fitness of the current hyperparameter, then execute the hyperparameter search of the random walk search function, and update the position with the highest fitness of the current hyperparameter again. The number of searches increases automatically. If there is a search point in the search result whose fitness is greater than the fitness threshold of the hyperparameter, the hyperparameter of the position with the highest fitness of the current hyperparameter is output to complete the search; if the maximum number of hyperparameter searches is reached, search again; otherwise, perform the next search.

[0066] Furthermore, in step S5, the automated disinfection is performed by collecting environmental data, pollution data, human flow data, and disinfectant data of the disinfection area in real time, and inputting the data into an automated disinfection decision model. The model outputs disinfection decision data corresponding to the disinfection area, and the automated equipment performs disinfection operations on the target area according to the decision data. At the same time, the model is continuously improved and perfected according to the disinfection effect and feedback data.

[0067] The beneficial effects achieved by the present invention using the above scheme are as follows:

[0068] (1) In order to address the problem of low stability, reliability and accuracy of the traditional automated disinfection decision model due to the interference of poor training data quality on model training, this solution improves the data quality, reduces interference to the model, and improves the stability, reliability and accuracy of the model through data correction, feature screening, data normalization, calculation of pixel similarity, image denoising and data enhancement.

[0069] (2) In view of the problems that traditional automated disinfection decision-making models have weak learning and expression capabilities for environmental features, low accuracy, and are prone to gradient vanishing and training difficulties, this solution improves the model's learning and expression capabilities and accuracy, and alleviates the problems of gradient vanishing and training difficulties by designing the model's basic structure, gradient decay activation function, environmental feature exploration module, origin module, hidden layer, and loss function.

[0070] (3) In order to address the problems of insufficient search flexibility and efficiency, low search accuracy, weak global search capability and slow search speed in traditional parameter search algorithms, this scheme makes the search more flexible and efficient, improves the search accuracy, improves the global search capability of the search algorithm and speeds up the search by designing search sensitivity, sensitive perception search function, random walk distance factor and random walk search function. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 A flowchart of an automated disinfection method based on machine learning provided by the present invention;

[0072] Figure 2 is a schematic flow chart of step S2;

[0073] Figure 3 is a schematic flow chart of step S3;

[0074] Figure 4 It is a schematic diagram of the process of step S4.

[0075] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION

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

[0077] In the description of the present invention, it should be understood that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as limiting the present invention.

[0078] Example 1, see Figure 1 The present invention provides an automated disinfection method based on machine learning, the method comprising the following steps:

[0079] Step S1: Data collection, collecting environmental data, pollution data, human flow data, disinfectant data and disinfection decision data;

[0080] Step S2: Data preprocessing, data preprocessing through data correction, feature screening, data normalization, image denoising, and data enhancement;

[0081] Step S3: Establishing an automated disinfection decision model by designing a model infrastructure, a gradient decay activation function, an environmental feature exploration module, an origin module, a hidden layer, a disinfection decision layer, and a loss function, and learning model parameters to establish an automated disinfection decision model;

[0082] Step S4: Automated disinfection decision model tuning, by designing search sensitivity, designing sensitive perception search function, random walk distance factor, and random walk search function to search and optimize model hyperparameters;

[0083] Step S5: Automated disinfection: real-time data collection of the disinfection area is input into the model, and the model outputs the disinfection decision data corresponding to the disinfection area, and disinfection operations are performed on the target area according to the decision data.

[0084] Example 2, see Figure 1 This embodiment is based on the above embodiment, and the data collection is to collect environmental data, pollution data, human flow data, disinfectant data and disinfection decision data; the environmental data includes environmental image data, temperature, humidity, lighting conditions and ventilation conditions; the pollution data includes the types and quantities of microorganisms and pollution sources; the human flow data includes human flow, personnel activity patterns and types of active personnel; the disinfectant data includes disinfectant type and concentration and disinfectant usage history.

[0085] Example 3, see Figure 1 and Figure 2 This embodiment is based on the above embodiment, and the data preprocessing specifically includes the following steps:

[0086] Step S21: Data correction, detecting and processing duplicate values, missing values ​​and outliers, using the data with the highest mean, median and overall repetition rate to fill in missing values, and correcting duplicate values ​​and outliers;

[0087] Step S22: Feature screening: evaluate the data through correlation analysis, calculate the correlation coefficient between the feature and the target, and select the data that is strongly correlated with the target as the feature;

[0088] Step S23: Data normalization, standardizing the numerical data to ensure that the data are on the same scale;

[0089] Step S24: Calculate pixel similarity, expressed as follows:

[0090] ;

[0091] Where p and q represent the indices of the image pixels, represents the similarity between image pixel p and pixel q, represents the normalization factor, e is a natural constant, represents the square of the norm, and They represent the neighborhood vectors of pixel p and pixel q respectively, and u represents the filtering parameter;

[0092] Step S25: Image denoising, denoising is performed by summing the product of the pixel values ​​of all pixels in the image and their corresponding similarity weights, as shown below:

[0093] ;

[0094] Among them, op represents the original image, represents the pixel value of the original image at position p, Nd[op(p)] represents the denoised pixel value of the image at position p, and P represents the set of all pixel indices in the image. Indicates belonging to a symbol;

[0095] Step S26: data enhancement, expressed as follows:

[0096] ;

[0097] Among them, m and l represent the horizontal and vertical index of the pixel respectively. Indicates at location The pixel value at Indicates that after enhancement, The pixel value at , round(·) means rounding the result to the nearest integer, Indicates pixel ratio The cumulative number of small pixels that appear, Indicates the cumulative number of occurrences of the minimum pixel, IR indicates the number of image pixel rows, IC indicates the number of image pixel columns, and Inum indicates the maximum pixel value of the image;

[0098] Step S27: Setting a label, and setting the disinfection decision data as label data.

[0099] By performing the above operations, the traditional automated disinfection decision model has the problem of low stability, reliability and accuracy of the model due to the interference of poor training data quality on model training. This solution improves the data quality, reduces the interference to the model, and improves the stability, reliability and accuracy of the model through data correction, feature screening, data normalization, calculation of pixel similarity, image denoising and data enhancement.

[0100] Example 4, see Figure 1 and Figure 3 This embodiment is based on the above embodiment, and the establishment of the automated disinfection decision model specifically includes the following steps:

[0101] Step S31: Design the basic structure of the model, which includes an environmental feature exploration module, which includes a front feature module and a rear feature module; a fully connected layer; a feature receiving layer for receiving environmental feature data passed through the environmental feature exploration module and other input feature data; a multi-layer hidden layer; and a disinfection decision layer;

[0102] Step S32: Design a gradient decay activation function, which is expressed as follows:

[0103] ;

[0104] in; represents the gradient decay activation function, represents the input value of the gradient decay activation function, represents the attenuation coefficient, Indicates taking the absolute value;

[0105] Step S33: design a front feature module, which consists of nine sublayers, including four convolutional layers with different numbers of convolutional kernels, wherein the second convolutional layer and the fourth convolutional layer have the same number of convolutional kernels, a normalization layer and a pooling layer are added after the first two convolutional layers, and a pooling layer is added after the fourth convolutional layer;

[0106] Step S34: design a post-feature module, which consists of two pooling layers, two origin modules and a convolutional layer. The two origin modules are sequentially connected between the two pooling layers, and a convolutional layer is added after the second pooling layer.

[0107] Step S35: Design the convolutional layer, as shown below:

[0108] ;

[0109] in, Represents the element value of the output feature map of the convolution layer, v, b, and n represent the height index, width index, and number index of the convolution kernel respectively, V and B represent the height and width of the convolution kernel respectively, and N represents the number of convolution kernels. Represents the element value of the input feature map of the convolutional layer, represents the elements in the convolution kernel weight matrix, Represents the bias of the convolutional layer;

[0110] Step S36: Design the pooling layer, as shown below:

[0111] ;

[0112] in, Represents the element value of the output feature map of the pooling layer, represents the maximum pooling operation, Represents the element value of the input feature map of the pooling layer;

[0113] Step S37: designing a source module, which includes three parallel convolution paths and one pooling path. Each convolution path is activated by a linear rectification function, and finally the outputs of the four paths are concatenated and outputted.

[0114] Step S38: Design the hidden layer, introduce the gradient decay activation function and residual connection, as shown below:

[0115] ;

[0116] Among them, h represents the layer index of the hidden layer, represents the output of the hidden layer of the hth layer, represents the weight of the hidden layer, represents the input of the hidden layer, represents the bias of the hidden layer, represents the residual weight, represents the output of the hidden layer of the h-1th layer;

[0117] Step S39: Design a disinfection decision layer and predict disinfection decision data, which is expressed as follows:

[0118] ;

[0119] in, represents the output of the disinfection decision layer, softmax represents the normalized exponential function, represents the input of the disinfection decision layer, and Respectively represent the weight and bias of the disinfection decision layer;

[0120] Step S310: Design a loss function based on the gap between the predicted value and the actual value of the disinfection decision, and consider the residual contamination rate to design the loss function, which is expressed as follows:

[0121] ;

[0122] in, are the weight and bias parameters of the model, represents the loss function, Disinfection decision actual value, Disinfection decision prediction value, represents the trade-off parameter, log represents the logarithmic sign, and represents the loss weight, It indicates the residual rate of contamination;

[0123] Step S311: Model parameter learning, expressed as follows:

[0124] ;

[0125] Among them, k represents the number of times the model parameters are learned, represents the model parameters during the k-th model parameter learning, represents the model parameters during the k-1th model parameter learning, represents the learning rate of the k-th model parameter learning, Represents the gradient of the loss function with respect to the parameters.

[0126] By performing the above operations, this solution improves the learning and expression ability and accuracy of the model and alleviates the problems of gradient vanishing and training difficulty by designing the model infrastructure, gradient decay activation function, environmental feature exploration module, origin module, hidden layer, and loss function, in view of the problems that the traditional automated disinfection decision-making model has weak learning and expression ability of environmental features, low accuracy, and is prone to gradient vanishing and training difficulty.

[0127] Example 5, see Figure 1 and Figure 4 This embodiment is based on the above embodiment, and the automatic disinfection decision model tuning specifically includes the following steps:

[0128] Step S41: Model tuning preparation, setting the hyperparameter search space, generating the hyperparameter search initial point group, setting the inverse of the model's loss value as the hyperparameter fitness, setting the maximum number of hyperparameter searches, and setting the hyperparameter fitness threshold;

[0129] Step S42: Design the search sensitivity and dynamically adjust the exploration distance during the hyperparameter search process, as shown below:

[0130] ;

[0131] Among them, t represents the current number of hyperparameter searches, represents the search sensitivity during the tth hyperparameter search, represents the initial search sensitivity, rand(0,1) represents a random number between 0 and 1, and Tmax represents the maximum number of hyperparameter searches;

[0132] Step S43: Design a sensitive perception search function, which is expressed as follows:

[0133] ;

[0134] in, It represents the hyperparameter position searched by the sensitive perception search function during the t+1th hyperparameter search. Indicates the position where the current hyperparameter has the highest fitness. Indicates the hyperparameter position searched by the sensitive perception search function during the t-th hyperparameter search;

[0135] Step S44: Design a random walk distance factor to introduce randomness in the distance relationship between the optimal position and the initial search position, which is expressed as follows:

[0136] ;

[0137] in, represents the random walk distance factor;

[0138] Step S45: Design a random walk search function, and conduct a second exploration based on the random walk distance factor and the initial sensitive perception search results, as shown below:

[0139] ;

[0140] in, It represents the hyperparameter position searched by the random walk search function during the t+1th hyperparameter search. Indicates 0 to Random angles between

[0141] Step S46: Execute the search, calculate and select the position with the highest fitness in the initial point group of the hyperparameter search as the position with the highest fitness of the current hyperparameter, first execute the hyperparameter search of the sensitive perception search function, update the position with the highest fitness of the current hyperparameter, then execute the hyperparameter search of the random walk search function, and update the position with the highest fitness of the current hyperparameter again. The number of searches increases automatically. If there is a search point in the search result whose fitness is greater than the fitness threshold of the hyperparameter, the hyperparameter of the position with the highest fitness of the current hyperparameter is output to complete the search; if the maximum number of hyperparameter searches is reached, search again; otherwise, perform the next search.

[0142] By performing the above operations, in order to address the problems of insufficient search flexibility and efficiency, low search accuracy, weak global search capability and slow search speed in traditional parameter search algorithms, this scheme designs search sensitivity, sensitive perception search function, random walk distance factor and random walk search function to make the search more flexible and efficient, improve the search accuracy, improve the global search capability of the search algorithm and speed up the search.

[0143] Example 6, see Figure 1This embodiment is based on the above embodiment. The automated disinfection collects environmental data, pollution data, human flow data, and disinfectant data of the disinfection area in real time, inputs the data into an automated disinfection decision model, and the model outputs disinfection decision data corresponding to the disinfection area. The automated equipment performs disinfection operations on the target area according to the decision data. At the same time, the model is continuously improved and perfected according to the disinfection effect and feedback data.

[0144] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0145] While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and variations can be made to the embodiments without departing from the principles and spirit of the invention.

[0146] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.

Claims

1. An automated disinfection method based on machine learning, Features: The method comprises the following steps: Step S1: Data collection, collecting environmental data, pollution data, human flow data, disinfectant data and disinfection decision data; Step S2: Data preprocessing, data preprocessing through data correction, feature screening, data normalization, image denoising, and data enhancement; Step S3: Establishing an automated disinfection decision model by designing a model infrastructure, a gradient decay activation function, an environmental feature exploration module, an origin module, a hidden layer, a disinfection decision layer, and a loss function, and learning model parameters to establish an automated disinfection decision model; Step S4: Automated disinfection decision model tuning, by designing search sensitivity, designing sensitive perception search function, random walk distance factor, and random walk search function to search and optimize model hyperparameters; Step S5: Automated disinfection: real-time data collection of the disinfection area is input into the model, and the model outputs the disinfection decision data corresponding to the disinfection area, and disinfection operations are performed on the target area according to the decision data.

2. An automated disinfection method based on machine learning according to claim 1, Features: In step S3, the establishment of the automated disinfection decision model specifically includes the following steps: Step S31: Design the basic structure of the model, which includes an environmental feature exploration module, which includes a pre-feature extraction module and a post-feature learning module; a fully connected layer; a feature receiving layer for receiving environmental feature data passed through the environmental feature exploration module and other input feature data; a multi-layer hidden layer; and a disinfection decision layer; Step S32: Design a gradient decay activation function, which is expressed as follows: ; in; represents the gradient decay activation function, represents the input value of the gradient decay activation function, represents the attenuation coefficient, Indicates taking the absolute value; Step S33: design a front feature module, which consists of nine sublayers, including four convolutional layers with different numbers of convolutional kernels, wherein the second convolutional layer and the fourth convolutional layer have the same number of convolutional kernels, a normalization layer and a pooling layer are added after the first two convolutional layers, and a pooling layer is added after the fourth convolutional layer; Step S34: design a post-feature module, which consists of two pooling layers, two origin modules and a convolutional layer. The two origin modules are sequentially connected between the two pooling layers, and a convolutional layer is added after the second pooling layer. Step S35: Design the convolutional layer, as shown below: ; in, Represents the element value of the output feature map of the convolution layer, v, b, and n represent the height index, width index, and number index of the convolution kernel respectively, V and B represent the height and width of the convolution kernel respectively, and N represents the number of convolution kernels. Represents the element value of the input feature map of the convolutional layer, represents the elements in the convolution kernel weight matrix, Represents the bias of the convolutional layer; Step S36: Design the pooling layer, as shown below: ; in, Represents the element value of the output feature map of the pooling layer, represents the maximum pooling operation, Represents the element value of the input feature map of the pooling layer; Step S37: designing a source module, which includes three parallel convolution paths and one pooling path. Each convolution path is activated by a linear rectification function, and finally the outputs of the four paths are concatenated and outputted. Step S38: Design the hidden layer, introduce the gradient decay activation function and residual connection, as shown below: ; Among them, h represents the layer index of the hidden layer, represents the output of the hidden layer of the hth layer, represents the weight of the hidden layer, represents the input of the hidden layer, represents the bias of the hidden layer, represents the residual weight, represents the output of the hidden layer of the h-1th layer; Step S39: Design a disinfection decision layer and predict disinfection decision data, which is expressed as follows: ; in, represents the output of the disinfection decision layer, softmax represents the normalized exponential function, represents the input of the disinfection decision layer, and Respectively represent the weight and bias of the disinfection decision layer; Step S310: Design a loss function based on the gap between the predicted value and the actual value of the disinfection decision, and consider the residual contamination rate to design the loss function, which is expressed as follows: ; in, are the weight and bias parameters of the model, represents the loss function, Disinfection decision actual value, Disinfection decision prediction value, represents the trade-off parameter, log represents the logarithmic sign, and represents the loss weight, It indicates the residual rate of contamination; Step S311: Model parameter learning, expressed as follows: ; Among them, k represents the number of times the model parameters are learned, represents the model parameters during the k-th model parameter learning, represents the model parameters during the k-1th model parameter learning, represents the learning rate of the k-th model parameter learning, Represents the gradient of the loss function with respect to the parameters.

3. The automated disinfection method based on machine learning according to claim 1, Features: In step S4, the automatic disinfection decision model tuning specifically includes the following steps: Step S41: Model tuning preparation, setting the hyperparameter search space, generating the hyperparameter search initial point group, setting the inverse of the model's loss value as the hyperparameter fitness, setting the maximum number of hyperparameter searches, and setting the hyperparameter fitness threshold; Step S42: Design the search sensitivity and dynamically adjust the exploration distance during the hyperparameter search process, as shown below: ; Among them, t represents the current number of hyperparameter searches, represents the search sensitivity during the tth hyperparameter search, represents the initial search sensitivity, rand(0,1) represents a random number between 0 and 1, and Tmax represents the maximum number of hyperparameter searches; Step S43: Design a sensitive perception search function, which is expressed as follows: ; in, It represents the hyperparameter position searched by the sensitive perception search function during the t+1th hyperparameter search. Indicates the position where the current hyperparameter has the highest fitness. Indicates the hyperparameter position searched by the sensitive perception search function during the t-th hyperparameter search; Step S44: Design a random walk distance factor to introduce randomness in the distance relationship between the optimal position and the initial search position, which is expressed as follows: ; in, represents the random walk distance factor; Step S45: Design a random walk search function, and conduct a second exploration based on the random walk distance factor and the initial sensitive perception search results, as shown below: ; in, It represents the hyperparameter position searched by the random walk search function during the t+1th hyperparameter search. Indicates 0 to Random angles between Step S46: Execute the search, calculate and select the position with the highest fitness in the initial point group of the hyperparameter search as the position with the highest fitness of the current hyperparameter, first execute the hyperparameter search of the sensitive perception search function, update the position with the highest fitness of the current hyperparameter, then execute the hyperparameter search of the random walk search function, and update the position with the highest fitness of the current hyperparameter again. The number of searches increases automatically. If there is a search point in the search result whose fitness is greater than the fitness threshold of the hyperparameter, the hyperparameter of the position with the highest fitness of the current hyperparameter is output to complete the search; if the maximum number of hyperparameter searches is reached, search again; otherwise, perform the next search.

4. The automated disinfection method based on machine learning according to claim 1, Features: In step S2, the data preprocessing specifically includes the following steps: Step S21: Data correction, detecting and processing duplicate values, missing values ​​and outliers, using the data with the highest mean, median and overall repetition rate to fill in missing values, and correcting duplicate values ​​and outliers; Step S22: Feature screening: evaluate the data through correlation analysis, calculate the correlation coefficient between the feature and the target, and select the data that is strongly correlated with the target as the feature; Step S23: Data normalization, standardizing the numerical data to ensure that the data are on the same scale; Step S24: Calculate pixel similarity, expressed as follows: ; Where p and q represent the indices of the image pixels, represents the similarity between image pixel p and pixel q, represents the normalization factor, e is a natural constant, represents the square of the norm, and They represent the neighborhood vectors of pixel p and pixel q respectively, and u represents the filtering parameter; Step S25: Image denoising, denoising is performed by summing the product of the pixel values ​​of all pixels in the image and their corresponding similarity weights, as shown below: ; Among them, op represents the original image, represents the pixel value of the original image at position p, represents the denoised pixel value of the image at position p, and P represents the set of all pixel indices in the image. Indicates belonging to a symbol; Step S26: data enhancement, expressed as follows: ; Among them, m and l represent the horizontal and vertical coordinate index of the pixel respectively. Indicates at location The pixel value at Indicates that after enhancement, The pixel value at , round(·) means rounding the result to the nearest integer, Indicates pixel ratio The cumulative number of small pixels that appear, Indicates the cumulative number of occurrences of the minimum pixel, IR indicates the number of image pixel rows, IC indicates the number of image pixel columns, and Inum indicates the maximum pixel value of the image; Step S27: Setting a label, and setting the disinfection decision data as label data.

5. The automated disinfection method based on machine learning according to claim 1, Features: In step S1, the data collection includes environmental data, pollution data, human flow data, disinfectant data and disinfection decision data; the environmental data includes environmental image data, temperature, humidity, lighting conditions and ventilation conditions; the pollution data includes the types and quantities of microorganisms and pollution sources; the human flow data includes human flow, personnel activity patterns and types of active personnel; the disinfectant data includes disinfectant type and concentration and disinfectant usage history.

6. The automated disinfection method based on machine learning according to claim 1, Features: In step S5, the automated disinfection is carried out by collecting the environmental data, pollution data, human flow data, and disinfectant data of the disinfection area in real time, and inputting the data into the automated disinfection decision model. The model outputs the disinfection decision data corresponding to the disinfection area, and the automated equipment performs disinfection operations on the target area according to the decision data. At the same time, the model is continuously improved and perfected according to the disinfection effect and feedback data.

Citation Information

Cited By

  • Sanitary disinfectant proportioning system based on machine learning

    CN121687335A

  • Machine learning based hygiene disinfectant proportioning system

    CN121687335B