DOSE SETTING SENSOR ASSEMBLY WITH ALGORITHMIC AUTO CALIBRATION
20230293821 · 2023-09-21
Inventors
Cpc classification
A61M5/2422
HUMAN NECESSITIES
A61M2205/52
HUMAN NECESSITIES
International classification
Abstract
Drug delivery system comprising a dose setting member adapted to incrementally rotate in a first direction to set a dose, and incrementally rotate in an opposed second direction to reduce a set dose, the dose setting member having a rotational slack in each incremental rotational position. The system further comprises a rotary sensor adapted to detect the amount of rotation of the dose setting member during dose setting. Processor means is adapted to detect a first or second dose setting pattern when the final dose was set by rotating the setting member in the first respectively the second direction. When a first / second dose setting pattern is detected the detected amount of rotation is used to calculate a corrected amount of rotation using a first/ second algorithm compensating for a slack-induced error generated corresponding to the first/ second dose setting pattern.
Claims
1. A drug delivery system, comprising: a housing defining a reference axis for rotation, a drug reservoir or structure for receiving a drug reservoir, drug expelling structure comprising: a dose setting member adapted to (i) incrementally rotate in a first direction to set a dose, and (ii) incrementally rotate in an opposed second direction to reduce a set dose, the dose setting member having a rotational slack in each incremental rotational position, and an actuation member adapted to cause a final set dose amount to be expelled, a rotary sensor adapted to detect the amount of rotation of the dose setting member relative to the housing during dose setting, a memory, and processor structure adapted to: detect a first dose setting pattern when the final dose was set by rotating the setting member in the first direction, detect a second dose setting pattern when the final dose was set by rotating the setting member in the second direction, when a first dose setting pattern is detected: based on the detected amount of rotation calculating a corrected amount of rotation using a first algorithm compensating for a slack-induced error generated corresponding to the first dose setting pattern, when a second dose setting pattern is detected: based on the detected amount of rotation calculating a corrected amount of rotation using a second algorithm compensating for a slack-induced error generated corresponding to the second dose setting pattern, and store in the memory calculated corrected amounts of rotation or dose data corresponding thereto.
2. A drug delivery system as in claim 1, the drug expelling structure further comprising: a drive spring for expelling a set amount of drug from the drug reservoir, the dose setting member being adapted to (i) incrementally rotate in a first direction to set a dose and strain the drive spring correspondingly, and (ii) incrementally rotate in an opposed second direction to reduce a set dose and unstrain the drive spring correspondingly, wherein the actuation member is a release member adapted to release the strained drive spring to expel a final set dose amount.
3. A drug delivery system as in claim 2, the system being in the form of an assembly comprising a drug delivery device and an add-on device adapted to be releasably mounted on the drug delivery device, wherein the drug delivery device comprises: the housing, the drug reservoir or the structure for receiving a drug reservoir, and the drug expelling structure comprising a drug delivery device dose setting member and a drug delivery device release member, the add-on device comprising: the rotary sensor, and the processor structure.
4. A drug delivery system as in claim 3, wherein the add-on device further comprises: an add-on housing being releasably attachable to the drug delivery device housing, an add-on dose setting member, and an add-on release member axially moveable relative to the add-on dose setting member between a dose setting state and a dose expelling state, wherein: the add-on dose setting member is adapted to non-rotationally engage the drug delivery device dose setting member, the rotary sensor is adapted to detect the amount of rotation of the add-on dose setting member relative to the add-on housing during dose setting, and when in a mounted state, the add-on release member is adapted to release the drug delivery device release member when moved from the dose setting state to the dose expelling state.
5. A drug delivery system as in claim 1, wherein the rotary sensor is de-activated when the add-on release member is moved from the dose setting state to the dose expelling state.
6. A drug delivery system as in claim 1, the system being in the form of an assembly comprising a drug delivery device and an add-on device adapted to be releasably mounted on the drug delivery device, wherein the drug delivery device comprises: the housing, the drug reservoir or the structure for receiving a drug reservoir, and the drug expelling structure comprising a drug delivery device dose setting member and a drug delivery device actuation member, the add-on device comprising: the rotary sensor, and the processor structure.
7. A drug delivery system as in claim 1, the drug expelling structure further comprising: a piston rod adapted to engage and axially displace a piston in a loaded cartridge in a distal direction to thereby expel a dose of drug from the cartridge, and a drive member coupled directly or indirectly to the piston rod, wherein, when the drug expelling structure comprises a drive spring: the drive spring is coupled to the drive member, and the release member is adapted to release the strained drive spring to rotate the drive member to expel the set dose amount.
8. A drug delivery system as in claim 1, wherein the processor structure for a detected first dose pattern is adapted to: detect a dose setting pause between two consecutive dose setting rotations in the first direction, and when one or more dose setting pauses are detected: based on the detected amount of rotation calculating a corrected amount of rotation using a third algorithm compensating for a slack-induced error generated corresponding to the first dose setting pattern when one or more dose setting pauses have been detected.
9. A drug delivery system as in claim 1, wherein: the drug expelling structure comprises an over-torque mechanism allowing the dose setting member to be rotated further in the first direction when a predetermined maximum dose has been set, and the processor structure is adapted to detect an over-torque condition and calculate the amount of rotation of the dose setting member relative to the housing corresponding to the set maximum dose.
10. A drug delivery system as in claim 1, further comprising: transmitter structure adapted to transmit dose related data to an external receiver.
11. An add-on device adapted to be releasably mounted on a drug delivery device, the drug delivery device comprising: a device housing defining a reference axis for rotation, a drug reservoir or structure for receiving a drug reservoir, and drug expelling structure comprising: a device dose setting member adapted to (i) incrementally rotate in a first direction to set a dose, and (ii) incrementally rotate in an opposed second direction to reduce a set dose, the dose setting member having a rotational slack in each incremental rotational position, and a device actuation member adapted to cause a final set dose amount to be expelled, the add-on device comprising: an add-on housing being releasably attachable to the device housing, an add-on dose setting member adapted to non-rotationally engage the device dose setting member, an add-on actuation member axially moveable relative to the add-on dose setting member between a dose setting state and a dose expelling state, the add-on actuation member being adapted to, when in a mounted state, actuate the device actuation member when moved from the dose setting state to the dose expelling state, a rotary sensor adapted to detect the amount of rotation of the add-on dose setting member relative to the add-on housing during dose setting, and processor structure adapted to: detect a first dose setting pattern when the final dose was set by rotating the add-on dose setting member in the first direction, detect a second dose setting pattern when the final dose was set by rotating the add-on dose setting member in the second direction, wherein: when a first dose setting pattern is detected: based on the detected amount of rotation calculating a corrected amount of rotation using a first algorithm compensating for a slack-induced error generated corresponding to the first dose setting pattern, and when a second dose setting pattern is detected: based on the detected amount of rotation calculating a corrected amount of rotation using a second algorithm compensating for a slack-induced error generated corresponding to the second dose setting pattern, wherein: the add-on dose setting member is adapted to non-rotationally engage the dose setting member, the rotary sensor is adapted to detect the amount of rotation of the add-on dose setting member relative to the add-on housing during dose setting, and when in a mounted state, the add-on actuation member is adapted to actuate the device actuation member when moved from the dose setting state to the dose expelling state.
12. An add-on device as in claim 11, the drug expelling structure further comprising: a drive spring for expelling a set amount of drug from the drug reservoir, the dose setting member being adapted to: (i) incrementally rotate in a first direction to set a dose and strain the drive spring correspondingly, and (ii) incrementally rotate in an opposed second direction to reduce a set dose and unstrain the drive spring correspondingly, and the actuation member being a release member adapted to release the strained drive spring to expel a final set dose amount, wherein: when in a mounted state, the add-on actuation member is adapted to actuate the device actuation member when moved from the dose setting state to the dose expelling state, the add-on actuation member having a maximum axial travel relative to the add-on housing of 10 mm.
13. An add-on device as in claim 11, wherein the processor structure for a detected first dose pattern is adapted to: detect a dose setting pause between two consecutive dose setting rotations in the first direction, and when one or more dose setting pauses are detected: based on the detected amount of rotation calculating a corrected amount of rotation using a third algorithm compensating for a slack-induced error generated corresponding to the first dose setting pattern when one or more dose setting pauses have been detected.
14. An add-on device as in claim 11, wherein: the drug expelling structure comprises an over-torque mechanism allowing the dose setting member to be rotated further in the first direction when a predetermined maximum dose has been set, and the processor structure is adapted to detect an over-torque condition and calculate the amount of rotation of the dose setting member relative to the housing corresponding to the set maximum dose.
15. An add-on device as in claim 11, wherein the rotary sensor is in the form of: (i) a galvanic rotary encoder comprising a circular array of encoder segments, or (ii) a magnetic sensor comprising at least one magnetometer adapted to measure a magnetic field from a moving magnet.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In the following embodiments of the invention will be described with reference to the drawings, wherein
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
[0046]
[0047]
[0048]
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
[0055]
[0056]
[0057]
[0058]
[0059]
[0060]
[0061]
[0062]
[0063] In the figures like structures are mainly identified by like reference numerals.
DESCRIPTION OF EXEMPLARY EMBODIMENTS
[0064] When in the following terms such as “upper” and “lower”, “right” and “left”, “horizontal” and “vertical” or similar relative expressions are used, these only refer to the appended figures and not necessarily to an actual situation of use. The shown figures are schematic representations for which reason the configuration of the different structures as well as their relative dimensions are intended to serve illustrative purposes only. When the term member or element is used for a given component it generally indicates that in the described embodiment the component is a unitary component, however, the same member or element may alternatively comprise a number of sub-components just as two or more of the described components could be provided as unitary components, e.g. manufactured as a single injection moulded part. The term “assembly” does not imply that the described components necessarily can be assembled to provide a unitary or functional assembly during a given assembly procedure but is merely used to describe components grouped together as being functionally more closely related.
[0065] Before turning to embodiments of the present invention per se, an example of a prefilled drug delivery will be described, such a device providing the basis for the exemplary embodiments of the present invention. Although the pen-formed drug delivery device 100 shown in
[0066] The pen device 100 comprises a cap part 107 and a main part having a proximal body or drive assembly portion with a housing 101 in which a drug expelling mechanism is arranged or integrated, and a distal cartridge holder portion in which a drug-filled transparent cartridge 113 with a distal needle-penetrable septum is arranged and retained in place by a non-removable cartridge holder attached to the proximal portion, the cartridge holder having openings allowing a portion of the cartridge to be inspected as well as distal coupling means 115 allowing a needle assembly to be releasably mounted. The cartridge is provided with a piston driven by a piston rod forming part of the expelling mechanism and may for example contain an insulin, GLP-1, or growth hormone formulation. A proximal-most rotatable dose setting member 180 with a number of axially oriented grooves 188 serves to manually set a desired dose of drug shown in display window 102 and which can then be expelled when the button 190 is actuated. As will be apparent from the below description, the shown axially oriented grooves 188 may be termed “drive grooves”. The dose setting member 180 has a generally cylindrical outer surface 181 (i.e. the dose setting member may be slightly tapered) which in the shown embodiment is textured by comprising a plurality of axially oriented fine grooves to improve finger grip during dose setting. The window is in the form of an opening in the housing surrounded by a chamfered edge portion 109 and a dose pointer 109P, the window allowing a portion of a helically rotatable indicator member 170 (scale drum) to be observed. Depending on the type of expelling mechanism embodied in the drug delivery device, the expelling mechanism may comprise a spring as in the shown embodiment which is strained during dose setting and then released to drive the piston rod when the release button is actuated. Alternatively the expelling mechanism may be fully manual in which case the dose member and the actuation button move proximally during dose setting corresponding to the set dose size, and then is moved distally by the user to expel the set dose, e.g. as in a FlexPen® manufactured and sold by Novo Nordisk A/S.
[0067] Although
[0068] As the invention relates to electronic circuitry adapted to interact with a drug delivery device, an exemplary embodiment of such a device will be described for better understanding of the invention.
[0069]
[0070] On the piston rod an end-of-content (EOC) member 128 is threadedly mounted and on the distal end a washer 127 is rotationally mounted. The EOC member comprises a pair of opposed radial projections 129 for engagement with the reset tube (see below).
[0071] The dial system comprises a ratchet tube 150, a reset tube 160, a scale drum 170 with an outer helically arranged pattern forming a row of dose indicia, a user-operated dial member 180 for setting a dose of drug to be expelled, a release button 190 and a torque spring 155 (see
[0072] Having described the different components of the expelling mechanism and their functional relationship, operation of the mechanism will be described next with reference mainly to
[0073] The pen mechanism can be considered as two interacting systems, a dose system, and a dial system, this as described above. During dose setting the dial mechanism rotates and the torsion spring is loaded. The dose mechanism is locked to the housing and cannot move. When the push button is pushed down, the dose mechanism is released from the housing and due to the engagement to the dial system the torsion spring will now rotate back the dial system to the starting point and rotate the dose system along with it.
[0074] The central part of the dose mechanism is the piston rod 120, the actual displacement of the plunger being performed by the piston rod. During dose delivery, the piston rod is rotated by the drive element 130 and due to the threaded interaction with the nut element 125 which is fixed to the housing, the piston rod moves forward in the distal direction. Between the rubber piston and the piston rod, the piston washer 127 is placed which serves as an axial bearing for the rotating piston rod and evens out the pressure on the rubber piston. As the piston rod has a non-circular cross section where the piston rod drive element engages with the piston rod, the drive element is locked rotationally to the piston rod, but free to move along the piston rod axis. Consequently, rotation of the drive element results in a linear forwards movement of the piston. The drive element is provided with small ratchet arms 134 which prevent the drive element from rotating clockwise (seen from the push button end). Due to the engagement with the drive element, the piston rod can thus only move forwards. During dose delivery, the drive element rotates anti-clockwise and the ratchet arms 135 provide the user with small clicks due to the engagement with the ratchet teeth 105, e.g. one click per unit of insulin expelled.
[0075] Turning to the dial system, the dose is set and reset by turning the dial member 180. When turning the dial, the reset tube 160, the EOC member 128, the ratchet tube 150 and the scale drum 170 all turn with it due to the dial coupling being in the engaged state. As the ratchet tube is connected to the distal end of the torque spring 155, the spring is loaded. During dose setting, the arm 152 of the ratchet performs a dial click for each unit dialled due to the interaction with the inner teeth structure 142 of the clutch element. In the shown embodiment the clutch element is provided with 24 ratchet stops providing 24 clicks (increments) for a full 360 degrees rotation relative to the housing. The spring is preloaded during assembly which enables the mechanism to deliver both small and large doses within an acceptable speed interval. As the scale drum is rotationally engaged with the ratchet tube, but movable in the axial direction and the scale drum is in threaded engagement with the housing, the scale drum will move in a helical pattern when the dial system is turned, the number corresponding to the set dose being shown in the housing window 102.
[0076] The ratchet 152, 142 between the ratchet tube and the clutch element 140 prevents the spring from turning back the parts. During resetting, the reset tube moves the ratchet arm 152, thereby releasing the ratchet click by click, one click corresponding to one unit IU of insulin in the described embodiment. More specifically, when the dial member is turned clockwise, the reset tube simply rotates the ratchet tube allowing the arm of the ratchet to freely interact with the teeth structures 142 in the clutch element. When the dial member is turned counter-clockwise, the reset tube interacts directly with the ratchet click arm forcing the click arm towards the centre of the pen away from the teeth in the clutch, thus allowing the click arm on the ratchet to move “one click” backwards due to torque caused by the loaded spring.
[0077] To deliver a set dose, the push button 190 is pushed in the distal direction by the user as shown in
[0078] The EOC feature prevents the user from setting a larger dose than left in the cartridge. The EOC member 128 is rotationally locked to the reset tube, which makes the EOC member rotate during dose setting, resetting and dose delivery, during which it can be moved axially back and forth following the thread of the piston rod. When it reaches the proximal end of the piston rod a stop is provided, this preventing all the connected parts, including the dial member, from being rotated further in the dose setting direction, i.e. the now set dose corresponds to the remaining drug content in the cartridge.
[0079] The scale drum 170 is provided with a distal stop surface 174 adapted to engage a corresponding stop surface on the housing inner surface, this providing a maximum dose stop for the scale drum preventing all the connected parts, including the dial member, from being rotated further in the dose setting direction. In the shown embodiment the maximum dose is set to 80 IU. Correspondingly, the scale drum is provided with a proximal stop surface adapted to engage a corresponding stop surface on the spring base member, this preventing all the connected parts, including the dial member, from being rotated further in the dose expelling direction, thereby providing a “zero” stop for the entire expelling mechanism.
[0080] To prevent accidental over-dosage in case something should fail in the dialling mechanism allowing the scale drum to move beyond its zero-position, the EOC member serves to provide a security system. More specifically, in an initial state with a full cartridge the EOC member is positioned in a distal-most axial position in contact with the drive element. After a given dose has been expelled the EOC member will again be positioned in contact with the drive element. Correspondingly, the EOC member will lock against the drive element in case the mechanism tries to deliver a dose beyond the zero-position. Due to tolerances and flexibility of the different parts of the mechanism the EOC will travel a short distance allowing a small “overdose” of drug to be expelled, e.g. 3-5 IU of insulin.
[0081] The expelling mechanism further comprises an end-of-dose (EOD) click feature providing a distinct feedback at the end of an expelled dose informing the user that the full amount of drug has been expelled. More specifically, the EOD function is made by the interaction between the spring base and the scale drum. When the scale drum returns to zero, a small click-arm 106 on the spring base is forced backwards by the progressing scale drum. Just before “zero” the arm is released and the arm hits a countersunk surface on the scale drum.
[0082] The shown mechanism is further provided with a torque limiter in order to protect the mechanism from overload applied by the user via the dial member. This feature is provided by the interface between the dial member and the reset tube which as described above are rotationally locked to each other. More specifically, the dial member is provided with circumferential inner teeth structure 181 engaging a number of corresponding outer teeth 161, the latter being arranged on a flexible carrier portion of the reset tube. The reset tube teeth are designed to transmit a torque of a given specified maximum size, e.g. 150-300 Nmm, above which the flexible carrier portion and the teeth will bend inwards and make the dial member turn without rotating the rest of the dial mechanism. Thus, the mechanism inside the pen cannot be stressed at a higher load than the torque limiter transmits through the teeth.
[0083] Having described the working principles of a mechanical drug delivery device, embodiments of the present invention will be described.
[0084]
[0085]
[0086]
[0087] The inner assembly comprises an inner housing member 550 having a proximal portion in which an encoder main assembly 560 is non-rotationally but axially moveable arranged and a distal coupling portion 551 adapted to non-rotationally engage the dose setting member 480. Attached to the encoder main assembly and rotating therewith an actuation rod 568 extends in the proximal direction. The actuation rod is in axially splined engagement with the add-on dose setting member 580 and comprises a proximal end 569 adapted to engage the dose release member 590 as the latter is moved distally. The encoder main assembly comprises a casing 561 in which an encoder PCB 562 and a power source (coin “battery”) 564 is arranged. The encoder PCB comprises a proximal surface on which a circular array of encoder segments 563 is arranged and a distal surface on which processor and transmitter circuitry (not shown) is arranged. The encoder further comprises a stationary (i.e. rotationally locked to the outer housing member) slider member 565 comprising a number of flexible contact arms in sliding engagement with the encoder segments as the encoder main assembly rotates during dose setting. In the shown embodiment the encoder comprises 120 segments and the slider member three contact arms. In a mounted state the encoder main assembly lightly engages the spring-biased pen release member 490, this assuring that the PCB encoder segments are forced into engagement with the flexible arms of the slider.
[0088] In a situation of use with the add-on device 500 mounted on the pen device 400 the user sets a dose to be expelled by rotation of the add-on dose setting member 580, this in turn rotating the inner assembly and thus the pen dose setting member. Simultaneously the amount of rotation is measured by the rotary encoder. When the user actuates the add-on dose release member, see
Power Management
[0089] Prior to first dose setting and after each out-dosing, the pen dose setting member (or dial) is left in “zero-position” (0 units). During initial mounting of the add-on device on a (new) pen device it may be necessary to rotate the distal coupling portion into engagement with the pen dose setting member during which operation a dose will be “set”. Correspondingly, the user may zero-adjust the sensor assembly by e.g. three pushes on the add-on release member. This operation may also be used during subsequent use of the device to reset the sensor. Due to mechanical slack in the components, the measurements of this position may have some inaccuracy and will not necessarily give identical positions after each out-dosing. However, the position of the dial after the most recent out-dosing will be stored, as well as an initial first measurement as the sensor electronics (or “system”) is turned on for the first time.
[0090] The system may then go into a low power consumption sleep-mode and partially wake-up and measure the position of the dial with short time intervals of once a second or so. If no change is detected, the system returns to sleep for an additional time interval and again checks if position has changed since last. A small switch may also be implemented, such that any dial-up rotation will trigger the switch and turn the system on.
[0091] If a switch is provided and triggered, or if the system wakes up partially after a time interval and detects a change of position, the system switches to fully awake mode and measures the position with very short time intervals, e.g. 10 or 100 times per second. If no change is detected for a minute or two, the systems goes back to sleep-mode or power off, if fitted with a switch.
[0092] If a change in position is registered, the type of change may be identified based on the measurements, e.g. small jittering due to vibrations of the device and slack in the mechanism, whereby positions may change slightly. The system may then establish a range of positions within which the system should ignore the changes and return to sleep mode.
[0093] If the measurements appear to indicate the beginning of a dial-up (rotational positions measured increasing in dial-up direction and exceeding 0,5-1 unit, the system switch into dial-mode and handle measured data according the algorithm described in the following. In the shown embodiment the sensor assembly is designed to essentially count the number of segments swiped by the slider member during dose setting, however, for a given number of segments a given rotational position can be determined, this allowing the counter to “catch up” after a wake-up event as well as identifying when the direction of rotation changes during dose setting.
Signal Processing
[0094] The present invention incorporates domain knowledge based Algorithmic Auto Calibration (referred to as “AAC” in the following) used for the signal processing of the encoder measurements.
1. Introduction
[0095] AAC uses the data from dial and not from dosing out. Regulations limits the allowable deviance between dialed and actually out-dosed volume. Since actually out-dosed volume is not measured in regular injection devices, but assumed to be the same (within regulatory requirements) as the dialed size of dose, it is assumed that the user injects what is dialed for, and the injected dose is the actually dialed dose. The overall objective is to estimate the injected dose from the erroneous measurements, using the domain knowledge and the information extracted from the dial data.
[0096] If d is the intended (actual) dialed dose, d.sub.m is the dialed dose measured by the encoder and e is the measurement error, the dialed dose measured, d.sub.m, will be given by:
[0097] The physical unit of the quantities in (1) is rotational degrees. Depending on the actual rotary sensor implemented the resolution may be different from 1 degree.
[0098] It is hypothesized that the error has two components: (i) tolerance at zero and (ii) tolerance at regret. A dial with regret means that the user dials to a given number of units, then regrets and dials back to a smaller number of units and finally doses out.
[0099]
[0100] Before turning to the individual components in an exemplary embodiment of the present invention,
2. Over-Torque Detection
[0101] A drug delivery pen device adapted to expel a desired user-set dose amount of drug will allow a given maximum of units to be set and subsequently expelled. When the maximum set dose has been reached, e.g. 60 or 80 units, or an end-of-content stop is encountered, the setting mechanism may be provided with a “hard stop” preventing any further rotation of the dose dial to increase the dose size. Alternatively, to protect the dose setting mechanism, an over-torque protection may be incorporated in the pen design allowing the user to rotate the dial without increasing the set dose, e.g. as disclosed in WO 2018/041899.
[0102] An over-torque condition then occurs when the user reaches the maximum dose or the end-of-content of the drug cartridge, while he or she continues dialing. In this case the encoder continues measuring the increase in the rotational degree due to rotation of the dial, but the dialed dose size as shown in the scale drum window does not change.
[0108]
3. Regret Detection
[0109] In the beginning the algorithm detects if the user dialed the units with regret. Using an encoder with e.g. one degree of resolution, each insulin unit on the scale drum occupies 15 degrees in the encoder. The regretted insulin units in
where drop = peak - final value and └ ┘ indicates the integer part of the division result. If r is larger than zero, dial has regret.
is an estimate of the spring back movement occurring just after the peak dialed degree and its computation is described below.
[0110] It should be noted that regret detection in more complex dialing patterns uses the last event before out-dosing. If the last event is a regret, the AAC uses method 1 in
[0111] In general, an event of dialing consists of an arbitrary sequence of events depending on the user’s actions, e.g., the sequence of events in
[0112] AAC uses a peak and dip detection algorithm to find the last peak in the dial sequence and uses it to detect whether the dial had regret. The algorithm uses a systematic approach to differentiate the major peaks and dips from the minor spurious peaks and dips caused by the noise in the signal.
4. Method 1: Estimating the Actual Dose When Dial Has Regret
[0113] The essence of this method is estimating the intended insulin dose by estimating the error caused by regretting which is called ‘regret play’. Although the regret play is limited to the range of (0-15) degrees, it can have a different value in each dial event. The aim is to estimate the regret play for every dial and correct for it accordingly.
[0114] The mechanical interpretation of regret play can be explained as follows. When the user regrets and then out-doses, the drop (excluding the regretted units and spring back) can be computed as:
which is larger than the drop when there is no regret, i.e.,
[0115] The mechanism behind this is that in case of regret the drive spring (in this case) generates a torque in the opposite direction of dialing up. The spring tends to regret and jump slightly more than the expected degree of regret×15 due to the spring overload. This extra backward jump of the spring is called ‘regret play’ and the AAC computes it as:
Where mod is the remainder of the division,
for the dial event i.
[0116] In respect of error prediction
where d is calculated using the conversion in (3).
[0117]
and checking if the null hypotheses β.sub.0 = 0 and β.sub.1 = 0 can be rejected.
[0118] By fitting the linear model to the data from 200 performed experimental dosing events with regret, the linear regression rejected the null hypotheses of β.sub.1 with P-value < 0.05, however it did not reject β.sub.0 = 0.
[0119] The presence of a linear relation between regret play and error indicates that the estimated regret play can estimate the measurement error using the linear model:
where ê.sub.i is the estimated measurement error for dial event i.
[0120] Using the data from the training set, we realized that adding an additional term β.sub.outlier gives a better estimation of outlier errors. Using this prediction model, method 1 for estimating the actual dialed dose is described as:
ê.sub.i is the estimated measurement error, β.sub.1 is the regression coefficient, β.sub.outlier is the outlier coefficient, d̂.sub.i is the estimated intended dose (in degree) for event i and d.sub.m,.sub.i is the measured dose for event i. β.sub.1 and β.sub.outlier are estimated offline using a training dataset, while
is estimated online for event i. The estimated units of insulin in computed as
[0121] Estimating the spring back factor: according to (5) and (7) prediction of error requires an estimate of spring back factor. The spring back factor is the fall in the rotational degree due to the backward movement of the Torque Spring when the user releases the dial. AAC estimates the spring back from the dialed events without regret. For these dial events, the drop from the peak to final value before dosing out is equivalent to the spring back factor
[0122] Using a train dataset,
is estimated as a population parameter and is defined as (see
[0123] Estimating β.sub.outlier for the regression: The outlier is the error, which is outside the 99% confidence interval of the normal distribution fit. The linear regression assumes a normal distribution for the error.
[0124] If the error distribution deviates from normality with large outliers, the estimated error by
is not a good estimate of the outlier errors.
[0125] Based on performed experiments, the outlier regret errors in the left side of the distribution cause bias in the estimate of the insulin unit.
[0126] The AAC shifts the outlier regret errors into normal distribution by adding the coefficient, β.sub.outlier, to the estimated error as in (7).
[0127] β.sub.outlier is the minimum outlier correction without distorting the non-outlier error values. AAC uses the train dataset to estimate β.sub.outlier as:
[0128]
5. Method 2: Estimating the Actual Dose When Dial Does Not Have Regret
[0129] When user does not regret while dialing and directly dials up before dosing out, the most important part of the error is the error at zero position, namely ‘zero play’. The term zero play means that when the scale drum is at zero, the rotational degree measured by the encoder is not zero.
[0130] Zero play is in fact a bias in the measurement and can change in the range [-7, 7]. We describe how the AAC compensates for the zero-play bias in two cases: dialing up without any middle rest and dialing up with at least one middle rest.
[0131] A dial without a middle rest is when the user directly dials up to the intended dose without resting his hand. A middle rest occurs when the user releases his hand from the Dial on the way to dial up and continues to dial up after a short pause. This creases a notch in the encoder signal as indicated in
[0132] In the case of dialing up without middle rest, the zero-play bias is estimated as the mean of the error distribution of the train dataset without regret. i.e.,
where N is the number of train dosing events.
[0133] The estimated actual dose is computed as:
with (9) estimating the intended insulin unit.
[0134] When the user has at least one middle rest in the dial, the information in rest positions can give a more precise estimation of the zero play and as a result a more precise estimation of the intended insulin unit. Let us assume that the dial has n rests including the final rest which occurs at the final value before dosing out, e.g.,
[0135] Each rest at position j gives an estimate of zero play according to:
where n is the total number of rests.
[0136] The overall zero play estimate is:
[0137] The AAC corrects for the zero play bias by estimating new rest positions as:
[0138] From the mechanics of the ratchet, the torque spring, the scale drum, the piston rod and the reset tube, it is known that at each rest position the difference between A.sub.j and B.sub.j is the spring back factor and therefore A.sub.j and B.sub.j must be within the same click of insulin unit in the Scale Drum. This mechanical characteristic can be called a ‘within the same click’ property.
[0139] ̂The correction for zero play should preserve this property, i.e., Â.sub.j and Bj should be within the same click of insulin unit, otherwise the estimation of ê.sub.0 is not valid and it should be adjusted. This is illustrated graphically in
[0140] Let D be the vector of unit markers, D = [d.sub.1,.Math..Math..Math., and rest j be defined as R.sub.j = [B̂.sub.j, Â.sub.j].sup.T for j = 1, .Math..Math..Math., n, where Â.sub.j and B̂j are from (16). For every rest position, let D.sub.Aj = D - Â.sub.j and D.sub.Bj = D - B̂.sub.j, and S.sub.Aj = sgn(D.sub.Aj) and S.sub.Bj = sgn(D.sub.Bj). The sign function, sgn, is defined as:
S.sub.Aj and S.sub.Bj are the vectors of -1, and 1. Due to the known mechanical properties, the occurrence of 0 in S.sub.Aj and S.sub.Aj is not probable.
[0141] The AAC checks for the ‘within the same click’ property of the rest positions, R.sub.j = [B̂.sub.j, Â.sub.j].sup.T, and corrects the estimate of the intended dose accordingly. The pseudocode is described as follows.
[0142] While the relation S.sub.Bj = S.sub.Aj is not satisfied for all j = 1,.Math..Math..Math., n, Do [0143] 1. D.sub.Aj = D - Â.sub.j = [Δ.sub.Aj,1, Δ.sub.Aj,2,.Math.,Δ.sub.Aj,u.sub.max].sup.T and D.sub.B.sub.j = D -
[0152] In summary,
[0153] In the above devices and methods providing dose size measurements for a dose setting mechanism has been described which may be implemented to create a dose log for a given drug delivery device based on the dose set by the user, this in contrast to an arrangement in which the size of an expelled dose is measured.
[0154] Indeed, such a measured set dose will only correspond to a subsequently expelled (and injected) dose when the drug delivery device is used as intended and corresponding to the prescribed way of use, e.g. setting a dose to be expelled, inserting an injection needle subcutaneously and subsequently actuate the drug delivery device to fully expel the set dose. Although this may be the recommended way of use, other use scenarios can be envisioned and may be relevant.
[0155] For example, for larger dose amounts to be injected, it is common to split a given set dose into e.g. two injections. Such a situation of use could be addressed by detecting the amount of time between two injections and the length of a given injection, the necessary time stamps being provided by the encoder electronics as the encoder slider disengage and reengage. For example, for a set dose of 80 units a first out-dosing event of 15 seconds, a pause of 30 seconds and a second out-dosing event of 15 seconds could be interpreted as the full dose of 80 units having been expelled/injected. To address the issue of a fully or partly regretted set dose, the encoder electronics may be adapted to measure a “negative” dose, i.e. a not-expelled set dose being reset to zero.
[0156] To further assure that measured dose sizes are correctly saved to a dose log, each dose event may require the user to accept (or correct) a given dose entry. This could typically take place on the device, e.g. smartphone, receiving the dose event data.
[0157] Alternatively, the measured set dose could also be used in combination with a measured expelled dose, the two measured values allowing a check of the measurements to be performed and allow potential malfunctions to be detected and addressed.
[0158] In the above description of exemplary embodiments, the different structures and means providing the described functionality for the different components have been described to a degree to which the concept of the present invention will be apparent to the skilled reader. The detailed construction and specification for the different components are considered the object of a normal design procedure performed by the skilled person along the lines set out in the present specification.