Selectivity computation methods for gas sensors using statistical distance
By calculating statistical distances between empirical distributions of gas sensor responses, the system addresses the challenge of gas classification accuracy in sensors, enhancing their selectivity and performance.
Patent Information
- Application Number
- US19/214458
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Filing Date
- 2025-05-21
- Publication Date
- 2026-11-26
AI Technical Summary
Existing gas sensors face challenges in accurately classifying different gases due to lack of effective methods for determining selectivity, which is crucial for evaluating their classification performance.
A system and method using a processor to collect sensor responses, extract features, and calculate statistical distances, such as Wasserstein distance, to determine the selectivity of a gas sensor by comparing empirical distributions of different gases, allowing for evaluation and potential adjustment of sensor design to meet selectivity thresholds.
Enhances the ability of gas sensors to accurately classify gases by providing a quantitative measure of selectivity, enabling improved performance and design optimization.
Smart Images

Figure US20260376267A1-D00000_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to apparatuses and methods for computing a selectivity for a gas sensor using a statistical distance.BACKGROUND
[0002] Gas sensors may be designed and manufactured to detect the existence of a specific gas or classify gases among a set of gases. There are different types of gas sensors, e.g., electrochemical sensors are based on change in electrical properties caused by gas interacting with a chemical layer, whereas electrophysical sensors are based on change in electrical properties caused by gases adsorbing on its surface. A selectivity of a gas sensor for gas classification may refer to a sensor's ability to accurately classify each gas among a set of gases. This characteristic is useful for evaluating a sensor's classification performance.BRIEF DESCRIPTION
[0003] According to one aspect, a system for computing a gas selectivity for a gas sensor may include a memory storing one or more instructions, and a processor executing one or more of the instructions stored on the memory to perform one or more acts, actions, and / or steps. For example, the processor may perform collecting a plurality of sensor responses of a gas sensor for each of a set of gases from the gas sensor during a respective flow of each gas of the set of gases, extracting features from the plurality of sensor responses to obtain empirical distributions of each gas, and calculating a statistical distance to determine the selectivity for a target gas based on an empirical distribution of the target gas and each empirical distribution of gases other than the target gas, among the set of gases.
[0004] The gas sensor may include a resistor, and the sensor responses may be changes of resistance. Each of the extracted features may be determined based on a peak value of the resistance and a reference resistance in response to a reference gas. The processor may perform calculating respective statistical distances by setting each of the set of gases as the target gas, and calculating an average statistical distance to determine an overall selectivity based on an average of a sum of the respective statistical distances for all pairs of gases of the set. The processor may perform evaluating a performance of the gas sensor based on the selectivity for the target gas or the overall selectivity. The processor may perform a selectivity for the target gas may be defined as a squared Wasserstein distance between the empirical distribution of the target gas and the averaged sum of empirical distributions of all other gases in the set of gases. The selectivity for the target gas may be defined as a mean Wasserstein distance between the empirical distribution of the target gas and empirical distributions of the gases other than the target gas, among the set of gases. The selectivity for the target gas may be defined as a mean Wasserstein distance between the empirical distribution of the target gas and empirical distributions of the gases other than the target gas, among the set of gases. The statistical distance may be one of Wasserstein distance, Kullback-Liebler divergence, f-divergence, Renyi divergence, or Euclidean distance.
[0005] According to one aspect, a method for computing a gas selectivity for a gas sensor may include collecting a plurality of sensor responses of a gas sensor for each of a set of gases from the gas sensor during a respective flow of each gas of the set of gases, extracting features from the plurality of sensor responses to obtain empirical distributions of each gas, and calculating a statistical distance to determine a selectivity for a target gas based on an empirical distribution of the target gas and each empirical distribution of gases other than the target gas, among the set of gases.
[0006] The sensor responses may include resistance changes, and each of the extracted features may be determined based on a peak value of a resistance change and a reference value of a reference gas. The method may include calculating respective statistical distances by setting each of the set of gases as the target gas, and calculating an average statistical distance to determine an overall selectivity based on an average of a sum of the respective statistical distances for all pairs of gases of the set. The method may include evaluating a performance of the gas sensor based on the selectivity for the target gas or the overall selectivity. The selectivity for the target gas may be defined as a squared Wasserstein distance between the empirical distribution of the target gas and an averaged empirical distribution of all other gases in the set of gases. The selectivity for the target gas may be defined as a mean Wasserstein distance between the empirical distribution of the target gas and empirical distributions of the gases other than the target gas, among the set of gases. The statistical distance may be one of Wasserstein distance, Kullback-Liebler divergence, f-divergence, Renyi divergence, or Euclidean distance.
[0007] According to one aspect, a non-transitory computer readable storage medium storing instructions that when executed by a computer having a processor to perform one or more acts, actions, and / or steps. For example, the processor may perform a method for computing a gas selectivity for a gas sensor. The method includes collecting a plurality of sensor responses of a gas sensor for each of a set of gases from the gas sensor during a respective flow of each gas of the set of gases, extracting features from the plurality of sensor responses to obtain empirical distributions of each gas, and calculating a statistical distance to determine a selectivity for a target gas based on an empirical distribution of the target gas and each empirical distribution of gases other than the target gas, among the set of gases.
[0008] The gas sensor may include a resistor, and each of the extracted features may be determined based on a peak value of the resistance and a reference resistance in response to a reference gas. The method may include calculating respective statistical distances by setting each of the set of gases as the target gas, and calculating an average statistical distance to determine an overall selectivity based on an average of a sum of the respective statistical distances for all pairs of gases of the set. The method includes evaluating a performance of the gas sensor based on the selectivity for the target gas or the overall selectivity. The statistical distance is one of Wasserstein distance, Kullback-Liebler divergence, f-divergence, Renyi divergence, or Euclidean distance.BRIEF DESCRIPTION OF THE DRAWINGS
[0009] FIG. 1 is an exemplary block diagram illustrating a system for computing a gas selectivity for a gas sensor, according to one aspect.
[0010] FIG. 2 is an exemplary flow diagram of a computer-implemented method 200 for computing a gas selectivity for a gas sensor, according to one aspect.
[0011] FIG. 3 is an illustration of an example computer-readable medium or computer-readable device including processor-executable instructions configured to embody one or more of the provisions set forth herein, according to one aspect.
[0012] FIG. 4 is an illustration of an example computing environment where one or more of the provisions set forth herein are implemented, according to one aspect.DETAILED DESCRIPTION
[0013] The following includes definitions of selected terms employed herein. The definitions include various examples and / or forms of components that fall within the scope of a term and that may be used for implementation. The examples are not intended to be limiting. Further, one having ordinary skill in the art will appreciate that the components discussed herein may be combined, omitted, or organized with other components or organized into different architectures.
[0014] A “processor”, as used herein, processes signals and performs general computing and arithmetic functions. Signals processed by the processor may include digital signals, data signals, computer instructions, processor instructions, messages, a bit, a bit stream, or other means that may be received, transmitted, and / or detected. Generally, the processor may be a variety of various processors including multiple single and multicore processors and co-processors and other multiple single and multicore processor and co-processor architectures. The processor may include various modules to execute various functions.
[0015] A “memory”, as used herein, may include volatile memory and / or non-volatile memory. Non-volatile memory may include, for example, ROM (read only memory), PROM (programmable read only memory), EPROM (erasable PROM), and EEPROM (electrically erasable PROM). Volatile memory may include, for example, RAM (random access memory), synchronous RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DERS′RE), and direct RAM bus RAM (DRAME). The memory may store an operating system that controls or allocates resources of a computing device.
[0016] A “disk” or “drive”, as used herein, may be a magnetic disk drive, a solid-state disk drive, a floppy disk drive, a tape drive, a Zip drive, a flash memory card, and / or a memory stick. Furthermore, the disk may be a CD-ROM (compact disk ROM), a CD recordable drive (CD-R drive), a CD rewritable drive (CD-RW drive), and / or a digital video ROM drive (DVD-ROM). The disk may store an operating system that controls or allocates resources of a computing device.
[0017] A “bus”, as used herein, refers to an interconnected architecture that is operably connected to other computer components inside a computer or between computers. The bus may transfer data between the computer components. The bus may be a memory bus, a memory controller, a peripheral bus, an external bus, a crossbar switch, and / or a local bus, among others. The bus may also be a vehicle bus that interconnects components inside a vehicle using protocols such as Media Oriented Systems Transport (MOST), Controller Area network (CAN), Local Interconnect Network (LIN), among others.
[0018] An “operable connection”, or a connection by which entities are “operably connected”, is one in which signals, physical communications, and / or logical communications may be sent and / or received. An operable connection may include a wireless interface, a physical interface, a data interface, and / or an electrical interface.
[0019] A “computer communication”, as used herein, refers to a communication between two or more computing devices (e.g., computer, personal digital assistant, cellular telephone, network device) and may be, for example, a network transfer, a file transfer, an applet transfer, an email, a hypertext transfer protocol (HTTP) transfer, and so on. A computer communication may occur across, for example, a wireless system (e.g., IEEE 802.11), an Ethernet system (e.g., IEEE 802.3), a token ring system (e.g., IEEE 802.5), a local area network (LAN), a wide area network (WAN), a point-to-point system, a circuit switching system, a packet switching system, among others.
[0020] The aspects discussed herein may be described and implemented in the context of non-transitory computer-readable storage medium storing computer-executable instructions. Non-transitory computer-readable storage media include computer storage media and communication media. For example, flash memory drives, digital versatile discs (DVDs), compact discs (CDs), floppy disks, and tape cassettes. Non-transitory computer-readable storage media may include volatile and non-volatile, removable, and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, modules, or other data.
[0021] FIG. 1 is an exemplary block diagram illustrating a system for computing a gas selectivity for a gas sensor, according to one aspect. The system 100 may include a processor 102, a memory 104, a storage drive 106, a gas sensor 110a and a gas sensor 110b, input / output ports 120, and a bus 130.
[0022] The gas sensor 110a or 110b may be designed and manufactured to detect the existence of a specific gas among a set of gases or classify the set of gases from one another. In particular, the gas sensor 110a or 110b may be an electrochemical sensor that detects gases based on changes in electrical properties caused by gas interacting with a chemical layer. Alternatively, the gas sensor 110a or 110b may be an electrophysical sensor that detects gases based on changes in electrical properties caused by gases adsorbing on its surface.
[0023] According to one aspect, the gas sensor 110a may be located in the system 100, and output sensor responses when detecting gas. According to another aspect, the gas sensor 110b may be located outside the system 100, and detect gas and transmit sensor responses toward the gas to the system 100 via input / output ports 120. The gas sensors 110a, 110b may be an electrophysical sensor with a resistor and measure resistance changes caused by gases adsorbing on its surface.
[0024] The processor 102 may collect a plurality of sensor responses for each of a set of gases from the gas sensor 110a or 110b during a respective flow of each gas of the set of gases, extracting features from the plurality of sensor responses to obtain empirical distributions of each gas, and calculating a statistical distance to determine a selectivity for a target gas based on an empirical distribution of the target gas and each empirical distribution of gases other than the target gas, among the set of gases.
[0025] The processor 102 may calculate respective statistical distances by setting each of the set of gases as the target gas. Also, the processor 102 may calculate an average statistical distance to determine an overall selectivity based on an average of a sum of the respective statistical distances for all pairs of gases of the set. Then, the processor 102 may evaluate a performance of the gas sensor 110a or 110b based on the selectivity for the target gas or the overall selectivity.
[0026] The statistical distance may be one of Wasserstein distance, Kullback-Liebler divergence, f-divergence, Renyi divergence, or Euclidean distance. The selectivity for the target gas may be defined as a squared Wasserstein distance between the empirical distribution of the target gas and the averaged empirical distribution of all other gases in the set of gases. Alternatively, the selectivity for the target gas may be defined as a mean Wasserstein distance between the empirical distribution of the target gas and empirical distributions of the gases other than the target gas, among the set of gases.
[0027] Respective components of the system 100 for computing a gas selectivity for the gas sensor 110a or 110b may be operably coupled or connected, or in computer communication with one another and may be operably coupled or in computer communication via the bus 130 or other communication pathway. The input / output ports 120 may be connected to keyboards, touch screens and / or any other devices to receive user inputs, such as constraints or conditions. The input / output ports 120 may be connected to a screen or a display of the system 100 to display the contours of the surface area and volume.
[0028] FIG. 2 is an exemplary flow diagram of a computer-implemented method 200 for computing a gas selectivity for a gas sensor, according to one aspect. In operation 210, the gas sensor 110a or 110b may be located in a space, through which each of the set of gases flows one by one at a time. The processor 102 may perform collecting a plurality of sensor responses to each gas from the gas sensor 110a or 110b during a respective flow of each of gases in the gas set G including a plurality of gases. According to one aspect, the sensor responses may be resistance responses R.
[0029] In operation 220, for each target gas i in a gas set, the processor 102 may perform extracting features from the plurality of sensor responses to obtain empirical distributions of each gas of the gas set. Each feature may be computed as a ratio of a scalar feature of a sensor response toward a target gas to that toward a reference gas or a default gas. The gas sensor 110a or 110b includes a resistor, and the sensor responses are resistance changes. Each of the extracted features may be determined based on a peak value of the resistance and a reference resistance to a reference gas. One-dimensional features may be extracted from the plurality of sensor responses as (Rmax−R0) / R0 for each gas, where Rmax may be a peak value of the measured resistances during the gas flow, and R0 may be a measured resistance response in a reference gas, such as nitrogen.
[0030] In operation 230, the processor 102 may perform calculating a statistical distance to determine a selectivity for a target gas based on an empirical distribution of the target gas and each empirical distribution of gases other than the target gas, among the set of gas G.
[0031] As an example of the statistical distance, the Wasserstein distance may be used to determine a distance between empirical distributions of different gases. Wasserstein distance between empirical distributions P and Q may be defined as follows:Wd(P,Q)=minγ∈∏(P,Q) (∫c(x,y)dγ(x,y))1 / d,where:
[0033] d: integer order of Wasserstein distance, e.g., d=1, 2, . . . ,
[0034] Π(P, Q): set of joint distributions with marginals P and Q,
[0035] c(x, y): cost function for transporting a unit of mass from x to y.
[0036] Here, Wd(P, Q) may measure the minimum amount of cost needed to transform from distribution P to distribution Q, hence, may reflect similarity between P and Q, and may be efficiently computed in many cases, and may possess good math properties.
[0037] The Wasserstein distance Wij may be computed between the empirical distributions (Pi, Pj) of features of resistance responses of a pair of gases (i, j) in a gas set G. When the features are all one-dimensional ones, if Pi and Pj contain m and n elements, respectively, then Wij with order d=1 may be computed as:Wij=1c(m,n)∑ k=1 c(m,n)<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>P~i(k)-P~j(k)<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>,where c (m, n) may be the least common multiple of m and n, {tilde over (P)}i may be obtained by first replicating each element in Pi to c(m, n) / m copies, then sorting the resultant expanded distribution. {tilde over (P)}j may be obtained by first replicating each element in Pj to c(m, n) / n copies, then sorting the resultant expanded distribution.
[0039] According to one aspect, the gas selectivity may be defined via the mean Wasserstein distance. In this case, Wij may be used to denote the Wasserstein distance between empirical distributions (Pi, Pj) of certain features of sensor responses to all pairs of gases (i, j) in the gas set G.
[0040] The selectivity value of a target gas i∈G may be defined as:1<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>G<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>-1∑ j∈G,j≠iW ij,which may be the mean Wasserstein distance between the empirical distribution Pi of target gas i and empirical distributions of all the other gases in the gas set G.In another aspect, the selectivity for the target gas for the gas sensor 110a or 110b may be defined via squared central Wasserstein distance. In this case, the selectivity of a target gas i∈G may be defined as:W2(Pi,1<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>G<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>-1∑ j∈G,j≠iPj),which may be the squared Wasserstein distance between the empirical distribution Pi of gas i and the averaged sum of empirical distributions of all other gases in the gas set G.In operation 240, the processor 102 may perform calculating an overall selectivity for all pairs of gases of the gas set based on an average of a sum of the respective statistical distances between all pairs of different gases of the gas set.
[0044] When the gas selectivity may be defined via the mean Wasserstein distance, the overall selectivity of all gases in G may be defined as:1<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>G<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>(<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>G<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>-1)∑ i∈G∑ j∈G,j≠iW ij,which may be an average of a sum of means Wasserstein distance between empirical distributions of the features of sensor responses to all pairs of different gases in a gas set G. The overall selectivity may be an averaged sum of respective selectivity values of each of the set of gases, which may be calculated by setting each of the set of gases as the target gas.More generally,1<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>G<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>(<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>G<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>-1)∑ i∈G∑ j∈G,j≠iD ijfor any statistical distance D.When the selectivity may be defined via squared central Wasserstein distance, the overall selectivity of all gases in the gas set G may be defined as:1<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>G<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>∑ i∈GW2(Pi,1<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>G<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>-1∑ j∈G,j≠iPj),which may be an average of a sum of the squared Wasserstein distances between the empirical distribution each gas i of the gas set and the averaged empirical distribution of all other gases in the gas set G.Additionally,1<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>G<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>∑ i∈Gf(D(Pi,1<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>G<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>-1∑ j∈G,j≠iPj))for general statistical distance D and certain functions ƒ (e.g., the quadratic function).Instead of using the Wasserstein distance, other statistical divergences between two distributions may be used to define the selectivity of the gas sensor 110a or 110b, such as Kullback-Liebler divergence, f-divergence, Renyi divergence, Euclidean distance, etc.In operation 250, the processor 102 may evaluate a performance of the gas sensor 110a or 110b based on the selectivity for the target gas or the overall selectivity of all gases in the gas set. If the selectivity for the target gas or the overall selectivity is lower than a respective threshold requirement, the design of the gas sensor 110a or 110b may be adjusted. As an example, the dimensions, shape, and / or form of the resistor in the gas sensor 110a or 110b may be modified until the modified gas sensor exhibits a selectivity for a target gas or an overall selectivity higher than the respective threshold requirement.FIG. 3 illustrates a system 300 including a computing device 312 configured to implement one aspect provided herein. In one configuration, the computing device 312 includes a processing unit 316 and memory 318. Depending on the exact configuration and type of computing device, memory 318 may be volatile, such as RAM, non-volatile, such as ROM, flash memory, etc., or a combination of the two. This configuration is illustrated in FIG. 3 by dashed line 314.In other aspects, the computing device 312 includes additional features or functionality. For example, the computing device 312 may include additional storage such as removable storage or non-removable storage, including, but not limited to, magnetic storage, optical storage, etc. Such additional storage is illustrated in FIG. 3 by storage 320. According to one aspect, computer readable instructions to implement one aspect provided herein are in storage 320. Storage 320 may store other computer readable instructions to implement an operating system, an application program, etc. Computer readable instructions may be loaded in memory 318 for execution by the processing unit 316, for example.
[0052] The term “computer readable media” as used herein includes computer storage media. Computer storage media includes volatile and nonvolatile, removable, and non-removable media implemented in any method or technology for storage of information such as computer readable instructions or other data. Memory 318 and storage 320 are examples of computer storage media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVDs) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which may be used to store the desired information and which may be accessed by the computing device 312. Any such computer storage media is part of the computing device 312.
[0053] The term “computer readable media” includes communication media. Communication media typically embodies computer readable instructions or other data in a “modulated data signal” such as a carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” includes a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal.
[0054] The computing device 312 includes input device(s) 324 such as keyboard, mouse, pen, voice input device, touch input device, infrared cameras, video input devices, or any other input device. Output device(s) 322 such as one or more displays, speakers, printers, or any other output device may be included with the computing device 312. Input device(s) 324 and output device(s) 322 may be connected to the computing device 312 via a wired connection, wireless connection, or any combination thereof. According to one aspect, an input device or an output device from another computing device may be used as input device(s) 324 or output device(s) 322 for the computing device 312. The computing device 312 may include communication connection(s) 326 to facilitate communications with one or more other devices 330 and the gas sensor 110b, such as through network 328, for example.
[0055] Still another aspect involves a computer-readable medium including processor-executable instructions configured to implement one aspect of the techniques presented herein. An aspect of a computer-readable medium or a computer-readable device devised in these ways is illustrated in FIG. 4, wherein an implementation 400 includes a computer-readable medium 402, such as a CD-R, DVD-R, flash drive, a platter of a hard disk drive, etc., on which is encoded computer-readable data 404. This encoded computer-readable data 404, such as binary data including a plurality of zero's and one's as shown in 404, in turn includes a set of processor-executable computer instructions 406 configured to operate according to one or more of the principles set forth herein. In this implementation 400, the processor-executable computer instructions 406 may be configured to perform a method 408, such as processes conducted by the processor 102, including the computer-implemented method 200 of FIG. 2. In another aspect, the processor-executable computer instructions 406 may be configured to implement a system, such as the system 100 of FIG. 1. Many such computer-readable media may be devised by those of ordinary skill in the art that are configured to operate in accordance with the techniques presented herein.
[0056] As used in this application, the terms “component”, “module,”“system”, “interface”, and the like are generally intended to refer to a computer-related entity, either hardware, a combination of hardware and software, software, or software in execution. For example, a component may be, but is not limited to being, a process running on a processor, a processing unit, an object, an executable, a thread of execution, a program, or a computer. By way of illustration, both an application running on a controller and the controller may be a component. One or more components residing within a process or thread of execution and a component may be localized on one computer or distributed between two or more computers.
[0057] Further, the claimed subject matter is implemented as a method, apparatus, or article of manufacture using standard programming or engineering techniques to produce software, firmware, hardware, or any combination thereof to control a computer to implement the disclosed subject matter. The term “article of manufacture” as used herein is intended to encompass a computer program accessible from any computer-readable device, carrier, or media. Of course, many modifications may be made to this configuration without departing from the scope or spirit of the claimed subject matter.
[0058] Although the subject matter has been described in language specific to structural features or methodological acts, it is to be understood that the subject matter of the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example aspects.
[0059] Various operations of aspects are provided herein. The order in which one or more or all the operations are described should not be construed as to imply that these operations are necessarily order dependent. Alternative ordering will be appreciated based on this description. Further, not all operations may necessarily be present in each aspect provided herein.
[0060] As used in this application, “or” is intended to mean an inclusive “or” rather than an exclusive “or”. Further, an inclusive “or” may include any combination thereof (e.g., A, B, or any combination thereof). In addition, “a” and “an” as used in this application are generally construed to mean “one or more” unless specified otherwise or clear from context to be directed to a singular form. Additionally, at least one of A and B and / or the like generally means A or B or both A and B. Further, to the extent that “includes”, “having”, “has”, “with”, or variants thereof are used in either the detailed description or the claims, such terms are intended to be inclusive in a manner similar to the term “comprising”.
[0061] Further, unless specified otherwise, “first”, “second”, or the like are not intended to imply a temporal aspect, a spatial aspect, an ordering, etc. Rather, such terms are merely used as identifiers, names, etc. for features, elements, items, etc. For example, a first channel and a second channel generally correspond to channel A and channel B or two different or two identical channels or the same channel. Additionally, “comprising”, “comprises”, “including”, “includes”, or the like generally means comprising or including, but not limited to.
[0062] It will be appreciated that various of the above-disclosed and other features and functions, or alternatives or varieties thereof, may be desirably combined into many other different systems or applications. Also, that various presently unforeseen or unanticipated alternatives, modifications, variations, or improvements therein may be subsequently made by those skilled in the art which are also intended to be encompassed by the following claims.
Claims
1. A system for computing a gas selectivity for a gas sensor, comprising:a memory storing one or more instructions; anda processor executing one or more of the instructions stored on the memory to perform:collecting a plurality of sensor responses of a gas sensor for each of a set of gases from the gas sensor during a respective flow of each gas of the set of gases;extracting features from the plurality of sensor responses to obtain empirical distributions of each gas; andcalculating a statistical distance to determine a selectivity for a target gas based on an empirical distribution of the target gas and each empirical distribution of gases other than the target gas, among the set of gases.
2. The system of claim 1, whereinthe gas sensor includes a resistor, andthe sensor responses are changes of resistance.
3. The system of claim 2, whereineach of the extracted features is determined based on a peak value of the resistance and a reference resistance in response to a reference gas.
4. The system of claim 1, wherein the processor executes the one or more of the instructions stored on the memory to perform:calculating respective statistical distances by setting each of the set of gases as the target gas; andcalculating an average statistical distance to determine an overall selectivity based on an average of a sum of the respective statistical distances for all pairs of gases of the set.
5. The system of claim 4, wherein the processor executes the one or more of the instructions stored on the memory to perform:evaluating a performance of the gas sensor based on the selectivity for the target gas or the overall selectivity.
6. The system of claim 4, wherein the processor executes the one or more of the instructions stored on the memory to perform:the selectivity for the target gas is defined as a squared Wasserstein distance between the empirical distribution of the target gas and an averaged sum of empirical distributions of all other gases in the set of gases.
7. The system of claim 1, whereinthe selectivity for the target gas is defined as a mean Wasserstein distance between the empirical distribution of the target gas and empirical distributions of the gases other than the target gas, among the set of gases.
8. The system of claim 1, whereinthe statistical distance is one of Wasserstein distance, Kullback-Liebler divergence, f-divergence, Renyi divergence, or Euclidean distance.
9. A method for computing a gas selectivity for a gas sensor, comprising:collecting a plurality of sensor responses of a gas sensor for each of a set of gases from the gas sensor during a respective flow of each gas of the set of gases;extracting features from the plurality of sensor responses to obtain an empirical distribution of each gas; andcalculating a statistical distance to determine a selectivity for a target gas based on an empirical distribution of the target gas and each empirical distribution of gases other than the target gas, among the set of gases.
10. The method of claim 9, whereinthe sensor responses include resistance changes, andeach of the extracted features is determined based on a peak value of a resistance change and a reference value of a reference gas.
11. The method of claim 10, whereincalculating respective statistical distances by setting each of the set of gases as the target gas; andcalculating an average statistical distance to determine an overall selectivity based on an average of a sum of the respective statistical distances for all pairs of gases of the set.
12. The method of claim 11, comprising:evaluating a performance of the gas sensor based on the selectivity for the target gas or the overall selectivity.
13. The method of claim 9, whereinthe selectivity for the target gas is defined as a squared Wasserstein distance between the empirical distribution of the target gas and an averaged sum of empirical distributions of all other gases in the set of gases.
14. The method of claim 9, whereinthe selectivity for the target gas is defined as a mean Wasserstein distance between the empirical distribution of the target gas and empirical distributions of the gases other than the target gas, among the set of gases.
15. The method of claim 9, whereinthe statistical distance is one of Wasserstein distance, Kullback-Liebler divergence, f-divergence, Renyi divergence, or Euclidean distance.
16. A non-transitory computer readable storage medium storing instructions that when executed by a computer having a processor to perform a method for computing a gas selectivity for a gas sensor, the method comprising:collecting a plurality of sensor responses of a gas sensor for each of a set of gases from the gas sensor during a respective flow of each gas of the set of gases;extracting features from the plurality of sensor responses to obtain an empirical distribution of each gas; andcalculating a statistical distance to determine a selectivity for a target gas based on an empirical distribution of the target gas and each empirical distribution of gases other than the target gas, among the set of gases.
17. The non-transitory computer readable storage medium of claim 16, whereinthe gas sensor includes a resistor, andeach of the extracted features is determined based on a peak value of the resistance and a reference resistance in response to a reference gas.
18. The non-transitory computer readable storage medium of claim 16, the method comprising:calculating respective statistical distances by setting each of the set of gases as the target gas; andcalculating an average statistical distance to determine an overall selectivity based on an average of the respective statistical distances for all pairs of gases of the set.
19. The non-transitory computer readable storage medium of claim 18, the method comprising:evaluating a performance of the gas sensor based on the selectivity for the target gas or the overall selectivity.
20. The non-transitory computer readable storage medium of claim 16, whereinthe statistical distance is one of Wasserstein distance, Kullback-Liebler divergence, f-divergence, Renyi divergence, or Euclidean distance.
