IDENTIFICATION USING SPECTROSCOPY
A device may receive information identifying results of a spectroscopic measurement of an unknown sample. The device may perform a first classification of the unknown sample based on the results of the spectroscopic measurement and a global classification model. The device may generate a local classification model based on the first classification. The device may perform a second classification of the unknown sample based on the results of the spectroscopic measurement and the local classification model. The device may provide information identifying a class associated with the unknown sample based on performing the second classification.
This application is a continuation of U.S. patent application Ser. No. 16/405,050, filed on May 7, 2019, which is a continuation of U.S. application Ser. No. 15/247,554, filed on Aug. 25, 2016 (now U.S. Pat. No. 10,309,894), which claims priority under 35 U.S.C. § 119 to U.S. Provisional Patent Application No. 62/210,198 filed on Aug. 26, 2015, the contents of which are incorporated by reference herein in their entireties.
BACKGROUNDRaw material identification may be utilized for quality-control of pharmaceutical products. For example, raw material identification may be performed on a medical compound to determine whether component ingredients of the medical compound correspond to a packaging label associated with the medical compound. Spectroscopy may facilitate non-destructive raw material identification with reduced preparation and data acquisition time relative to other chemistry techniques.
SUMMARYAccording to some possible implementations, a device may include one or more processors. The one or more processors may receive information identifying results of a spectroscopic measurement of an unknown sample. The one or more processors may perform a first classification of the unknown sample based on the results of the spectroscopic measurement and a global classification model. The global classification model may utilize a support vector machine (SVM) classifier technique. The global classification model may include a global set of classes. The one or more processors may generate a local classification model based on the first classification. The local classification model may utilize the SVM classifier technique. The local classification model may include a subset of classes of the global set of classes. The one or more processors may perform a second classification of the unknown sample based on the results of the spectroscopic measurement and the local classification model. The one or more processors may provide information identifying a class, of the subset of classes, associated with the unknown sample based on performing the second classification.
According to some possible implementations, a computer-readable medium may store instructions, that when executed by one or more processors, may cause the one or more processors to receive information identifying results of a set of spectroscopic measurements of an unknown set. The unknown set may include a set of unknown samples. The one or more instructions, when executed by one or more processors, may cause the one or more processors to perform a first classification of the set of unknown samples based on the results of the set of spectroscopic measurements and a global classification model. The global classification model may utilize a support vector machine (SVM) linear classifier technique. The one or more instructions, when executed by one or more processors, may cause the one or more processors to generate a set of local classification models for the set of unknown samples based on the first classification. The set of local classification models may utilize the SVM linear classifier technique. The one or more instructions, when executed by one or more processors, may cause the one or more processors to perform a second classification of the set of unknown samples based on the results of the set of spectroscopic measurements and the set of local classification models. The one or more instructions, when executed by one or more processors, may cause the one or more processors to provide information identifying classifications of the set of unknown samples based on performing the second classification.
According to some possible implementations, a method may include receiving, by a device, information identifying results of a spectroscopic measurement of an unknown sample performed by a first spectrometer. The method may include performing, by the device, a first classification of the unknown sample based on the results of the spectroscopic measurement and a global classification model. The global classification model may be generated by utilizing a support vector machine (SVM) classifier technique and a set of spectroscopic measurements performed by a second spectrometer. The method may include generating, by the device, a local classification model based on the first classification. The local classification model may utilize the SVM classifier technique. The local classification model may include a subset of classes of a set of classes of the global classification model. The method may include performing by the device, a second classification of the unknown sample based on the results of the spectroscopic measurement and the local classification model. The method may include providing, by the device, information identifying a class, of the subset of classes, associated with the unknown sample based on performing the second classification.
The following detailed description of example implementations refers to the accompanying drawings. The same reference numbers in different drawings may identify the same or similar elements.
Raw material identification (RMID) is a technique utilized to identify components (e.g., ingredients) of a particular sample for identification, verification, or the like. For example, RMID may be utilized to verify that ingredients in a pharmaceutical compound correspond to a set of ingredients identified on a label. A spectrometer may be utilized to perform spectroscopy on a sample (e.g., the pharmaceutical compound) to determine components of the sample. The spectrometer may determine a set of measurements of the sample and may provide the set of measurements for classification. A chemometric classification technique (e.g., a classifier) may facilitate determination of the components of the sample based on the set of measurements of the sample. However, some chemometric classification techniques may be associated with poor transferability, insufficient granularity for performing large-scale classification, or the like, relative to other techniques. Implementations, described herein, may utilize a hierarchical support vector machine classifier to facilitate RMID. In this way, a control device of a spectrometer facilitates improved classification accuracy relative to other RMID techniques.
As further shown in
As shown in
With regard to
Control device 210 may include one or more devices capable of storing, processing, and/or routing information associated with RMID. For example, control device 210 may include a server, a computer, a wearable device, a cloud computing device, or the like that generates a model based on a classifier and a set of measurements of a training set, and utilizes the model to perform RMID based on a set of measurements of an unknown set. In some implementations, control device 210 may be associated with a particular spectrometer 220. In some implementations, control device 210 may be associated with multiple spectrometers 220. In some implementations, control device 210 may receive information from and/or transmit information to another device in environment 200, such as spectrometer 220.
Spectrometer 220 may include one or more devices capable of performing a spectroscopic measurement on a sample. For example, spectrometer 220 may include a spectrometer device that performs spectroscopy (e.g., vibrational spectroscopy, such as a near infrared (NIR) spectrometer, a mid-infrared spectroscopy (mid-IR), Raman spectroscopy, or the like). In some implementations, spectrometer 220 may be incorporated into a wearable device, such as a wearable spectrometer or the like. In some implementations, spectrometer 220 may receive information from and/or transmit information to another device in environment 200, such as control device 210.
Network 230 may include one or more wired and/or wireless networks. For example, network 230 may include a cellular network (e.g., a long-term evolution (LTE) network, a 3G network, a code division multiple access (CDMA) network, etc.), a public land mobile network (PLMN), a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), a telephone network (e.g., the Public Switched Telephone Network (PSTN)), a private network, an ad hoc network, an intranet, the Internet, a fiber optic-based network, a cloud computing network, or the like, and/or a combination of these or other types of networks.
The number and arrangement of devices and networks shown in
Bus 310 may include a component that permits communication among the components of device 300. Processor 320 is implemented in hardware, firmware, or a combination of hardware and software. Processor 320 may include a processor (e.g., a central processing unit (CPU), a graphics processing unit (GPU), an accelerated processing unit (APU), etc.), a microprocessor, and/or any processing component (e.g., a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), etc.) that interprets and/or executes instructions. In some implementations, processor 320 may include one or more processors that can be programmed to perform a function. Memory 330 may include a random access memory (RAM), a read only memory (ROM), and/or another type of dynamic or static storage device (e.g., a flash memory, a magnetic memory, an optical memory, etc.) that stores information and/or instructions for use by processor 320.
Storage component 340 may store information and/or software related to the operation and use of device 300. For example, storage component 340 may include a hard disk (e.g., a magnetic disk, an optical disk, a magneto-optic disk, a solid state disk, etc.), a compact disc (CD), a digital versatile disc (DVD), a floppy disk, a cartridge, a magnetic tape, and/or another type of computer-readable medium, along with a corresponding drive.
Input component 350 may include a component that permits device 300 to receive information, such as via user input (e.g., a touch screen display, a keyboard, a keypad, a mouse, a button, a switch, a microphone, etc.). Additionally, or alternatively, input component 350 may include a sensor for sensing information (e.g., a global positioning system (GPS) component, an accelerometer, a gyroscope, an actuator, etc.). Output component 360 may include a component that provides output information from device 300 (e.g., a display, a speaker, one or more light-emitting diodes (LEDs), etc.).
Communication interface 370 may include a transceiver-like component (e.g., a transceiver, a separate receiver and transmitter, etc.) that enables device 300 to communicate with other devices, such as via a wired connection, a wireless connection, or a combination of wired and wireless connections. Communication interface 370 may permit device 300 to receive information from another device and/or provide information to another device. For example, communication interface 370 may include an Ethernet interface, an optical interface, a coaxial interface, an infrared interface, a radio frequency (RF) interface, a universal serial bus (USB) interface, a Wi-Fi interface, a cellular network interface, or the like.
Device 300 may perform one or more processes described herein. Device 300 may perform these processes in response to processor 320 executing software instructions stored by a computer-readable medium, such as memory 330 and/or storage component 340. A computer-readable medium is defined herein as a non-transitory memory device. A memory device includes memory space within a single physical storage device or memory space spread across multiple physical storage devices.
Software instructions may be read into memory 330 and/or storage component 340 from another computer-readable medium or from another device via communication interface 370. When executed, software instructions stored in memory 330 and/or storage component 340 may cause processor 320 to perform one or more processes described herein. Additionally, or alternatively, hardwired circuitry may be used in place of or in combination with software instructions to perform one or more processes described herein. Thus, implementations described herein are not limited to any specific combination of hardware circuitry and software.
The number and arrangement of components shown in
As shown in
In some implementations, control device 210 may cause multiple spectrometers 220 to perform the set of spectroscopic measurements to account for one or more physical conditions. For example, control device 210 may cause a first spectrometer 220 and a second spectrometer 220 to perform a set of vibrational spectroscopic measurements using NIR spectroscopy. Additionally, or alternatively, control device 210 may cause the set of spectroscopic measurements to be performed at multiple times, in multiple locations, under multiple different laboratory conditions, or the like. In this way, control device 210 reduces a likelihood that a spectroscopic measurement is inaccurate as a result of a physical condition relative to causing the set of spectroscopic measurements to be performed by a single spectrometer 220.
As further shown in
In some implementations, control device 210 may receive the information identifying the results of the set of spectroscopic measurements from multiple spectrometers 220. For example, control device 210 may control for physical conditions, such as a difference between the multiple spectrometers 220, a potential difference in a lab condition, or the like, by receiving spectroscopic measurements performed by multiple spectrometers 220, performed at multiple different times, performed at multiple different locations, or the like.
As further shown in
SVM may refer to a supervised learning model that performs pattern recognition for classification. In some implementations, control device 210 may utilize a particular type of kernel function when generating the global classification model using the SVM technique. For example, control device 210 may utilize a radial basis function (RBF) (e.g., termed SVM-rbf) type of kernel function, a linear function (e.g., termed SVM-linear and termed hier-SVM-linear when utilized for a multi-stage classification technique) type of kernel function, a sigmoid function type of kernel function, a polynomial function type of kernel function, an exponential function type of kernel function, or the like. In some implementations, control device 210 may utilize a particular type of SVM, such as a probability value based SVM (e.g., classification based on determining a probability that a sample is a member of a class of a set of classes), a decision value based SVM (e.g., classification utilizing a decision function to vote for a class, of a set of classes, as being the class of which the sample is a member), or the like.
In some implementations, control device 210 may select the particular classifier that is to be utilized for generating the global classification model from a set of classification techniques. For example, control device 210 may generate multiple classification models corresponding to multiple classifiers and may test the multiple classification models, such as by determining a transferability of each model (e.g., an extent to which a classification model generated based on spectroscopic measurements performed on a first spectrometer 220 is accurate when applied to spectroscopic measurements performed on a second spectrometer 220), a large-scale classification accuracy (e.g., an accuracy with which a classification model can be utilized to concurrently classify a quantity of samples that satisfy a threshold), or the like. In this case, control device 210 may select an SVM classifier (e.g., hier-SVM-linear) based on determining that the SVM classifier is associated with superior transferability and/or large-scale classification accuracy relative to other classifiers.
In some implementations, control device 210 may generate the global classification model based on information identifying samples of the training set. For example, control device 210 may utilize the information identifying the types of compounds represented by samples of the training set to identify classes of spectra with types of compounds. In some implementations, control device 210 may train the global classification model when generating the global classification model. For example, control device 210 may cause the model to be trained using a portion of the set of spectroscopic measurements. Additionally, or alternatively, control device 210 may perform an assessment of the global classification model. For example, control device 210 may verify the global classification model (e.g., for predictive strength) utilizing another portion of the set of spectroscopic measurements. In some implementations, control device 210 may verify the global classification model using a multi-stage classification technique. For example, control device 210 may determine that the global classification model is accurate when utilized in association with one or more local classification models, as described herein with regard to
In some implementations, control device 210 may provide the global classification model to the other control devices 210 associated with the other spectrometers 220 after generating the global classification model. For example, a first control device 210 may generate the global classification model and may provide the global classification model to a second control device 210 for utilization. In this case, the second control device 210 may store the global classification model, and may utilize the global classification model in generating one or more local classification models and classifying one or more samples of an unknown set, as described herein with regard to
Although
As shown in
With regard to
As indicated above,
In this way, control device 210 facilitates generation of a global classification model based on a selected classification technique (e.g., selected based on model transferability, large-scale classification accuracy, or the like) and distribution of the global classification model for utilization by one or more other control devices 210 associated with one or more spectrometers 220. Moreover, control device 210 reduces costs and time requirements relative to generating the global classification model on each control device 210 that is to perform RMID.
As shown in
Additionally, or alternatively, control device 210 may cause a first spectrometer 220 to perform a first portion of the set of spectroscopic measurements on a first portion of the unknown set and may cause a second spectrometer 220 to perform a second portion of the set of spectroscopic measurements on a second portion of the unknown set. In this way, control device 210 may reduce a quantity of time to perform the set of spectroscopic measurements relative to causing all the spectroscopic measurements to be performed by a single spectrometer 220.
As further shown in
In some implementations, control device 210 may assign a particular sample of the unknown set to a particular class, of a set of classes of the global classification model, when performing the first classification. For example, control device 210 may determine that a particular spectrum associated with the particular sample corresponds to a class of compounds (e.g., cellulose compounds, lactose compounds, caffeine compounds, etc.) based on the global classification model, and may assign the particular sample to the particular class. In some implementations, control device 210 may assign the particular sample based on a confidence metric. For example, control device 210 may determine, based on the global classification model, a probability that the particular spectrum is associated with each class of the global classification model. In this case, control device 210 may assign the particular sample to the particular class based on a particular probability for the particular class exceeding other probabilities associated with other classes. In this way, control device 210 determines a type of compound that the sample is associated with, thereby identifying the sample.
Additionally, or alternatively, control device 210 may determine another confidence metric associated with the first classification. For example, when control device 210 assigns a particular sample to a particular class when performing the first classification, control device 210 may determine a difference between the probability that the particular sample is associated with the particular class (e.g., termed a maximum probability) and another probability that the particular sample is associated with a next most likely class (e.g., termed a second maximum probability). In this way, control device 210 determines a confidence associated with assigning a particular sample to a particular class rather than a next most likely class. When the maximum probability and the second maximum probability are both relatively high and relatively similar (e.g., the maximum probability is 48% and the second maximum probability is 47% rather than the maximum probability being 48% and the second maximum probability being 4%), control device 210 provides a better indication of assignment accuracy by providing the difference between the maximum probability and the second maximum probability. In other words, in the first case of the maximum probability being 48% and the second maximum probability being 47%, assignment accuracy to the most likely class is relatively lower than in the second case of the maximum probability being 48% and the second maximum probability being 4%, although the maximum probability is the same for both cases. Providing a metric of the difference between the maximum probability and the second maximum probability can distinguish the two cases.
As further shown in
In some implementations, an autoscaling pretreatment procedure may be performed. For example, to generate the local classification model, control device 210 may perform the autoscaling pretreatment procedure for the spectra associated with a subset of classes of the global classification model selected for the local classification model. In some implementations, the autoscaling pretreatment procedure may be performed for another classification, such as a first classification using the global classification model. In some implementations, another type of pretreatment procedure may be performed, such as a centering procedure, a transformation, or the like.
In some implementations, the subset of classes may include a threshold quantity of classes associated with the highest respective confidence metrics. For example, control device 210 may select ten classes of the global classification model based on the ten classes being associated with higher respective probabilities that the spectrum of the sample is associated therewith than with other classes of the global classification model, and may generate the local model based on the ten classes. In some implementations, control device 210 may select the subset of classes based on the subset of classes satisfying a threshold. For example, control device 210 may select each class that is associated with a probability satisfying the threshold. Additionally, or alternatively, control device 210 may select a threshold quantity of classes that each satisfy the threshold. For example, control device 210 may select up to ten classes provided that the ten classes each satisfy a minimum threshold probability. Additionally, or alternatively, control device 210 may select another quantity of classes (e.g., two classes, five classes, twenty classes, or the like).
In some implementations, control device 210 may generate multiple local classification models. For example, control device 210 may generate a first local classification model for a first spectrum of a first sample of the unknown set and a second local classification model for a second spectrum of a second sample of the unknown set. In this way, control device 210 may facilitate concurrent classification of multiple unknown samples by concurrently operating on the multiple unknown samples using the multiple local classification models.
In some implementations, control device 210 may generate a quantification model based on performing the first classification using the global classification model. For example, when control device 210 is being utilized to determine a concentration of an substance in an unknown sample, and multiple unknown samples are associated with different quantification models for determining the concentration of the substance, control device 210 may utilize the first classification to select a class for the unknown sample, and may select a local quantification model associated with the class of the unknown sample. In this way, control device 210 utilizes hierarchical classification and quantification models to improve raw material identification and/or quantification thereof.
As further shown in
Additionally, or alternatively, control device 210 may determine another confidence metric associated with the particular spectrum and the local classification model. For example, when control device 210 assigns a particular sample to a particular class when performing the second classification, control device 210 may determine a difference between the probability that the particular sample is associated with the particular class (e.g., a maximum probability) and another probability that the particular sample is associated with a next most likely class (e.g., a second maximum probability). In this way, control device 210 determines a confidence associated with assigning a particular sample to a particular class rather than a next most likely class when performing the second classification based on the local classification model.
In some implementations, control device 210 may perform multiple second classifications. For example, control device 210 may perform a second classification for a first spectrum associated with a first sample based on a first local classification model, and may perform another second classification for a second spectrum associated with a second sample based on a second local classification model. In this way, control device 210 facilitates concurrent classification of multiple samples of the unknown set. In some implementations, control device 210 may omit a portion of samples in the unknown set from the second classification. For example, when control device 210 determines a confidence metric for assigning a particular sample to a particular class based on the global classification model, and the confidence metric satisfies a threshold, control device 210 may omit the particular sample from second classification. In this way, control device 210 may reduce resource utilization relative to performing second classification for all samples of the unknown set.
In some implementations, control device 210 may perform a quantification after performing the first classification (and/or after performing the second classification). For example, control device 210 may select a local quantification model based on performing one or more classifications, and may perform a quantification relating to the particular sample based selecting the local quantification model. As an example, when performing raw material identification to determine a concentration of a particular chemical in a plant material, where the plant material is associated with multiple quantification models (e.g., relating to whether the plant is grown indoors or outdoors, in winter or in summer, or the like), control device 210 may perform a set of classifications to identify a particular quantification model. In this case, the control device 210 may determine that the plant is grown indoors in winter based on performing a set of classifications, and may select a quantification model relating to the plant being grown indoors in winter for determining the concentration of the particular chemical.
As further shown in
In some implementations, control device 210 provides information identifying a class for multiple samples. For example, control device 210 may provide information indicating that a first sample of the unknown set is associated with a first class and a second sample of the unknown set is associated with a second class. In this way, control device 210 provides concurrent identification of multiple samples.
In some implementations, control device 210 may provide a quantification based on performing a set of classifications and a quantification. For example, based on identifying a local quantification model, control device 210 may provide information identifying a concentration of a substance in an unknown sample for which a set of classifications were utilized to select a quantification model for determining the concentration of the substance.
In some implementations, control device 210 may provide an output relating to a class of a sample. For example, control device 210 may provide a binary output (e.g., a yes/no output) relating to a classification of an unknown sample for which a first set of classes correspond to a first binary output (e.g., yes) and a second set of classes correspond to a second binary output (e.g., no) based on classifying the unknown sample into one of the first set of classes or the second set of classes. As an example, for a first set of classes (e.g., Kosher Meat, which may include Kosher Beef Strip Steak, Kosher Beef Ribs, Kosher Chicken Thighs, Kosher Chicken Breasts, etc.) and a second set of classes (e.g., Non-Kosher Meat, which may include Non-Kosher Beef Ribs, Non-Kosher Pork, Non-Kosher Chicken Wings, etc.), control device 210 may provide an output of Kosher or Non-Kosher based on classifying an unknown sample into a particular class of the first set of classes or the second set of classes. As another example, control device 210 may utilize a set of classes relating to food being classified as Halal or non-Halal, and may provide an output indicating whether a sample corresponds to a Halal classification or a non-Halal classification (i.e., whether an animal from which the sample was derived was slaughtered in a Halal manner, regardless of whether other criteria for Halal classification are met, such as religious certification, prayer during slaughter, or the like). In this way, control device 210 may provide a classification with a greater likelihood of accuracy relative to providing an identification of a particular class when the identification of the particular class is not important to the user of control device 210 (e.g., a person attempting to determine whether an item of meat is Kosher, rather than attempting to determine the type of meat).
Although
As shown in
As further shown in
With regard to
As indicated above,
With regard to
In this case, utilizing a local classification model may improve accuracy, as environment conditions, plant genetics, or the like may result in different quantification models being associated with different classes of plants. For example, a cannabis plant grown indoors may be associated with a first regression model to determine THC content and a cannabis plant grown outdoors may be associated with a second regression model to determine THC content. The grower may utilize spectrometer 220 and control device 210 to determine a class of the cannabis plant, select a quantification model for quantifying a characteristic of the cannabis plant (e.g., THC content), and may utilize the quantification model to quantify the characteristic, as described herein.
As shown in
As shown in
Additionally, or alternatively, control device 210 may obtain a classification model for a dry plant class, such as a strain classification model, or a quantification model for a dry plant class, such as a moisture percentage, a THC acid (THCA) percentage, a THC percentage, or a relative cannabinoid profile (e.g., a relative percentage of cannabidiol (CBD), CBD acid (CBDA), cannabichromene (CBC), cannabigerol (CBG), cannabinol (CBN), or the like) quantification model. Additionally, or alternatively, control device 210 may obtain a classification model for a concentrate class, such as an extraction method or winterization classification model, or a quantification model for a concentrate, such as a moisture percentage, a THC percentage, or a cannabinoid profile quantification model. Additionally, or alternatively, control device 210 may obtain a quantification model for a tincture, such as a moisture percentage, a THC percentage, a cannabinoid profile, a cannabinoid ratio, or an oil suspension percentage quantification model.
Returning to
As indicated above,
In this way, control device 210 utilizes a global classification model and a local classification model generated based on the global classification model to perform RMID.
The foregoing disclosure provides illustration and description, but is not intended to be exhaustive or to limit the implementations to the precise form disclosed. Modifications and variations are possible in light of the above disclosure or may be acquired from practice of the implementations.
Some implementations are described herein in connection with thresholds. As used herein, satisfying a threshold may refer to a value being greater than the threshold, more than the threshold, higher than the threshold, greater than or equal to the threshold, less than the threshold, fewer than the threshold, lower than the threshold, less than or equal to the threshold, equal to the threshold, etc.
It will be apparent that systems and/or methods, described herein, may be implemented in different forms of hardware, firmware, or a combination of hardware and software. The actual specialized control hardware or software code used to implement these systems and/or methods is not limiting of the implementations. Thus, the operation and behavior of the systems and/or methods were described herein without reference to specific software code—it being understood that software and hardware can be designed to implement the systems and/or methods based on the description herein.
Even though particular combinations of features are recited in the claims and/or disclosed in the specification, these combinations are not intended to limit the disclosure of possible implementations. In fact, many of these features may be combined in ways not specifically recited in the claims and/or disclosed in the specification. Although each dependent claim listed below may directly depend on only one claim, the disclosure of possible implementations includes each dependent claim in combination with every other claim in the claim set.
No element, act, or instruction used herein should be construed as critical or essential unless explicitly described as such. Also, as used herein, the articles “a” and “an” are intended to include one or more items, and may be used interchangeably with “one or more.” Furthermore, as used herein, the term “set” is intended to include one or more items (e.g., related items, unrelated items, a combination of related items and unrelated items, etc.), and may be used interchangeably with “one or more.” Where only one item is intended, the term “one” or similar language is used. Also, as used herein, the terms “has,” “have,” “having,” or the like are intended to be open-ended terms. Further, the phrase “based on” is intended to mean “based, at least in part, on” unless explicitly stated otherwise.
Claims
1. A device, comprising:
- a memory; and
- one or more processors configured to: receive a spectroscopic measurement for a cannabis sample; perform a qualitative classification of the cannabis sample; perform, based on the spectroscopic measurement, a quantitative analysis of the cannabis sample by utilizing a quantification model related to the qualitative classification; and provide one or more results of the quantitative analysis of the cannabis sample.
2. The device of claim 1, wherein the quantification model quantifies tetrahydrocannabinol (THC) content present at a threshold level.
3. The device of claim 1, wherein the one or more processors are further configured to:
- select, based on the qualitative classification, the quantification model from a first regression model and a second regression model.
4. The device of claim 3, wherein the first regression model is for a first type of cannabis plant, and
- wherein the second regression model is for a second type of cannabis plant.
5. The device of claim 4,
- wherein the first type of cannabis plant is a cannabis plant grown indoors, and
- wherein the second type of cannabis plant is a cannabis plant grown outdoors.
6. The device of claim 1, wherein the one or more processors are further configured to:
- obtain, from a data structure, stored information identifying: a set of potential classes for the cannabis sample, and a set of models that include the quantification model.
7. The device of claim 1, wherein the qualitative classification is performed using one or more classification models that include one or more of:
- a classification model for a dry plant class, or
- a classification model for a concentrate class.
8. The device of claim 1, wherein the quantification model comprises a quantification model for a tincture.
9. The device of claim 1, wherein the qualitative classification is performed using a local classification model that is based on a global classification model.
10. A method, comprising:
- receiving, by a device, a spectroscopic measurement for a cannabis sample;
- performing, by the device, a qualitative classification of the cannabis sample;
- performing, by the device, a quantitative analysis of the cannabis sample based on the spectroscopic measurement and the qualitative classification; and
- providing, by the device, one or more results of the quantitative analysis of the cannabis sample.
11. The method of claim 10, further comprising:
- selecting, based on the qualitative classification, a quantification model from a first regression model and a second regression model, wherein the quantitative analysis is performed using the quantification model.
12. The method of claim 11, wherein the first regression model is for a first type of cannabis plant, and
- wherein the second regression model is for a second type of cannabis plant.
13. The method of claim 12,
- wherein the first type of cannabis plant is a cannabis plant grown indoors, and
- wherein the second type of cannabis plant is a cannabis plant grown outdoors.
14. The method of claim 10, further comprising:
- obtaining, from a data structure, stored information identifying: a set of potential classes for the cannabis sample, and a set of models that include a quantification model, wherein the quantitative analysis is performed using the quantification model.
15. The method of claim 10, wherein the qualitative classification is performed using one or more classification models that include one or more of:
- a classification model for a dry plant class, or
- a classification model for a concentrate class.
16. The method of claim 10,
- wherein the quantitative analysis is performed using a quantification model that is selected based on the qualitative classification, and
- wherein the quantification model comprises a quantification model for a tincture.
17. The method of claim 10, wherein the qualitative classification is performed using a local classification model that is based on a global classification model.
18. A non-transitory computer-readable medium storing a set of instructions, the set of instructions comprising:
- one or more instructions that, when executed by one or more processors of a device, cause the device to: receive a spectroscopic measurement for a cannabis sample; perform, based on the spectroscopic measurement, a quantitative analysis of the cannabis sample by utilizing a quantification model; and provide one or more results of the quantitative analysis of the cannabis sample.
19. The non-transitory computer-readable medium of claim 18, wherein the quantification model quantifies tetrahydrocannabinol (THC) content present at a threshold level.
20. The non-transitory computer-readable medium of claim 18, wherein the one or more instructions further cause the device to:
- select the quantification model from a first regression model and a second regression model, wherein the first regression model is for a cannabis plant grown indoors, and wherein the second regression model is for a cannabis plant grown outdoors.
Type: Application
Filed: May 22, 2023
Publication Date: Sep 14, 2023
Inventors: Changmeng HSIUNG (Redwood City, CA), Christopher G. PEDERSON (Santa Rosa, CA), Peng ZOU (Ridgefield, CT), Lan SUN (Santa Rosa, CA)
Application Number: 18/321,140