Disclosure of Invention
In view of the above problems, the present invention aims to provide a 5G-based intelligent infusion monitoring system.
The purpose of the invention is realized by the following technical scheme:
an intelligent transfusion monitoring system based on 5G comprises a transfusion monitoring module, an information transmission module and a transfusion monitoring terminal, wherein the transfusion monitoring module comprises an infrared detection unit, a transfusion weighing unit and a transfusion visual monitoring unit, the infrared detection unit is used for collecting a dropping speed signal of a liquid medicine, the transfusion weighing unit is used for collecting weight change data of a transfusion device, the transfusion visual monitoring unit is used for collecting images of the transfusion device, the transfusion monitoring module transmits the collected dropping speed signal of the liquid medicine, the weight change data of the transfusion device and the images of the transfusion device to the transfusion monitoring terminal through the information transmission module, the transfusion monitoring terminal comprises a system configuration module, a transfusion information processing module, a transfusion information display module, a transfusion detail inquiry and statistics module, a transfusion intelligent alarm module and an alarm information inquiry and statistics module, the system configuration module comprises a patient management unit and a bed management unit, medical staff inputs basic information of a patient and basic information of infusion through the patient management unit, the bed management unit is used for binding an infusion monitoring module and a bed number, the infusion information processing module comprises an infusion information processing unit and an infusion image processing unit, the infusion information processing unit is used for calculating the infusion state of the patient according to the basic information of the infusion of the patient, a received dropping speed signal of liquid medicine and weight change data of an infusion apparatus, the infusion image processing unit is used for processing the received infusion apparatus image, the infusion information display module is used for displaying the infusion state of the patient and the processed infusion apparatus image, the infusion detail inquiry and statistics module comprises an infusion detail statistics unit and an infusion detail inquiry unit, the infusion detail counting unit is used for counting the infusion details of the patient from the system configuration module and the infusion information processing module, and calculating the percentage of the infusion progress of the patient and a change trend chart of the infusion speed of the patient according to the infusion details of the patient; medical personnel can inquire the percentage of patient's infusion details, patient's infusion progress and the change trend chart of the speed of dripping of patient's infusion through infusion details inquiry unit, infusion intelligent alarm module is used for comparing patient's infusion state and predetermined alert value to judge whether report to the police, alarm information inquiry statistics module includes alarm information statistical unit and alarm information inquiry unit, alarm information statistical unit is used for counting the log information of reporting to the police when infusion intelligent alarm module reports to the police, and medical personnel can inquire the log information of reporting to the police through alarm information inquiry unit.
Preferably, the information transmission module transmits information by using a 5G communication technology.
Preferably, the infrared detection unit includes an infrared emission module and an infrared receiving module, the infrared emission module is configured to emit infrared light, and the infrared receiving module is configured to receive infrared light.
Preferably, the basic information of the patient includes the ward, the bed number and the name of the patient; the basic information of the infusion includes infusion start time, estimated infusion end time, and the amount of liquid medicine to be infused.
Preferably, the transfusion state of the patient includes the remaining amount of the liquid medicine, the remaining transfusion time, and the transfusion dripping speed.
Preferably, the infusion details of the patient include a ward, a bed number, a name, an infusion start time, a predicted infusion end time, a liquid medicine amount to be infused, a remaining liquid medicine amount, a remaining infusion time, and an infusion drop rate.
Preferably, infusion intelligent alarm module is used for comparing patient's infusion state and predetermined alert value to whether the judgement is reported to the police, including remaining liquid volume reminding unit, drip speed reminding unit and remaining time reminding unit, remaining liquid volume reminding unit is used for reporting to the police when remaining liquid volume of medicine is less than predetermined alert value, drip speed reminding unit is used for reporting to the police when dripping speed and surpassing predetermined alert value, remaining time reminding unit is used for reporting to the police when remaining infusion time is less than predetermined alert value.
Preferably, the log information of the alarm comprises a ward, a bed number, alarm time and alarm types, wherein the alarm types comprise residual liquid volume alarm, dripping speed alarm and residual time alarm.
Preferably, the infusion set image processing unit is configured to process the received infusion set image, and includes an image optimization unit and a target segmentation unit, where the image optimization unit is configured to perform filtering processing on the received infusion set image and enhance the filtered infusion set image, and the target segmentation unit is configured to perform target segmentation on the optimized infusion set image and remove a background region in the infusion set image.
Preferably, the image optimization unit is configured to perform filtering processing on the received infusion apparatus image, where I is assumed to represent the infusion apparatus image to be processed, I (x, y) is assumed to represent a pixel at a coordinate (x, y) in the infusion apparatus image I, and the filtering processing is performed on the pixel I (x, y), specifically:
let U (x, y) denote a local area of (2o +1) × (2o +1) centered on a pixel I (x, y), where o is a given positive integer, and
m and K are respectively the length and the width of the infusion apparatus image I, H (x, y) is set to represent a neighborhood pixel set of the pixel I (x, y), and pixels in the set H (x, y) are selected from pixels in a local area U (x, y) in the following mode:
let u (x, y) denote a 3 x 3 local neighborhood centered on the pixel I (x, y),
representing the mean of the grey values of the pixels in the local neighborhood U (x, y), I (I, j) representing the pixel at coordinate (I, j) in the local area U (x, y), f (I, j) representing the grey value of the pixel I (I, j), given a grey threshold value f (h), when the pixel I (I, j) satisfies
Then the pixel I (I, j) is added to the set H (x, y) when the pixel I (I, j) satisfies
If so, not adding the pixel I (I, j) into the set H (x, y), and according to the method, completing the selection of the pixels in the local area U (x, y);
definition eta1(x, y) denotes a first pixel corresponding to a pixel in the set H (x, y)Coefficient of attribute detection, η2(x, y) represents a second attribute detection coefficient corresponding to a pixel in the set H (x, y), and η1(x, y) and η2The values of (x, y) are:
where I (a, b) represents the pixel at coordinate (a, b) in the set H (x, y), f (a, b) represents the grayscale value of the pixel I (a, b), I (M, n) represents the pixel at coordinate (M, n) in the set H (x, y), f (M, n) represents the grayscale value of the pixel I (M, n), M (x, y) represents the number of pixels in the set H (x, y),
representing the mean of the gray values of the pixels in the set H (x, y);
determine a set of neighboring pixels of the pixel I (x, y), given the attribute threshold η (H), and
wherein f is
mid(x, y) represents the median of the gray values of the pixels in the set H (x, y), when |. eta
1(x,y)-η
2When the (x, y) | is less than or equal to eta (H), selecting the set H (x, y) as the adjacent pixel set of the pixel I (x, y), and enabling the set H (x, y) to be adjacent to the pixel I (x, y)
Where ρ (a, b) represents a distribution detection coefficient of the pixel I (a, b) in the set H (x, y), and
when eta1(x,y)-η2(x,y)If | η (H), then the set of neighboring pixels for pixel I (x, y) is determined as follows:
screening the pixels in the set H (x, y) when the pixels I (a, b) satisfy
When the pixel I (a, b) is satisfied, the pixel I (a, b) is retained in the set H (x, y)
Then, deleting the pixel I (a, b) in the set H (x, y) until the screening of all the pixels in the set H (x, y) is completed according to the method, wherein rho
mid(x, y) represents a median value of distribution detection coefficients of pixels in the set H (x, y), ρ
max(x, y) represents the maximum value of the distribution detection coefficients of the pixels in the set H (x, y);
let H ' (x, y) denote a set of pixels remaining after the pixels in the set H (x, y) have been screened, and the pixels in the set H ' (x, y) are classified, let H '1(x, y) represents a first subset, H ', of the set H ' (x, y) into which the pixels are classified '2(x, y) represents a second subset obtained by classifying pixels in the set H ' (x, y), a pixel having the smallest distribution detection coefficient in the set H (x, y) of the pixels in the set H ' (x, y) is selected as a classification reference pixel, I (C, D) represents a pixel at a coordinate (C, D) in the set H ' (x, y), and I (C, D) is argminI(c,d)∈H′(x,y)ρ (C, D), where I (C, D) represents the pixel at coordinate (C, D) in the set H '(x, y), ρ (C, D) represents the distribution detection coefficient of the pixel I (C, D) in the set H (x, y), the selected classification reference pixel I (C, D) is first added to the first subset H'1(x, y), then classifying other pixels in the set H ' (x, y), and adding the pixel I (C, D) to the first subset H ' when | f (C, D) -f (C, D) | ≦ f (H) '1(x, y) when | f (C, D) -f (C, D) | > f (H), then pixel I (C, D) is added to the second subset H'2(x, y), where f (C, D) represents the number of classified reference pixels I (C,D) f (c, d) represents the gray value of the pixel I (c, d);
determine a set of neighboring pixels of the pixel I (x, y)
Denotes a first subset H'
1The mean of the gray values of the pixels in (x, y),
denotes a second subset H'
2Mean of the gray values of the pixels in (x, y) when the pixel I (x, y) satisfies
Then, selecting a first subset H'
1(x, y) is a set of neighboring pixels of pixel I (x, y), such that
Wherein, I (c)
1,d
1) Denotes a first subset H'
1Coordinate (c) in (x, y)
1,d
1) Pixel of (d), f (c)
1,d
1) Represents a pixel I (c)
1,d
1) Is a gray value of p
1(c
1,d
1) Represents a pixel I (c)
1,d
1) In a first subset H'
1The distribution in (x, y) is detected as a coefficient, and
I(a
1,b
1) Denotes a first subset H'
1Coordinate (a) in (x, y)
1,b
1) Pixel of (d), f (a)
1,b
1) Represents a pixel I (a)
1,b
1) Gray value of (D), M
1(x, y) denotes a first subset H'
1The number of pixels in (x, y); when the pixel I (x, y) satisfies
Then, selecting a second subset H'
2(x, y) is a set of neighboring pixels of the pixel I (x, y), and f (x, y) is defined as
Wherein, I (c)
2,d
2) Denotes a second subset H'
2Coordinate (c) in (x, y)
2,d
2) Pixel of (d), f (c)
2,d
2) Represents a pixel I (c)
2,d
2) Is a gray value of p
2(c
2,d
2) Represents a pixel I (c)
2,d
2) In a second subset H'
2The distribution in (x, y) is detected as a coefficient, and
wherein, I (a)
2,b
2) Denotes a second subset H'
2Coordinate (a) in (x, y)
2,b
2) Pixel of (d), f (a)
2,b
2) Represents a pixel I (a)
2,b
2) Gray value of (D), M
2(x, y) denotes a second subset H'
2The number of pixels in (x, y); when in use
Then, select local neighborhood u (x, y) as the neighboring pixel set of pixel I (x, y), and let
Preferably, the image segmentation unit segments the optimized infusion set image by using a maximum inter-class variance method, and determines an optimal threshold of the maximum inter-class variance method used in the image segmentation unit by using a particle swarm algorithm.
The beneficial effects created by the invention are as follows:
the infusion monitoring module in the system collects the signal of the dropping speed and the process of infusion through the infrared detection unit and the infusion weighing unit, the image of the infusion apparatus is collected through the visual monitoring unit of infusion, so that medical personnel can directly obtain the state information and the image information of patient infusion at an infusion monitoring terminal, thereby improving the safety of the infusion process, the labor capacity of the medical personnel is reduced, the data and the image are used in the monitoring process, the safety of the infusion process is further improved, and the medical personnel can more intuitively master the real-time condition of infusion.
Detailed Description
The invention is further described with reference to the following examples.
Referring to fig. 1, the intelligent infusion monitoring system based on 5G of the embodiment comprises an infusion monitoring module, an information transmission module and an infusion monitoring terminal, wherein the infusion monitoring module comprises an infrared detection unit, an infusion weighing unit and an infusion visual monitoring unit, the infrared detection unit is used for collecting a dropping speed signal of a liquid medicine, the infusion weighing unit is used for collecting weight change data of an infusion apparatus, the infusion visual monitoring unit is used for collecting images of the infusion apparatus, the infusion monitoring module transmits the collected dropping speed signal of the liquid medicine, the collected weight change data of the infusion apparatus and the collected images of the infusion apparatus to the infusion monitoring terminal through the information transmission module, the infusion monitoring terminal comprises a system configuration module, an infusion information processing module, an infusion information display module, an infusion detail query and statistics module, an infusion intelligent alarm module and an alarm information query and statistics module, the system configuration module comprises a patient management unit and a bed management unit, medical staff inputs basic information of a patient and basic information of infusion through the patient management unit, the bed management unit is used for binding an infusion monitoring module and a bed number, the infusion information processing module comprises an infusion information processing unit and an infusion image processing unit, the infusion information processing unit is used for calculating the infusion state of the patient according to the basic information of the infusion of the patient, a received dropping speed signal of liquid medicine and weight change data of an infusion apparatus, the infusion image processing unit is used for processing the received infusion apparatus image, the infusion information display module is used for displaying the infusion state of the patient and the processed infusion apparatus image, the infusion detail inquiry and statistics module comprises an infusion detail statistics unit and an infusion detail inquiry unit, the infusion detail counting unit is used for counting the infusion details of the patient from the system configuration module and the infusion information processing module, and calculating the percentage of the infusion progress of the patient and a change trend chart of the infusion speed of the patient according to the infusion details of the patient; medical personnel can inquire the percentage of patient's infusion details, patient's infusion progress and the change trend chart of the speed of dripping of patient's infusion through infusion details inquiry unit, infusion intelligent alarm module is used for comparing patient's infusion state and predetermined alert value to judge whether report to the police, alarm information inquiry statistics module includes alarm information statistical unit and alarm information inquiry unit, alarm information statistical unit is used for counting the log information of reporting to the police when infusion intelligent alarm module reports to the police, and medical personnel can inquire the log information of reporting to the police through alarm information inquiry unit.
Preferably, the information transmission module transmits information by using a 5G communication technology.
Preferably, the infrared detection unit includes an infrared emission module and an infrared receiving module, the infrared emission module is configured to emit infrared light, and the infrared receiving module is configured to receive infrared light.
Preferably, the basic information of the patient includes the ward, the bed number and the name of the patient; the basic information of the infusion includes infusion start time, estimated infusion end time, and the amount of liquid medicine to be infused.
Preferably, the transfusion state of the patient includes the remaining amount of the liquid medicine, the remaining transfusion time, and the transfusion dripping speed.
Preferably, the infusion details of the patient include a ward, a bed number, a name, an infusion start time, a predicted infusion end time, a liquid medicine amount to be infused, a remaining liquid medicine amount, a remaining infusion time, and an infusion drop rate.
Preferably, infusion intelligent alarm module is used for comparing patient's infusion state and predetermined alert value to whether the judgement is reported to the police, including remaining liquid volume reminding unit, drip speed reminding unit and remaining time reminding unit, remaining liquid volume reminding unit is used for reporting to the police when remaining liquid volume of medicine is less than predetermined alert value, drip speed reminding unit is used for reporting to the police when dripping speed and surpassing predetermined alert value, remaining time reminding unit is used for reporting to the police when remaining infusion time is less than predetermined alert value.
Preferably, the log information of the alarm comprises a ward, a bed number, alarm time and alarm types, wherein the alarm types comprise residual liquid volume alarm, dripping speed alarm and residual time alarm.
This preferred embodiment provides an intelligent infusion monitored control system based on 5G, infusion monitoring module in the system passes through infrared detecting element and the signal of the speed of dripping and the process of infusion weighing unit collection, the image of transfusion system is gathered through the visual monitoring unit of infusion, make medical personnel can directly acquire patient's infusion state information and image information at infusion monitor terminal, thereby the security of infusion process has been improved, medical personnel's the amount of labour has been alleviateed, data and image use in the control process, when further having improved the security of infusion process, make medical personnel can more audio-visually master the real-time condition of infusion.
Preferably, the infusion set image processing unit is configured to process the received infusion set image, and includes an image optimization unit and a target segmentation unit, where the image optimization unit is configured to perform filtering processing on the infusion set image and enhance the filtered infusion set image, and the target segmentation unit is configured to perform target segmentation on the optimized infusion set image and remove a background region in the infusion set image.
Preferably, the image optimization unit is configured to perform filtering processing on the received infusion apparatus image, where I is assumed to represent the infusion apparatus image to be processed, I (x, y) is assumed to represent a pixel at a coordinate (x, y) in the infusion apparatus image I, and the filtering processing is performed on the pixel I (x, y), specifically:
let U (x, y) denote a local area of (2o +1) × (2o +1) centered on a pixel I (x, y), where o is a given positive integer, and
m and K are respectively the length and the width of the infusion apparatus image I, H (x, y) is set to represent a neighborhood pixel set of the pixel I (x, y), and pixels in the set H (x, y) are selected from pixels in a local area U (x, y) in the following mode:
let u (x, y) denote a 3 x 3 local neighborhood centered on the pixel I (x, y),
representing the mean of the grey values of the pixels in the local neighborhood U (x, y), I (I, j) representing the pixel at coordinate (I, j) in the local area U (x, y), f (I, j) representing the grey value of the pixel I (I, j), given a grey threshold value f (h), the value of f (h) may take 10, when the pixel I (I, j) satisfies
Then the pixel I (I, j) is added to the set H (x, y) when the pixel I (I, j) satisfies
If so, not adding the pixel I (I, j) into the set H (x, y), and according to the method, completing the selection of the pixels in the local area U (x, y);
definition eta1(x, y) denotes a first attribute detection coefficient corresponding to a pixel in the set H (x, y), η2(x, y) represents a second attribute detection coefficient corresponding to a pixel in the set H (x, y), and η1(x, y) and η2The values of (x, y) are:
where I (a, b) represents the pixel at coordinate (a, b) in the set H (x, y), f (a, b) represents the grayscale value of the pixel I (a, b), I (M, n) represents the pixel at coordinate (M, n) in the set H (x, y), f (M, n) represents the grayscale value of the pixel I (M, n), M (x, y) represents the number of pixels in the set H (x, y),
representing the mean of the gray values of the pixels in the set H (x, y);
determine a set of neighboring pixels of the pixel I (x, y), given the attribute threshold η (H), and
wherein f is
mid(x, y) represents the median of the gray values of the pixels in the set H (x, y), when |. eta
1(x,y)-η
2When the (x, y) | is less than or equal to eta (H), selecting the set H (x, y) as the adjacent pixel set of the pixel I (x, y), and enabling the set H (x, y) to be adjacent to the pixel I (x, y)
Where ρ (a, b) represents a distribution detection coefficient of the pixel I (a, b) in the set H (x, y), and
when eta1(x,y)-η2(x, y) | > η (H), then the set of neighboring pixels for pixel I (x, y) is determined as follows:
screening the pixels in the set H (x, y) when the pixels I (a, b) satisfy
Then, in the set H (x,y) remaining in the pixel I (a, b) when the pixel I (a, b) satisfies
Then, deleting the pixel I (a, b) in the set H (x, y) until the screening of all the pixels in the set H (x, y) is completed according to the method, wherein rho
mid(x, y) represents a median value of distribution detection coefficients of pixels in the set H (x, y), ρ
max(x, y) represents the maximum value of the distribution detection coefficients of the pixels in the set H (x, y);
let H ' (x, y) denote a set of pixels remaining after the pixels in the set H (x, y) have been screened, and the pixels in the set H ' (x, y) are classified, let H '1(x, y) represents a first subset, H ', of the set H ' (x, y) into which the pixels are classified '2(x, y) represents a second subset obtained by classifying pixels in the set H ' (x, y), a pixel having the smallest distribution detection coefficient in the set H (x, y) of the pixels in the set H ' (x, y) is selected as a classification reference pixel, I (C, D) represents a pixel at a coordinate (C, D) in the set H ' (x, y), and I (C, D) is argminI(c,d)∈H′(x,y)ρ (C, D), where I (C, D) represents the pixel at coordinate (C, D) in the set H '(x, y), ρ (C, D) represents the distribution detection coefficient of the pixel I (C, D) in the set H (x, y), the selected classification reference pixel I (C, D) is first added to the first subset H'1(x, y), then classifying other pixels in the set H ' (x, y), and adding the pixel I (C, D) to the first subset H ' when | f (C, D) -f (C, D) | ≦ f (H) '1(x, y) when | f (c, D) -f (c, D) | > f (H), then pixel I (c, D) is added to the second subset H'2(x, y), wherein f (C, D) represents a gray value of the classification reference pixel I (C, D), and f (C, D) represents a gray value of the pixel I (C, D);
determine a set of neighboring pixels of the pixel I (x, y)
Denotes a first subset H'
1Grey scale value of pixel in (x, y)The average value of the average value is calculated,
denotes a second subset H'
2Mean of the gray values of the pixels in (x, y) when the pixel I (x, y) satisfies
Then, selecting a first subset H'
1(x, y) is a set of neighboring pixels of pixel I (x, y), such that
Wherein, I (c)
1,d
1) Denotes a first subset H'
1Coordinate (c) in (x, y)
1,d
1) Pixel of (d), f (c)
1,d
1) Represents a pixel I (c)
1,d
1) Is a gray value of p
1(c
1,d
1) Represents a pixel I (c)
1,d
1) In a first subset H'
1The distribution in (x, y) is detected as a coefficient, and
I(a
1,b
1) Denotes a first subset H'
1Coordinate (a) in (x, y)
1,b
1) Pixel of (d), f (a)
1,b
1) Represents a pixel I (a)
1,b
1) Gray value of (D), M
1(x, y) denotes a first subset H'
1The number of pixels in (x, y); when the pixel I (x, y) satisfies
Then, selecting a second subset H'
2(x, y) is a set of neighboring pixels of pixel I (x, y), such that
Wherein, I (c)
2,d
2) Denotes a second subset H'
2Coordinate (c) in (x, y)
2,d
2) Pixel of (d), f (c)
2,d
2) Represents a pixel I (c)
2,d
2) Is a gray value of p
2(c
2,d
2) Represents a pixel I (c)
2,d
2) In a second subset H'
2The distribution in (x, y) is detected as a coefficient, and
wherein, I (a)
2,b
2) Denotes a second subset H'
2Coordinate (a) in (x, y)
2,b
2) Pixel of (d), f (a)
2,b
2) Represents a pixel I (a)
2,b
2) Gray value of (D), M
2(x, y) denotes a second subset H'
2The number of pixels in (x, y); when in use
Then, select local neighborhood u (x, y) as the neighboring pixel set of pixel I (x, y), and let
The preferred embodiment is used for filtering the infusion set image, and the weighted gray-scale value mean of the pixels in the local area of the pixel to be filtered is generally used as the gray-scale value of the pixel to be filtered in the prior art, however, this filtering method is easily affected by the noise pixels in the local neighborhood, and the structure information of the image is easy to blur, aiming at the defects, the preferred embodiment selects a part of pixels in the local area of the pixel to be filtered to form an adjacent pixel set of the pixel to be filtered, the pixels in the selected adjacent pixel set and the pixel to be filtered have higher gray scale similarity and structure similarity, therefore, the weighted gray value mean value of the pixels in the adjacent pixel set is used as the filtering mode of the gray value of the pixel to be filtered, so that the accuracy of the filtering result is improved, and meanwhile, the structural information in the infusion apparatus image can be effectively protected; when selecting the neighboring pixel set of the pixel to be filtered, the preferred embodiment uses a local neighborhood of 3 × 3 of the pixel to be filtered as a reference, selects a pixel in a local area of the pixel to be filtered within a certain range of the gray value of the local neighborhood as a neighboring pixel of the pixel to be filtered, thereby ensuring that the pixels in the selected neighboring pixel set and the local neighborhood of the pixel to be filtered have high similarity of gray values, selects the neighboring pixel set of the pixel to be filtered from the neighboring pixels, defines a first attribute detection coefficient and a second attribute detection coefficient to detect the selected neighboring pixels, wherein the first attribute detection coefficient measures the distribution characteristics of the pixels in the neighboring pixel set by calculating the difference between the neighboring pixels and the mean value thereof, and the second attribute detection coefficient measures the distribution characteristics of the pixels in the neighboring pixel set by calculating the difference between two different neighboring pixels, when the difference between the first attribute detection coefficient and the second attribute detection coefficient is small, the region where the pixel to be filtered is located is a flat region, namely the pixels in the neighborhood pixel set are relatively uniform, at the moment, the neighborhood pixel set is selected as a neighboring pixel set of the pixel to be filtered, when the difference between the first attribute detection coefficient and the second attribute detection coefficient is large, the pixel to be filtered is located in an edge region, namely the neighborhood pixel set only has part of pixels and the pixel to be filtered is located in a similar structural region, at the moment, the pixels in the neighborhood pixel set are screened by defining the distribution detection coefficient, the neighborhood pixels with high possibility of being noise in the neighborhood pixel set are removed, thereby reducing the influence of the noise pixels on the accuracy of a next classification result and classifying the remaining neighborhood pixels after screening, the neighborhood pixels with the minimum distribution detection coefficients have the maximum probability of being normal pixels, so that the neighborhood pixels with the minimum distribution detection coefficients are selected as classification reference pixels, the remaining neighborhood pixels after screening are divided into two types with larger gray value difference, and then the subsets with higher similarity to the pixels to be filtered are selected to be the adjacent pixel sets of the pixels to be filtered, so that the pixels in the selected adjacent pixel sets and the pixels to be filtered have higher gray value similarity and structural similarity; after the selection of the adjacent pixel set is completed, determining the gray value of the pixel to be filtered according to the weighted gray value mean value of the pixels in the adjacent pixel set, in the process of weighted averaging, determining the weight of the adjacent pixel through a defined distribution detection coefficient, wherein the distribution detection coefficient measures the abnormality of the adjacent pixel by calculating the similarity between the adjacent pixel and other pixels in the adjacent pixel set, when the value of the distribution detection coefficient of the adjacent pixel in the adjacent pixel set is smaller, the higher the similarity between the adjacent pixel and the pixels in the adjacent pixel set is indicated, at this time, the higher the weight of the adjacent pixel is, conversely, the larger the difference is, the higher the abnormality of the adjacent pixel in the adjacent pixel set is indicated, at this time, the smaller the weight of the adjacent pixel is, thereby ensuring that the noise in the infusion set is effectively filtered, and protecting the structural information in the infusion apparatus image.
Preferably, the image segmentation unit segments the optimized infusion set image by using a maximum inter-class variance method, and determines an optimal threshold of the maximum inter-class variance method used in the image segmentation unit by using a particle swarm algorithm.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the protection scope of the present invention, although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.