Difference between revisions of "Team:Lambert GA/MEASUREMENT REFERENCES"

Line 9: Line 9:
 
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
 
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
 
<link href="https://fonts.googleapis.com/css?family=Lora" rel="stylesheet">
 
<link href="https://fonts.googleapis.com/css?family=Lora" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
 
 
 
<style type="text/css">
 
<style type="text/css">
 
#holder {
 
#holder {
Line 41: Line 39:
 
#bigtitle {
 
#bigtitle {
 
position: absolute;
 
position: absolute;
top: 38%;
+
top: 43%;
 
left: 0%;
 
left: 0%;
 
height: 10%;
 
height: 10%;
Line 50: Line 48:
 
font-size: 70px;
 
font-size: 70px;
 
text-align: center;
 
text-align: center;
line-height: 1.2em;
 
 
z-index: 4;
 
z-index: 4;
 
}
 
}
Line 216: Line 213:
 
<div id="holder">
 
<div id="holder">
 
     <video style= "z-index:1;" id="oceanvideo"  autoplay muted loop>
 
     <video style= "z-index:1;" id="oceanvideo"  autoplay muted loop>
               <source src="https://static.igem.org/mediawiki/2018/6/6d/T--Lambert_GA--reading.mp4" type="video/mp4">
+
               <source src="https://static.igem.org/mediawiki/2018/b/bb/T--Lambert_GA--watercolor.mp4" type="video/mp4">
 
               Your browser does not support video.
 
               Your browser does not support video.
 
             </video>
 
             </video>
 
     <div id="overlay"></div>
 
     <div id="overlay"></div>
 
           <div id="bigtitle">
 
           <div id="bigtitle">
              Q S Y S T E M <br> R E F E R E N C E S
+
              Q S Y S T E M
 
           </div>
 
           </div>
 
</div>
 
</div>
Line 241: Line 238:
  
 
<div id="afterhome">
 
<div id="afterhome">
<div id="sidebar">
+
      <div id="sidebar">
 
<br><br>
 
<br><br>
 
                       <div id="link">
 
                       <div id="link">
                             <b><a style="color:black; text-decoration: none; line-height:1.1;" href="#target1">OVERVIEW</a></b>
+
                             <b><a style="color:black; text-decoration: none; line-height:1.1;"href="#target1">Measurements</a></b>
 
                       </div>
 
                       </div>
 
<br><br>
 
<br><br>
 
                       <div id="link">
 
                       <div id="link">
                             <b><a style="color:black; text-decoration: none; line-height:1.1;" href="#target2">COLOR Q APP</a></b>
+
                             <b><a style="color:black; text-decoration: none; line-height:1.1;" href="#target2">Threshold</a></b>
                       </div>  
+
                      </div>
 +
<br><br>
 +
                      <div id="link">
 +
                            <b><a style="color:black; text-decoration: none; line-height:1.1;" href="#target3">Sensitivity and Specificity</a></b>
 +
                       </div>
 
<br><br>
 
<br><br>
 
                       <div id="link">
 
                       <div id="link">
                             <b><a style="color:black; text-decoration: none; line-height:1.1;" href="#target3">CALM</a></b>
+
                             <b><a style="color:black; text-decoration: none; line-height:1.1;" href="#target4">References</a></b>
 
                       </div>
 
                       </div>
 
<br><br>
 
<br><br>
Line 259: Line 260:
 
</div>
 
</div>
 
   <div id="maincontent">
 
   <div id="maincontent">
<br><br><br>
+
<br><br>
 +
 
 
<div id="target1"></div>
 
<div id="target1"></div>
<div id="subheading1">
+
<div id="subheading1"><b>Measurements</b></div>
<b>Overview</b>
+
<br><br>
 +
<div id="content2">
 +
ADD ChromeQ and App overview and results
 
</div>
 
</div>
<br>
 
<br>
 
<div id="content1">
 
Lambert iGEM has developed a mobile application for Android phones called Color Q. Color Q is a color-quantification tool that can be used alongside the Chrome-Q hardware, also developed by Lambert iGEM, in order to determine the relative color value generated by biological indicators, such as chromoproteins and reporters. The samples are loaded into the base of the Chrome-Q hardware and then a smartphone camera is used to take a picture of the base. The app can then use circle detection to determine the color values and this serves as a viable quantification method of the actual cholera present in the sample. This data is then transferred to a database for storage and retrieval. The information from the Color Q app can be used to contribute to the second component of Lambert iGEM's software project.
 
 
<br><br>
 
<br><br>
Our 2018 project includes a software subproject known as CALM, the Cholera Artificial Learning Model. CALM is a machine learning based platform which predicts cholera outbreaks in advance and uses SMS notifications to notify healthcare organizations as well as locals so that they can prepare for outbreaks. SMS-based surveys are a key component of CALM, as health and sanitation data can be collected from a population to be used in the machine learning model, making it more accurate. For 2018, Lambert iGEM has built the machine learning aspect of CALM and has modified existing code from Michael Koohang’s RatWatch project to distribute cholera surveys and collect data.
+
<div id="target2"></div>
 +
<div id="subheading2"><b>Threshold</b></div>
 
<br><br>
 
<br><br>
Diseases similar to cholera are especially damaging because even though they are curable (i.e., a cure exists), they still cause horrific amounts of damage to millions of people. What cholera treatment projects require more than anything are preventative measures to ensure a population does not become infected. CALM fulfills this need as a predictive actor, providing healthcare organizations the information required to pinpoint where a cholera outbreak is going to occur so that they can send medicines and supplies before the outbreak begins, thus preventing it. As a prediction and notification-based platform, CALM also satisfies the needs of locals who can take preventative measures (such as boiling water) to prevent cholera but can’t afford to do it constantly - thus making timely notifications critical for locals.
+
<div id="content2">
 +
Our app, Color Q, generates a relative percentage value, which is calculated from the color variance from a control sample. However, we need to determine what relative percentage value, or threshold, constitutes as a positive test result because a water sample could have a very low concentration, which would not make those who drink it at risk for contraction.  
 
<br><br>
 
<br><br>
 +
The infectivity rate for Cholera varies from 104 to 1011 bacterium ingested, depending on the strain and conditions of the host [3]. In order to be health protective, we want a negative result to mean that there is less than 10³ bacterium ingested per person from a water source. Therefore, our threshold is 10³ bacterium per two liters of water, the average water intake per day. For our biosensor, a 100 ml water sample is taken, so for a positive test, there must be 50 bacterium in the sample, with some variability due to the uneven spread of cholera in a water source.
 +
<br><br>
 +
Then to determine the relative percentage value for a positive test, we will carry out our biosensor protocol on water samples with known concentrations of Cholera. The samples would be triplicates of concentrations of 0, 25,40, 50, 60 and 100 cholera cells per 100ml to see the change in the relative percentage value with differing concentrations. After using our software, we would average the relative percentage value for the samples with a concentration of 40, 50, 60 cholera cells to receive a threshold value. If a sample in the field meets or exceeds the value determined, it would be a positive sample.
 
</div>
 
</div>
 +
<br><br>
  
 
+
<div id="target3"></div>
<div id="target2"></div>
+
<div id="subheading2"><b>Sensitivity and Specificity</b></div>
<div id="subheading2">
+
<b>Color Q App</b>
+
</div>
+
<br><br>
+
<div style="text-align:center"><img style="width:800px;height:500px;" src="https://static.igem.org/mediawiki/2018/8/86/T--Lambert_GA--ColorQMap.jpg" /></div>
+
 
<br><br>
 
<br><br>
 
<div id="content2">
 
<div id="content2">
Color Q is a free mobile application developed in Java for the Google Play Store. The app was developed in the Android Studio v3.2.1 integrated development environment. It works alongside the Chrome-Q hardware also developed by Lambert iGEM in order to effectively quantify the result of a biological reporter, similar to the function of a plate reader. The app is able to use circle detection in order to find the samples on the base of the Chrome-Q hardware and then detect the red, green, and blue values (RGB) of the center of each circle. The way the circles are arranged allow for a range of values to be generated. The first row contains 4 circles. The average RGB values of the first two circles are calculated as the negative control and the average RGB values of the second pair of circles are calculated as the positive control. The distance between the positive and negative control is calculated in the 3D-coordinate plane using the following formula:
+
Sensitivity and specificity give insight into the accuracy of disease detection tests. Sensitivity is defined as the percentage of positive test results where it is confirmed that Cholera is present (true positives) out of all of the positive samples, true positives and false negatives [1]. Specificity is the percentage of negative test results that are confirmed to have no Cholera present (true negatives) out of all the negative samples, true negatives and false positives [1]. To find these percentages, we must have another reliable detection method that we will compare our results to. According to the CDC, growing a culture of the sample is the gold standard for Cholera detection [2]. Therefore, we will culture the water sample as well as test our biosensor cells and compare the results to find our test’s accuracy. The results from the culture will be the ‘truth’ of whether the sample really has Cholera or not. Therefore, if the culture is positive and our test’s results are positive, it is a true positive, but if the culture is negative and our results are positive, it is a false positive, and it is the same for true negatives and false negatives. [1]
<br><br>
+
<div style="text-align:center"><img src="https://static.igem.org/mediawiki/2018/e/eb/T--Lambert_GA--distance.png" /></div>
+
 
<br>
 
<br>
The Hough Circle Transform is used as the method of circle detection found in the app. Open Computer Vision (OpenCV) is a library that can be imported into Android Studio in order to perform image analysis-based methods. The image taken by the smartphone camera is converted into a grayscale photo. This essentially makes the image more readable in terms of edge detection and "round" estimation. There are several parameters that can be modified and calibrated in order to detect an accurate amount of circles:
+
<center>
<br><br>
+
<table>
 +
<tr>
 +
<th></th>
 +
<th>Cholera Present</th>
 +
<th>No Cholera Present</th>
 +
</tr>
 +
<tr>
 +
<th>Positive Test</th>
 +
<th>True Positive</th>
 +
<th>False Positive</th>
 +
</tr>
 +
<tr>
 +
<th>Negative Test</th>
 +
<th>False Negative</th>
 +
<th>True Negative</th>
 +
</tr>
 +
</table>
 +
</center>
 +
<br>
 +
Once the data collection is completed, there are two formulas to calculate sensitivity and specitivity.
 
<ul>
 
<ul>
<li><i>Maximum Radius: The smallest value for the radius of a detected circle</i></li>
+
<li>Sensitivity= true positives/(true positives + false negatives) x 100 [1]</li>
<li><i>Minimum Radius: The largest value for the radius of a detected circle</i></li>
+
<li>Specificity=true negatives/(true negatives + false positives) x 100 [1]</li>
<li><i>Minimum Distance: The smallest distance between the centers of any two detected circles</i></li>
+
<li><i>Edge Gradient Value: The roundness of each detected circle</i></li>
+
<li><i>Threshold Value: The amount of memory the system has to store the detected circles</i></li>
+
 
</ul>
 
</ul>
<br>
+
The purpose of our biosensor is to detect Cholera at the source to prevent contraction. Therefore, we are more invested in a high sensitivity rather than specificity. With a higher sensitivity, it is more likely to have false positives, but it is safer to have false positives and take precaution than to have false negatives and contract the disease.  
<div style="text-align:center;">
+
<img style="text-align:left;vertical-align:top;width:337px;height:599px;" src="https://static.igem.org/mediawiki/2018/e/ea/T--Lambert_GA--display.png">
+
<img style="text-align:right;vertical-align:top;width:337px;height:599px;" src="https://static.igem.org/mediawiki/2018/e/e1/T--Lambert_GA--results.png">
+
 
</div>
 
</div>
 
<br><br>
 
<br><br>
The 6 by 6 grid located underneath the first row can be loaded with experimental samples and a percentage value can be determined on a scale from the negative control to the positive control. The circle detection process loops through until the maximum radius reaches 120 pixels. If anywhere from 35 to 40 circles are detected in total, then the loop stops. However, if there are fewer circles detected, then the loops restarts to finish through the maximum radius until anywhere from 25 to 40 circles are detected properly. If less than 25 circles are detected, then an error is caught and another picture is requested to be used. Zooming in or zooming out could possibly make the circle detection process easier for the system and more efficient. The following formula is used to calculate the relative percentage values:
+
<div id="target4"></div>
 +
<div id="subheading2"><b>References</b></div>
 
<br><br>
 
<br><br>
 
+
<div id="content2">
<div style="text-align:center"><img src="https://static.igem.org/mediawiki/2018/0/0b/T--Lambert_GA--value.png"></div>
+
[1] 10.3 - Sensitivity, Specificity, Positive Predictive Value, and Negative Predictive Value. (2018). Retrieved October 8, 2018, from https://onlinecourses.science.psu.edu/stat507/node/71/
 
<br>
 
<br>
 
+
[2] Cholera - Vibrio cholerae infection. (2018, July 20). Retrieved from https://www.cdc.gov/cholera/diagnosis.html
The results are then displayed based upon the row in which the circles fall in on the base of the Chrome-Q hardware. The app is able to determine the row in which the circles fall in by comparing y-coordinates. If the y-values are similar to each other, then the circles are classified as being on the same row. The relative values are then transferred to another page within the app where the user is able to enter information that could help contribute to our machine learning model, CALM. The application uses the latitude, longitude, and timestamp values obtained from the phone's GPS to effectively determine where and when the test was run. When the user submits the data, the results are sent to a MySQL database, which is a part of the Relational Database Service (RDS) as a part of the Amazon Web Services (AWS) platform.  
+
<br>
 
+
[3] Nelson, E. J., Harris, J. B., Morris, J. G., Calderwood, S. B., & Camilli, A. (2009, October). Cholera transmission: The host, pathogen and bacteriophage dynamic. Retrieved October 8, 2018, from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3842031/
</br>
+
<br>
 
+
[4] Bjerketorp, J., Håkansson, S., Belkin, S., & Jansson, J. K. (2006, February). Advances in preservation methods: Keeping biosensor microorganisms alive and active. Retrieved October 8, 2018, from https://www.ncbi.nlm.nih.gov/pubmed/16368231
 +
<br><br><br>
 
</div>
 
</div>
<br><br>
 
<div id="target3"></div>
 
<div id="subheading3">
 
<b>CALM
 
</b>
 
</div>
 
<br><br>
 
<div id="content3">
 
There are two main components of the CALM platform; the SMS component and the machine learning component. The entirety of the platform is written in Python 3.6+, and several libraries, including the pandas, numpy, scikit-learn, beautifulsoup, xgboost, and flask libraries are utilized. In order to make predictions, the machine learning aspect of CALM ___
 
To distribute SMS notifications, Michael Koohang graciously allowed Lambert iGEM to modify his RatWatch project (developed at Georgia Tech) to create CALM’s SMS component. The code for SMS distribution is located on a server using the Flask microframework for logic and computation. The Flask server interacts with Twilio’s (an SMS-survey provider) Python API in order to send out text messages to a specified population. The population’s survey results are aggregated and stored on the Flask server using pandas.
 
  
  
<br><br>
 
We hope to see CALM in use throughout the cholera field within the next few years as medical organizations begin using it to prevent outbreaks and better distribute medical supplies. As cholera already has a cure, a machine-learning based approach to predicting and preventing cholera, especially one that is open-source and free to use, will drastically reduce the time, energy, and money required to treat an infected population. Finally, we believe the CALM project will not only treat millions of people affected with cholera, but will also begin efforts to use CALM’s foundation to predict other diseases such as malaria and parasitic infections.
 
<br><br>
 
CALM began as a subcomponent of Lambert’s 2018 project and rapidly developed throughout the beginning of the 2018 season. In late May Lambert participated in the Day One Challenge, an Atlanta-based AI competition, and won. Through further collaboration and outreach with the Day One organization Lambert has been able to receive feedback and advice from professionals in a variety of fields, such as epidemiology, computer science, machine learning, and business. As CALM develops further, we hope to not only see other teams adopt the platform to address other issues, but also for healthcare organizations across the world to utilize CALM and adapt it to other diseases.
 
<br><br>
 
  
 
</div>
 
</div>
Line 359: Line 358:
 
//NOT THE MOST EFFICIENT PARALLAX, BUT SIMPLE
 
//NOT THE MOST EFFICIENT PARALLAX, BUT SIMPLE
 
</script>
 
</script>
 +
 +
 +
 +
 +
 +
 +
  
 
</html>
 
</html>

Revision as of 05:59, 17 October 2018

Q S Y S T E M



































Measurements


ADD ChromeQ and App overview and results


Threshold


Our app, Color Q, generates a relative percentage value, which is calculated from the color variance from a control sample. However, we need to determine what relative percentage value, or threshold, constitutes as a positive test result because a water sample could have a very low concentration, which would not make those who drink it at risk for contraction.

The infectivity rate for Cholera varies from 104 to 1011 bacterium ingested, depending on the strain and conditions of the host [3]. In order to be health protective, we want a negative result to mean that there is less than 10³ bacterium ingested per person from a water source. Therefore, our threshold is 10³ bacterium per two liters of water, the average water intake per day. For our biosensor, a 100 ml water sample is taken, so for a positive test, there must be 50 bacterium in the sample, with some variability due to the uneven spread of cholera in a water source.

Then to determine the relative percentage value for a positive test, we will carry out our biosensor protocol on water samples with known concentrations of Cholera. The samples would be triplicates of concentrations of 0, 25,40, 50, 60 and 100 cholera cells per 100ml to see the change in the relative percentage value with differing concentrations. After using our software, we would average the relative percentage value for the samples with a concentration of 40, 50, 60 cholera cells to receive a threshold value. If a sample in the field meets or exceeds the value determined, it would be a positive sample.


Sensitivity and Specificity


Sensitivity and specificity give insight into the accuracy of disease detection tests. Sensitivity is defined as the percentage of positive test results where it is confirmed that Cholera is present (true positives) out of all of the positive samples, true positives and false negatives [1]. Specificity is the percentage of negative test results that are confirmed to have no Cholera present (true negatives) out of all the negative samples, true negatives and false positives [1]. To find these percentages, we must have another reliable detection method that we will compare our results to. According to the CDC, growing a culture of the sample is the gold standard for Cholera detection [2]. Therefore, we will culture the water sample as well as test our biosensor cells and compare the results to find our test’s accuracy. The results from the culture will be the ‘truth’ of whether the sample really has Cholera or not. Therefore, if the culture is positive and our test’s results are positive, it is a true positive, but if the culture is negative and our results are positive, it is a false positive, and it is the same for true negatives and false negatives. [1]
Cholera Present No Cholera Present
Positive Test True Positive False Positive
Negative Test False Negative True Negative

Once the data collection is completed, there are two formulas to calculate sensitivity and specitivity.
  • Sensitivity= true positives/(true positives + false negatives) x 100 [1]
  • Specificity=true negatives/(true negatives + false positives) x 100 [1]
The purpose of our biosensor is to detect Cholera at the source to prevent contraction. Therefore, we are more invested in a high sensitivity rather than specificity. With a higher sensitivity, it is more likely to have false positives, but it is safer to have false positives and take precaution than to have false negatives and contract the disease.


References


[1] 10.3 - Sensitivity, Specificity, Positive Predictive Value, and Negative Predictive Value. (2018). Retrieved October 8, 2018, from https://onlinecourses.science.psu.edu/stat507/node/71/
[2] Cholera - Vibrio cholerae infection. (2018, July 20). Retrieved from https://www.cdc.gov/cholera/diagnosis.html
[3] Nelson, E. J., Harris, J. B., Morris, J. G., Calderwood, S. B., & Camilli, A. (2009, October). Cholera transmission: The host, pathogen and bacteriophage dynamic. Retrieved October 8, 2018, from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3842031/
[4] Bjerketorp, J., Håkansson, S., Belkin, S., & Jansson, J. K. (2006, February). Advances in preservation methods: Keeping biosensor microorganisms alive and active. Retrieved October 8, 2018, from https://www.ncbi.nlm.nih.gov/pubmed/16368231