Difference between revisions of "Chemical Sensors SP 2011"

From ESE497 Wiki
Jump to navigationJump to search
Line 82: Line 82:
 
   2. We don't know whether we were biasing the results with our current method of generating air currents.  Need a more consistent method of generating these currents.
 
   2. We don't know whether we were biasing the results with our current method of generating air currents.  Need a more consistent method of generating these currents.
  
- We bought a baby bulb and determined that squeezing it ever 10 seconds while it was vertically positioned above the source created bumpy signals.  So we took another set of data while performing this method of air current generation.  Unfortunately, the results aren't that good, from DTW (of course, the brute force algorithm never gives good results).  Reasons included below:
+
- We bought a baby bulb and determined that squeezing it every 10 seconds while vertically positioned above the source created bumpy signals.  So we took another set of data while performing this method of air current generation.  Unfortunately, the DTW results aren't good (of course, the brute force algorithm never gives good results).  The reasons are included below:
  
   1. There was a visible "bumpiness bias" in the data.  Specifically, data generated when the source was positioned closer to the top sensors was always very smooth, and no vote could be obtained from these.
+
   1. There was a visible "bumpiness bias" in the data.  Specifically, when the source was above the senor array, the data was often so smooth that no vote could be generated from the signals with DTW.
  
   2. When a vote was possible from data collected when the source was at the top, it was incorrect!  I.e., the algorithm voted that the sensor was located below the array, and not above it. :(
+
   2. When a vote was possible from this data , it was incorrect!  I.e., when the source was above the array, the algorithm voted that the source was actually located below it. :(
  
 
   3. When the source was below the array, the vote was correct for distances 20 cm and below.  However, the vote became incorrect at 30 cm and above.
 
   3. When the source was below the array, the vote was correct for distances 20 cm and below.  However, the vote became incorrect at 30 cm and above.
  
:( :( :( :( :( :( :( :( :( :(
+
:( :( :( :( :( :( :( :( :( :(
  
 
Current plan: Meet early next week to collect data at another station (we were at the station at the end of the bench 2nd closest to the door connecting to Bryan 306).  We suspect that some bias was present at this one.
 
Current plan: Meet early next week to collect data at another station (we were at the station at the end of the bench 2nd closest to the door connecting to Bryan 306).  We suspect that some bias was present at this one.
  
 
Week 11:
 
Week 11:

Revision as of 23:30, 1 April 2011

Weeks 1-4:

We accomplished the following tasks:

- Added to the Matlab data processing algorithm to match peaks between sensor pairs. - Ordered 3 new pairs of sensors, so that each sensor within a pair does not collect data in a biased manner based on age.

Additionally, we made a game plan for the rest of the semester:

- Create new sensor array with new sensors and collect new unbiased data from the updated array.

- Email Dr. Raman about our research and a possible collaboration.

- Debug Matlab data processing algorithm.

- Ensure that Labview and Matlab data processing algorithms allows updated sensor array to reliably detect the location of the isopropyl alcohol source.

- Interface the data processing algorithm and sensor array with a robot, and develop a robot motion algorithm.

- Investigate the effects of using a shorter span of data on the accuracy of the signal processing algorithm.

Week 5:

- Created new sensor array.

- Fixed the matlab brute force algorithm

- Collected data from new sensor array, 5 trials for each distance away from the array for each side. This gave a total of 10 trials per distance, or 500 trials.

plan for this week:

- make presentation for next week (power point)

- 2 at each distance at each side

- drawing of sensor configuration

Week 6:

- Made more corrections to brute force algorithm, and processed trials from week 5. Unfortunately, the results still indicate that the sensor array detects the isopropyl alcohol source on one side of the array, no matter where the alcohol is actually located.

- Realized that the resistances that were in series with the sensors were chosen specifically for the sensors in the old array. Therefore, altered resistances in series with sensors in the circuit so that voltages produced by each sensor in a pair were consistent. I.e., sensors 1 and 2 should produce similar voltages when smelling alcohol, as should sensors 3 and 4, and 5 and 6. Used this array to collect a second batch of data (2 trials per side per distance). However, this still gave bad results, i.e., results that were similar to those from week 5's data.

- Next, we tried putting each sensor was in series with the same resistance, regardless of the disparities in voltage. We also spaced the sensors farther apart (1 inch), to improve the discrimination between sides. With this modified circuit configuration, we took 3 trials per side per distance. Processed this data, and the brute-force algorithm STILL yielded bad results. The dynamic-time-warp algorithm looks more promising, but is still pretty bad. The results of DTW suggest that sensor pair 2 is always biased towards one side. Therefore, attempted to run the DTW algorithm on only the other 2 pairs, but still working on the coding for this.

- When we used the dynamic time warp m.files and removed the transient response, we observed more promising data. For the next meeting, we will work on fine tuning the resistances within the circuit (most likely lowering all the resistances) and modify the data acquisition algorithm to get bumpier signals. -- that is, if there are no peaks by the end of the data collection, we will not continue onto the cooling period, but continue data collection until we see a peak.

Week 7:

- This week was hard in terms of making times to meet. We have created the sinage slide for the lobby and have created SEVERAL meeting times for next week.

- We plan to carry out the goals of week six next week and collect more data.

Week 8:

- After much fiddling, we set the resistances in the circuit as follows:

 Sensors 1 and 2:  9.1k
 Sensors 3 and 4:  3.4k
 Sensors 5 and 6:  9.1k
 We did this in an attempt to make our voltage signals bumpier.  The signals did improve somewhat -- specifically, more of them were outright bumpy, and others had slight dips and bumps in amplitude that could be interpreted as peaks and valleys.  However, a significant number were still smooth even with the lower resistances.  This means that lowering the resistances seems to be effective only to a certain point.

- We collected data, 3 trials per distance, and 5 distances per side, using the modified circuit. Analysis of the DTW results is confusing, and appears to be biasing one side, or to be too smooth to interpret at all. Currently investigating the morphology of the signals to determine which of them are flat, as well as how bumpy they need to be in order to provide useful results.

-DTW results showed that one side's signals look much more different than the other side's signals. - Goals for after Spring Break:

 1. Create algorithm to accept only bumpy signals.
 2. Determine how bumpy the signals have to be before they are acceptable.
 3. Simulate "chemical leak"
 4. Recollect data with sensors level to source.  Perhaps design a platform on which source sits.
 5. Alternate order in which data's collected (i.e., top first, bottom second).

Week 9:

- We altered data collection order, but this still yielded inconsistent results in DTW (our brute force method never seems to work).

- We tried to collect data again, with altered data collection order, but this time, we waves our hands around the source to generate air currents. We ran the data through DTW and...IT WORKED!! There are still some inconsistencies in the vote, but it is our hope that these arose from our lack of consistency in waving movements.

Week 10:

- Some things to think about, for this week:

 1. We still don't know the origin of our transient -- Ed thinks it's due to temperature variance.  This might need to be addressed.
 2. We don't know whether we were biasing the results with our current method of generating air currents.  Need a more consistent method of generating these currents.

- We bought a baby bulb and determined that squeezing it every 10 seconds while vertically positioned above the source created bumpy signals. So we took another set of data while performing this method of air current generation. Unfortunately, the DTW results aren't good (of course, the brute force algorithm never gives good results). The reasons are included below:

 1. There was a visible "bumpiness bias" in the data.  Specifically, when the source was above the senor array, the data was often so smooth that no vote could be generated from the signals with DTW.
 2. When a vote was possible from this data , it was incorrect!  I.e., when the source was above the array, the algorithm voted that the source was actually located below it. :(
 3. When the source was below the array, the vote was correct for distances 20 cm and below.  However, the vote became incorrect at 30 cm and above.
( :( :( :( :( :( :( :( :( :(

Current plan: Meet early next week to collect data at another station (we were at the station at the end of the bench 2nd closest to the door connecting to Bryan 306). We suspect that some bias was present at this one.

Week 11: