Methods and apparatus for aspects of a dose detection system
The techniques described herein relate to computerized methods and apparatus of at least one of for determining whether a dose sensing module is attached to a medication delivery device, such as, for example, with dose detection sensors, for detecting a color of a portion of a medication delivery device to determine a medication contained in the medication delivery device, such as, for example, with a set of LEDs and light sensor for different temperature conditions, and for monitoring a battery life of a battery in the dose sensing module, such as, for example, with current/voltage detection for different temperature conditions. At least some of the information obtained from these techniques may be communicated to a paired remote electronic device, such as a user's smartphone.
1 . An apparatus configured to determine illumination data indicative of a color of an object, the apparatus comprising:
a set of light emitting diodes (LEDs) in optical communication with the object;
a light sensor in optical communication with the object;
a processor configured to execute computer-readable instructions that cause the processor to:
cause the light sensor to capture illumination data of the object while the object is illuminated by the set of LEDs;
process the illumination data to generate processed illumination data, comprising one or more of:
adjusting the illumination data based on a temperature associated with the object; and
normalizing the illumination data based on a set of normalization parameters; and
transmit, using a transmitter or transceiver in communication with the processor, the processed illumination data to a remote device.
2 . The apparatus of claim 1 , wherein the light sensor is an ambient light sensor.
3 . The apparatus claim 1 , wherein the object is a portion of a medication delivery device that can be used to identify an aspect of the medication delivery device based on the color of the object.
4 . The apparatus of claim 1 , further comprising a light guide disposed between (a) the set of LEDs, the light sensor, or both, and (b) the object.
5 . The apparatus of claim 1 , wherein causing the light sensor to capture illumination data of the object while the object is illuminated by the set of LEDs comprises causing the light sensor to capture:
first illumination data when the object is not illuminated by the set of LEDs; and
second illumination data when the object is illuminated by each LED of the set of LEDs.
6 . The apparatus of claim 5 , wherein:
the set of LEDs comprises a red LED, a blue LED, and a green LED; and
causing the light sensor to capture the second illumination data comprises:
causing the light sensor to capture (a) third illumination data when the object is illuminated by the red LED; (b) fourth illumination data when the object is illuminated by the green LED; and (c) fifth illumination data when the object is illuminated by the green LED.
7 . An apparatus configured to determine a battery indicator indicative of a remaining life of a battery, the apparatus comprising:
a set of light emitting diodes (LEDs) in optical communication with an object, and a light sensor in optical communication with the object, the object comprising a portion of a medication delivery device;
a battery;
a temperature sensor;
a processor in communication with the set of LEDs, the light sensor, the battery and the temperature sensor, the processor being configured to execute computer-readable instructions that cause the processor to:
cause the light sensor to capture illumination data of the object while the object is illuminated by the set of LEDs;
obtain a set of voltage measurements of the battery;
obtain, via the temperature sensor, a temperature measurement;
determine a set of temperature-adjusted battery indications based on the temperature measurement; and
determine a battery indicator indicative of a remaining life of the battery based on the temperature-adjusted battery indications and the set of voltage measurements.
8 . The apparatus of claim 7 , wherein obtaining the set of voltage measurements comprises:
obtaining a startup battery voltage when the apparatus is powered on;
obtaining a high current battery voltage when the processor is running at a maximum speed; and
obtaining a low current battery voltage when the processor is running in a low-power mode.
9 . The apparatus of claim 7 , wherein determining the set of temperature-adjusted battery indications based on the temperature measurement comprises:
storing:
a set of low temperature battery indications, wherein each low temperature battery indication comprises a battery indication and an associated voltage for a low temperature; and
a set of high temperature battery indications, wherein each high temperature battery indication comprises a battery indication and an associated voltage for a high temperature; and
determining, based on the set of low temperature battery indications, the set of high temperature battery indications, and the temperature measurement, the set of temperature-adjusted battery indications.
10 . The apparatus of claim 9 , wherein determining the battery indicator indicative of the remaining life of the battery comprises:
obtaining a previous battery indicator for the battery;
determining a current battery indicator for the battery based on the temperature-adjusted battery indications and the set of voltage measurements;
determining the battery indicator based on the previous battery indicator and the current battery indicator.
11 . The apparatus of claim 7 , further comprising transmitting the battery indicator to a remote device.
12 . The apparatus of claim 1 , further comprising a battery; a temperature sensor, wherein the processor is in communication with the battery and the temperature sensor, the processor being configured to execute computer-readable instructions that cause the processor to:
obtain an electrical measurement of the battery;
obtain, via the temperature sensor, a temperature measurement;
determine a set of temperature-adjusted battery indications based on the temperature measurement; and
determine a battery indicator indicative of a remaining life of the battery based on the temperature-adjusted battery indications and the set of electrical measurements.
13 . The apparatus of claim 1 , further comprising a plurality of sensing elements, wherein the processor is in communication with the sensing elements, the processor being configured to execute computer-readable instructions that cause the processor to:
obtain a set of electrical measurements from each of the plurality of sensing elements;
determine two-dimensional data representative of a magnetic field of a magnetic component of the medication injection device;
determine one-dimensional data based on the two-dimensional data; and
determine, based on the one-dimensional data, whether the set of voltage measurements is indicative of the apparatus being coupled to the medication injection device.
14 . The apparatus of claim 13 , further comprising a battery; a temperature sensor, wherein the processor is in communication with the battery and the temperature sensor, the processor being configured to execute computer-readable instructions that cause the processor to:
obtain an electrical measurement of the battery; obtain, via the temperature sensor, a temperature measurement;
determine a set of temperature-adjusted battery indications based on the temperature measurement; and
determine a battery indicator indicative of a remaining life of the battery based on the temperature-adjusted battery indications and the set of electrical measurements.