Method and apparatus for dose detection systems

By designing a removable dose sensing module, the problems of automated dose detection and battery life monitoring in drug delivery devices are solved, the accuracy of drug use and battery warning functions are achieved, and the user experience is improved.

CN114222598BActive Publication Date: 2024-08-27ELI LILLY & CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080059056.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-08-21
Filing Date
2020-08-19
Publication Date
2024-08-27
Estimated Expiration
2040-08-19

AI Technical Summary

Technical Problem

Existing drug delivery devices lack automated systems to detect and record the dose of drug delivered during an injection event, resulting in manual patient record keeping and difficulty in ensuring the correct drug is used and monitoring battery life, potentially leading to inaccurate dosing and battery depletion in advance.

Method used

A removable dose sensing module is designed to detect the movement of components of the drug delivery device, identify drug types, and monitor battery life through sensor and software technology to ensure correct drug use and early warning.

Benefits of technology

It realizes automated drug dose detection, avoids inaccuracies in dosing, ensures that patients use the correct drug, and provides early warning of battery exhaustion, improving the reliability and convenience of use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114222598B_ABST
    Figure CN114222598B_ABST
Patent Text Reader

Abstract

The techniques described herein relate to computerized methods and apparatus for performing at least one of: determining whether a dose sensing module is attached to a drug delivery device, such as, for example, utilizing a dose detection sensor; detecting the color of a portion of a drug delivery device to determine the drug contained in the drug delivery device, such as, for example, utilizing a set of LEDs and light sensors for different temperature conditions; and monitoring the battery life of a battery in a dose sensing module, such as, for example, using current / voltage detection for different temperature conditions. At least some of the information obtained from these techniques can be communicated to a paired remote electronic device, such as a user's smartphone.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to techniques for electronic dose detection systems for drug delivery devices, and in particular to techniques for detecting connection to a drug delivery device, determining the type of drug delivery device, and monitoring battery life. Background Art

[0002] Patients with various diseases must frequently inject themselves with medication. In order to allow people to conveniently and accurately administer medications themselves, various devices widely referred to as pen injectors or injection pens have been developed. Typically, these pens are equipped with a cartridge that includes a piston and contains multiple doses of liquid medication. The drive member can move forward to advance the piston in the cartridge to dispense the contained medication from an outlet at the distal end of the cartridge, usually through a needle. In a disposable or prefilled pen, after the pen has been used to exhaust the medication supply in the cartridge, the user discards the entire pen and begins using a new replacement pen. In a reusable pen, after the pen has been used to exhaust the medication supply in the cartridge, the pen is disassembled to allow the spent cartridge to be replaced with a new cartridge, and then the pen is reassembled for its subsequent use.

[0003] Many pen injectors and other drug delivery devices utilize mechanical systems in which components rotate and / or translate relative to each other in a manner proportional to the dose delivered by operation of the device. Accordingly, the art has been devoted to providing reliable systems that accurately measure the relative movement of components of a drug delivery device in order to assess the delivered dose. Such systems may include a sensor that is secured to a first component of the drug delivery device and detects relative movement of a sensed component secured to a second component of the device.

[0004] Administration of the proper amount of medication requires that the dose delivered by the medication delivery device is accurate. Many pen injectors and other medication delivery devices do not include functionality to automatically detect and record the amount of medication delivered by the device during an injection event. Without an automated system, the patient must manually record the amount and time of each injection. Therefore, there is a need for a device that is operable to automatically detect the dose delivered by the medication delivery device during an injection event. In addition, it is desirable that such a dose detection device is removable and reusable with multiple delivery devices. In other embodiments, it is desirable that such a dose detection device is integral with the delivery device.

[0005] It is also important to deliver the correct medication. A patient may choose a different medication or any of the different forms of a given medication depending on the circumstances. If a mistake is made as to what medication is in the medication delivery device, the patient will not be dosed appropriately and the record of dosing will be inaccurate. The likelihood of this happening will be greatly reduced if a dose detection device is used that automatically confirms the type of medication contained in the medication delivery device. Summary of the invention

[0006] The present disclosure relates to technologies for dose sensing modules that can be removably attached to a drug delivery device. These technologies can include determining whether a dose sensing module is attached to a drug delivery device. Such technologies can, for example, ensure that the dose sensing module only senses, processes and / or reports events detected when attached to a drug delivery device (rather than accidental activation when the dose sensing module is not connected to the drug delivery device), and can be used to determine when the dose sensing module is changed to a new drug delivery device. These technologies can also include detecting the color of a portion of the drug delivery device to determine the drug contained in the drug delivery device. Such technologies can, for example, ensure that the patient is administering the correct drug to avoid errors about what drug is in the drug delivery device. These technologies can also include monitoring the battery life of the battery in the dose sensing module. Such technologies can, for example, allow a user or patient to monitor the battery life so that the patient is allowed to know in advance in a reliable manner when the battery will be exhausted, so that the user or patient can plan ahead appropriately. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Additional embodiments of the present disclosure and their features and advantages will become more apparent by referring to the description herein in conjunction with the accompanying drawings. The components in the accompanying drawings are not necessarily drawn to scale. In addition, in the accompanying drawings, like reference numerals indicate corresponding parts throughout the different views.

[0008] Figure 1A is a diagram of an exemplary system according to some embodiments.

[0009] Figure 1B Depicted is a block diagram of a controller and its components according to some embodiments.

[0010] Figure 1C is a diagram of an exemplary system according to some embodiments.

[0011] Figure 2 is a flow chart of an exemplary computerized method for determining a color associated with an object, according to some embodiments.

[0012] Figure 3 is a flow chart of an exemplary computerized method for generating calibration parameters according to some embodiments.

[0013] Figure 4 is a flow chart of an exemplary computerized method for determining a battery indication according to some embodiments.

[0014] Figure 5 is a perspective view of an exemplary drug delivery device with which the dose detection system of the present disclosure may operate.

[0015] Figure 6 yes Figure 5 A cross-sectional perspective view of an exemplary drug delivery device.

[0016] Figure 7 yes Figure 5 A perspective view of a proximal portion of an exemplary drug delivery device.

[0017] Figure 8 yes Figure 5 A partially exploded perspective view of a proximal portion of an exemplary drug delivery device together with a dose detection system of the present disclosure.

[0018] Fig. 9 is an exploded side view, partially in cross-section, of a dose detection system module attached to a proximal portion of a drug delivery device according to another exemplary embodiment.

[0019] Fig. 10A -B and Fig.11A -B shows yet another exemplary embodiment of a dose detection system utilizing magnetic sensing.

[0020] Fig.12 is an axial view of yet another exemplary embodiment of a dose delivery detection system utilizing magnetic sensing.

[0021] Fig.13 An exemplary computerized method for determining whether a device is removably coupled to a drug injection device is shown in accordance with some embodiments. DETAILED DESCRIPTION

[0022] For the purposes of promoting an understanding of the principles of the present disclosure, reference will now be made to the embodiments illustrated in the drawings, and specific language will be used to describe these embodiments. It will be understood, however, that no limitation of the scope of the invention is thereby intended.

[0023] The present disclosure relates to a sensing system for a drug delivery device. In one aspect, the sensing system is used to determine whether the sensing system is installed to the drug delivery device. The inventors have found and realized that it is desirable to make the dose sensing system removably connected to the drug delivery device. However, the inventors have found and realized that, considering the various hardware, firmware and / or software that are expected to be included in such a dose sensing system, and the desire to keep the dose sensing system small, user-friendly and limited to only components with a low probability of failure due to repeated use, it is challenging to also combine additional components (e.g., switches, latches and / or the like) to detect when the dose sensing system is connected to the drug delivery device. The technology described herein provides a method of leveraging the existing components of the dose sensing device to determine whether the dose sensing device is connected to the drug delivery device. For example, the dose sensing device can include a sensor (such as a Hall effect sensor) and related hardware and / or software to determine the size of the dose administered by the drug delivery device. These technologies can leverage such hardware and / or software for performing dose detection to also determine whether the dose sensing system is (or is not) connected to the drug delivery device.

[0024] In a second aspect, a sensing system is used to determine the type of drug contained in a drug delivery device. As described herein, the inventors have discovered and appreciated that problems may occur when it is not possible to determine the drug in a drug delivery device. For example, an incorrect drug may be administered to a patient, which may result in improper patient dosing, cause incorrect dosing records, and / or the like. The techniques described herein provide for sensing the color of a component of a drug administered by a drug delivery device, wherein the color indicates the type of drug. In some embodiments, these techniques illuminate applicable colored components with the aid of one or more light emitting diodes and light sensors and process the illumination data to match the color to a stored set of colors and associated drugs.

[0025] In a third aspect, a sensing system is used to monitor the battery life of the sensing system. The inventors have discovered and appreciated that determining the remaining battery life of a battery is complicated by various factors, such as temperature, relaxation time, duration of use, load changes, battery brand, battery variability, and other parameters. The inventors have developed techniques to monitor the battery based on a dose sensing device architecture and in combination with other relevant data (such as temperature). These techniques are able to provide a battery life estimate that adjusts the measurement process in a manner that avoids errors that might otherwise be caused by existing battery measurement techniques.

[0026] By way of illustration, the drug delivery device is described as being in the form of a pen injector. However, the drug delivery device may be any device for setting and delivering a dose of a drug, such as an infusion pump, a bolus syringe, or an auto-injector device. The drug may be of any type that can be delivered by such a drug delivery device.

[0027] Although various embodiments have been described, it will be apparent to those of ordinary skill in the art that many more embodiments and implementations are possible. Therefore, the embodiments described herein are examples, rather than the only possible embodiments and implementations. Furthermore, the advantages described above are not necessarily the only advantages, and it is not necessarily expected that all of the described advantages will be achieved with every embodiment.

[0028] The devices described herein (such as device 10) may also include a drug, such as, for example, in a reservoir or cartridge 20. In another embodiment, the system may include one or more devices (including device 10) and a drug. The term "drug" refers to one or more therapeutic agents, including but not limited to insulin, insulin analogs (such as, insulin lispro or insulin glargine), insulin derivatives, GLP-1 receptor agonists (such as, dulaglutide or liraglutide), glucagon, glucagon analogs, glucagon derivatives, gastric inhibitory peptide (GIP), GIP analogs, GIP derivatives, oxyntomodulin analogs, oxyntomodulin derivatives, therapeutic antibodies, and any therapeutic agent that can be delivered by the above device. The drug used in the device can be formulated with one or more excipients. The device is operated by a patient, a caregiver, or a medical professional in a manner generally as described above to deliver the drug to the person.

[0029] Figure 1A 1 is a diagram of an exemplary system 120 according to some embodiments. System 101 includes a sensing system 103 that communicates with a remote computing device 104 through a communication unit 106 (e.g., via a wired and / or wireless connection). Communication unit 106 can be, for example, a WiFi transceiver, a Bluetooth transceiver, an RFID transceiver, a USB transceiver, a near field communication (NFC) transceiver, a combo chip, and / or the like.

[0030] As further described herein, the sensing system 103 can be configured to determine illumination data indicative of the color of an object. The sensing system 103 includes a processing unit 108 (e.g., an MCU) that communicates with a light sensor 110 and a control unit 112. The light sensor 110 is in optical communication with an object 116 (e.g., a portion of a drug delivery device). In some embodiments, the light sensor 110 is an ambient light sensor (ALS), for example, operating in a reflective mode. The LED driver 112 communicates with a group of light emitting diodes (LEDs) 114A, 114B, and 114C (collectively referred to as LEDs 114), which are in optical communication with the object 116. For example, the LEDs 114 can include red LEDs, blue LEDs, and / or green LEDs. The light sensor 110, the LEDs 114, or both are optionally in optical communication with the object 116 via an optional light guide 118. The light guide 118 can be a transparent light guide, such as a Makrolon 2458 light guide. In some embodiments, the color sensor is made of separate LEDs, a single packaged RGB LED, or a combination thereof.

[0031] Figure 1B A detailed example of an electronics assembly (referred to as 1400) of a sensing module is illustrated, which can be included in any module described herein. The MCU is programmed to implement the electronic features of the module. The MCU includes control logic that is operative to perform the operations described herein, including detecting a connection with a drug delivery device, determining the type of drug delivery device, obtaining data for determining a dose delivered by the drug delivery device, and monitoring the battery life of the drug delivery device. The MCU can be operable to obtain data by detecting and / or determining an amount of rotation of a rotation sensor fixed to a flange, the amount of rotation being determined by detecting a magnetic field of the rotation sensor by a sensing element of a measurement sensor of the system (such as, for example, a Hall effect sensor).

[0032] The assembly 1400 includes an MCU that can be operably coupled to one or more of the following: dose sensors 1402A-E, memory 1408, identification sensor 1404, counter 1414, optical driver 1411 and optical indicator 1412, power-on module 1406, communication module 1410, display driver / display 1416, power supply 1418, and presence module 1420. The assembly 1400 can include any number of dose sensors, such as, for example, five magnetic sensors 1402A-E (shown) or six sensors. The dose sensors can be used to determine the total unit of rotation of a component within a drug delivery device, which can be used to determine the amount of a dose administered (e.g., as described herein in conjunction with Figure 5-12), and can also be used to detect connection with a drug delivery device. The MCU can be configured to determine whether the module is connected to a button of the device via a presence module 1420 (shown as optional by dashed lines in this embodiment). The MCU is configured to determine the color of the dose button via the identification sensor 1404, and in some examples, associate the color data determined onboard or off board with an external device (e.g., a remote computing device 104), where the color corresponds to a specific drug (e.g., using LED 114, as further discussed herein). The MCU is configured to determine the triggering of the wake-up switch so as to power on the electronic components for use (shown as a power-on module 1406). In one example, the total rotation can be communicated to an external device including a memory having a database, a lookup table, or other data stored in the memory to correlate the total rotation units with the amount of drug delivered for a given drug identified. In another example, the MCU can be configured to determine the amount of drug delivered. The MCU may be operable to store the detected dose in a local memory 1408 (e.g., an internal flash memory or an on-board EEPROM). The MCU is also operable to wirelessly transmit a signal representing device data to a paired remote electronic device (such as a user's smartphone) via Bluetooth Low Energy (BLE) or other suitable short-range or long-range wireless communication protocol module 1410 (such as, for example, near field communication (NFC), WiFi, or a cellular network), wherein the device data is such as, for example, (any one of the following or any combination thereof): rotation units, drug identification (such as, color) data, timestamp, time since the last dose was administered, battery charge status, module identification number, time of module attachment or removal, time of inactivity, and / or other errors (such as, for example, dose detection and / or transmission errors, drug identification detection and / or transmission errors). Illustratively, the BLE control logic and the MCU are integrated on the same circuit. In one example, any module described herein may include a display module 1420 (shown as optional in this embodiment by dashed lines) to indicate information to the user. Such a display (which may be an LED, LCD or other digital or analog display) may be integrated with the proximal portion finger pad. The MCU includes a display driver software module and control logic that is operative to receive and process the sensed data and display information on the display, such as, for example, dose setting, dosing distribution, injection status, injection completion, date and / or time, or time until next injection.In another example, the MCU includes an LED driver 1411 coupled to one or more LEDs 1412 (such as, for example, an RGB LED, an orange LED, and a green LED), which is used to communicate to the patient whether data has been successfully transmitted, whether the battery level is high or low, or other clinical communications through on-off and different color sequences. Counter 1414 is shown as a real-time clock (RTC) that is electronically coupled to the MCU to track time (such as, for example, dose administration time). Counter 1414 can also be a time counter that tracks seconds from zero based on power supply. The time or count value can be communicated to an external device.

[0033] In some embodiments, such as in combination Figure 8-12 As further discussed, the sensing system 103 is configured to be connected to a drug delivery device. In some embodiments, the object 116 is a part of the drug delivery device (e.g., a button, a label, the color of an external compartment, etc.), which can be used to identify aspects of the drug delivery device based on the color of the object 116. For example, the color of the object 116 can indicate the type of drug of the drug delivery device.

[0034] Figure 1C is a diagram of an exemplary system 130 according to some embodiments. System 130 includes aspects of a dose detection system, including a sensing system 132 that communicates with a remote computing device 134 via a communication unit 136 (e.g., via a wired and / or wireless connection). As further described herein, sensing system 132 can be configured to determine a battery indicator indicative of the remaining life of a battery 138. Device 132 includes a processing unit 140 that communicates with communication unit 136, battery 138, and temperature sensing unit 142.

[0035] For exemplary purposes, the combination Figures 1A-1C Exemplary aspects of a dose detection system are described to highlight various aspects of a dose detection system. Figures 1A-1C The aspects shown in can be combined into a single device (such as a combination of Figure 8-12 The dose delivery detection system 80 described herein can be implemented using, for example, the various exemplary configurations discussed in conjunction with those figures.

[0036] refer to Figure 1AIn some embodiments, the sensing system 103 is configured to determine the color of an object (e.g., a button of a pen-type drug delivery device). In some embodiments, the sensing system determines the color of the object by sequentially turning on the LEDs 114 and reading back the reflected light beams through the wide spectrum ambient light sensor 110. The sensing system 103 can generate various values, such as a value for each of the three LEDs 114. The sensing system 103 can process the generated values ​​to generate a final color value for matching. The sensing system 103 can check the final color value against a predefined set of colors to determine if a match exists.

[0037] Figure 2 2 is a flow chart of an exemplary computerized method 200 for determining a color associated with an object according to some embodiments. A processor (such as the processing unit 108 of the sensing system 103) is capable of executing computer-readable instructions that cause the processor to perform the method 200. At step 202, the sensing system obtains illumination data of an object illuminated by a set of LEDs. The sensing system can optionally process the illumination data at steps 204 and / or 206 to generate processed illumination data. At step 204, the sensing system optionally adjusts the illumination data based on temperature. At step 206, the sensing system optionally normalizes the illumination data. At step 208, the sensing system causes a light sensor to capture illumination data of the object when the object is illuminated by the set of LEDs. At step 208, the sensing system transmits the processed illumination data to a remote device (e.g., via a communication module in communication with a processor of the device). At step 210, the remote device determines whether the illumination metric matches a stored set of colors. If the remote device determines a match, then at step 212 the remote device outputs the matching color (e.g., to a program, a display, etc.). If the remote device does not determine a match, then at step 214 the remote device outputs that no color match was found (eg, by returning an error code, a no match code, and / or the like).

[0038] Referring to step 202, the sensing system can be configured to capture first illumination data when the object is not illuminated by the set of LEDs, second illumination data when the object is illuminated by each LED in the set of LEDs, or both the first illumination data and the second illumination data. For example, the device can be configured to capture illumination data of the object when the LED is not turned on when the object is illuminated only by ambient light. In some embodiments, the sensing system can include an exposure time during which dark illumination data will be captured.

[0039] As another example, if the set of LEDs includes LEDs of different colors, the device can be configured to capture illumination data of the object as the object is illuminated by each LED. Figure 1AAs shown in , in some embodiments, the device includes a red LED 114A, a blue LED 114B, and a green LED 114C. The device can be configured to coordinate the light sensor 110 and the LED driver 112 to coordinate the lighting of the LEDs 114 and capture illumination data, so that the light sensor 110 captures illumination data when the object is illuminated by the red LED 114A (and not other LEDs), illumination data when the object is illuminated by the blue LED 114B, and illumination data when the object is illuminated by the green LED 114C. In some embodiments, the sensing system can be configured to use an exposure time during which the illumination data will be captured, which exposure time can be the same for each LED and / or can be different for one or more LEDs.

[0040] Referring to step 204, the lighting data can be adjusted based on the temperature. In some embodiments, the temperature of the ambient air, the sensing system, and / or the drug delivery device is obtained. In some embodiments, the sensing system can capture multiple temperature measurements and average the values ​​to determine an averaged temperature for use in adjusting the lighting data. In some embodiments, the sensing system can adjust each lighting data value (X) using Equation 1:

[0041] (Equation 1)

[0042] in:

[0043] • rgbTempX is the adjusted illumination data value determined for each color, such as a red value, a green value, and a blue value, depending on which color Equation 1 is calculated for;

[0044] • rgbX is each raw lighting data value, such as red value, green value, and blue value;

[0045] • TempCoefficientX is the temperature coefficient of each value, which allows one coefficient to be used to track various temperature measurements (for example, because there may be performance drift at different temperature measurements);

[0046] • CalTemp is the temperature measured during calibration of the sensing system, which can be used to account for temperature changes (e.g., for non-calibrated measurements); and

[0047] • Temp is the measured (ie, averaged) temperature.

[0048] Referring to step 206, the sensing system can normalize the (temperature adjusted) illumination data based on dark illumination data captured without illumination by the LED. In some embodiments, the sensing system can normalize the illumination data based on one or more illumination measurements determined during calibration. For example, Equation 2 can be used to normalize each illumination data value (X):

[0049] (Equation 2)

[0050] in:

[0051] • bNormX is the normalized illumination value, such as the red, green, or blue normalized value, depending on which color Equation 2 is calculated for (in percentage form, multiplied by 100);

[0052] • whiteX represents the illumination values ​​obtained during the calibration phase when using a white target object, such as red, green, and blue values ​​(combined Figure 3 further description);

[0053] • blackX represents the illumination values ​​obtained during the calibration phase when using a black target object, such as red, green and blue values ​​(combined Figure 3 further description);

[0054] • calDark is the dark illumination value (with LEDs off) determined during the calibration phase (combined with Figure 3 further described); and

[0055] • darkValue is the dark illumination value determined during step 202.

[0056] Referring to step 210, the remote device can be configured to determine a luminance AB (LABc) value. The system can determine the LABc value based on any lighting value (whether it is raw lighting data or temperature-adjusted lighting data and / or normalized lighting data). For illustrative purposes, the following examples refer to normalized lighting data for simplicity. The A value can be calculated depending on the normalized lighting value. For example, depending on whether rgbNormRed determined using Equation 2 is greater than rgbNormGreen, the A value is determined using either Equation 3 or 4:

[0057] If rgbNormRed > rgbNormGreen (Equation 3)

[0058] If rgbNormRed ≤ rgbNormGreen (Equation 4)

[0059] The B value can also be calculated depending on the normalized illumination value. For example, depending on whether rgbNormBlue is greater than rgbNormGreen determined using Equation 2, the B value is determined using either Equations 5 or 6. For Equations 3-6, Kn is the coefficient for the RGB to LABc conversion such that the A and B values ​​will be in the range of -100 to 100, and L is in the range of 0 to 100 (e.g., 20, 21.5, 23, etc.).

[0060] If rgbNormBlue > rgbNormGreen (Equation 5)

[0061] If rgbNormBlue ≤ rgbNormGreen (Equation 6)

[0062] The L value can be calculated using Equation 7:

[0063] (Equation 7)

[0064] In some embodiments, the remote device can include a table for determining whether the lighting data satisfies the metric of the color. The remote device can include a set of colors (e.g., gray, blue, dark blue, red, and / or other colors), each of which has an associated set of data. The data associated with each color can include average data and / or sigma (standard deviation) variation data determined during calibration and / or design of the system. In some embodiments, each color can include an average value for each of the A, B, and L values ​​and a sigma variation value for each of the A, B, and L values. The remote device can determine the sigma distance between the lighting data and each color in the stored set of colors. For example, Equation 8 can be used to determine the sigma distance for each color in the set of colors:

[0065] (Equation 8)

[0066] in:

[0067] • SigmaDistanceX is the sigma distance of the color under consideration (X) from the set of colors;

[0068] • For real-time measurements:

[0069] ◦ Use equation 7 to calculate L;

[0070] ◦ Calculate A using either equation 3 or 4;

[0071] ◦ Calculate B using either equation 5 or 6;

[0072] • For the color under consideration (X):

[0073] ◦ is the average L value of color (X);

[0074] ◦ is the sigma change in the L value of the color (X);

[0075] ◦ is the average value of A of color (X);

[0076] ◦ is the sigma change of the A value of color (X);

[0077] ◦ is the average of the B values ​​of color (X); and

[0078] ◦ is the sigma change in the B value of color (X).

[0079] The remote device can use the sigma distance to determine whether the lighting data matches one of the set of colors. For example, the remote device can select the minimum value (Min1) of the sigma distance values ​​as the most likely matching color. The second minimum value (Min2) can be used for a matching color check, as discussed further herein.

[0080] The sensing system and / or remote device can be configured to perform one or more checks on the illumination data. For example, dark illumination data can be checked to determine whether subsequent measurements under LED illumination are interfered with by ambient light. As another example, the acquired illumination data for the LED can be checked to ensure that the illumination data is within an expected threshold between the lowest black value and the highest white value. As another example, the LABc values ​​can be checked to determine whether they are within an acceptable range (e.g., -100 to 100 for A or B, and 0 to 100 for L). As another example, a matching color check can be performed to ensure that Min1 and / or Min2 are within acceptable values. For example, Min1 can be checked to ensure that Min1 is below the maximum sigma distance of the expected color match, and / or the ratio of Min2 / Min1 can be compared to the minimum ratio between the two minimum values ​​to obtain an acceptable match.

[0081] During calibration, the sensing device can take various measurements that can be used for real-time measurements of the calibration object. The calibration measurements can include temperature and various light measurements, such as measurements using a white target, a black target, and dark illumination without any LEDs turned on. Figure 3 3 is a flow chart of an exemplary computerized method 300 for generating calibration parameters according to some embodiments. At step 302, the device measures temperature. At step 304, the device captures illumination data of a white target object (e.g., a white object). At step 306, the device captures illumination data of a black target (e.g., a black object). At step 308, the device captures illumination data of dark light without LEDs turned on. At step 310, the device generates a set of calibration parameters. These calibration parameters can include exposure times (or maximum / minimum exposure times) to be used for dark measurements and / or for each LED (e.g., for red, green, and blue LEDs), counts read during calibration for each of the white and / or black objects, temperatures, temperature margins, and / or other calibration parameters.

[0082] As described herein, a dose sensing system includes a sensing module having various components, including, among other components, a processor / MCU, a sensor, an LED. In some embodiments, the sensing module can be powered by a battery. Figure 1C For example, the sensing system 132 includes a battery 138 for powering the dose sensing system, which includes Figure 1C . The techniques described herein can be used to monitor the battery life of a dose sensing system. The battery life can be monitored to provide information to a user, such as a battery status indicator that tracks the life of the battery, battery-related alarms (e.g., to remind the user that the battery life is low, when to replace the battery, etc.), and / or the like. For example, the dose sensing system can remind the user (whether it is through the sensing module or a remote computing device) when the battery is about to run out, so that the user is provided with sufficient time to replace the battery (e.g., a week or two before the end of the battery's life).

[0083] The inventors have discovered and appreciated that estimating battery life (such as by using battery voltage measurements) can be complicated because battery behavior can depend on many variables (such as temperature, relaxation time between measurements, duration of injection of an attached drug delivery device, load variations, battery brand, battery variability, and other parameters. To address such issues, which are often beyond the control of device vendors, the inventors have developed techniques to monitor batteries based on device architecture in such a way that sufficient margin on battery life is provided to compensate for potential error(s) and variability that the inventors have appreciated can otherwise occur during battery measurements.

[0084] Figure 4 is a flow chart of an exemplary computerized method 400 for determining a battery indication according to some embodiments. A processor (such as, Figure 1B The processing unit 140 of the device 132 in the embodiment can be configured to execute computer readable instructions that cause the processor to perform the method 400. At step 402, the device obtains a set of voltage measurements of the battery. At step 404, the device obtains temperature measurements (e.g., via a temperature sensing module). At step 406, the device determines a set of temperature-adjusted battery indications based on the temperature measurements. At step 408, the device determines a battery indicator indicating the remaining life of the battery based on the temperature-adjusted battery indications and the set of voltage measurements.

[0085] Referring to step 402, the device (e.g., MCU) can obtain various voltage measurements when the battery is under different loads and / or in different operating states of the device. In some embodiments, the device (a) obtains a starting battery voltage when the device is powered on, (b) obtains a high current battery voltage when the processor is running at maximum speed, (c) obtains a low current battery voltage when the processor is running in a low power mode, or some combination thereof. The starting battery voltage can be determined, for example, by obtaining a high current battery voltage within a certain amount of time from the time the sensing module is powered on. For example, when the device is awakened (e.g., after pressing a button), the device can increase the amount drawn from the battery. In some embodiments, when awakened, the device can begin a startup process. The startup process can increase the amount drawn from the battery due to, for example, various self-tests, startup operations, etc. In some embodiments, when awakened, the device can take magnetic measurements (e.g., to determine the starting position of one or more components). Therefore, such a startup process and / or magnetic sensing can provide a high current battery voltage as a starting battery voltage for measurement.

[0086] The high current battery voltage can capture a high (e.g., maximum) current peak, which can be used to measure the voltage drop at that point, for example. The high current battery voltage can be determined, for example, by running the microcontroller at maximum speed and all other loads in low power mode for a predetermined time (e.g., in ms), and measuring the high current battery voltage. In some embodiments, the high current battery voltage is an average voltage calculated based on a set of measurements. In some embodiments, the high current battery voltage can be calculated at the beginning and / or end of magnetic sensor activity. For example, when (multiple) magnetic sensors have completed measurements, the maximum voltage drop of the system can be obtained.

[0087] The low current battery voltage can be used to measure the voltage drop under the lowest current load, such as to simulate the open circuit voltage check of the battery. The low current battery voltage can be determined, for example, by placing all loads (e.g., including the MCU) in a low power mode by firmware running on the MCU for a predetermined time (e.g., a rest period specified in ms) and measuring the low current battery voltage. In some embodiments, the low current battery voltage is an average voltage calculated by averaging a set of measurements. In some embodiments, the low current battery voltage is determined after determining the high current battery voltage measurement.

[0088] As described herein, one or more voltage measurements can be used in step 402. For example, in some embodiments, voltages can be obtained in a manner designed to obtain voltage readings at high and / or maximum current consumption (e.g., at moments with maximum voltage drops) and representative open circuit voltage measurements for low / lowest current consumption. As described herein, these voltages can be used to estimate remaining battery energy. In some embodiments, these techniques can use, for example, a single voltage drop (such as a maximum voltage drop) to estimate remaining battery energy (e.g., because the maximum voltage drop may depend more on battery state than other voltage drops, which may be more capacitor-driven). For example, a power-on / start-up voltage drop can be used only for comparison with the maximum voltage drop. For example, if the voltage drop during power-on is greater than the measured maximum voltage drop of the system, the comparison can indicate that there is a risk that a component may reset.

[0089] Referring to step 406, the device can store a table of battery indications at various temperatures. For example, the device can store a set of low temperature battery indications, the set of low temperature battery indications including a set of battery indications, each of which has an associated voltage for low temperature. Table 1 is an example of a set of low temperature battery indications (e.g., at 0°C):

[0090] Battery indicators Voltage (mV) 100 2460 90 2334 80 2317 70 2310 60 2282 50 2242 40 2214 30 2176 20 2113 10 1998 4 1950

[0091] Table 1.

[0092] As another example, the device can store a set of high temperature battery indications, the set of high temperature battery indications comprising a set of high temperature battery indications, wherein each high temperature battery indication has an associated voltage for high temperature. Table 2 is an example of a set of high temperature battery indications (eg, at 22-24°C):

[0093] Battery indicators Voltage (mV) 100 2764 90 2710 80 2690 70 2663 60 2626 50 2573 40 2514 30 2454 20 2388 10 2242 4 2050

[0094] Table 2.

[0095] The sensing system can determine a set of temperature-adjusted battery indications based on the set of low-temperature battery indications, the set of high-temperature battery indications, and the temperature measurement(s) obtained at step 402. In some embodiments, the sensing system (e.g., via firmware executed on the MCU) can determine a correction factor based on the temperature measured at step 404. For example, the sensing system can determine the correction factor based on the measured temperature and one or more correction factors. A logarithmic (shown below) and / or linear relationship can be developed to characterize the correction factor. For example, the sensing system can determine the correction factor using Equation 9:

[0096] (Equation 9)

[0097] in:

[0098] • corrFactor is the correction factor;

[0099] • A, B, and C are coefficients (eg, determined based on the collected data to provide the desired degrees of freedom for determining the correction factors); and

[0100] • LogOffset is a coefficient (eg, determined based on collected data to provide the desired degrees of freedom for determining the correction factor).

[0101] The sensing system can determine a corrected set of battery indicators (e.g., a corrected battery table) based on the temperature correction factor. In some embodiments, the sensing system can determine the corrected battery indicators based on both the low temperature battery table and the high temperature battery table. For example, the sensing system can determine each corrected battery voltage associated with each indicator using Equation 10:

[0102] (Equation 10)

[0103] in:

[0104] • corrBatCurve x is the corrected battery curve voltage of row X;

[0105] • Voltage TEMPHIx is the voltage in row X of the high temperature battery table;

[0106] • Voltage TEMPLOx is the voltage in row X of the low temperature battery table;

[0107] • TEMPHI is the temperature used when determining the high temperature battery table;

[0108] • TEMPLO is the temperature used when determining the low temperature battery tables; and

[0109] • corrFactor is the correction factor determined using Equation 9.

[0110] Referring to step 408, the device can determine the battery indicator based on the previous battery indicator. For example, the device can obtain the previous battery indicator of the battery, determine the current battery indicator of the battery based on the temperature-adjusted battery indication in the corrected battery table and the set of voltage measurements, and determine the battery indicator based on the previous battery indicator and the current battery indicator.

[0111] In some embodiments, the sensing system can determine the current battery indicator based on a stored battery table and / or a corrected battery table. For example, the sensing system can use a high current battery voltage (e.g., Figure 4 The sensing system can interpolate points in the corrected battery table (measured at step 402 in FIG. 1 ). For example, if the high current battery voltage is equal to a voltage value in the table, the sensing system can determine that the battery indicator is the associated indicator for that row. As another example, if the high current battery voltage is between two voltage values ​​in the table, the sensing system can interpolate the two associated battery indicators to determine the associated battery indication.

[0112] In some embodiments, the sensing system can determine the new battery indicator based on the previous battery indicator (e.g., which can be stored in a storage device on the sensing system, such as in an EEPROM). For example, the sensing system can determine the new battery indicator using Equation 11:

[0113] (Equation 11)

[0114] in:

[0115] • newBatInd is the new battery indicator;

[0116] • batInd is the previous battery indicator (e.g., obtained from EEPROM);

[0117] • curBatInd is the currently determined battery indicator; and

[0118] • FILTER is a filter value. FILTER can be determined based on the amount of time that has elapsed since a last operation associated with the sensing system (e.g., communication synchronization with a remote computing device (such as remote computing device 104)), a bonding event with the remote computing device, and / or detection of a dose administered by an associated drug delivery device).

[0119] The sensing system can store the determined new battery indicator (e.g., to an EEPROM). In some embodiments, additional data can be stored with the new battery indicator (such as a timestamp, number of injections remaining, and / or the like). For example, an initial number of injections associated with a new sensing system and / or a new battery can be configured by the system, and the sensing system can be configured to decrement the number of injections for each sensed injection performed by the drug delivery device.

[0120] The device can transmit the battery indicator to a remote device (e.g., remote computing device 104). The remote device can process the new battery indicator. For example, the remote device can be configured to determine the battery state based on the battery indicator. As an example, the following Table 3 illustrates exemplary battery states and associated battery indicators:

[0121] Battery indicators Battery Status 100 Full 90 Full 80 Full 70 Full 60 medium 50 medium 40 medium 30 medium 20 Low 10 Low 4 Replace battery - less than 120 injections remaining 3 Replace battery - less than 90 injections remaining 2 Replace battery - less than 60 injections remaining 1 Replace battery - less than 30 injections remaining 0 End of Life (EOL)

[0122] Table 3.

[0123] In some embodiments, the sensing device can enter a low battery state once the sensing device first raises a low battery flag (e.g., when the device is unlikely to be able to provide more than a certain number of injections (such as 120 injections)). Once in the low battery state, the sensing device can avoid changing the low battery state of the battery (e.g., avoid switching back and forth from a low battery state and a non-low battery state). In some embodiments, the sensing device can be configured to reduce the battery indicator by 1 for each new operation of the sensing device (e.g., a synchronization, binding, or dosing event) once the sensing device is in a low power state. In some embodiments, the sensing device can be configured to reduce the number of remaining injections by 1 for each new operation of the sensing device once the sensing device is in a low power state. Once the battery indicator equals zero, the sensing system can enter an end-of-life state. In some embodiments, the battery can be replaced and the sensing system can be reset when a new battery is detected. In some embodiments, the sensing system is disposable and can be discarded when the end-of-life state is reached.

[0124] In some embodiments, the sensing system can perform one or more checks on the data obtained and / or measurements taken during the battery monitoring process. For example, once a new battery indicator falls below a predetermined threshold, the MCU can issue a low battery warning. As another example, the sensing system can check whether the sensed voltage is within a predetermined acceptable range, whether the temperature measurement is within a predetermined acceptable range, and / or the like.

[0125] As described herein, these techniques can be used with various types of drug delivery devices, including drug delivery devices incorporating aspects described herein, as well as additional components that can be attached to drug delivery devices. For illustrative purposes, Figure 5-12 Exemplary drug delivery devices and dose sensing systems are described, into which these techniques can be incorporated. Such techniques are further discussed in PCT Application No. PCT / US19 / 18780, filed on February 20, 2019, which is hereby incorporated by reference herein.

[0126] Figure 5-6 An exemplary drug delivery device 10 according to some examples is illustrated. The drug delivery device 10 is a pen injector configured to inject a drug into a patient through a needle. The pen injector 10 includes a body 11 including an elongated pen-shaped housing 12 including a distal portion 14 and a proximal portion 16. The distal portion 14 is received in a pen cap 18. Figure 6 , the distal portion 14 contains a reservoir or cartridge 20, which is configured to hold a medicinal fluid of a drug to be dispensed through its distal outlet end during a dispensing operation. The outlet end of the distal portion 14 is equipped with a removable needle assembly 22, which includes an injection needle 24 enclosed by a removable cover 25. A piston 26 is positioned in the reservoir 20. An injection mechanism positioned in the proximal portion 16 is operative to advance the piston 26 toward the outlet of the reservoir 20 during a dose dispensing operation, thereby forcing the contained drug through the needle end. The injection mechanism includes a drive member 28 (illustratively in the form of a screw) that is axially movable relative to the housing 12 to advance the piston 26 through the reservoir 20.

[0127] The dose setting member 30 is coupled to the housing 12 for setting the amount of a dose to be dispensed by the device 10. In the illustrated embodiment, the dose setting member 30 is in the form of a screw element that is operable to perform a helical motion (e.g., simultaneously move axially and rotationally) relative to the housing 12 during dose setting and dose dispensing. Figure 5 and Figure 6 The dose setting member 30 is illustrated in its initial or zero dose position fully screwed into the housing 12. The dose setting member 30 is operable to be screwed out of the housing 12 in a proximal direction until it reaches a fully extended position corresponding to the maximum dose deliverable by the device 10 in a single injection.

[0128] refer to Figure 6-8The dose setting member 30 comprises a cylindrical dose dial member 32 having a helically threaded outer surface that engages a correspondingly threaded inner surface of the housing 12 to allow helical movement of the dose setting member 30 relative to the housing 12. The dose dial member 32 also comprises a helically threaded inner surface that engages a sleeve 34 ( Figure 6 ). The outer surface of the dial member 32 includes dose indicator markings, such as numbers visible through the dose window 36, to indicate to the user the amount of the set dose. The dose setting member 30 also includes a tubular flange 38 that is coupled in the open proximal end of the dial member 32 and is axially and rotationally locked to the dial member 32 by a stop 40 received in an opening 41 in the dial member 32. The dose setting member 30 may also include a collar or skirt 42 positioned around the outer periphery of the dial member 32 at its proximal end. The skirt 42 is axially and rotationally locked to the dial member 32 by a tab 44 received in a groove 46. Further embodiments described later show examples of devices without a skirt.

[0129] Therefore, the dose setting member 30 can be considered to include any or all of the dose dial member 32, the flange 38 and the skirt 42, because they are all rotationally and axially fixed together. The dose dial member 32 is directly involved in setting the dose and driving the delivery of the drug. The flange 38 is attached to the dose dial member 32 and, as described later, cooperates with the clutch to selectively couple the dial member 32 with the dose button 56. The skirt 42 provides a surface on the exterior of the body 11 to enable the user to rotate the dial member 32 in order to set the dose. For embodiments without a skirt, the dose button 56 includes an outer wall that extends distally to form a surface for the user to rotate.

[0130] The skirt 42 illustratively includes a plurality of surface features 48 and an annular ridge 49 formed on the outer surface of the skirt 42. The surface features 48 are illustratively longitudinally extending ribs and grooves spaced circumferentially around the outer surface of the skirt 42 and facilitate grasping and rotating the skirt by a user. In alternative embodiments, the skirt 42 is removed or integrated with the dial member 32, and the user may grasp and rotate the dose button 56 and / or the dose dial member 32 for dose setting. Figure 8 In the embodiment of FIG. 5 , a user may grasp and rotate the radially outer surface of the one-piece dose button 56 , which also includes a plurality of surface features, to facilitate dose setting.

[0131] The delivery device 10 includes an actuator 50 having a clutch 52 received within the dial member 32. The clutch 52 includes an axially extending rod 54 at its proximal end. The actuator 50 also includes a dose button 56 positioned proximal to the skirt 42 of the dose setting member 30. The dose button 56 includes a mounting collar 58 ( Figure 6 ). A collar 58 is attached to the rod 54 of the clutch 52 (such as by an interference fit or ultrasonic welding) to axially and rotatably secure the dose button 56 and the clutch 52 together.

[0132] The dose button 56 includes a disc-shaped proximal surface or face 60 and an annular wall portion 62 extending distally from the outer peripheral edge of the face 60 and radially spaced inwardly from the outer peripheral edge of the face 60 to form an annular lip 64 therebetween. The proximal side 60 of the dose button 56 serves as a push surface against which force can be manually applied, i.e., by a user directly pushing the actuator 50 in the distal direction. The dose button 56 illustratively includes a recessed portion 66 centrally located on the proximal side 60, although the proximal side 60 may alternatively be a flat surface. A biasing member 68 (illustratively a spring) is disposed between a distal surface 70 of the button 56 and a proximal surface 72 of the tubular flange 38 to urge the actuator 50 and the dose setting member 30 axially away from each other. The dose button 56 can be depressed by a user to start a dose dispensing operation.

[0133] The delivery device 10 is operable in both a dose setting mode and a dose dispensing mode. In the dose setting mode of operation, the dose setting member 30 is dialed (rotated) relative to the housing 12 to set the desired dose to be delivered by the device 10. Dialing in the proximal direction is used to increase the set dose, and dialing in the distal direction is used to decrease the set dose. The dose setting member 30 can be adjusted in rotational increments (e.g., clicks) corresponding to the smallest incremental increase or decrease of the dose set during the dose setting operation. For example, one increment or "click" may be equal to half or one unit of the drug. The amount of the set dose is visible to the user via the dial indicator markings shown through the dose window 36. The actuator 50, including the dose button 56 and the clutch 52, moves axially and rotationally with the dose setting member 30 during dialing in the dose setting mode.

[0134] Due to the threaded connection of the dose dial member 32 to the housing 12, the dose dial member 32, the flange 38 and the skirt 42 are all rotationally fixed to each other and rotate and extend toward the proximal side of the drug delivery device 10 during dose setting. During this dose setting movement, the dose button 56 is rotated by the flange 38 and the clutch 52 ( Figure 6) is rotationally fixed relative to the skirt 42, the flange 38 and the clutch 52 being urged together by the biasing member 68. During dose setting, the skirt 42 and the dose button 56 move in a spiral manner relative to the housing 12 from a "start" position to an "end" position. This rotation relative to the housing is proportional to the amount of the dose set by operation of the drug delivery device 10.

[0135] Once the desired dose is set, the device 10 is manipulated so that the injection needle 24 appropriately penetrates, for example, the skin of the user. The dose dispensing mode of operation is initiated in response to an axial distal force applied to the proximal face 60 of the dose button 56. The axial force is applied directly to the dose button 56 by the user. This causes an axial movement of the actuator 50 relative to the housing 12 in the distal direction.

[0136] The axial displacement movement of the actuator 50 compresses the biasing member 68 and reduces or closes the gap between the dose button 56 and the tubular flange 38. This relative axial movement separates the clutch 52 and the complementary splines 74 on the flange 38, and thereby disengages the actuator 50 (e.g., the dose button 56) from being rotationally fixed to the dose setting member 30. Specifically, the dose setting member 30 is rotationally decoupled from the actuator 50 to allow back-driven rotation of the dose setting member 30 relative to the actuator 50 and the housing 12. The dose dispensing mode of operation may also be initiated by activating a separate switch or trigger mechanism.

[0137] As the actuator 50 continues to be pushed axially in without being rotated relative to the housing 12, the dial member 32 is screwed back into the housing 12 as it is rotated relative to the dose button 56. Dose markings indicating the amount still remaining to be injected are visible through the window 36. As the dose setting member 30 is screwed distally downward, the drive member 28 is advanced distally to push the piston 26 through the reservoir 20 and expel the drug through the needle 24 ( Figure 6 ).

[0138] During a dose dispensing operation, when the dial member 32 is screwed back into the housing 12, the amount of drug expelled from the drug delivery device is proportional to the amount of rotational movement of the dose setting member 30 relative to the actuator 50. The injection is complete when the internal thread of the dial member 32 has reached the distal end of the corresponding external thread of the sleeve 34 ( Figure 6 Then, the device 10 is arranged again in the following manner: Figure 6 and Figure 7 in the ready state or zero dose position shown in .

[0139] During dose delivery, the start and end angular positions of the dose dial member 32, and therefore the rotationally fixed flange 38 and skirt 42, relative to the dose button 56 provide an "absolute" change in angular position. Determining whether the relative rotation exceeds 360° is determined in a number of ways. By way of example, the total rotation may also be determined by considering incremental movement of the dose setting member 30, which incremental movement may be measured in any number of ways by the sensing system.

[0140] Various sensor systems are contemplated herein. In general, a sensor system includes a sensing component and a sensed component. The term "sensing component" refers to any component capable of detecting the relative position of a sensed component. A sensing component includes a sensing element or "sensor" together with associated electrical components for operating the sensing element. A "sensed component" is any component for which a sensing component is capable of detecting the position and / or movement of a sensed component relative to the sensing component. For a dose delivery detection system, the sensed component rotates relative to the sensing component, and the sensing component is capable of detecting the angular position and / or rotational movement of the sensed component. For a dose type detection system, the sensing component detects the relative angular position of the sensed component. The sensing component may include one or more sensing elements, and the sensed component may include one or more sensed elements. The sensor system is capable of detecting the position or movement of (multiple) sensed components and providing an output representing the position (multiple) or movement (multiple) of the (multiple) sensed components.

[0141] The sensor system typically detects a characteristic of a sensed parameter that varies as a function of the position of one or more sensed elements within the sensed region. The sensed elements extend into the sensed region or otherwise affect the sensed region in a manner that directly or indirectly affects the characteristic of the sensed parameter. The relative position of the sensor and sensed element affects the characteristic of the sensed parameter, thereby allowing a microcontroller unit (MCU) of the sensor system to determine different rotational positions of the sensed elements.

[0142] Suitable sensor systems may include a combination of active and passive components. In the case where the sensing component operates as an active component, it is not necessary to connect both components to other system elements (such as a power supply or MCU).

[0143] Any of a variety of sensing technologies may be combined, wherein the relative position of two components can be detected by these technologies. Such technologies may include, for example, technologies based on tactile, optical, inductive or electrical measurements. Such technologies may include measurements of sensed parameters associated with a field (such as a magnetic field). In one form, when the magnetic component is moved relative to the magnetic sensor, the sensor senses changes in the sensed magnetic field. In another embodiment, when the object is positioned in the magnetic field and / or moves through the magnetic field, the sensor system may sense the characteristics and / or changes of the magnetic field. The change in the field changes the characteristics of the sensed parameter related to the position of the sensed element in the sensed area. In such an embodiment, the sensed parameter may be capacitance, conductance, resistance, impedance, voltage, inductance, etc. For example, a magnetoresistive sensor detects a distortion of the applied magnetic field, which causes a characteristic change in the resistance of the element of the sensor. As another example, a Hall effect sensor detects a change in voltage caused by the distortion of the applied magnetic field.

[0144] In one aspect, the sensor system detects the relative position or movement of the sensed element, and thus detects the relative position or movement of the associated components of the drug delivery device. The sensor system generates an output representing the amount of position or movement of the sensed component (s). For example, the sensor system can be operable to generate outputs by which the rotation of the dose setting component during dose delivery can be determined. The MCU is operably connected to each sensor to receive these outputs. In one aspect, the MCU is configured to determine the amount of the dose delivered by the operation of the drug delivery device based on these outputs.

[0145] The dose delivery detection system involves detecting relative rotational movement between two members. Where the degree of rotation has a known relationship to the amount of dose delivered, the sensor system operates to detect the amount of angular movement from the start of dose injection to the end of dose injection. For example, a typical relationship for a pen injector is that an angular displacement of 18° of the dose setting member is equivalent to one dose unit, although other angular relationships are also suitable. The sensor system is operable to determine the total angular displacement of the dose setting member during dose delivery. Thus, if the angular displacement is 90°, 5 dose units have been delivered.

[0146] One method for detecting angular displacement is to count the increments of the amount of the dose as the injection proceeds. For example, the sensor system may use a repeating pattern of the sensed element such that each repeat is an indication of a predetermined degree of angular rotation. Conveniently, the pattern may be established such that each repeat corresponds to the smallest increment of the dose that can be set with the drug delivery device.

[0147] An alternative approach is to detect the start and stop positions of the relatively moving members, and determine the amount of the delivered dose as the difference between those positions. In this approach, the sensor system detecting the number of complete rotations of the dose setting member may be part of the determination. Various methods for this are within the capabilities of those of ordinary skill in the art, and may include "counting" the number of increments to assess the number of complete rotations.

[0148] The sensor system components may be permanently or removably attached to the drug delivery device. In an illustrative embodiment, at least some of the dose detection system components are provided in the form of a module that is removably attached to the drug delivery device. This has the advantage of making these sensor components available for use on more than one pen injector.

[0149] In some embodiments, the sensing component is mounted to the actuator and the sensed component is attached to the dose setting member. The sensed component may also include the dose setting member or any part thereof. The sensor system detects the relative rotation of the sensed component during dose delivery, and therefore detects the relative rotation of the dose setting member, from which the amount of the dose delivered by the drug delivery device is determined. In an illustrative embodiment, the rotation sensor is attached to and rotationally fixed to the actuator. During dose delivery, the actuator does not rotate relative to the body of the drug delivery device. In this embodiment, the sensed component is attached to and rotationally fixed to the dose setting member, which rotates relative to the actuator and the device body during dose delivery. The sensed component may also include the dose setting member or any part thereof. In an illustrative embodiment, during dose delivery, the rotation sensor is not directly attached to the dose setting member that rotates relatively.

[0150] refer to Fig. 9 , a dose delivery detection system 80 is shown in diagrammatic form, including one example of a module 82 useful in conjunction with a drug delivery device, such as device 10. Module 82 carries a sensor system, generally shown as a rotation sensor 86 (or more than one rotation sensor), and other associated components, such as a processor, memory, battery, etc. Module 82 is provided as a separate component that can be removably attached to an actuator.

[0151] The dose detection module 82 includes a body 88 attached to the dose button 56 (shown in phantom). The body 88 illustratively includes a cylindrical sidewall 90 and a top wall 92 that spans over and seals the sidewall 90. The dose detection module 82 may alternatively be attached to the dose button 56 via any suitable fastening means (such as a snap fit or press fit, a threaded interface, etc.), provided that in one aspect, the module 82 can be removed from a first drug delivery device and then attached to a second drug delivery device. The attachment may be at any location on the dose button 56, provided that the dose button 56 can be axially moved by any desired amount relative to the dose setting member 30, as discussed herein.

[0152] During dose delivery, the dose setting member 30 is free to rotate relative to the dose button 56 and the module 82. In the illustrative embodiment, the module 82 is rotationally fixed to the dose button 56 and does not rotate during dose delivery. This can be provided structurally, such as with a protrusion, or by having mutually facing splines or other surface features on the module body 88 and the dose button 56 engage when the module 82 moves axially relative to the dose button 56. In another embodiment, distal depression of the module provides sufficient frictional engagement between the module 82 and the dose button 56 to functionally cause the module 82 and the dose button 56 to remain rotationally fixed together during dose delivery.

[0153] The top wall 92 is spaced from the face 60 of the dose button 56 and thereby provides a cavity 96 in which some or all of the rotation sensor and other components may be housed. The cavity 96 may be open at the bottom, or may be enclosed, such as by a bottom wall 98. The bottom wall 98 may be positioned so as to bear directly against the face of the dose button 56. Alternatively, the bottom wall 98 (if present) may be spaced from the dose button 56, and other contact between the module 82 and the dose button 56 may be used so that an axial force applied to the module 82 is transferred to the dose button 56. In another embodiment, the module 82 may be rotationally fixed to a one-piece dose button configuration.

[0154] In an alternative embodiment, the module 82 is instead attached to the dose setting member 30 during dose setting. For example, the side wall 90 may include a lower wall portion 100 having an inward protrusion, wherein the inward protrusion is in the form of a coupling arm 102 that engages the side wall of the button. In this approach, the module 82 may effectively engage the proximal side 60 of the dose button 56 and the distal side of the annular ridge 49. In this configuration, the lower wall portion 100 may be provided with surface features that engage with the surface features of the dose button to rotationally fix the module 82 with the dose button. Rotational forces applied to the housing 82 during dose setting are thereby transferred to the dose button by virtue of the coupling of the lower wall portion 100 with the side wall of the dose button. The light guide 118 is shown as being disposed between the face of the LEDs 114A-C and the light sensor 110 (shown collectively at a single location of the electronic device assembly) and the dose button 56 (when present). The battery 138 is shown as being disposed above the optical system 89 and a portion of the electronic device assembly.

[0155] The exemplary electronic device assembly 120 includes a flexible printed circuit board (FPCB) having a plurality of electronic components. The electronic device assembly includes a sensor system including one or more rotation sensors 86 in operative communication with a processor to receive signals representative of sensed relative rotation from the sensors. The electronic device assembly also includes an MCU including at least one processing core and internal memory. An example of an electronic device assembly schematic is shown in FIG. Figure 1B Shown in.

[0156] refer to Fig. 10A , Fig. 10B , Fig.11A and Fig. 11B , shows an exemplary magnetic sensor system 150, which includes an annular, ring-shaped bipolar magnet 152 as a sensed element, which has a north pole 154 and a south pole 156. The magnets described herein may also be referred to as diametrically magnetized rings. The magnet 152 is attached to the flange 38 and therefore rotates with the flange during dose delivery. The magnet 152 may alternatively be attached to the dose dial 32 or other member that is rotationally fixed to the dose setting member. The magnet 152 may be constructed of various materials, such as rare earth magnets, for example neodymium and others.

[0157] Sensor system 150 also includes a measurement sensor 158 that includes one or more sensing elements 160 that are operatively connected to sensor electronics (not shown) housed within module 82. The sensing elements 160 of sensor 158 are Fig.11A160 is shown as being attached to a printed circuit board 162, which in turn is attached to a module 82, which is rotationally fixed to the dose button 56. Thus, during dose delivery, the magnet 152 rotates relative to the sensing element 160. The sensing element 160 is operable to detect the relative angular position of the magnet 152. When the ring 152 is a metal ring, the sensing element 160 may include an inductive sensor, a capacitive sensor, or other non-contact sensor. The magnetic sensor system 150 is thereby operated to detect the total rotation of the flange 38 relative to the dose button 56 during dose delivery, and thus detects rotation relative to the housing 12. In one example, a magnetic sensor system 150 including a magnet 152 and a sensor 158 having a sensing element 160 may be arranged in a module.

[0158] In one embodiment, magnetic sensor system 150 includes four sensing elements 160 that are equally radially spaced within module 82 to define an annular pattern as shown. Alternative numbers and locations of sensing elements may be used. For example, in Fig. 11B In another embodiment shown in , a single sensing element 160 is used. Further, Fig. 11B The sensing element 160 in is shown as being centered within the module 82, although other locations may be used. Fig.12 In another embodiment shown in , for example, five sensing elements 906 are equally circumferentially and equally radially spaced within the module. In the previous embodiments, the sensing element 160 is shown as being attached within the module 82. Alternatively, the sensing element 160 may be attached to any portion of a component that is rotationally fixed to the dose button 56 so that the component does not rotate relative to the housing 12 during dose delivery.

[0159] For purposes of illustration, the magnet 152 is shown as a single annular bipolar magnet attached to the flange 38. However, alternative configurations and locations of the magnet 152 are contemplated. For example, the magnet may include multiple poles, such as alternating north and south poles. In one embodiment, the magnet includes a number of pole pairs equal to the number of discrete rotational, dose setting positions of the flange 38. The magnet 152 may also include a number of separate magnet components. In addition, the magnet component may be attached to any portion of a component that is rotationally fixed to the flange 38 during dose delivery, such as the skirt 42 or the dose dial component 32.

[0160] Alternatively, the sensor system can be an inductive or capacitive sensor system. This type of sensor system utilizes a sensed element that includes a metal band attached to a flange similar to the attachment of the magnetic ring described herein. The sensor system also includes one or more sensing elements, such as four, five, six or more independent antennas or armatures spaced equiangularly along the distal wall of the module housing or pen housing. These antennas form antenna pairs positioned 180 degrees or other angles apart and provide a ratio-metric measurement of the angular position of the metal ring that is proportional to the delivered dose.

[0161] The metal band loop is shaped so that one or more different rotational positions of the metal ring relative to the module can be detected. The metal band has a shape that generates a changing signal when the metal ring rotates relative to the antenna. The antenna is operably connected to the electronic device assembly so that during dose delivery, the antenna works to detect the position of the metal ring relative to the sensor and therefore relative to the position of the housing 12 of the pen 10. The metal band can be a single cylindrical band attached to the outside of the flange. However, alternative configurations and positions of the metal band are contemplated. For example, the metal band may include a plurality of discrete metal elements. In one embodiment, the metal band includes a number of elements equal to the number of discrete rotational dose setting positions of the flange. In an alternative, the metal band may be attached to any part of a component that is rotationally fixed to the flange 38 during dose delivery, such as a dial member 32. The metal band may include a metal element attached to the rotating member on the inside or outside of the rotating member, or it may be incorporated into such a member, such as by metal particles incorporated in the member, or by overmolding the member with the metal band. The MCU is operable to determine the position of the metal ring through a sensor.

[0162] The MCU is operable to determine the starting position of the magnet 152 by averaging the plurality of sensing elements 160 (e.g., four) at a maximum sampling rate based on a standard quadrature differential signal calculation. During the dose delivery mode, sampling is performed by the MCU at a target frequency to detect the number of revolutions of the magnet 152. At the end of the dose delivery, the MCU is operable to determine the final position of the magnet 152 by averaging the plurality of sensing elements 160 (e.g., four) at a maximum sampling rate based on a standard quadrature differential signal calculation. The MCU is operable to make a determination from a calculation of the total rotation angle of the stroke made based on the determined starting position, number of revolutions, and final position. The MCU is operable to determine the number of dose steps or units by dividing the total rotation angle of the stroke by a predetermined number (e.g., 10, 15, 18, 20, 24) associated with the design of the device and the drug.

[0163] Further references Fig.12 , Fig.12Another example of a magnetic sensor system 900 is illustrated, which includes a diametrically magnetized ring 902 with a north pole 903 and a south pole 905 as a sensed element. The magnetized ring 902 is attached to a dose setting member, such as, for example, a flange as previously described. The radial placement of magnetic sensors 906 (such as, for example, Hall effect sensors) relative to the magnetized ring 902 can be equiangular relative to each other in an annular pattern. In one example, the magnetic sensors 906 are radially arranged in an overlapping relationship with the outer circumferential edge 902A of the magnetized ring 902, so that a portion of the magnetic sensor 906 is disposed above the magnetized ring 902 and the remainder is disposed outside the magnetized ring 902.

[0164] In some embodiments, the sensing system is configured to determine whether the sensing system is coupled to a drug delivery device. Fig.13 An exemplary computerized method 1300 for determining whether a device is removably coupled to a drug injection device according to some embodiments is shown. A sensing system (such as a dose delivery detection system) includes a plurality of sensing elements. For example, the sensing system includes a number of sensing elements, such as four or five sensing elements, which are equally circumferentially and equally radially spaced within the device. As described herein, the plurality of sensing elements can include a plurality of Hall effect sensors. In some embodiments, five Hall effect sensors are equally spaced at 72 degrees around a circle, and the diameter of the circle is designed based on the magnetic component of the drug delivery device being sensed. For example, a diameter of approximately 14 mm can be used so that when the magnet rotates about its axis, the sensor adheres to an envelope described by the maximum value of the Z component of the magnetic field. The sensing system also includes a processor (e.g., an MCU) that communicates with the set of sensing elements.

[0165] The sensing system (via its processor, MCU, etc.) is configured to execute computer-readable instructions that cause the processor to perform the computerized method 1300. At step 1302, the sensing system obtains a set of voltage measurements from each of a plurality of sensing elements. At step 1304, the sensing system determines two-dimensional data representing the magnetic field of the magnetic component of the drug injection device. At step 1306, the sensing system determines one-dimensional data based on the two-dimensional data. At step 1308, the sensing system determines whether the set of voltage measurements indicates that the device is coupled to the drug injection device based on the one-dimensional data.

[0166] Referring to step 1302, when the user presses the power button for the sensing system, the sensing system wakes up and the firmware running on the processor turns on the sensing element (e.g., magnetic sensor) to obtain the starting position of the magnetic component of the drug delivery device (e.g., before any rotation occurs). During this stage, it is important to obtain sensor readings shortly after waking up to avoid obtaining measurements during rotation. In some embodiments, the sensing system can average many samples of each sensor (e.g., 5, 10, 15, etc. of each sensor), for example to reduce noise.

[0167] Referring to step 1304, in some embodiments, the sensing system determines a quadrature signal including an in-phase (I) portion and a quadrature (Q) portion. The system can determine the I and Q values ​​based on the sum of each sensor value. In some embodiments, the sensing system uses coefficients when summing the sensor values. For example, the system can store one or more coefficients for each sensor. In some embodiments, the sensing system stores a coefficient for each sensor, by which the sensor value is multiplied during summation to determine the I value, and stores a second coefficient for each sensor, by which the sensor value is multiplied during summation to determine the value. In some embodiments, these coefficients can be used to combine the results of multiple sensors (e.g., such as five sensors spaced equidistantly at 72 degrees from each other) for I and Q calculations. In some embodiments, these coefficients can be obtained by solving a series of equations, wherein the series of equations forces the results of the quadrature calculation to have zero error compared to the nominal angle in front of offset in the measured signal, 2nd harmonic distortion, 3rd harmonic distortion, and / or the like.

[0168] Referring to step 1306, in some embodiments, the sensing system determines a scale factor based on the two-dimensional signal (e.g., the orthogonal signal) determined at step 1304. In some embodiments, the sensing system determines the scale factor based on the orthogonal signal and one or more of a predetermined offset and a predetermined gain. For example, the processor can determine the scale factor based on the following equation 12:

[0169] (Equation 12)

[0170] in:

[0171] • ScaleFactor is the scale factor;

[0172] • I is the in-phase portion of the quadrature signal;

[0173] • Q is the quadrature part of the quadrature signal;

[0174] • OI is the offset measured on the I signal during calibration;

[0175] • OQ is the offset measured on the Q signal during calibration;

[0176] • GI is the gain measured on the I signal during calibration; and

[0177] • GQ is the gain measured on the Q signal during calibration.

[0178] Such exemplary I and Q offsets and gains can be used because quadrature works well when I and Q are well balanced, such as when the offset equals 0 and the gain equals 1. A calibration process can be used to determine an offset / gain that balances the measured I and Q to achieve sufficient values ​​to remove skew between I and Q and / or the like. In some embodiments, the sensing system can be configured to normalize the I and Q values, and to use the I and Q values ​​to determine a normalized angle of the Z component of the magnetic field. After administering the dose, the sensing system can then monitor the end position of the magnetic component of the drug delivery device to determine the amount of the injected dose (e.g., using techniques similar to those described herein to monitor the rotation of the magnet and / or determine the end position of the magnet).

[0179] Referring to step 1308, the sensing system can determine whether the one-dimensional data indicates that the sensing system is coupled (or not coupled) to a drug delivery device. The sensing system can use a scaling factor to determine whether the sensing system is mounted or coupled to a drug delivery device. For example, if the scaling factor is between predetermined thresholds, the sensing system can determine that the sensing system is mounted to the drug delivery device. If the scaling factor is not between predetermined thresholds, the sensing system can determine that the sensing system is likely not mounted to the drug delivery device. In some embodiments, the sensing system can check the scaling factor with respect to a low amplitude margin and a high amplitude margin to determine whether the magnet being monitored by the module is the expected magnet (e.g., + / - 25% around the nominal value is acceptable) so that the module will only accept the expected amplitude.

[0180] The dose detection system has been described by way of example in the context of a specific design of a drug delivery device, such as a pen injector. However, the illustrative dose detection system may also be used with alternative drug delivery devices, and with other sensing configurations that may operate in the manner described herein. For example, any one or more of the various sensing and switch systems may be omitted from the module.

[0181] The various methods or processes outlined herein may be encoded as software that can be executed on one or more processors using any of a variety of operating systems or platforms. In addition, such software may be written using any of a number of suitable programming languages ​​and / or programming or scripting tools, and may also be compiled into executable machine language code or intermediate code that is executed on a virtual machine or suitable framework.

[0182] In this regard, various inventive concepts may be embodied as at least one non-transitory computer-readable storage medium (e.g., computer memory, one or more floppy disks, compact disks, optical disks, tapes, flash memory, circuit configurations in field programmable gate arrays or other semiconductor devices, etc.) encoded with one or more programs, wherein when executed on one or more computers or other processors, the one or more programs implement various embodiments of the present invention. The one or more non-transitory computer-readable media may be transportable so that the one or more programs stored thereon are loaded onto any computer resource to implement various aspects of the present invention as discussed above.

[0183] The terms "program", "software" and / or "application" are used herein in a generic sense to refer to any type of computer code or computer executable instruction set that can be employed to program a computer or other processor to implement various aspects of the embodiments as discussed above. In addition, it should be understood that, according to one aspect, one or more computer programs that, when executed, perform the methods of the present invention need not be located on a single computer or processor, but can be distributed in a modular manner among different computers or processors to implement various aspects of the present invention.

[0184] Computer executable instructions may be in many forms, such as program modules, that are executed by one or more computers or other devices. Typically, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. Typically, the functionality of program modules may be combined or distributed as desired in various embodiments.

[0185] Moreover, the data structure may be stored in a non-transitory computer-readable storage medium in any suitable form. The data structure may have fields that are related by position in the data structure. Such relationships may similarly be achieved by assigning storage to the fields, wherein the positions in the non-transitory computer-readable medium convey the relationships between the fields. However, any suitable mechanism may be used to establish relationships among the information in the fields of the data structure, including by using pointers, tags, or other mechanisms that establish relationships among data elements.

[0186] Various inventive concepts may be embodied as one or more methods, examples of which have been provided. The actions performed as part of a method may be ordered in any suitable manner. Thus, embodiments may be constructed in which the actions are performed in an order different from that described, which may include performing some actions simultaneously, even though they are shown as sequential actions in an illustrative embodiment.

[0187] Unless expressly indicated to the contrary, the indefinite articles "a" and "an" as used herein in the specification and claims should be understood to mean "at least one". As used herein in the specification and claims, when referring to a list of one or more elements, the phrase "at least one" should be understood to mean at least one element selected from any one or more elements in the list of elements, but not necessarily including at least one and every element of each element specifically listed in the list of elements, and not excluding any combination of elements in the list of elements. This allows for the optional presence of elements other than the elements specifically identified in the list of elements to which the phrase "at least one" refers, whether related or unrelated to those specifically identified elements.

[0188] As used herein in the specification and claims, the phrase "and / or" should be understood to mean "either or both" of the elements so combined (i.e., elements that exist together in some cases and separately in other cases). Multiple elements listed with "and / or" should be interpreted in the same manner, i.e., "one or more" of the elements so combined. In addition to the elements specifically identified by the "and / or" clause, other elements may optionally be present, whether related or unrelated to those specifically identified elements. Thus, as a non-limiting example, when used in conjunction with open language such as "comprising", a reference to "A and / or B" can refer to only A (optionally including elements other than B) in one embodiment; to only B (optionally including elements other than A) in another embodiment; to both A and B (optionally including other elements) in yet another embodiment; etc.

[0189] As used herein in the specification and claims, "or" should be understood to have the same meaning as "and / or" as defined above. For example, when separating the items in the list, "or" or "and / or" should be interpreted as inclusive, i.e., including at least one of a number of elements or a list of elements, (but also including more than one), and optionally, additional unlisted items. Only terms that clearly indicate the opposite (such as, "only one of ..." or "exactly one of ...", or when used in the claims, "consisting of ...") will refer to exactly one element in a list including many elements or elements. In general, the term "or" as used herein should be interpreted as indicating exclusive alternatives (i.e., "one or the other, but not two") only when exclusive terms (such as, "any one", "one of ...", "only one of ..." or "exactly one of ...") are in front. When used in the claims, "substantially consisting of ..." should have its ordinary meaning as used in the field of patent law.

[0190] The use of ordinal terms such as "first," "second," "third," etc., in the claims to modify claim elements does not by itself imply any priority, precedence, or order of one claim element over another, or temporal order of performing the acts of the method. Such terms serve merely as labels to distinguish one claim element with a particular name from another element with the same name (except for the use of the ordinal term).

[0191] The phraseology and terminology used herein are for the purpose of description and should not be regarded as limiting. The use of “including,” “comprising,” “having,” “including,” “involving,” and variations thereof are meant to encompass the items listed thereafter as well as additional items.

[0192] After having described several embodiments of the present invention in detail, it will be easy for those skilled in the art to think of various modifications and improvements. Such modifications and improvements are intended to be within the spirit and scope of the present invention. Therefore, the foregoing description is only by way of example and is not intended to be limiting.

Claims

1. An apparatus configured to determine whether the apparatus is removably coupled to a drug injection device and to determine the size of a dose delivered by the drug injection device during dose delivery, the apparatus comprising: A plurality of sensing elements; a processor in communication with a set of sensing elements, the processor being configured to execute computer readable instructions causing the processor to: obtaining a set of voltage measurements from each of the plurality of sensing elements; determining two-dimensional data representing a magnetic field of a magnetic component of the drug injection device; determining one-dimensional data based on the two-dimensional data; determining, based on the one-dimensional data, whether the set of voltage measurements indicates that the device is coupled to the drug injection device; as well as When the apparatus is coupled to the drug injection device, the size of a dose delivered by the drug injection device is determined based on the outputs of the plurality of sensing elements during dose delivery.

2. The device according to claim 1, wherein: Determining the two-dimensional data includes determining a quadrature signal including an in-phase portion and a quadrature portion.

3. The device according to claim 2, wherein: Determining the one-dimensional data includes determining a scaling factor based on the orthogonal signal.

4. The device according to claim 3, wherein: Determining the scaling factor includes determining the scaling factor based on the quadrature signal and based on one or more of a predetermined offset and a predetermined gain.

5. The device according to any one of claims 1 to 4, wherein: The plurality of sensing elements includes five sensing elements equally circumferentially and equally radially spaced within the device.

6. The device according to any one of claims 1 to 4, wherein: The plurality of sensing elements includes a plurality of Hall effect sensors.