Git Product home page Git Product logo

enose-decorr_humdt_temp's Introduction

Online decorrelation of humidity and temperature in chemical sensors for continuous monitoring

In this repository, you will find snippets of code to exemplify how to import, organize and plot data from a recently published paper where we propose a method for decorrelating humidity and temperature from signals of MOX gas sensors. In particular, the code in this repository reproduces figure 7 and first line in table 3. The dataset is publicly available at UCI Machine Learning repository and contains recordings of a gas sensor array (picture below) composed of 8 MOX gas sensors, and a temperature and humidity sensor. This sensor array was exposed to background home activity while subject to two different stimuli: wine and banana. The responses to banana and wine stimuli were recorded by placing the stimulus close to the sensors. The duration of each stimulation varied from 7min to 2h, with an average duration of 42min. This dataset contains a set of time series from three different conditions: wine, banana and background activity. There are 36 inductions with wine, 33 with banana and 31 recordings of background activity. One possible application is to discriminate among background, wine and banana.

Download the dataset

The dataset is publicly available at UCI Machine Learning repository, and contains recordings of a gas sensor array (see picture above). We kindly request that you cite our paper if you use our dataset (see Relevant papers below). The size of the zipped dataset is 28MB.

Relevant papers

If you find this useful, please star this repository and/or cite our paper:

Ramon Huerta, Thiago Mosqueiro, Jordi Fonollosa, Nikolai Rulkov, Irene Rodriguez-Lujan. Online Decorrelation of Humidity and Temperature in Chemical Sensors for Continuous Monitoring. Chemometrics and Intelligent Laboratory Systems 2016.

Directions for loading the dataset in python

For a quick & dirty example for loading our dataset in python, only numpy is necessary. Assuming that the dataset files are in the same folder, the snippet below is enough to load the data.

import numpy as np

## Importing dataset
metadata = np.loadtxt('HT_Sensor_metadata.dat', skiprows=1, dtype=str)

## Loading the dataset
dataset = np.loadtxt('HT_Sensor_dataset.dat', skiprows=1)

Then, variable metadata has all the metadata, and dataset has the actual recordings. Because file HT_Sensor_dataset.dat is 108MB, it may take a few seconds to load it (in an Intel i7 3.2GHz, it takes about 17 seconds). The time series of induction with a given id, say 17, you can use the following piece of code:

id = 17.
timeSeries = dataset[ dataset[:,0] == id, 1:]

The 1 in "1:" above removes the column with id, leaving variable timeSeries with only data from the recording with id 17.

Co-authors

Ramon Huerta, BioCircuits Institute, University of California San Diego

Thiago Mosqueiro, BioCircuits Institute, University of California San Diego

Jordi Fonollosa, Institute for Bioengineering of Catalunya & University of Barcelona

Nikolai Rulkov, BioCircuits Institute, University of California San Diego

Irene Rodriguez-Lujan, Escuela Politecnica Superior, Universidad Autonoma de Madrid

Acknowledgements

Dependencies

  • Dataset, which is available at UCI Machine Learning Repository

  • Python 2.*

  • numpy 11.*+

  • matplotlib 1.10+

License

tl;dr version: please, don't sue me and ship a copy of the License file with any derived product. Read License file for the actual terms.

enose-decorr_humdt_temp's People

Contributors

thmosqueiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.