Refill screw pump for insulin injection
Technical Field
The invention relates to the technical field of insulin injection, in particular to a refill screw pump for insulin injection.
Background
The insulin pump consists of injection pump, small injector and transfusion tube connected to the injection pump, and has the basic use of injecting insulin in required dosage. However, the injection amount of insulin is very small every time, and how to control the injection amount of insulin with high accuracy and at the same time, the injection pump is required to be small in size, which is a difficult problem to be solved urgently.
Some related patent documents are reported in the prior patent documents after inquiry, and mainly include the following:
1. the patent of the invention, which is entitled "a drive rod and motor integrated assembly structure for an insulin pump", is entitled "patent publication No. CN 108159530A, which belongs to the technical field of medical apparatus and instruments. This actuating lever and motor integrated assembly structure of patent insulin pump adopts integrated assembly structure, and both are fixed in jointly on same fixing base and form a whole, have guaranteed the concentricity of actuating lever and motor, make the actuating lever under the drive of motor, steady flexible, the maximize guarantees that the direction is always, reduces the resistance, has prolonged actuating mechanism's life.
2. The patent of the invention with the name of CN 109529154A is a novel multistage sinking cylinder type insulin pump propelling mechanism, and belongs to the technical field of medical appliances. This patent adopts the propulsion of the heavy barrel insulin pump of multistage, through setting up main guide rail, vice guide rail, main pair guide bar, can replace traditional square guide slot direction to the higher phenomenon of equipment machining precision requirement, when the precision in the time of can avoiding processing is lower, then the easy dead phenomenon of card appears in propulsion returning the in-process, causes islet pump trouble, infuses insulin and fails.
The above two patents only solve the problems of the effectiveness and the service life of the driving mechanism, and do not relate to improving the injection precision and achieving the miniaturization of the injection pump body, which is the problem to be solved in the future in an urgent need of accurate medical treatment. Medical devices that administer drugs with high precision and have a good user experience are a mainstream direction of future development of insulin infusion pumps.
Disclosure of Invention
The invention aims to provide a refill screw pump for insulin injection, which can accurately control the injection amount of insulin liquid medicine, realize high-precision administration, remarkably reduce the overall size, intelligently control the rotation moment and speed of a power motor, reduce the impact strength, reduce the energy consumption of electric energy and have an anti-locking function.
In order to achieve the above purpose, the invention adopts the following technical scheme:
the utility model provides a refill screw pump for insulin injection, which comprises a housin, refill injection mechanism, one-level screw telescopic machanism, second grade screw telescopic machanism, power device, power module and intelligent control module, refill injection mechanism, one-level screw telescopic machanism and second grade screw telescopic machanism are coaxial vertical to be set up in the casing left side portion, power device, power module and intelligent control module all set up right side portion in the casing, power device is connected with one-level screw telescopic machanism transmission, power device drive one-level screw telescopic machanism is flexible, second grade screw telescopic machanism installs inside one-level screw telescopic machanism and is connected with one-level screw telescopic machanism transmission, one-level screw telescopic machanism drive second grade screw telescopic machanism is flexible, refill injection mechanism sets up on the upper portion of second grade screw telescopic machanism and is connected with the flexible end of second grade screw telescopic machanism, be equipped with button operation module on the casing, be provided with sensor assembly on the one-level screw telescopic machanism, power module provides power supply respectively and intelligent control module, intelligent control module is connected with power device, button operation module and sensor assembly signal respectively.
The bottom of casing is open and fixedly connected with bottom, and the inside left side of casing is equipped with the injection tube of similar pen container structure along vertical integrated into one piece, and the top of casing is worn out to the upper end of injection tube upwards, and the lower extreme downwardly extending of injection tube is to the left lower part in the casing, and right lower part is equipped with electric inner chamber in the casing, and power module and intelligent control module set up in electric inner chamber, and power device sets up upper right portion in the casing.
The pen core injection mechanism comprises a pen core and a pen core piston, wherein the pen core is coaxially and fixedly embedded in an injection cylinder, the outer circle of the pen core is tightly attached to and contacted with the inner circle of the injection cylinder, the lower end of the pen core is open, the lower end of the pen core is positioned in the injection cylinder and is close to the lower end of the injection cylinder, the upper end of the pen core is integrally formed with a T-shaped hollow cylindrical head with a large upper part and a small lower part, the maximum circumferential diameter of the T-shaped hollow cylindrical head is smaller than the diameter of the pen core, the lower end of the T-shaped hollow cylindrical head is connected with the upper end of the pen core through a round table cylinder with a thin upper part and a thick lower part, the upper end of the injection cylinder is coaxially and in threaded connection with a needle cap, the T-shaped hollow cylindrical head is embedded in the needle cap, the center of the top of the needle cap is coaxially and integrally formed with a cylindrical protrusion, the center of the cylindrical bulge is vertically provided with a first center hole, an injection hose is coaxially and fixedly embedded in the first center hole, the upper end of the injection hose extends out of the upper end of the cylindrical bulge and is connected with an injection needle, the center of a needle cap is provided with a second center hole which is coaxial with the first center hole, the inner diameter of the second center hole is smaller than that of the first center hole, the upper end of the second center hole is connected with the lower end of the first center hole, a needle tube is coaxially and fixedly embedded in the second center hole, the needle tube coaxially penetrates through a T-shaped hollow cylindrical head and stretches into the T-shaped hollow cylindrical head, the lower end of the needle tube is communicated with the inside of a pen core, and a core piston is coaxially and slidingly arranged in the pen core in a sealing manner.
The primary screw telescopic mechanism comprises a primary fixing rod, a primary tubular screw and a driving cylinder, wherein the outer edge of the upper surface of the fixing seat is integrally formed with a circular convex edge, a third central hole is formed in the center of the fixing seat, the primary fixing rod is coaxially arranged below the injection cylinder, the upper end of the primary fixing rod is positioned at the center of the lower end of the injection cylinder, the lower end of the primary fixing rod is fixedly connected in the third central hole, the primary tubular screw is coaxially sleeved outside the primary fixing rod, the driving cylinder is coaxially sleeved outside the primary tubular screw and is arranged between the injection cylinder and the fixing seat, the upper end of the driving cylinder is rotationally connected at the lower end of the injection cylinder, the lower end of the driving cylinder is rotationally connected on the circular convex edge, the inner diameter of the driving cylinder is smaller than the inner diameter of a pen core, the inner circle of the upper end of the driving cylinder is provided with a first inner thread, the outer circle of the primary tubular screw rod is axially provided with a first external thread matched with the first internal thread, the inner circle of the upper end part of the primary tubular screw rod is provided with a second internal thread, the lower end of the primary tubular screw rod is flush with the lower end of the driving cylinder and higher than the upper surface of the fixed seat, the upper end of the primary tubular screw rod is higher than the upper end of the driving cylinder, the outer circle of the upper end part of the primary tubular screw rod is fixedly sleeved with a limiting ring positioned above the upper end of the driving cylinder, the upper end surface of the driving cylinder is provided with a first wedge-shaped buckle which protrudes upwards, the lower end surface of the limiting ring is provided with a second wedge-shaped buckle which protrudes downwards, when the primary tubular screw rod is contracted downwards into the driving cylinder and moves downwards to a lower limit position, the second wedge-shaped buckle is meshed with the first wedge-shaped buckle, the upper end surface of the limiting ring is provided with a third wedge-shaped buckle which protrudes upwards, and the outer circumference of the upper end part of the driving cylinder is fixedly sleeved with a driving gear;
The second-stage screw telescopic mechanism comprises a second-stage fixed pipe sleeve and a second-stage screw rod, the second-stage fixed pipe sleeve is coaxially and slidably sleeved on the first-stage fixed rod, the second-stage screw rod is coaxially and slidably sleeved on the second-stage fixed pipe sleeve and is positioned in the first-stage tubular screw rod, the outer circle of the second-stage screw rod is axially provided with second external threads which are in threaded fit with second internal threads, the upper end of the second-stage fixed pipe sleeve is flush with the upper end of the first-stage fixed rod, the lower end of the second-stage fixed pipe sleeve is flush with the lower end of the first-stage tubular screw rod, the upper end of the second-stage fixed pipe sleeve is higher than the upper end of the first-stage tubular screw rod and is fixedly connected with a limit screw rod plug positioned above a limit ring, the diameter of the limit screw rod plug is smaller than the inner diameter of a refill, the top of the limit screw rod plug extends into the refill and is fixedly connected with the bottom of the refill piston, when the second-stage screw rod is contracted into the first-stage tubular screw rod downwards to a lower limit position, the fourth wedge buckle is meshed with the third wedge buckle, the lower end of the second-stage fixed pipe sleeve is higher than the lower end of the second-stage fixed pipe sleeve, the lower end of the second-sleeve is provided with a limit groove corresponding to the second-stage fixed end of the second-stage pipe sleeve, and the second-shaped clamp block is provided with a limit block corresponding to the second-shaped axial open end opening, and a limit block groove in the second-shaped end of the second-stop block, and a lower end stop block is arranged in the second end opening, and an integral stop block;
The first internal thread, the first external thread, the second internal thread and the second external thread are trapezoidal threads with the same screw pitch.
The power device comprises a power motor, the power motor is fixedly arranged at the right upper part in the shell, an output shaft of the power motor is vertically arranged at the lower side of the power motor, a motor gear is coaxially and fixedly arranged at the lower end of the output shaft of the power motor, the motor gear is positioned at the right side of the driving gear and is in meshed transmission connection with the driving gear, the power module is electrically connected with the power motor, and the intelligent control module is in signal connection with the power motor.
The sensor assembly comprises a position sensor, the position sensor is arranged on the lower side face of the trapezoid thread at the tail part of the lower end of the first internal thread, a wire harness channel is axially formed in the barrel of the driving barrel corresponding to the position sensor, a mounting hole with the diameter larger than that of the wire harness channel is coaxially formed in the lower end of the wire harness channel, the lower port of the mounting hole is formed in the lower end face of the driving barrel, an elastic conductor is fixedly arranged on the upper portion in the mounting hole, a first signal wire is arranged in the wire harness channel in a penetrating manner, the upper end of the first signal wire is connected with the position sensor, the lower end of the first signal wire is connected with the elastic conductor, the lower end of the elastic conductor is fixedly connected with a conductive ball located at the lower portion in the mounting hole, the lower side portion of the conductive ball protrudes downwards to the lower port of the mounting hole, a conductive sheet is fixedly arranged on the upper surface of the fixing seat and is in rolling contact with the conductive ball in an upper-lower-down correspondence manner, and the conductive sheet is connected with the intelligent control module through a second signal wire penetrating through the lower surface of the fixing seat and leading into the electric cavity.
The refill is made by transparent material, and the outer wall intermediate position of refill is provided with inlays and establishes on the injection cylinder inner wall and from the camera of taking the lamp light, power module and camera electric connection, intelligent control module and camera signal connection.
The intelligent control module is a microcomputer with an embedded processor, the intelligent control module is also internally provided with a soft limit of the secondary screw telescopic mechanism, and the soft limit parameter of the soft limit is the geometric parameters of the primary tubular screw and the secondary screw: the pitch, the total length and the working length are determined, so that when the second limiting clamping block on the inner wall of the lower end part of the diode screw rod slides upwards to the upper end of the second limiting clamping groove and is pulled, and the diode screw rod is contracted downwards into the first-stage tubular screw rod and moves downwards to the lower limit position, the intelligent control module immediately controls the power motor to stop rotating.
By adopting the technical scheme, the intelligent control method of the cartridge type insulin screw injection pump specifically comprises the following steps:
firstly, starting the refill screw pump, operating a key operation module, controlling a power device to work by an intelligent control module, driving a primary screw telescopic mechanism and a secondary screw telescopic mechanism to shrink by the power device, and filling insulin liquid medicine of a prefabricated injection into a refill injection mechanism;
Secondly, operating the key operation module, controlling the power device to work by the intelligent control module, wherein the power device drives the primary screw rod telescopic mechanism to extend firstly, when the primary screw rod telescopic mechanism extends to the limit, the sensor assembly transmits a signal to the intelligent control module, the intelligent control module controls the rotating speed of the power device to be reduced so as to reduce the impact force of the primary screw rod telescopic mechanism, and then the secondary screw rod telescopic mechanism starts to extend until the secondary screw rod telescopic mechanism extends to the maximum limit position, and the intelligent control module controls the power device to stop; in the extending process of the first-level screw telescopic mechanism and the second-level screw telescopic mechanism, the pen core injection mechanism carries out insulin liquid medicine injection;
and (III) repeating the step (I) after the insulin medicine liquid injection is completed, and reloading the insulin medicine liquid to prepare for the next injection.
The step (I) comprises the following steps: the power module is turned on, the intelligent control module is initialized, the injection needle is inserted into the insulin injection bottle, the key operation module is operated, the intelligent control module controls the power motor to reversely rotate, the output shaft of the power motor drives the driving cylinder to reversely rotate through the motor gear and the driving gear, the driving cylinder drives the one-level tubular screw rod to reversely rotate through the first internal thread and the first external thread, the one-level tubular screw rod drives the two-level fixed pipe sleeve and the two-level tubular screw rod to downwards move relative to the one-level fixed rod, the two-level tubular screw rod drives the limit screw rod plug and the core piston to downwards move, the core piston can pump insulin liquid medicine in the insulin injection bottle into the refill through the injection needle, the injection hose and the needle tube, when the one-level tubular screw rod is downwards contracted into the driving cylinder and downwards moved to the lower limit position, the second wedge buckle is meshed with the first wedge buckle, the one-level tubular screw rod cannot continuously downwards move through the first wedge buckle and the second external thread, the one-level tubular screw rod drives the one-level tubular screw rod to reversely rotate together through the first wedge buckle and the second external thread, the one-level tubular screw rod downwards contracts to the one-level tubular screw rod through the second internal thread and the second external thread, the two-level tubular screw rod can continuously move the insulin liquid medicine in the insulin injection bottle to the limit position through the limit screw rod and the three-level tubular screw rod continuously moves to the limit screw rod continuously downwards when the insulin injection needle is continuously moved to the limit position and the insulin injection needle is continuously downwards moved to the limit position through the tubular piston and the insulin needle tube continuously moves to the insulin needle tube continuously to the insulin needle, and the insulin injection needle is continuously downwards moved to the insulin tubular rod and the insulin tubular rod is continuously moved to the insulin tubular and continuously to the insulin tubular rod and continuously to the insulin, the insulin medicine liquid filling operation is completed, and a new injection needle is replaced to prepare injection.
The second step is specifically as follows: operating a key operation module, the intelligent control module controls the power motor to rotate positively, the output shaft of the power motor drives the motor gear to rotate, the motor gear is meshed with the driving gear, the driving gear drives the driving cylinder to rotate positively, the driving cylinder drives the primary tubular screw to extend upwards out of the driving cylinder through first internal threads and first external threads, the primary tubular screw drives the secondary fixed pipe sleeve and the secondary tubular screw to move upwards relative to the primary fixed rod, a first limit clamping block on the inner wall of the lower end part of the secondary fixed pipe sleeve slides upwards along a first limit clamping groove on the outer side wall of the primary fixed rod, the secondary tubular screw pushes the limit screw plug and the core piston to move upwards, so that the core piston pushes insulin liquid medicine in the pen refill out and carries out injection through a needle tube, an injection hose and an injection needle, wherein, as the first internal threads, the first external threads, the second internal threads and the second external threads are all trapezoidal threads with the same screw pitch, the driving cylinder rotates for one circle, the length of the primary tubular screw moving upwards can be realized, and the conductive ball is in rolling contact with the conductive piece once, a position sensor transmits a signal to the intelligent control module, the position sensor acquires the impact force of the intelligent control module through the rotational force of the intelligent control module, the intelligent control module acquires the insulin liquid medicine in the cylinder, the image acquisition of the image, the image is acquired by the image of the sensor, the image of the sensor is acquired by the position of the intelligent control module, the image is acquired by the position of the sensor, and the image is acquired by the image of the position of the image, when the primary tubular screw moves up to the upper limit position, namely the primary tubular screw and the driving cylinder cannot continue relative rotation, and simultaneously the first limit clamping block slides up to the upper end of the first limit clamping groove and is pulled, the primary tubular screw and the driving cylinder are connected into a whole in a transmission way, the movement form of the primary tubular screw moves up and down from the vertical direction and rotates along with the driving cylinder, the primary tubular screw and the secondary tubular screw relatively rotate, the primary tubular screw drives the secondary screw to extend up to the primary tubular screw through the second internal thread and the second external thread, the secondary tubular screw moves up relative to the second fixed pipe sleeve, the secondary tubular screw continues to push the limit screw plug and the core piston to move up, the core piston continues to push insulin liquid medicine in the refill out and is injected through the needle tube, the injection hose and the injection needle, and when the second limit clamping block on the inner wall of the lower end of the secondary tubular screw slides up to the upper end of the second limit clamping groove and is pulled, the primary tubular screw and the secondary screw cannot continue to rotate relatively, and the primary tubular screw and the secondary tubular screw can not stop rotating, and the intelligent control module stops rotating the whole insulin injection process.
The intelligent control module controls the power motor to change the rotating moment and the speed as follows:
a) When the intelligent control module acquires the signal times of the position sensor to reach the first set times, the rotation number of the driving cylinder reaches the first set number of times, the upward movement of the primary tubular screw rod starts to approach to the upper limit position state of the primary tubular screw rod, meanwhile, the intelligent control module measures that the injected amount of insulin liquid medicine in the pen core is more than one third and starts to approach to one half through the camera, the intelligent control module controls the driving current of the power motor to be lifted to 125% of the standard state (50 mA), the rotation moment of the power motor is lifted, and the speed of the power motor is reduced to 80% of the standard state (200 rpm/Sec) through PWM speed regulation;
b) When the number of times of the signal of the position sensor collected by the intelligent control module reaches the second set number of times, the number of rotation turns of the driving barrel reaches the second set number of times, the primary tubular screw rod moves upwards to be further close to the upper limit position state of the primary tubular screw rod, meanwhile, the intelligent control module recognizes that the core piston moves upwards further, the injection amount of insulin liquid medicine in the pen core is measured to be further close to one half, the intelligent control module controls the driving current of the power motor to be increased to 150% of the standard state (50 mA), the rotation moment of the power motor is increased, and the speed of the power motor is reduced to 60% of the standard state (200 rpm/Sec) through PWM speed regulation;
C) When the number of times of the signal of the position sensor collected by the intelligent control module reaches the third set number of times, the number of rotation turns of the driving barrel reaches the third set number of times, the primary tubular screw rod moves upwards to be close to the upper limit position state of the primary tubular screw rod, meanwhile, the intelligent control module recognizes that the core piston moves upwards further, the injected amount of insulin liquid in the pen core is measured to be close to half of the injected amount, the intelligent control module controls the driving current of the power motor to be lifted to 200% of the standard state (50 mA), the rotation moment of the power motor is lifted, the speed of the power motor is reduced to 20% of the standard state (200 rpm/Sec) through PWM (pulse width modulation), and the impact force of the primary tubular screw rod and the driving barrel is reduced;
d) When the number of times of the signal of the position sensor collected by the intelligent control module reaches the fourth set number of times, the number of rotation turns of the driving barrel reaches the fourth set number of times, the primary tubular screw rod moves upwards to an upper limit position state of the primary tubular screw rod, meanwhile, the intelligent control module recognizes that the core piston moves upwards further through the camera, the injection amount of insulin liquid medicine in the pen core is measured to be one half further, the intelligent control module controls the driving current of the power motor to be improved to 300% of a standard state (50 mA), the rotation moment of the power motor is improved, the speed of the power motor is reduced to 5% of the standard state (200 rpm/Sec) through PWM speed regulation, and the impact force of the primary tubular screw rod and the driving barrel is further reduced.
The input image of the pyramid type YOLO7 algorithm is an image acquired by a camera, the resolution of the image of a real-time monitoring picture of the camera is w multiplied by h pixels, the w value is 1280 pixels, the h value is 720 pixels, the pyramid type YOLO7 algorithm performs rectangular window cutting on a w multiplied by h pixel key frame of the original input image, and the starting point and the end point of the rectangular window cutting are respectively marked as A (x 1 ,y 1 ) And B (x) 2 ,y 2 ) Two points, starting point A (x 1 ,y 1 ) And endpoint B (x 2 ,y 2 ) The method is determined as follows:
(1) Analyzing the data of the history detection to obtain coordinates of a target object hot spot maximum circumscribed rectangular area marked by a pyramid type YOLO7 algorithm with self-adaptive weight in the last 7 days, wherein the coordinates are respectively marked as S 1 {(x 11 ,y 11 ),(x 21 ,y 21 )}、S 2 {(x 12 ,y 12 ),(x 22 ,y 22 )}、S 3 {(x 13 ,y 13 ),(x 23 ,y 23 )}、S n {(x 1n ,y 1n ),(x 2n ,y 2n )};
(2) Will x 11 ,x 12 ,x 13 ,…,x 1n Sorting from small to large, taking the first 50% of data series, and recording asThe method comprises the steps of carrying out a first treatment on the surface of the Calculate the starting point A (x 1 ,y 1 ) The X-direction coordinates of (2) are represented by the following formula 1):
in the above formula 1) [ n/2 ]]Rounding down for n/2; similarly, y is 11 ,y 12 ,y 13 ,…,y 1n Sorting from small to large, taking the first 50% of data series, and recording asCalculate the starting point A (x 1 ,y 1 ) The Y-direction coordinate of (2) below:
judgment calculation x 1 And y 1 If the coordinates of (2) are out of range, if x 1 Or y 1 If the value of (2) is less than 1, then x 1 Or y 1 The value of (1) is 1, otherwise, rounding down respectively;
(3) Will x 21 ,x 22 ,x 23 ,…,x 2n Sorting according to the size of the data series, taking the first 50% of the data series, and recording the data series asThe method comprises the steps of carrying out a first treatment on the surface of the Calculating endpoint B (x) 2 ,y 2 ) X-direction coordinates of (a) and (b) are represented by the following formula 3):
and in the same way will y 21 ,y 22 ,y 23 ,…,y 2n Sorting according to the size of the data series, taking the first 50% of the data series, and recording the data series asCalculating an endpoint B (x 2 ,y 2 ) The Y-direction coordinate of (2) is represented by the following formula 4):
judgment calculation x 2 And y 2 If the coordinates of (2) are out of range, if x 2 Greater than 1280, then x 2 The value of (2) is 1280 if y 2 If the value of (2) is greater than 720 then y 2 If not, respectively rounding down;
(4) If the number of days of time accumulation of the history data is less than 7 days, the coordinates of the start point A are set to (1, 1), and the coordinates of the end point B are set to (1280, 720), that is, x 1 =1,x 2 =1280,y 1 =1,y 2 =720。
The image processing flow of the pyramid YOLO7 algorithm is as follows:
when the refill screw pump performs insulin liquid medicine injection, the intelligent control module acquires images acquired by the camera once every 10ms, the pyramid type YOLO7 algorithm judges whether the image threshold is larger than 5ml/hour, if so, the next step (II) is carried out, otherwise, the current step (I) is continuously carried out;
if the current injection amount is less than half of the refill capacity, acquiring an image of a key frame of the current moment of the camera after cutting through a rectangular window, and recording an image A; taking the current moment as a starting point, acquiring images of key frames of the previous 500ms and the previous 2 seconds cut through a rectangular window, respectively marking the images as images B and C, and transferring to the next step (III);
(III) firstly, carrying out object detection of the Yolo7 on the image A by using a pyramid type Yolo7 algorithm, calculating the maximum probability that the injection quantity in the current image is less than or equal to 0, more than 0 and less than 1/2 and 1, and marking as P { a, b, c }, and carrying out the Yolo7 algorithmTraining the three targets offline in advance; further, the image A is divided into A by dividing it into 2 equal parts in the length and width directions 1 、A 2 、A 3 And A 4 Four sub-images, respectively calculating the maximum probability of three targets with injection quantity smaller than or equal to 0, larger than 0 and smaller than 1/2 and 1 in the current sub-image, and marking the maximum probability as P 1 、P 2 、P 3 And P 4 Said P 1 、P 2 、P 3 And P 4 As with P, is also a three-dimensional vector; screening P of the 4 sub-images 1 、P 2 、P 3 And P 4 The maximum value of each dimension, denoted P 5 { d, e, f }; further, the image A is divided into A by dividing it into 4 equal parts in the length and width directions 11 …A 44 Equally dividing 16 sub-images, respectively calculating the maximum probability of three targets of less than or equal to 0, more than 0 and less than 1/2 and 1 in the current sub-image, and marking the maximum probability as P 11 …P 44 Said P 11 …P 44 As with P, is also a three-dimensional vector; screening P of the 16 sub-images 11 …P 44 The maximum value of each dimension, denoted P 55 { g, h, i }; after being identified by three-layer pyramid type YOLO7 algorithm, the final target detection probability P of the image A is obtained A Formula 5 below):
wherein w1 … w9 is a weight, the value of which dynamically changes with the detection result of YOLO7, and the values of which are calculated as the following formulas 6) to 8):
(IV) then, referring to the pyramid type YOLO7 method for carrying out self-adaptive weight on the image A, processing the images B and C to obtain the final target detection probability of the images B and C, and marking as P B And P C ;
(V) taking out the final target detection corresponding to the three images A, B and CProbability P A 、P B And P C And obtaining the final detection results of the injection speed and the injection quantity at the current moment by adopting a maximum value judgment principle, namely, the maximum value is smaller than or equal to 0, larger than 0 and smaller than 1/2 and 1, for example: when the calculation result is P A ={1,0,0},P B ={0.56,0.16,0},P C ={0.46,0.09,0},P A 、P B And P C The maximum value of the middle dimension appears in the first dimension, so that the current injection condition is judged to be less than or equal to 0 according to the maximum value judgment principle;
and (VI) after the detection is finished, re-entering the detection of the next round, and turning to the step (I) for treatment.
Compared with the prior art, the invention has outstanding substantive characteristics and remarkable progress, specifically, the inner circle of the upper end part of the driving cylinder is provided with the first internal thread, the outer circle of the primary tubular screw is axially provided with the first external thread matched with the first internal thread, the inner circle of the upper end part of the primary tubular screw is provided with the second internal thread, the outer circle of the secondary tubular screw is axially provided with the second external thread matched with the second internal thread, the first external thread, the second internal thread and the second external thread are trapezoidal threads with the same screw pitch, then the driving cylinder rotates for one circle to realize the extension or contraction of the primary tubular screw or the secondary tubular screw by one screw pitch, the injection quantity of insulin liquid medicine can be accurately controlled, the high-precision administration is realized, the overall size is remarkably reduced, then in the whole insulin liquid medicine injection process, the intelligent control module can calculate the rotation circle number of the driving cylinder through acquiring signals of the position sensor, the intelligent control module acquires the upward moving distance of the tubular screw according to the rotation circle number of the driving cylinder, meanwhile, the intelligent control module adopts a YOLO7 algorithm to process images of the rotating core, the intelligent control module acquires the position of the insulin, the insulin liquid medicine, the impact force of the driving cylinder is changed, the power consumption of the intelligent control motor is changed, and the power consumption of the driving cylinder is changed, and the power of the insulin is changed; the intelligent control module is also internally provided with a soft limit of the secondary screw telescopic mechanism, and the soft limit parameter of the soft limit is the geometric parameters of the primary tubular screw and the secondary tubular screw: the pitch, the total length and the working length are determined, and when the second limiting clamping block on the inner wall of the lower end part of the diode screw rod slides upwards to the upper end of the second limiting clamping groove and is pulled, and the diode screw rod contracts downwards into the primary tubular screw rod and moves downwards to the lower limit position, the intelligent control module immediately controls the power motor to stop rotating, so that the situation that the power motor is locked due to tensioning of the diode screw rod or overtightening of the diode screw rod in the primary tubular screw rod is avoided, and meanwhile, the situation that the output shaft torque of the power motor is damaged due to overlarge caused by overload of the power motor is also avoided, and the effects of protecting the power motor, the primary tubular screw rod and the diode screw rod are achieved.
When insulin liquid medicine is filled, the power motor drives the driving cylinder to rotate reversely through the motor gear and the driving gear, the first-stage tubular screw rod is meshed with the first wedge-shaped buckle when the first-stage tubular screw rod is contracted downwards into the driving cylinder and moves downwards to the lower limit position, at the moment, the first-stage tubular screw rod reversely rotates along with the driving cylinder, the first-stage tubular screw rod and the second-stage tubular screw rod are prevented from being locked due to over-deep or over-tight in the driving cylinder, the first-stage tubular screw rod rotates relatively through the second internal thread and the second external thread, the second-stage tubular screw rod is contracted downwards into the first-stage tubular screw rod, and the second-stage tubular screw rod is prevented from being meshed with the first-stage tubular screw rod when the first-stage tubular screw rod is contracted downwards to the lower limit position and moves downwards to the lower limit position, and further can not be meshed with the first-stage tubular screw rod when the first-stage tubular screw rod is contracted downwards to the lower limit position, and the first-stage tubular screw rod is further meshed with the first-stage tubular screw rod when the second-stage tubular screw rod is contracted downwards to the lower limit position.
In summary, the invention can precisely control the injection amount of insulin liquid medicine, realize high-precision administration, remarkably reduce the overall size, intelligently control the rotation moment and speed of a power motor, reduce the impact strength, reduce the energy consumption of electric energy, and have the anti-locking function.
Drawings
Fig. 1 is a schematic view of the present invention in an initial state where the insulin-filled medical fluid is ready for injection.
Fig. 2 is a schematic diagram showing an intermediate state (the primary tube screw moves upward to the upper limit position) in the process of injecting insulin medical fluid according to the present invention.
Fig. 3 is a schematic view of the present invention after insulin bolus injection is completed (the diode screw moves upward to the upper limit position).
Fig. 4 is a schematic illustration of an intermediate state (the primary tube screw moving down to the lower limit position) during the refilling of insulin media according to the invention.
Fig. 5 is a schematic view of the present invention after the completion of insulin infusion refill (the diode screw moves down to the lower limit position).
FIG. 6 is a schematic view showing the operation state of the stop collar when the primary tube screw and the secondary tube screw are returned to the initial state after the completion of the refilling with insulin liquid medicine according to the present invention
Fig. 7 is an elevational schematic of the position sensor, elastic electrical conductor, first signal conductor and conductive ball of the present invention on a drive cylinder.
FIG. 8 is a schematic diagram of the pyramid YOLO7 algorithm of the present invention for rectangular window cropping of a w×h pixel key frame of an original input image.
Fig. 9 is a schematic diagram of object detection of YOLO7 for image a by the pyramid YOLO7 algorithm of the present invention.
Fig. 10 is a partial enlarged view at a in fig. 1.
Fig. 11 is a partial enlarged view at B in fig. 7.
Detailed Description
Embodiments of the present invention are further described below with reference to the accompanying drawings.
As shown in figures 1-11, a refill screw pump for insulin injection comprises a shell 1, a refill injection mechanism, a primary screw telescopic mechanism, a secondary screw telescopic mechanism, a power device, a power module and an intelligent control module, wherein the refill injection mechanism, the primary screw telescopic mechanism and the secondary screw telescopic mechanism are coaxially and vertically arranged at the left side part in the shell, the power device, the power module and the intelligent control module are all arranged at the right side part in the shell 1, the power device is in transmission connection with the primary screw telescopic mechanism, the power device drives the primary screw telescopic mechanism to stretch out and draw back, the secondary screw telescopic mechanism is arranged in the primary screw telescopic mechanism and in transmission connection with the primary screw telescopic mechanism, the primary screw telescopic mechanism drives the secondary screw telescopic mechanism to stretch out and draw back, the refill injection mechanism is arranged at the upper part of the secondary screw telescopic mechanism and is connected with the telescopic end of the secondary screw telescopic mechanism, a key operation module 2 is arranged on the shell 1, a sensor assembly is arranged on the primary screw telescopic mechanism, the power module respectively provides power for the power device and the intelligent control module, and the intelligent control module is respectively in signal connection with the power device, the key operation module 2 and the sensor assembly.
The bottom of casing 1 is open and fixedly connected with bottom 3, and the inside left side of casing 1 is equipped with the injection tube 4 of similar pen container structure along vertical integrated into one piece, and the top of casing 1 is worn out upwards to the upper end of injection tube 4, and the lower extreme downwardly extending of injection tube 4 is to the left lower part in the casing 1, and the right lower part is equipped with electric inner chamber 5 in the casing 1, and power module and intelligent control module set up in electric inner chamber 5, and power device sets up the upper right part in casing 1.
The pen core injection mechanism comprises a pen core 6 and a pen core piston 7, wherein the pen core 6 is coaxially and fixedly embedded in the injection cylinder 4, the outer circle of the pen core 6 is tightly contacted with the inner circle of the injection cylinder 4, the lower end of the pen core 6 is open, the lower end of the pen core 6 is positioned in the injection cylinder 4 and is close to the lower end of the injection cylinder 4, the upper end of the pen core 6 is integrally formed with a T-shaped hollow cylindrical head 8,T with the upper part being larger than the lower part, the maximum circumferential diameter of the T-shaped hollow cylindrical head 8 is smaller than the diameter of the pen core 6, the lower end of the T-shaped hollow cylindrical head 8 is connected with the upper end of the pen core 6 through a round table cylinder 9 with the upper part being thin and the lower part being thick, the upper end of the injection cylinder 4 is coaxially connected with a needle cap 10, the T-shaped hollow cylindrical head 8 is embedded in the needle cap 10, the center of the top of the needle cap 10 is coaxially and integrally formed with a cylindrical boss 11, the center of the cylindrical bulge 11 is vertically provided with a first center hole, an injection hose 12 is coaxially and fixedly embedded in the first center hole, the upper end of the injection hose 12 extends out of the upper end of the cylindrical bulge 11 and is connected with an injection needle, the center of the needle cap 10 is provided with a second center hole coaxial with the first center hole, the inner diameter of the second center hole is smaller than that of the first center hole, the upper end of the second center hole is connected with the lower end of the first center hole, a needle tube 13 is coaxially and fixedly embedded in the second center hole, the needle tube 13 coaxially penetrates through the T-shaped hollow cylindrical head 8 and extends into the T-shaped hollow cylindrical head 8, the lower end of the needle tube 13 is communicated with the inside of the pen core 6, and the core piston 7 is coaxially, tightly and slidingly arranged in the pen core 6.
The primary screw telescopic mechanism comprises a primary fixing rod 15, a primary tubular screw 16 and a driving cylinder 17, wherein the outer edge of the upper surface of the fixing seat 14 is integrally formed with a circular convex edge 18, the center of the fixing seat 14 is provided with a third center hole, the primary fixing rod 15 is coaxially arranged below the injection cylinder 4, the upper end of the primary fixing rod 15 is positioned at the center of the lower end of the injection cylinder 4, the lower end of the primary fixing rod 15 is fixedly connected in the third center hole, the primary tubular screw 16 is coaxially sleeved outside the primary fixing rod 15, the driving cylinder 17 is coaxially sleeved outside the primary tubular screw 16 and is arranged between the injection cylinder 4 and the fixing seat 14, the upper end of the driving cylinder 17 is rotationally connected to the lower end of the injection cylinder 4, the lower end of the driving cylinder 17 is rotationally connected to the circular convex edge 18, the inner diameter of the driving cylinder 17 is smaller than the inner diameter of the pen core 6, the inner circle of the upper end of the driving cylinder 17 is provided with a first inner thread 19, the outer circle of the primary tubular screw 16 is axially provided with a first external thread 20 in threaded fit with a first internal thread 19, the inner circle of the upper end part of the primary tubular screw 16 is provided with a second internal thread 21, the lower end of the primary tubular screw 16 is flush with the lower end of the driving cylinder 17 and higher than the upper surface of the fixed seat 14, the upper end of the primary tubular screw 16 is higher than the upper end of the driving cylinder 17, the outer circle of the upper end part of the primary tubular screw 16 is fixedly sleeved with a limiting ring 22 positioned above the upper end of the driving cylinder 17, the upper end surface of the driving cylinder 17 is provided with a first wedge-shaped buckle 23 which protrudes upwards, the lower end surface of the limiting ring 22 is provided with a second wedge-shaped buckle 24 which protrudes downwards, when the primary tubular screw 16 is contracted downwards into the driving cylinder 17 and moves downwards to a lower limit position, the second wedge-shaped buckle 24 is meshed with the first wedge-shaped buckle 23, the upper end surface of the limiting ring 22 is provided with a third wedge-shaped buckle 25 which protrudes upwards, the outer circumference of the upper end part of the driving cylinder 17 is fixedly sleeved with a driving gear 26;
The secondary screw telescopic mechanism comprises a secondary fixed pipe sleeve 27 and a secondary screw 28, the secondary fixed pipe sleeve 27 is coaxially and slidably sleeved on the primary fixed rod 15, the secondary screw 28 is coaxially and slidably sleeved on the secondary fixed pipe sleeve 27 and positioned in the primary tubular screw 16, the outer circle of the secondary screw 28 is axially provided with a second external thread 29 which is in threaded fit with the second internal thread 21, the upper end of the secondary fixed pipe sleeve 27 is flush with the upper end of the primary fixed rod 15, the lower end of the secondary fixed pipe sleeve 27 is flush with the lower end of the primary tubular screw 16, the upper end of the secondary screw 28 is higher than the upper end of the primary tubular screw 16 and is fixedly connected with a limiting screw plug 30 positioned above the limiting ring 22, the diameter of the limiting screw plug 30 is smaller than the inner diameter of the refill 6, the top of the limiting screw plug 30 extends into the refill 6 and is fixedly connected with the bottom of the refill piston 7, the outer edge of the bottom of the limit screw plug 30 is provided with a fourth wedge-shaped buckle 31 protruding downwards, when the diode-type screw 28 is contracted downwards into the primary tubular screw 16 and moves downwards to a lower limit position, the fourth wedge-shaped buckle 31 is meshed with the third wedge-shaped buckle 25, the lower end of the diode-type screw 28 is higher than the lower end of the secondary fixed pipe sleeve 27, the outer side wall of the primary fixed rod 15 is provided with a first limit clamping groove 32 with an open lower side and an open outer side along the axial direction, the inner wall of the lower end part of the secondary fixed pipe sleeve 27 is integrally formed with a first limit clamping block 33 correspondingly and slidably clamped in the first limit clamping groove 32, the outer side wall of the secondary fixed pipe sleeve 27 is provided with a second limit clamping groove 34 with an open lower side and an open outer side along the axial direction, and the inner wall of the lower end part of the diode-type screw 28 is integrally formed with a second limit clamping block 35 correspondingly and slidably clamped in the second limit clamping groove 34;
The first internal thread 19, the first external thread 20, the second internal thread 21 and the second external thread 29 are trapezoidal threads with the same pitch.
The power device comprises a power motor 36, the power motor 36 is fixedly arranged at the right upper part in the shell 1, an output shaft of the power motor 36 is vertically arranged at the lower side of the power motor 36, a motor gear 37 is coaxially and fixedly arranged at the lower end of the output shaft of the power motor 36, the motor gear 37 is positioned at the right side of the driving gear 26 and is in meshed transmission connection with the driving gear 26, a power module is electrically connected with the power motor 36, and an intelligent control module is in signal connection with the power motor 36.
The sensor assembly comprises a position sensor 38, the position sensor 38 is arranged on the lower side face of the trapezoid thread at the tail part of the lower end of the first internal thread 19, a wire harness channel 39 is formed in the barrel of the driving barrel 17 correspondingly to the position sensor 38 in the axial direction, a mounting hole 40 with the diameter larger than that of the wire harness channel 39 is coaxially formed in the lower end of the wire harness channel 39, the lower end of the mounting hole 40 is formed in the lower end face of the driving barrel 17, an elastic conductor 41 is fixedly arranged on the upper portion of the mounting hole 40, a first signal conductor 42 is arranged in each wire harness channel 39 in a penetrating manner, the upper end of the first signal conductor 42 is connected with the position sensor 38, the lower end of the first signal conductor 42 is connected with the elastic conductor 41, the lower end of the elastic conductor 41 is fixedly connected with a conductive ball 43 located at the lower part in the mounting hole 40, the lower side part of the conductive ball 43 protrudes downwards to the lower end of the mounting hole 40, a conductive sheet 44 is fixedly arranged on the upper surface of the fixing seat 14, the conductive sheet 44 is respectively in rolling contact with the conductive ball 43 in the upper and lower correspondence manner, and the conductive sheet 44 is connected with the intelligent control signal module through a second signal conductor penetrating through the lower surface of the fixing seat 14 and being led into the electric cavity 5.
The refill 6 is made of transparent material, and the outer wall intermediate position of refill 6 is provided with and inlays the camera of establishing on syringe 4 inner wall and taking the lamp light certainly, power module and camera electric connection, intelligent control module and camera signal connection.
The intelligent control module is a microcomputer with an embedded processor, the intelligent control module is also internally provided with a soft limit of the secondary screw telescopic mechanism, and the soft limit parameters of the soft limit are determined by the geometric parameters of the primary tubular screw 16 and the secondary tubular screw 28: the pitch, overall length and working length are determined so that the intelligent control module immediately controls the power motor 36 to stop rotating when the second limit catch on the inner wall of the lower end of the diode screw 28 slides up to the upper end of the second limit catch slot and is pulled and the diode screw 28 retracts down into the primary tube screw 16 and moves down to the lower limit position.
The power module, the intelligent control module, the injection needle and the camera are not shown in the figure, the power module, the intelligent control module, the key operation module 2, the power motor 36, the injection needle and the camera are all conventional technologies, specific structures and working principles are not repeated, and the control and calculation method built in the intelligent control module is the conventional technologies and does not involve a new computer program.
By adopting the technical scheme, the intelligent control method of the cartridge type insulin screw injection pump specifically comprises the following steps:
firstly, starting the refill screw pump, operating the key operation module 2, controlling the power device to work by the intelligent control module, driving the primary screw telescopic mechanism and the secondary screw telescopic mechanism to shrink by the power device, and filling insulin liquid medicine of the prefabricated injection into the refill injection mechanism;
secondly, operating the key operation module 2, controlling the power device to work by the intelligent control module, wherein the power device drives the primary screw rod telescopic mechanism to extend firstly, when the primary screw rod telescopic mechanism extends to the limit, the sensor assembly transmits a signal to the intelligent control module, the intelligent control module controls the rotating speed of the power device to be reduced so as to reduce the impact force of the primary screw rod telescopic mechanism, and then the secondary screw rod telescopic mechanism starts to extend until the secondary screw rod telescopic mechanism extends to the maximum limit position, and the intelligent control module controls the power device to stop; in the extending process of the first-stage screw telescopic mechanism and the second-stage screw telescopic mechanism, the pen core injection mechanism carries out insulin liquid medicine injection.
And (III) repeating the step (I) after the insulin medicine liquid injection is completed, and reloading the insulin medicine liquid to prepare for the next injection.
The step (I) comprises the following steps: the power module is turned on, the intelligent control module is initialized, the injection needle is inserted into the insulin injection bottle, the key operation module 2 is operated, the intelligent control module controls the power motor 36 to rotate reversely, the output shaft of the power motor 36 drives the driving cylinder 17 to rotate reversely through the motor gear 37 and the driving gear 26, the driving cylinder 17 drives the primary tubular screw 16 to shrink downwards into the driving cylinder 17 through the first internal thread 19 and the first external thread 20, the primary tubular screw 16 drives the secondary fixed pipe sleeve 27 and the secondary tubular screw 28 to move downwards relative to the primary fixed rod 15, the secondary tubular screw 28 drives the limit screw plug 30 and the core piston 7 to move downwards, the core piston 7 can pump insulin liquid medicine in the insulin injection bottle into the pen core 6 through the injection needle, the injection hose 12 and the needle tube 13, when the primary tubular screw 16 shrinks downwards into the driving cylinder 17 and moves downwards to the lower limit position, the second wedge-shaped buckle 24 is meshed with the first wedge-shaped buckle 23, the primary tubular screw 16 cannot move downwards continuously, the driving cylinder 17 drives the primary tubular screw 16 to rotate reversely through the first wedge-shaped buckle 23 and the second wedge-shaped buckle 24, the primary tubular screw 16 rotates relatively to the secondary tubular screw 28, the primary tubular screw 16 drives the secondary tubular screw 28 to shrink downwards into the primary tubular screw 16 through the second internal thread 21 and the second external thread 29, the secondary tubular screw 28 continues to drive the limit screw plug 30 and the core piston 7 to move downwards, the core piston 7 continues to pump insulin liquid medicine in an insulin injection bottle into the pen core 6 through the injection needle, the injection hose 12 and the needle tube 13, when the secondary tubular screw 28 shrinks downwards into the primary tubular screw 16 and moves downwards to a lower limit position, the fourth wedge-shaped buckle 31 is meshed with the third wedge-shaped buckle 25, the diode screw 28 cannot move downwards continuously, the intelligent control module immediately controls the power motor 36 to stop rotating, the pen core 6 is filled with insulin liquid medicine, insulin liquid medicine filling operation is completed, a new injection needle is replaced, and injection is prepared.
The second step is specifically as follows: operating the key operation module 2, the intelligent control module controls the power motor 36 to rotate positively, the output shaft of the power motor 36 drives the motor gear 37 to rotate, the motor gear 37 is meshed with the driving gear 26, the driving gear 26 drives the driving cylinder 17 to rotate positively, the driving cylinder 17 and the primary tubular screw 16 rotate relatively, the driving cylinder 17 drives the primary tubular screw 16 to extend upwards out of the driving cylinder 17 through the first internal thread 19 and the first external thread 20, the primary tubular screw 16 drives the secondary fixed pipe sleeve 27 and the secondary tubular screw 28 to move upwards relative to the primary fixed rod 15, a first limit clamping block 33 on the inner wall of the lower end part of the secondary fixed pipe sleeve 27 slides upwards along a first limit clamping groove 32 on the outer side wall of the primary fixed rod 15, the secondary tubular screw 28 pushes the limit screw plug 30 and the core piston 7 to move upwards, so that the core piston 7 pushes insulin liquid medicine in the pen core 6 out and carries out injection through the needle tube 13, the injection hose 12 and the injection needle, wherein, because the first internal thread 19, the first external thread 20, the second internal thread 21 and the second external thread 29 are trapezoidal threads with the same screw pitch, the first-stage tubular screw 16 can move upwards for one screw pitch length by one turn of the driving cylinder 17, the conductive balls 43 are in rolling contact with the conductive sheets 44 once, the position sensor 38 transmits signals to the intelligent control module once, the intelligent control module acquires the information of the number of turns of the driving cylinder 17 by acquiring the signals of the position sensor 38, the intelligent control module acquires the upward moving distance of the first-stage tubular screw 16 according to the number of turns of the driving cylinder 17, the intelligent control module processes the image acquired by the camera by adopting a pyramid type YOLO7 algorithm, the position of the core piston 7 is identified, and then the injected amount of insulin liquid medicine in the pen core 6 is measured, the intelligent control module controls the power motor 36 to change the rotation moment and speed, the impact force between the primary tubular screw 16 and the driving cylinder 17 is reduced, until the primary tubular screw 16 moves upwards to an upper limit position, namely, the primary tubular screw 16 and the driving cylinder 17 cannot continue to move relatively, meanwhile, the first limit clamping block 33 slides upwards to the upper end of the first limit clamping groove 32 and is pulled, the primary tubular screw 16 and the driving cylinder 17 are connected into a whole in a transmission way, the movement form of the primary tubular screw 16 moves up and down from the vertical direction to rotate along with the driving cylinder 17, the primary tubular screw 16 and the secondary tubular screw 28 rotate relatively, the primary tubular screw 16 drives the primary tubular screw 16 to extend upwards through the second internal thread 21 and the second external thread 29, the secondary tubular screw 28 moves upwards relative to the secondary fixed pipe sleeve 27, the secondary tubular screw 28 continues to push the limit screw plug 30 and the core piston 7 upwards, insulin liquid medicine in the core piston 7 continues to push out and is injected through the needle tube 13, the injection hose 12 and the injection needle 35 on the lower end of the secondary tubular screw 28, and the second limit clamping block 35 slides upwards to the second tubular screw 28 stops moving relatively to the upper limit position of the secondary tubular screw 28, and the intelligent control module stops rotating relatively when the secondary tubular screw 28 moves up to the secondary tubular screw 28 and the second tubular screw 28 moves relatively to the upper limit position.
The intelligent control module controls the power motor 36 to change the rotational moment and speed as follows:
a) When the intelligent control module acquires that the number of times of signals of the position sensor 38 reaches the first set number of times, the rotation number of the driving cylinder 17 reaches the first set number of times, the upward movement of the primary tubular screw 16 starts to approach to the upper limit position state of the primary tubular screw, meanwhile, the intelligent control module measures that the injected amount of insulin liquid in the pen core 6 is more than one third and starts to approach to one half through the camera, the intelligent control module controls the driving current of the power motor 36 to be lifted to 125% of the standard state (50 mA), the rotation moment of the power motor 36 is lifted, and the speed of the power motor 36 is reduced to 80% of the standard state (200 rpm/Sec) through PWM speed regulation;
b) When the number of times of the signal of the position sensor 38 collected by the intelligent control module reaches the second set number of times, the number of rotation turns of the driving barrel 17 reaches the second set number of times, the primary tubular screw 16 moves upwards to be further close to the upper limit position state of the primary tubular screw 16, meanwhile, the intelligent control module recognizes that the core piston 7 moves upwards further through the camera, the injection amount of insulin liquid in the pen core 6 is measured to be further close to one half, the intelligent control module controls the driving current of the power motor 36 to be increased to 150% of the standard state (50 mA), the rotation moment of the power motor 36 is increased, and the speed of the power motor 36 is reduced to 60% of the standard state (200 rpm/Sec) through PWM speed regulation;
C) When the number of times of the signal of the position sensor 38 collected by the intelligent control module reaches the third set number of times, the number of rotation turns of the driving barrel 17 reaches the third set number of times, the primary tubular screw 16 moves upwards to be close to the upper limit position state of the primary tubular screw 16, meanwhile, the intelligent control module recognizes that the core piston 7 moves upwards further through a camera, the injected amount of insulin liquid in the pen core 6 is measured to be close to half of the injected amount, the intelligent control module controls the driving current of the power motor 36 to be lifted to 200% of the standard state (50 mA), the rotation moment of the power motor 36 is lifted, the speed of the power motor 36 is reduced to 20% of the standard state (200 rpm/Sec) through PWM speed regulation, and the impact force of the primary tubular screw 16 and the driving barrel 17 is reduced;
d) When the number of times of the position sensor signals collected by the intelligent control module reaches the fourth set number of times, the number of rotation turns of the driving barrel 17 reaches the fourth set number of times, the primary tubular screw 16 moves upwards to the upper limit position state of the primary tubular screw 16, meanwhile, the intelligent control module recognizes that the core piston 7 moves upwards further through the camera, the injected amount of insulin liquid in the pen core 6 is measured to be one half further, the intelligent control module controls the driving current of the power motor 36 to be increased to 300% of the standard state (50 mA), the rotation moment of the power motor 36 is increased, the speed of the power motor 36 is reduced to 5% of the standard state (200 rpm/Sec) through PWM speed regulation, and the impact force of the primary tubular screw 16 and the driving barrel 17 is further reduced.
The input image of the pyramid type YOLO7 algorithm is an image acquired by a camera, the resolution of the image of a real-time monitoring picture of the camera is w multiplied by h pixels, the w value is 1280 pixels, the h value is 720 pixels, the pyramid type YOLO7 algorithm performs rectangular window cutting on a w multiplied by h pixel key frame of the original input image, and the starting point and the end point of the rectangular window cutting are respectively marked as A (x 1 ,y 1 ) And B (x) 2 ,y 2 ) Two points, starting point A (x 1 ,y 1 ) And endpoint B (x 2 ,y 2 ) The method is determined as follows:
(1) Analyzing the data of the history detection to obtain coordinates of a target object hot spot maximum circumscribed rectangular area marked by a pyramid type YOLO7 algorithm with self-adaptive weight in the last 7 days, wherein the coordinates are respectively marked as S 1 {(x 11 ,y 11 ),(x 21 ,y 21 )}、S 2 {(x 12 ,y 12 ),(x 22 ,y 22 )}、S 3 {(x 13 ,y 13 ),(x 23 ,y 23 )}、S n {(x 1n ,y 1n ),(x 2n ,y 2n )};
(2) Will x 11 ,x 12 ,x 13 ,…,x 1n Sorting from small to large, taking the first 50% of data series, and recording asThe method comprises the steps of carrying out a first treatment on the surface of the Calculate the starting point A (x 1 ,y 1 ) The X-direction coordinates of (2) are represented by the following formula 1):
in the above formula 1) [ n/2 ]]Rounding down for n/2; similarly, y is 11 ,y 12 ,y 13 ,…,y 1n Sorting from small to large, taking the first 50% of data series, and recording asCalculate the starting point A (x 1 ,y 1 ) The Y-direction coordinate of (2) below: />
Judgment calculation x 1 And y 1 If the coordinates of (2) are out of range, if x 1 Or y 1 If the value of (2) is less than 1, then x 1 Or y 1 The value of (1) is 1, otherwise, rounding down respectively;
(3) Will x 21 ,x 22 ,x 23 ,…,x 2n Sorting according to the size of the data series, taking the first 50% of the data series, and recording the data series asThe method comprises the steps of carrying out a first treatment on the surface of the Calculating endpoint B (x) 2 ,y 2 ) X-direction coordinates of (a) and (b) are represented by the following formula 3):
and in the same way will y 21 ,y 22 ,y 23 ,…,y 2n Sorting according to the size of the data series, taking the first 50% of the data series, and recording the data series asCalculating an endpoint B (x 2 ,y 2 ) The Y-direction coordinate of (2) is represented by the following formula 4):
judgment calculation x 2 And y 2 If the coordinates of (2) are out of range, if x 2 Greater than 1280, then x 2 The value of (2) is 1280 if y 2 If the value of (2) is greater than 720 then y 2 If not, respectively rounding down;
(4) If the number of days of time accumulation of the history data is less than 7 days, the coordinates of the start point A are set to (1, 1), and the coordinates of the end point B are set to (1280, 720), that is, x 1 =1,x 2 =1280,y 1 =1,y 2 =720。
The image processing flow of the pyramid YOLO7 algorithm is as follows:
when the pen core 6 screw pump performs insulin liquid medicine injection, the intelligent control module acquires images acquired by the camera once every 10ms, the pyramid type YOLO7 algorithm judges whether the image threshold is larger than 5ml/hour, if so, the next step (II) is carried out, otherwise, the current step (I) is continuously carried out;
if the current injection amount is less than half of the capacity of the pen core 6, acquiring an image of a key frame of the current moment of the camera after cutting through a rectangular window, and recording an image A; taking the current moment as a starting point, acquiring images of key frames of the previous 500ms and the previous 2 seconds cut through a rectangular window, respectively marking the images as images B and C, and transferring to the next step (III);
(III) firstly, carrying out object detection of the Yolo7 on the image A by using a pyramid type Yolo7 algorithm, calculating the maximum probability that the injection quantity in the current image is less than or equal to 0, more than 0 and less than 1/2 and 1, and marking as P { a, b, c }, wherein the Yolo7 algorithm is offline in advance for the three objectsTraining; further, the image A is divided into A by dividing it into 2 equal parts in the length and width directions 1 、A 2 、A 3 And A 4 Four sub-images, respectively calculating the maximum probability of three targets with injection quantity smaller than or equal to 0, larger than 0 and smaller than 1/2 and 1 in the current sub-image, and marking the maximum probability as P 1 、P 2 、P 3 And P 4 Said P 1 、P 2 、P 3 And P 4 As with P, is also a three-dimensional vector; screening P of the 4 sub-images 1 、P 2 、P 3 And P 4 The maximum value of each dimension, denoted P 5 { d, e, f }; further, the image A is divided into A by dividing it into 4 equal parts in the length and width directions 11 …A 44 Equally dividing 16 sub-images, respectively calculating the maximum probability of three targets of less than or equal to 0, more than 0 and less than 1/2 and 1 in the current sub-image, and marking the maximum probability as P 11 …P 44 Said P 11 …P 44 As with P, is also a three-dimensional vector; screening P of the 16 sub-images 11 …P 44 The maximum value of each dimension, denoted P 55 { g, h, i }; after being identified by three-layer pyramid type YOLO7 algorithm, the final target detection probability P of the image A is obtained A Formula 5 below):
wherein w1 … w9 is a weight, the value of which dynamically changes with the detection result of YOLO7, and the values of which are calculated as the following formulas 6) to 8):
(IV) then, referring to the pyramid type YOLO7 method for carrying out self-adaptive weight on the image A, processing the images B and C to obtain the final target detection probability of the images B and C, and marking as P B And P C ;
(V) extracting final target detection probability P corresponding to the three images A, B and C A 、P B And P C And obtaining the final detection results of the injection speed and the injection quantity at the current moment by adopting a maximum value judgment principle, namely, the maximum value is smaller than or equal to 0, larger than 0 and smaller than 1/2 and 1, for example: when the calculation result is P A ={1,0,0},P B ={0.56,0.16,0},P C ={0.46,0.09,0},P A 、P B And P C The maximum value of the middle dimension appears in the first dimension, so that the current injection condition is judged to be less than or equal to 0 according to the maximum value judgment principle;
and (VI) after the detection is finished, re-entering the detection of the next round, and turning to the step (I) for treatment.
The inner circle of the upper end part of the driving cylinder 17 is provided with the first internal thread 19, the outer circle of the primary tubular screw 16 is axially provided with the first external thread 20 which is in threaded fit with the first internal thread 19, the inner circle of the upper end part of the primary tubular screw 16 is provided with the second internal thread 21, the outer circle of the secondary tubular screw 28 is axially provided with the second external thread 29 which is in threaded fit with the second internal thread 21, the first internal thread 19, the first external thread 20, the second internal thread 21 and the second external thread 29 are trapezoidal threads with the same screw pitch, the driving cylinder 17 rotates for one circle to realize the extension or contraction of the primary tubular screw 16 or the secondary tubular screw 28 by one screw pitch, the injection quantity of insulin liquid medicine can be accurately controlled, the high-precision administration is realized, the whole size is obviously reduced, then in the whole insulin liquid medicine injection process, the intelligent control module can calculate the rotation circle number of the driving cylinder 17 through acquiring the signal of the position sensor 38, the intelligent control module acquires the upward moving distance of the primary tubular screw 16 according to the rotation circle number of the driving cylinder 17, simultaneously the intelligent control module adopts a YOLO7 algorithm to process the image of the processing core 7 of the driving cylinder, the intelligent control module is used for identifying the position of the piston 6, the impact force of the driving cylinder 16 is further, the impact force of the driving cylinder is controlled, and the force of the driving cylinder is controlled by the intelligent control module is used for controlling the impact force of the driving cylinder 16, and the force of the driving cylinder is controlled by the driving cylinder 17, and the impact force is controlled by the driving motor, and the speed is a motor 6; the intelligent control module is also internally provided with a soft limit of the secondary screw telescopic mechanism, and the soft limit parameter of the soft limit is composed of geometric parameters of the primary tubular screw 16 and the secondary tubular screw 28: the pitch, the total length and the working length are determined, so that when the second limit clamping block on the inner wall of the lower end part of the diode screw 28 slides upwards to the upper end of the second limit clamping groove and is pulled, and the diode screw 28 is contracted downwards into the primary tubular screw 16 and moves downwards to the lower limit position, the intelligent control module immediately controls the power motor 36 to stop rotating, the situation that the diode screw 28 is tensioned or the diode screw 28 enters the primary tubular screw 16 to be too tightly locked due to too much tension is avoided, and meanwhile, the situation that the output shaft torque of the power motor 36 is too much damaged due to overload is avoided, and the functions of protecting the power motor 36, the primary tubular screw 16 and the diode screw 28 are achieved.
When insulin medicine liquid is filled in the invention, the power motor 36 drives the driving cylinder 17 to rotate reversely through the motor gear 37 and the driving gear 26, so that the primary tubular screw 16 is contracted downwards into the driving cylinder 17, because the upper end part excircle of the primary tubular screw 16 is fixedly sleeved with the limiting ring 22 positioned above the upper end of the driving cylinder 17, the upper end surface of the driving cylinder 17 is provided with a first wedge-shaped buckle 23 which protrudes upwards, the lower end surface of the limiting ring 22 is provided with a second wedge-shaped buckle 24 which protrudes downwards, the upper end surface of the limiting ring 22 is provided with a third wedge-shaped buckle 25 which protrudes upwards, the outer edge of the bottom of the limiting screw plug 30 is provided with a fourth wedge-shaped buckle 31 which protrudes downwards, when the primary tubular screw 16 is contracted downwards into the driving cylinder 17 and moves downwards to the lower limit position, the second wedge-shaped buckle 24 is meshed with the first wedge-shaped buckle 23, the primary tubular screw 16 rotates reversely along with the driving cylinder 17, so that the situation that the primary tubular screw 16 enters the driving cylinder 17 to be locked due to too deep or too tight is avoided, the primary tubular screw 16 rotates relative to the secondary tubular screw 28, the primary tubular screw 16 drives the secondary tubular screw 28 to shrink downwards into the primary tubular screw 16 through the second internal thread 21 and the second external thread 29, and similarly, when the secondary tubular screw 28 shrinks downwards into the primary tubular screw 17 and moves downwards to a lower limit position, the fourth wedge buckle 31 is meshed with the third wedge buckle 25, at the moment, the secondary tubular screw 28 cannot shrink downwards into the primary tubular screw 16, and as the second wedge buckle 24 is meshed with the first wedge buckle 23, the fourth wedge buckle 31 is meshed with the third wedge buckle 25, the locking prevention function can be achieved structurally.
The above embodiments are merely for illustrating the technical aspects of the present invention, and it should be understood by those skilled in the art that the present invention is described in detail with reference to the above embodiments; modifications and equivalents may be made thereto without departing from the spirit and scope of the invention, which is intended to be encompassed by the claims.