Vaccine cold-chain logistics monitoring system based on Internet of Things

By performing dark current correction, dead pixel repair and flat field correction of hyperspectral images in the vaccine cold chain logistics monitoring system, combined with the convolutional neural network model, real-time monitoring of vaccine status and prediction of environmental parameters are achieved, solving existing problems. Problems with low system accuracy and efficiency ensure the safe storage of vaccines.

CN118608034AInactive Publication Date: 2024-09-06SUZHOU HANYUN INTELLIGENT TECH CO LTD

Patent Information

Application Number
CN202410751456.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing vaccine cold chain logistics monitoring system has flaws in image preprocessing, feature extraction and model construction. It ignores the key steps of dark current correction, bad pixel repair and flat field correction, resulting in low accuracy and efficiency of the monitoring system.

Method used

A vaccine cold chain logistics monitoring system based on the Internet of Things is designed, including an image acquisition module, an image processing module, a conversion module, a feature model module and a decision support module. Through hyperspectral image acquisition and processing, dark current correction and dead pixels are performed Repair, flat-field correction, image enhancement and noise removal, build a convolutional neural network state feature model, realize real-time classification of vaccine status and prediction of environmental parameters, and automatically adjust storage conditions based on the prediction results.

Benefits of technology

It improves image quality and feature extraction accuracy, enables in-depth learning and understanding of vaccine status, provides real-time decision support, ensures that vaccines are always in an ideal storage environment, and improves logistics management and vaccine quality assurance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608034A
    Figure CN118608034A
Patent Text Reader

Abstract

The invention discloses a vaccine cold-chain logistics monitoring system based on Internet of Things, and relates to the technical field of image processing, and the system comprises an image collection module which is responsible for collecting hyperspectral images of a vaccine and a surrounding environment thereof to obtain an original hyperspectral image; the image processing module is responsible for receiving the collected image and preprocessing the original hyperspectral image; the conversion module is responsible for converting the processed original image data into a NetCDF file format and storing hyperspectral image data and additional metadata; the feature model module is responsible for constructing a state feature model and inputting the processed hyperspectral image sample into the state feature model for training; the decision support module is responsible for collecting real-time hyperspectral image data, inputting a state feature model and judging whether vaccine storage conditions meet requirements or not according to a classification result and a predicted value; and the execution feedback module automatically prompts people to take actions according to the judgment result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a vaccine cold chain logistics monitoring system based on the Internet of Things. Background Art

[0002] In the field of vaccine cold chain logistics, the key to ensuring vaccine quality and safety lies in real-time monitoring of environmental parameters. Traditional monitoring systems rely on simple sensors, such as temperature sensors, which cannot provide comprehensive environmental status data and lack real-time data transmission and remote monitoring capabilities, limiting their efficiency and practicality. With the advancement of the Internet of Things and image processing technology, monitoring systems based on the Internet of Things provide a more comprehensive monitoring method through hyperspectral image acquisition and analysis. However, existing systems have defects in image preprocessing, feature extraction, and model building, ignoring the key steps of dark current correction, bad pixel repair, and flat field correction, and relying on manual selection of model parameters, resulting in low accuracy and efficiency of the monitoring system. Therefore, developing a vaccine cold chain logistics monitoring system that can automatically perform precise image processing and model building is of great significance to improving the management level of the vaccine logistics industry and ensuring vaccine quality. Summary of the invention

[0003] In view of the above existing problems, the present invention is proposed.

[0004] Therefore, the present invention provides a vaccine cold chain logistics monitoring system, device, computer equipment and storage medium based on the Internet of Things to solve the problems of defects in the existing system in image preprocessing, feature extraction and model construction, neglecting the key steps of dark current correction, bad pixel repair and flat field correction, and relying on manual selection of model parameters, resulting in low accuracy and efficiency of the monitoring system.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0006] In a first aspect, an embodiment of the present invention provides a vaccine cold chain logistics monitoring system based on the Internet of Things, which includes an image acquisition module responsible for collecting hyperspectral images of vaccines and their surroundings to obtain original hyperspectral images;

[0007] The image processing module is responsible for receiving the collected images, performing dark current correction, bad pixel repair and flat field correction on the original hyperspectral images, and improving the image quality through image enhancement and noise removal technology;

[0008] The conversion module is responsible for converting the processed raw image data into the NetCDF file format, marking it to obtain hyperspectral image samples, and storing the hyperspectral image data and additional metadata;

[0009] The feature model module is responsible for building the state feature model and training it by inputting the labeled processed hyperspectral image samples into the state feature model;

[0010] The decision support module is responsible for collecting real-time hyperspectral image data, inputting the state feature model to classify the vaccine status and predict the environmental parameters, and comparing the classification results and predicted values ​​with the pre-set safety thresholds to instantly determine whether the vaccine storage conditions meet the requirements;

[0011] Execute the feedback module, and based on the judgment results, the system automatically prompts humans to take action to ensure that the vaccine is always in an ideal storage environment.

[0012] As a preferred solution of the vaccine cold chain logistics monitoring system based on the Internet of Things of the present invention, wherein: the hyperspectral images of the vaccine and its surrounding environment are collected to obtain the original hyperspectral images, and the specific steps are as follows:

[0013] A hyperspectral camera is deployed in the center and four corners of the vaccine transport box to ensure that there are no blind spots in the box. Cameras are installed near the external door and on both sides of the box to monitor the impact of the external environment on the vaccine. All cameras are connected to the edge computing unit via Wi-Fi.

[0014] The hyperspectral camera is a HyperCam series hyperspectral camera, which has a high-sensitivity CMOS sensor with a wavelength coverage range from 400nm to 1000nm, suitable for capturing tiny physical and chemical changes that occur during vaccine transportation. The camera also has an IP67 protection rating to adapt to various harsh environments encountered in cold chain transportation.

[0015] The MQTT protocol is used for data transmission. Due to its low bandwidth, low power consumption and high reliability, it is very suitable for data communication in the Internet of Things environment. Each data packet contains a timestamp, camera ID, image sequence number and image data.

[0016] As a preferred solution of the vaccine cold chain logistics monitoring system based on the Internet of Things described in the present invention, the dark current correction, bad pixel repair and flat field correction processing of the original hyperspectral image are specifically performed as follows:

[0017] receiving hyperspectral image data collected by a camera through an edge computing unit;

[0018] Automatically execute the dark current correction procedure to calculate and deduct the dark current value based on the dark image data at the first startup;

[0019] A detection algorithm is used to identify abnormal pixels in the original hyperspectral image after dark current correction. Single bad pixels are processed by replacing the average value of neighboring pixels, and larger bad pixel areas are repaired by applying bicubic interpolation.

[0020] A reference image is created by taking a flat-field image using a dedicated light source. The correction coefficient is obtained by calculating the pixel brightness ratio between the actual image and the flat-field reference image. This coefficient is applied to the original image to improve the brightness uniformity, thereby obtaining a corrected image.

[0021] As a preferred solution of the vaccine cold chain logistics monitoring system based on the Internet of Things of the present invention, the image enhancement comprises the following specific steps:

[0022] Divide the image into multiple overlapping small area tiles, perform histogram equalization on each tile independently, and use bilinear interpolation or other smoothing techniques to process tile boundaries to reduce blockiness;

[0023] During the histogram equalization process for each tile, ensure that the expansion of the histogram does not exceed the contrast limit parameter value clipLimit to prevent noise amplification caused by over-enhancement;

[0024] After completing the equalization, the boundaries are smoothed to obtain a continuous visual effect;

[0025] The noise removal comprises the following specific steps:

[0026] Use wavelet transform to decompose the image into details and approximate images of different scales. Set a threshold for the high-frequency layer containing more noise. Coefficients below the threshold are considered to be noise and removed. Coefficients above the threshold are considered to carry important information and details of the image and are retained.

[0027] Use the inverse wavelet transform to combine the processed coefficients back into the complete image, achieving denoising while maintaining edges and details;

[0028] For each pixel, find a set of pixel blocks in the image that are similar to its surroundings, and calculate the weighted average of these similar blocks. The weight depends on the similarity between the blocks. The higher the similarity, the higher the weight of the block, and vice versa.

[0029] Replace the original pixel value with the calculated weighted average to remove noise while preserving image details.

[0030] As a preferred solution of the vaccine cold chain logistics monitoring system based on the Internet of Things described in the present invention, the processed raw image data is converted into the NetCDF file format, marked to obtain a hyperspectral image sample, and the hyperspectral image data and additional metadata are stored. The specific steps are:

[0031] The pixel data of each frame of the hyperspectral image data processed by the image processing module is arranged in the order of wavelength bands from 400nm to 1000nm, and then three-dimensional data is formed by width×height×number of bands;

[0032] Metadata associated with the image is also collected;

[0033] Define the dimensions of the NetCDF file according to the actual size of the image;

[0034] Create main variables and other variables to store different types of image data and metadata. The main variable is a multidimensional array used to store the pixel values ​​of the hyperspectral image. Other variables are used to store acquisition time, GPS coordinates, camera ID, image sequence number, ambient temperature, ambient humidity, device exposure time, and device gain value.

[0035] Fill the sorted hyperspectral image samples into the main variables in band order, and write the metadata into the corresponding variables one by one;

[0036] Create and write NetCDF files using netCDF4 in Python;

[0037] Write the sorted data into the file item by item, and close the file after completion to ensure the data is safely saved.

[0038] As a preferred solution of the vaccine cold chain logistics monitoring system based on the Internet of Things described in the present invention, the specific steps of constructing the state feature model are as follows:

[0039] The convolutional neural network (CNN) is used as the state feature model, which includes multiple convolutional layers, normalization layers, activation function layers, pooling layers, fully connected layers, and output layers.

[0040] Principal component analysis (PCA) is used to screen out key bands that are sensitive to changes in vaccine status, reducing the amount of model calculation while improving recognition accuracy.

[0041] As a preferred solution of the vaccine cold chain logistics monitoring system based on the Internet of Things of the present invention, wherein: the training is performed by inputting the state feature model of the labeled processed hyperspectral image samples, and the specific steps are as follows:

[0042] The original image data after a series of preprocessing and conversion is divided into a training set, a validation set, and a test set according to a certain ratio;

[0043] The state feature model is trained using the training set. During the training process, the model adjusts its weights to minimize the prediction error to improve its ability to recognize changes in vaccine status. Stochastic gradient descent (SGD) is used to update the model weights.

[0044] Use the validation set to monitor the accuracy and loss function of the state feature model to avoid overfitting;

[0045] Use the validation set and test set to evaluate the state feature model and check its performance on unseen data, including calculating the accuracy, recall, and F1 score of the state feature model;

[0046] According to the results of model evaluation, adjust the model architecture, including increasing or decreasing the number of model layers, changing the activation function, and adjusting the learning rate.

[0047] As a preferred solution of the vaccine cold chain logistics monitoring system based on the Internet of Things described in the present invention, the decision support module is responsible for collecting real-time hyperspectral image data and inputting the state feature model to classify the vaccine state and predict the environmental parameters. The specific steps are as follows:

[0048] The collected real-time data is pre-processed, including dark current correction, bad pixel repair, flat field correction, image enhancement and noise removal;

[0049] Convert the preprocessed real-time data into NetCDF file format to obtain real-time hyperspectral image samples;

[0050] The real-time hyperspectral image samples are input into the model, and the converted data is input into the state feature model. The state feature model will automatically extract and analyze the features of the input data, classify the vaccine status and predict the environmental parameters, and obtain the predicted values ​​of the vaccine status and environmental parameters.

[0051] As a preferred solution of the vaccine cold chain logistics monitoring system based on the Internet of Things of the present invention, the classification results and the predicted values ​​are compared with the pre-set safety threshold to instantly judge whether the vaccine storage conditions meet the requirements. The specific steps are as follows:

[0052] According to the recommendations of vaccine manufacturers and the requirements of regulatory agencies, the temperature range for safe storage of vaccines is set at 2°C to 8°C, and the humidity range for safe storage of vaccines is set at 45% to 75%.

[0053] Compare the temperature and humidity values ​​predicted by the state characteristic model with the pre-set safety thresholds;

[0054] When the predicted temperature is lower than 2°C and higher than 8°C, the system determines that the safe storage conditions are about to be or have been exceeded;

[0055] When the predicted humidity value is lower than 45% and higher than 75%, the system determines that safe storage conditions are about to be or have been exceeded.

[0056] As a preferred solution of the vaccine cold chain logistics monitoring system based on the Internet of Things of the present invention, the system automatically prompts the operator to take action according to the judgment result to ensure that the vaccine is always in an ideal storage environment. The specific steps are:

[0057] Once the system determines that the vaccine storage environment deviates from the set safety threshold, it will immediately send an alarm to the designated manager through the system's built-in alarm notification function, clearly indicating the type of problem and the deviation of the current actual value from the safety threshold;

[0058] On the mobile terminal of the monitoring center, the status of the current vaccine storage environment is updated and displayed in real time;

[0059] When the predicted temperature value deviates from the safe storage range, the system directly controls the refrigeration and heating systems in the vaccine transport box, intelligently adjusts the power according to the deviation, and quickly adjusts the temperature back to the safe range. If the temperature is too high, the refrigeration power is increased; otherwise, the heating is moderate.

[0060] When the predicted humidity value deviates from the safe storage range, the system links the humidifier and dehumidifier. When the humidity is lower than 45%, the humidification function is automatically turned on; when it is higher than 75%, the dehumidification program is started;

[0061] The types of problems include too high temperature, too low temperature, too high humidity and too low humidity;

[0062] The state of the vaccine storage environment includes changes in temperature, humidity curves and hyperspectral images.

[0063] The beneficial effects of the present invention are as follows: the original hyperspectral images of the vaccine and its surrounding environment are acquired through the image acquisition module to provide basic data for subsequent processing; the image processing module corrects and enhances the original image to improve the image quality and ensure the accuracy of feature extraction; the conversion module converts the processed data into the NetCDF format for easy storage and analysis; the feature model module constructs and trains the state feature model to achieve deep learning and understanding of the vaccine status; the decision support module collects real-time data, performs state classification and prediction, and provides real-time decision support; the execution feedback module takes corresponding actions according to the decision results to achieve closed-loop control. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0065] Figure 1This is a flow chart of the vaccine cold chain logistics monitoring system based on the Internet of Things in Example 1.

[0066] Figure 2 This is a flow chart of the vaccine storage environment deviating from the safety threshold in Example 1. DETAILED DESCRIPTION

[0067] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.

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

[0069] 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 does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0070] Example 1, reference Figure 1 and Figure 2 , which is the first embodiment of the present invention, and provides a vaccine cold chain logistics monitoring system based on the Internet of Things, comprising the following steps:

[0071] The image acquisition module is responsible for collecting the hyperspectral images of the vaccine and its surrounding environment to obtain the original hyperspectral images;

[0072] The image processing module is responsible for receiving the collected images, performing dark current correction, bad pixel repair and flat field correction on the original hyperspectral images, and improving the image quality through image enhancement and noise removal technology;

[0073] The conversion module is responsible for converting the processed raw image data into the NetCDF file format, marking it to obtain hyperspectral image samples, and storing the hyperspectral image data and additional metadata;

[0074] The feature model module is responsible for building the state feature model and training it by inputting the labeled processed hyperspectral image samples into the state feature model;

[0075] The decision support module is responsible for collecting real-time hyperspectral image data, inputting the state feature model to classify the vaccine status and predict the environmental parameters, and comparing the classification results and predicted values ​​with the pre-set safety thresholds to instantly determine whether the vaccine storage conditions meet the requirements;

[0076] Execute the feedback module, and based on the judgment results, the system automatically prompts humans to take action to ensure that the vaccine is always in an ideal storage environment.

[0077] The hyperspectral images of the vaccine and its surrounding environment are collected to obtain the original hyperspectral images. The specific steps are as follows:

[0078] A hyperspectral camera is deployed in the center and four corners of the vaccine transport box to ensure that there are no blind spots in the box. Cameras are installed near the external door and on both sides of the box to monitor the impact of the external environment on the vaccine. All cameras are connected to the edge computing unit via Wi-Fi.

[0079] Hyperspectral camera: The HyperCam series hyperspectral camera is selected. The device has a high-sensitivity CMOS sensor with a wavelength coverage range from 400nm to 1000nm, which is suitable for capturing the tiny physical and chemical changes that occur during vaccine transportation. At the same time, the camera has an IP67 protection level to adapt to various harsh environments encountered in cold chain transportation;

[0080] The MQTT protocol is used for data transmission. Due to its low bandwidth, low power consumption and high reliability, it is very suitable for data communication in the Internet of Things environment. Each data packet contains a timestamp, camera ID, image sequence number and image data.

[0081] The original hyperspectral image is processed for dark current correction, bad pixel repair and flat field correction. The specific steps are as follows:

[0082] receiving hyperspectral image data collected by a camera through an edge computing unit;

[0083] Automatically execute the dark current correction procedure to calculate and deduct the dark current value based on the dark image data at the first startup;

[0084] A detection algorithm is used to identify abnormal pixels in the original hyperspectral image after dark current correction. Single bad pixels are processed by replacing the average value of neighboring pixels, and larger bad pixel areas are repaired by applying bicubic interpolation.

[0085] A reference image is created by taking a flat-field image using a dedicated light source. A correction coefficient is obtained by calculating the pixel brightness ratio between the actual image and the flat-field reference image. This coefficient is then applied to the original image to improve the brightness uniformity, thereby obtaining a corrected image.

[0086] Dark current correction, including turning off all light sources under the same temperature conditions, collecting a series of dark images, the dark field images contain the dark current of the sensor itself, performing pixel-level analysis on the dark field images, calculating the average value of each pixel, and finally subtracting this dark current value from the actual collected image;

[0087] Bad pixel repair, including using bad pixel detection algorithm to identify abnormal pixels in the image. For single-pixel bad pixels, the average value of the neighboring pixels is used to replace them. For larger bad pixel areas, bicubic interpolation is used to repair them.

[0088] Flat-field correction, including turning off all other light sources inside and outside the box that may affect the uniformity of light, and only retaining the selected flat-field light source. Subsequently, a series of flat-field images are taken according to the previously set positions using the hyperspectral camera deployed in the box, and all the collected flat-field images are averaged at the pixel level to generate a flat-field reference image representing the average response of the sensor;

[0089] For each image actually taken, the ratio of the brightness of each pixel to the brightness of the corresponding position in the flat-field reference image is calculated. The response ratio expression is:

[0090]

[0091] Among them, (R(x,y) represents the response ratio of the pixel at the position (x,y) in the image coordinate system, I org (x,y) represents the brightness of the pixel at the coordinate (x,y), F(x,y) represents the pixel value at the corresponding position (x,y) in the flat-field image, and x and y are the horizontal and vertical position variables in the two-dimensional coordinate system of the image, respectively;

[0092] According to the response ratio, the correction coefficient is calculated as follows:

[0093]

[0094] Wherein, C(x,y) represents the correction coefficient of the pixel position (x,y);

[0095] Apply the correction coefficient to each pixel of the original image to generate the corrected image, the expression is:

[0096] I corr (x,y)=l org (x,y)×C(x,y)

[0097] Among them, I corr (x,y) represents the new brightness of the pixel position (x,y) after correction.

[0098] Image enhancement, the specific steps are:

[0099] Divide the image into multiple overlapping small area tiles, perform histogram equalization on each tile independently, and use bilinear interpolation or other smoothing techniques to process tile boundaries to reduce blockiness;

[0100] During the histogram equalization process for each tile, ensure that the expansion of the histogram does not exceed the contrast limit parameter value clipLimit to prevent noise amplification caused by over-enhancement;

[0101] After completing the equalization, the boundaries are smoothed to obtain a continuous visual effect;

[0102] Noise removal, the specific steps are:

[0103] Use wavelet transform to decompose the image into details and approximate images of different scales. Set a threshold for the high-frequency layer containing more noise. Coefficients below the threshold are considered to be noise and removed. Coefficients above the threshold are considered to carry important information and details of the image and are retained.

[0104] Use the inverse wavelet transform to combine the processed coefficients back into the complete image, achieving denoising while maintaining edges and details;

[0105] For each pixel, find a set of pixel blocks in the image that are similar to its surroundings, and calculate the weighted average of these similar blocks. The weight depends on the similarity between the blocks. The higher the similarity, the higher the weight of the block, and vice versa.

[0106] Replace the original pixel value with the calculated weighted average to remove noise while preserving image details.

[0107] The processed raw image data is converted into NetCDF file format, marked to obtain hyperspectral image samples, and the hyperspectral image data and additional metadata are stored. The specific steps are as follows:

[0108] The pixel data of each frame of the hyperspectral image data processed by the image processing module is arranged in the order of wavelength bands from 400nm to 1000nm, and then three-dimensional data is formed by width×height×number of bands;

[0109] Metadata associated with the image is also collected;

[0110] Define the dimensions of the NetCDF file according to the actual size of the image;

[0111] Professionals carefully check and label each image to ensure the accuracy and reliability of the data;

[0112] Create main variables and other variables to store different types of image data and metadata. The main variable is a multidimensional array used to store the pixel values ​​of the hyperspectral image. Other variables are used to store acquisition time, GPS coordinates, camera ID, image sequence number, ambient temperature, ambient humidity, device exposure time, and device gain value.

[0113] Fill the sorted hyperspectral image samples into the main variables in band order, and write the metadata into the corresponding variables one by one;

[0114] Create and write NetCDF files using netCDF4 in Python;

[0115] Write the sorted data into the file item by item, and close the file after completion to ensure the data is safely saved;

[0116] Metadata, including acquisition time, GPS coordinates, camera ID, image sequence number, environmental parameters, device exposure time, and device gain value;

[0117] Environmental parameters, including ambient temperature and ambient humidity;

[0118] The dimensions of a NetCDF file include image width, image height, number of bands, and optionally time.

[0119] Construct a state feature model. The specific steps are as follows:

[0120] The convolutional neural network (CNN) is used as the state feature model, which includes multiple convolutional layers, normalization layers, activation function layers, pooling layers, fully connected layers, and output layers.

[0121] Principal component analysis (PCA) is used to screen out key bands that are sensitive to changes in vaccine status, reducing the amount of model calculation while improving recognition accuracy.

[0122] The training is performed by labeling the processed hyperspectral image samples and inputting the state feature model. The specific steps are as follows:

[0123] The original image data after a series of preprocessing and conversion is divided into a training set, a validation set, and a test set according to a certain ratio;

[0124] The state feature model is trained using the training set. During the training process, the model adjusts its weights to minimize the prediction error to improve its ability to recognize changes in vaccine status. Stochastic gradient descent (SGD) is used to update the model weights.

[0125] Use the validation set to monitor the accuracy and loss function of the state feature model to avoid overfitting;

[0126] Use the validation set and test set to evaluate the state feature model and check its performance on unseen data, including calculating the accuracy, recall, and F1 score of the state feature model;

[0127] According to the results of model evaluation, adjust the model architecture, including increasing or decreasing the number of model layers, changing the activation function, and adjusting the learning rate.

[0128] The decision support module is responsible for collecting real-time hyperspectral image data and inputting the state feature model to classify vaccine status and predict environmental parameters. The specific steps are as follows:

[0129] The collected real-time data is pre-processed, including dark current correction, bad pixel repair, flat field correction, image enhancement and noise removal;

[0130] Convert the preprocessed real-time data into NetCDF file format to obtain real-time hyperspectral image samples;

[0131] Input the real-time hyperspectral image samples into the model, and input the converted data into the state feature model. The state feature model will automatically extract and analyze the input data, classify the vaccine status and predict the environmental parameters, and obtain the predicted values ​​of the vaccine status and environmental parameters.

[0132] Vaccine status, including normal vaccine status, slightly spoiled, and severely spoiled;

[0133] The state feature model will automatically extract and analyze features of the input data, including extracting features that are sensitive to changes in vaccine status from real-time hyperspectral image samples, and using these features to accurately classify vaccine status and predict environmental parameters.

[0134] Based on the classification results and predicted values, compared with the pre-set safety threshold, it is immediately determined whether the vaccine storage conditions meet the requirements. The specific steps are as follows:

[0135] According to the recommendations of vaccine manufacturers and the requirements of regulatory agencies, the temperature range for safe storage of vaccines is set at 2°C to 8°C, and the humidity range for safe storage of vaccines is set at 45% to 75%.

[0136] Compare the temperature and humidity values ​​predicted by the state characteristic model with the pre-set safety thresholds;

[0137] When the predicted temperature is lower than 2°C and higher than 8°C, the system determines that the safe storage conditions are about to be or have been exceeded;

[0138] When the predicted humidity value is lower than 45% and higher than 75%, the system determines that safe storage conditions are about to be or have been exceeded.

[0139] Based on the judgment results, the system automatically prompts manual actions to ensure that the vaccine is always in an ideal storage environment. The specific steps are:

[0140] Once the system determines that the vaccine storage environment deviates from the set safety threshold, it will immediately send an alarm to the designated manager through the system's built-in alarm notification function, clearly indicating the type of problem and the deviation of the current actual value from the safety threshold;

[0141] On the mobile terminal of the monitoring center, the status of the current vaccine storage environment is updated and displayed in real time;

[0142] When the predicted temperature value deviates from the safe storage range, the system directly controls the refrigeration and heating systems in the vaccine transport box, intelligently adjusts the power according to the deviation, and quickly adjusts the temperature back to the safe range. If the temperature is too high, the refrigeration power is increased; otherwise, the heating is moderate.

[0143] When the predicted humidity value deviates from the safe storage range, the system links the humidifier and dehumidifier. When the humidity is lower than 45%, the humidification function is automatically turned on; when it is higher than 75%, the dehumidification program is started;

[0144] Types of problems, including temperature too high, temperature too low, humidity too high, and humidity too low;

[0145] The status of the vaccine storage environment, including changes in temperature, humidity graphs, and hyperspectral images.

[0146] This embodiment also provides a computer device, which is suitable for the vaccine cold chain logistics monitoring system based on the Internet of Things, including: a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the vaccine cold chain logistics monitoring system based on the Internet of Things as proposed in the above embodiment.

[0147] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0148] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by the processor, the vaccine cold chain logistics monitoring system based on the Internet of Things is implemented as proposed in the above embodiment; the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination of them, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic storage, flash memory, disk or optical disk.

[0149] In summary, the present invention is achieved through: the image acquisition module obtains the original hyperspectral images of the vaccine and its surrounding environment to provide basic data for subsequent processing; the image processing module corrects and enhances the original image to improve the image quality and ensure the accuracy of feature extraction; the conversion module converts the processed data into the NetCDF format for easy storage and analysis; the feature model module constructs and trains the state feature model to achieve deep learning and understanding of the vaccine status; the decision support module collects real-time data, performs state classification and prediction, and provides real-time decision support; the execution feedback module takes corresponding actions according to the decision results to achieve closed-loop control.

[0150] Example 2

[0151] Referring to Table 1, which is the second embodiment of the present invention, in order to further verify the advancement of the present invention, experimental simulation data of a vaccine cold chain logistics monitoring system based on the Internet of Things is provided.

[0152] The experiment selected three different batches of vaccine samples (Vaccine Batch A, B, and C) and monitored the entire process under simulated cold chain logistics conditions. Each batch of vaccine was equipped with the above-mentioned system during transportation, ensuring all-round monitoring from production to distribution terminal.

[0153] The experiment first deployed the equipment in accordance with the claims. A total of 9 HyperCam series hyperspectral cameras were set up to ensure full coverage of the environment inside and outside the vaccine transport box. All cameras were connected to the edge computing unit via Wi-Fi and used the MQTT protocol to transmit data. The data packet contained timestamp, camera ID, image serial number and image data, ensuring the integrity and timeliness of the data.

[0154] Secondly, for each batch of vaccines, we collected hyperspectral image data for 7 consecutive days, and collected a total of 21 sets of image data. Each set of data contained the original image, the image after dark current correction, the image after bad pixel repair, the image after flat field correction, the image after image enhancement, and the image after noise removal. The processed image data significantly improved the clarity and information accuracy.

[0155] Finally, the processed image data were converted into NetCDF file format, which stores the hyperspectral image data and additional metadata (such as acquisition time and environmental parameters). We generated these files using Python’s netCDF4 library and recorded them in a CSV file named “Vaccine_ColdChain_Monitoring_Data.csv” to facilitate further analysis.

[0156] The details are shown in the following table:

[0157] Table 1 Experimental record table

[0158]

[0159] By comparing the ambient temperature and humidity data at different time points, we can observe that all batches of vaccines are within the safe storage range (temperature of 2°C to 8°C, humidity of 45% to 75%), demonstrating the effective monitoring capabilities of the system. For example, the temperature of sample A_1 on the first day was 4.8°C and the humidity was 55%, both within the safety threshold. In addition, through the image quality score (Image_Quality_Score), we can intuitively see the contribution of the image processing module to improving image quality. The average score reached more than 92 points, ensuring the accuracy of the subsequent state feature model.

[0160] By using the convolutional neural network (CNN) state feature model constructed by the present invention and combining it with PCA to screen key bands, the prediction accuracy reaches 98%, which is about 15% higher than the traditional method and significantly reduces the false alarm and missed alarm rates. Secondly, when the system predicts that the temperature or humidity deviates from the safety threshold (for example, the predicted temperature on a certain day reaches 7.9°C, close to the upper limit), it can immediately start the automatic adjustment mechanism to effectively control the environment in the transport box and ensure that the quality of the vaccine is not damaged. For example, when the predicted temperature is too high, the system automatically increases the refrigeration power and adjusts the temperature back to 5.2°C in just 1 hour. The reaction speed is much faster than manual intervention, demonstrating the high efficiency and intelligence of the system. In addition, the real-time feedback and alarm functions provided by the system ensure that managers can take quick measures, further improving the safety and efficiency of the entire logistics chain.

[0161] 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 vaccine cold chain logistics monitoring system based on the Internet of Things, characterized by: include, The image acquisition module is responsible for collecting the hyperspectral images of the vaccine and its surrounding environment to obtain the original hyperspectral images; The image processing module is responsible for receiving the collected images, performing dark current correction, bad pixel repair and flat field correction on the original hyperspectral images, and improving the image quality through image enhancement and noise removal technology; The conversion module is responsible for converting the processed raw image data into the NetCDF file format, marking it to obtain hyperspectral image samples, and storing the hyperspectral image data and additional metadata; The feature model module is responsible for building the state feature model and training it by inputting the labeled processed hyperspectral image samples into the state feature model; The decision support module is responsible for collecting real-time hyperspectral image data, inputting the state feature model to classify the vaccine status and predict the environmental parameters, and comparing the classification results and predicted values ​​with the pre-set safety thresholds to instantly determine whether the vaccine storage conditions meet the requirements; Execute the feedback module, and based on the judgment results, the system automatically prompts humans to take action to ensure that the vaccine is always in an ideal storage environment.

2. The vaccine cold chain logistics monitoring system based on the Internet of Things as claimed in claim 1, characterized in that: The method of collecting the hyperspectral images of the vaccine and its surrounding environment to obtain the original hyperspectral images comprises the following specific steps: A hyperspectral camera is deployed in the center and four corners of the vaccine transport box to ensure that there are no blind spots in the box. Cameras are installed near the external door and on both sides of the box to monitor the impact of the external environment on the vaccine. All cameras are connected to the edge computing unit via Wi-Fi. The hyperspectral camera is a HyperCam series hyperspectral camera, which has a high-sensitivity CMOS sensor with a wavelength coverage range from 400nm to 1000nm, suitable for capturing tiny physical and chemical changes that occur during vaccine transportation. The camera also has an IP67 protection rating to adapt to various harsh environments encountered in cold chain transportation. The MQTT protocol is used for data transmission. Due to its low bandwidth, low power consumption and high reliability, it is very suitable for data communication in the Internet of Things environment. Each data packet contains a timestamp, camera ID, image sequence number and image data.

3. The vaccine cold chain logistics monitoring system based on the Internet of Things as claimed in claim 1 or 2, characterized in that: The dark current correction, bad pixel repair and flat field correction processing of the original hyperspectral image are specifically performed as follows: receiving hyperspectral image data collected by a camera through an edge computing unit; Automatically execute the dark current correction procedure to calculate and deduct the dark current value based on the dark image data at the first startup; A detection algorithm is used to identify abnormal pixels in the original hyperspectral image after dark current correction. Single bad pixels are processed by replacing the average value of neighboring pixels, and larger bad pixel areas are repaired by applying bicubic interpolation. A reference image is created by taking a flat-field image using a dedicated light source. The correction coefficient is obtained by calculating the pixel brightness ratio between the actual image and the flat-field reference image. This coefficient is applied to the original image to improve the brightness uniformity, thereby obtaining a corrected image.

4. The vaccine cold chain logistics monitoring system based on the Internet of Things as claimed in claim 3, characterized in that: The image enhancement comprises the following specific steps: Divide the image into multiple overlapping small area tiles, perform histogram equalization on each tile independently, and use bilinear interpolation or other smoothing techniques to process tile boundaries to reduce blockiness; During the histogram equalization process for each tile, ensure that the expansion of the histogram does not exceed the contrast limit parameter value clipLimit to prevent noise amplification caused by over-enhancement; After completing the equalization, the boundaries are smoothed to obtain a continuous visual effect; The noise removal comprises the following specific steps: Use wavelet transform to decompose the image into details and approximate images of different scales. Set a threshold for the high-frequency layer containing more noise. Coefficients below the threshold are considered to be noise and removed. Coefficients above the threshold are considered to carry important information and details of the image and are retained. Use the inverse wavelet transform to combine the processed coefficients back into the complete image, achieving denoising while maintaining edges and details; For each pixel, find a set of pixel blocks in the image that are similar to its surroundings, and calculate the weighted average of these similar blocks. The weight depends on the similarity between the blocks. The higher the similarity, the higher the weight of the block, and vice versa. Replace the original pixel value with the calculated weighted average to remove noise while preserving image details.

5. The vaccine cold chain logistics monitoring system based on the Internet of Things as claimed in claim 4, characterized in that: The processed raw image data is converted into a NetCDF file format, labeled to obtain a hyperspectral image sample, and the hyperspectral image data and additional metadata are stored. The specific steps are: The pixel data of each frame of the hyperspectral image data processed by the image processing module is arranged in the order of wavelength bands from 400nm to 1000nm, and then three-dimensional data is formed by width×height×number of bands; Metadata associated with the image is also collected; Define the dimensions of the NetCDF file according to the actual size of the image; Create main variables and other variables to store different types of image data and metadata. The main variable is a multidimensional array used to store the pixel values ​​of the hyperspectral image. Other variables are used to store acquisition time, GPS coordinates, camera ID, image sequence number, ambient temperature, ambient humidity, device exposure time, and device gain value. Fill the sorted hyperspectral image samples into the main variables in band order, and write the metadata into the corresponding variables one by one; Create and write NetCDF files using netCDF4 in Python; Write the sorted data into the file item by item, and close the file after completion to ensure the data is safely saved.

6. The vaccine cold chain logistics monitoring system based on the Internet of Things as claimed in claim 5, characterized in that: The specific steps of constructing the state feature model are as follows: The convolutional neural network (CNN) is used as the state feature model, which includes multiple convolutional layers, normalization layers, activation function layers, pooling layers, fully connected layers, and output layers. Principal component analysis (PCA) is used to screen out key bands that are sensitive to changes in vaccine status, reducing the amount of model calculation while improving recognition accuracy.

7. The vaccine cold chain logistics monitoring system based on the Internet of Things as claimed in claim 6, characterized in that: The training is performed by marking the processed hyperspectral image sample input state feature model, and the specific steps are as follows: The original image data after a series of preprocessing and conversion is divided into a training set, a validation set, and a test set according to a certain ratio; The state feature model is trained using the training set. During the training process, the model adjusts its weights to minimize the prediction error to improve its ability to recognize changes in vaccine status. Stochastic gradient descent (SGD) is used to update the model weights. Use the validation set to monitor the accuracy and loss function of the state feature model to avoid overfitting; Use the validation set and test set to evaluate the state feature model and check its performance on unseen data, including calculating the accuracy, recall, and F1 score of the state feature model; According to the results of model evaluation, adjust the model architecture, including increasing or decreasing the number of model layers, changing the activation function, and adjusting the learning rate.

8. The vaccine cold chain logistics monitoring system based on the Internet of Things as claimed in claim 7, characterized in that The decision support module is responsible for collecting real-time hyperspectral image data and inputting the state feature model to classify vaccine status and predict environmental parameters. The specific steps are as follows: The collected real-time data is pre-processed, including dark current correction, bad pixel repair, flat field correction, image enhancement and noise removal; Convert the preprocessed real-time data into NetCDF file format to obtain real-time hyperspectral image samples; The real-time hyperspectral image samples are input into the model, and the converted data is input into the state feature model. The state feature model will automatically extract and analyze the features of the input data, classify the vaccine status and predict the environmental parameters, and obtain the predicted values ​​of the vaccine status and environmental parameters.

9. The vaccine cold chain logistics monitoring system based on the Internet of Things as claimed in claim 8, characterized in that The classification results and predicted values ​​are compared with the pre-set safety thresholds to instantly determine whether the vaccine storage conditions meet the requirements. The specific steps are: According to the recommendations of vaccine manufacturers and the requirements of regulatory agencies, the temperature range for safe storage of vaccines is set at 2°C to 8°C, and the humidity range for safe storage of vaccines is set at 45% to 75%. Compare the temperature and humidity values ​​predicted by the state characteristic model with the pre-set safety thresholds; When the predicted temperature is lower than 2°C and higher than 8°C, the system determines that the safe storage conditions are about to be or have been exceeded; When the predicted humidity value is lower than 45% and higher than 75%, the system determines that safe storage conditions are about to be or have been exceeded.

10. The vaccine cold chain logistics monitoring system based on the Internet of Things as claimed in claim 9, characterized in that Based on the judgment results, the system automatically prompts the operator to take action to ensure that the vaccine is always in an ideal storage environment. The specific steps are: Once the system determines that the vaccine storage environment deviates from the set safety threshold, it will immediately send an alarm to the designated manager through the system's built-in alarm notification function, clearly indicating the type of problem and the deviation of the current actual value from the safety threshold; On the mobile terminal of the monitoring center, the status of the current vaccine storage environment is updated and displayed in real time; When the predicted temperature value deviates from the safe storage range, the system directly controls the refrigeration and heating systems in the vaccine transport box, intelligently adjusts the power according to the deviation, and quickly adjusts the temperature back to the safe range. If the temperature is too high, the refrigeration power is increased; otherwise, the heating is moderate. When the predicted humidity value deviates from the safe storage range, the system links the humidifier and dehumidifier. When the humidity is lower than 45%, the humidification function is automatically turned on; when it is higher than 75%, the dehumidification program is started; The types of problems include too high temperature, too low temperature, too high humidity and too low humidity; The state of the vaccine storage environment includes changes in temperature, humidity curves and hyperspectral images.

Citation Information

Patent Citations

  • Food quality control device based on cold chain Internet of Things system and application

    CN117787324A

  • Injectable formulation comprising isooxazoline derivatives

    KR1020230114203A

Cited By

  • Image enhancement method

    CN119831902A

  • Vaccination one-stop informatization management platform based on AI intelligent monitoring

    CN119905227A

  • Vaccination outpatient service mobile supervision management method and system

    CN120089317A

  • A mobile supervision and management method and system for vaccination clinics

    CN120089317B