<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nico To on Medium]]></title>
        <description><![CDATA[Stories by Nico To on Medium]]></description>
        <link>https://medium.com/@nico.to?source=rss-d8ffdd616104------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*n0lSPZOwAoHUibeATClL1A.png</url>
            <title>Stories by Nico To on Medium</title>
            <link>https://medium.com/@nico.to?source=rss-d8ffdd616104------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:38:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nico.to/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a Hand-Gesture Controlled Whiteboard with OpenCV, Mediapipe, and Sklearn]]></title>
            <link>https://medium.com/@nico.to/building-a-hand-gesture-controlled-whiteboard-with-opencv-mediapipe-and-sklearn-433c8406cbe3?source=rss-d8ffdd616104------2</link>
            <guid isPermaLink="false">https://medium.com/p/433c8406cbe3</guid>
            <dc:creator><![CDATA[Nico To]]></dc:creator>
            <pubDate>Sat, 25 Nov 2023 06:21:16 GMT</pubDate>
            <atom:updated>2023-11-25T06:21:16.392Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>As a big fan of doodling and sketching on whiteboards, I wanted to make this activity more entertaining. I decided to turn a regular whiteboard into a digital canvas that responds to hand movements. Imagine drawing in the air and seeing your creation come to life! This is why I created a digital whiteboard that follows your hand gestures, using OpenCV, Mediapipe, and Sklearn.</p><h3>Video Demo</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.loom.com%2Fembed%2Fce8c013d456246bda5c6ef8d18521882&amp;display_name=Loom&amp;url=https%3A%2F%2Fwww.loom.com%2Fshare%2Fce8c013d456246bda5c6ef8d18521882%3Fsid%3Dac45714e-5aa1-4d1d-b782-95bba0745181&amp;image=https%3A%2F%2Fcdn.loom.com%2Fsessions%2Fthumbnails%2Fce8c013d456246bda5c6ef8d18521882-00001.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=loom" width="1920" height="1440" frameborder="0" scrolling="no"><a href="https://medium.com/media/cad855fc3935199cef72e13da67eb82b/href">https://medium.com/media/cad855fc3935199cef72e13da67eb82b/href</a></iframe><h3>How I Built It</h3><h4><strong>1. Collecting Data:</strong></h4><p>I wrote a simple Python script using OpenCV to capture around 300 images for each hand symbol. These images were saved into different folders, one for each hand gesture.</p><h4><strong>2. Processing Data with Mediapipe:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YrGK9jNJEgHLYOt9.png" /></figure><p>With the help of Mediapipe’s hand-tracking features, I extracted the coordinates of key points in the captured images. I saved these coordinates along with their corresponding labels to create a dataset.</p><h4><strong>3. Model Training:</strong></h4><p>Using Sklearn’s RandomForestClassifier, I trained the model with the dataset I collected. I was surprised to see the model achieve an accuracy of about 98%.</p><h4><strong>4. Connecting with Pygame:</strong></h4><p>Integrating the trained model with the Pygame environment allowed for interaction between hand gestures and whiteboard functionalities.</p><p>Full code: <a href="https://github.com/ghostboy3/gesture-controled-whiteboard">https://github.com/ghostboy3/gesture-controled-whiteboard</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=433c8406cbe3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generating Custom Flashcards from Your Notes using Open AI]]></title>
            <link>https://medium.com/@nico.to/generating-custom-flashcards-from-your-notes-using-open-ai-af59ef94af76?source=rss-d8ffdd616104------2</link>
            <guid isPermaLink="false">https://medium.com/p/af59ef94af76</guid>
            <dc:creator><![CDATA[Nico To]]></dc:creator>
            <pubDate>Sat, 04 Nov 2023 04:44:44 GMT</pubDate>
            <atom:updated>2023-11-04T21:19:15.649Z</atom:updated>
            <content:encoded><![CDATA[<p>Every time I have a test coming up, I always struggle to find efficient ways to study. I usually resort to one of two tactics. First, there’s the “helpful sibling” approach, where I give my notes to my sister, and ask her to quiz me. I appreciate her enthusiasm to help, but it can be quite a hassle for her, and is not the most productive use of her time. Then, there’s the online quizzes route, where I search the internet for practice questions. It often leaves me frustrated because the questions don’t match up with my notes, leaving gaps in my study, or they dive into topics I haven’t even learned yet.</p><p>That’s why I created an AI flashcard generator that generates flashcards based solely on your notes. Here’s a video showing how it works:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.loom.com%2Fembed%2F60ee2b6b25974a388e8a15ca812e2ada&amp;display_name=Loom&amp;url=https%3A%2F%2Fwww.loom.com%2Fshare%2F60ee2b6b25974a388e8a15ca812e2ada%3Fsid%3D3bdab43c-a13b-4d9e-a061-1167d8f1944e&amp;image=https%3A%2F%2Fcdn.loom.com%2Fsessions%2Fthumbnails%2F60ee2b6b25974a388e8a15ca812e2ada-00001.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=loom" width="1366" height="1024" frameborder="0" scrolling="no"><a href="https://medium.com/media/e25d45cc7848eab6e78b5a0c1ff1caf2/href">https://medium.com/media/e25d45cc7848eab6e78b5a0c1ff1caf2/href</a></iframe><h3><strong>How I Built it</strong></h3><p>I built it using Google Apps Script so that once it’s installed, it can integrate directly with any google document for easy access. The flashcards are generated with the OpenAI’s Davinci model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*KbWchKOg7SONJaDhPTHLdw.png" /><figcaption>Code for making a request to the OpenAI API</figcaption></figure><p>This is the prompt I used to create them:</p><blockquote>“Create” + number + “ simple study flashcards with question on front and answer on back for the following notes:” + documentText + “ put the front of the card on one line then the back on another (without any additional text), every time there’s a new card create an additional line between them”</blockquote><p>I then took the response and converted it to an array containing the questions and answers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*Fecbgm43uoCxqouX2jey2Q.png" /><figcaption>Converting OpenAI’s response to an array</figcaption></figure><p>Once the data is organized into an array, it’s easy to display them as flashcards to the user.</p><p>You can find the link to my full code here: <a href="https://github.com/ghostboy3/Flashcard-Generator">https://github.com/ghostboy3/Flashcard-Generator</a></p><p>I had a lot of fun building this project, if you want to learn more or have further questions about the code email me at nico.luu.to@gmail.com.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af59ef94af76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Machine Learning Is Revolutionizing CRISPR for Accurate Genome Editing]]></title>
            <link>https://medium.com/@nico.to/how-artificial-intelligence-is-revolutionizing-crispr-for-accurate-genome-editing-7fd85ced193f?source=rss-d8ffdd616104------2</link>
            <guid isPermaLink="false">https://medium.com/p/7fd85ced193f</guid>
            <dc:creator><![CDATA[Nico To]]></dc:creator>
            <pubDate>Sat, 14 Oct 2023 13:51:26 GMT</pubDate>
            <atom:updated>2023-10-27T01:12:18.610Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GVj8q_Hb_3YRBIa0.jpg" /></figure><p>The idea of gene editing always fascinated me. The ability to alter genetic codes and, one day, eliminate hereditary diseases may seem like science fiction, but it really isn’t. The advent of CRISPR-Cas9, allows us to accurately and efficiently edit genes, and will completely change the way we treat genetic diseases and transform medicine. Yet, the idea of a world free of genetic diseases remains a distant dream due to the current limitations of CRISPR technology. However, integrating CRISPR with artificial intelligence presents a compelling opportunity to overcome these challenges and pave the way for a future where such aspirations may become a reality. This article will cover the intersection of CRISPR and AI and how it will change the gene-editing world.</p><h3><strong>How CRISPR Works</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*tEC-k6XPFIb5HtCB" /><figcaption>Simplified diagram of CRISPR-Cas9 in action (S<a href="https://www.creative-diagnostics.com/blog/index.php/why-use-crispr-cas9-antibodies/">ource</a>)</figcaption></figure><p>CRISPR is like a super-precise text editor for DNA. Imagine your DNA is a long document full of instructions for building and running your body. Just as you might use a regular text editor to correct a typo in a sentence, CRISPR-Cas9 allows scientists to find and edit specific parts of your DNA. It works by using a guide RNA molecule to find the exact spot where you want to make changes (like the CTRL-F search feature). Once at the location, it uses the Cas9 enzyme to delete, add, or replace genetic information, just like fixing a sentence or adding new word to it.</p><p>A significant concern associated with CRISPR is the possibility of off-target effects. Due to the complexity of the genome and the guide RNA’s imperfect matching, Cas9 may sometimes bind to and edit unintended locations in the DNA. This could potentially lead to unintended and dangerous genetic mutations. Scientists have been searching for a way to accurately predict off-target effects and one promising method is by using machine learning.</p><h3><strong>Editas Medicine — A Promising CRISPR Startup</strong></h3><p><a href="https://www.editasmedicine.com/">Editas Medicine</a> was founded in 2013, and has since gained widespread recognition for its pioneering work in the development of CRISPR-based technologies to edit the human genome, developing treatment therapies for a wide range of genetic disorders and diseases. With a team of talented scientists, including Nobel Prize winner Jennifer Doudna, Editas Medicine is dedicated to harnessing the power of gene editing to transform the lives of patients with previously incurable genetic conditions.</p><h3><strong>How Machine Learning can help</strong></h3><p>Machine learning algorithms analyze the guide RNA sequence and the genomic sequence to identify potential off-target sites. By comparing the guide RNA to the entire genome, machine learning can identify sequences that closely resemble the intended target, which could be potential off-target sites.</p><h3><strong>What is Machine Learning?</strong></h3><p>To understand how off-target sites can be predicted, we first have to understand what machine learning is.</p><p>Similar to how the human brain learns, machine learning is a way for computers to learn from data and make decisions or predictions without being explicitly programmed.</p><p>In machine learning, you feed a computer a bunch of data (like pictures of fruits) and tell it what those data points represent (this is an apple, that’s an orange). The computer then uses this information to find patterns and make predictions on new, unseen data. It will be able to recognize fruits without being explicitly told.</p><p>Machine learning models<strong> </strong>are the tools or algorithms that help computers learn and make predictions. They are the specific methods used to identify fruits, such as looking at their color and shape. These models can be simple or very complex, depending on the task they’re designed for.</p><h3><strong>How Machine Learning Predicts Off-Target Effects</strong></h3><p><strong>Data Collection and Preparation</strong></p><p>To build accurate models for detecting off-target effects, researchers collected information from CRISPR-Cas9 experiments on both on-target and off-target sequences, as well as the corresponding guide RNA sequences. This data is essential to train and test machine learning models effectively.</p><p><strong>Machine Learning Models and Experiments</strong></p><p>The next step is to develop machine learning models for the detection of off-target effects. Researchers often experiment with different classification techniques to create robust models that can accurately distinguish between on-target and off-target sequences. Several common machine learning methods have been applied in this context, including Artificial Neural Networks (ANN).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*57ERCXpGfg0TjHD-.png" /><figcaption>Diagram of neural networks (<a href="https://francescolelli.info/tutorial/neural-networks-a-collection-of-youtube-videos-for-learning-the-basics/">Source</a>)</figcaption></figure><blockquote><strong>Artificial Neural Network (ANN)</strong> is known for its ability to handle complex patterns in the data. It consists of interconnected nodes, or “neurons,” organized into layers. Information is input into the network, and through a process of mathematical computations, it travels through the interconnected neurons to produce an output. The network learns from data by adjusting the strengths of connections between neurons, a process called training. This learning enables ANNs to make predictions, recognize patterns, and solve complex problems, making them a fundamental tool in the field of artificial intelligence.</blockquote><p><strong>Data Sources and Summary</strong></p><p>To train and test the machine learning models effectively, researchers need access to a substantial amount of data. In this context, data was obtained from a range of reputable journals and sources, including Frontiers in Plant Science, Nature, Scientific Reports, and others.</p><h3><strong>Results and Conclusion</strong></h3><p>Predicting off-target effects in CRISPR is crucial for ensuring the safety and precision of genome editing. Identifying and minimizing off-target effects is essential to avoid unintended mutations and mitigate risks associated with genome editing. The model used had a 96.27% accuracy rate (Das et al., 2022). This demonstrates that the off-targets of CRISPR-Cas9 gene editing can be reliably predicted by machine learning approaches.</p><p>This promising development paves the way for CRISPR to become a more dependable tool for medical applications and one day, a world free from genetic diseases.</p><h3><strong>Key Takeaways</strong></h3><ol><li>CRISPR-Cas9 holds immense potential for precise gene editing and medical transformation but faces limitations in off-target effects.</li><li>Integrating CRISPR with artificial intelligence (AI) can help predict and mitigate off-target effects.</li><li>Editas Medicine is a prominent CRISPR startup dedicated to genetic disorder therapies.</li><li>Machine learning, particularly Artificial Neural Networks (ANN), aids in identifying off-target sites and distinguishing between intended and unintended edits.</li><li>Machine learning achieved a 96.27% accuracy rate in predicting off-target effects, bolstering CRISPR’s reliability for medical applications and potential disease-free futures.</li></ol><h3>References</h3><p>Bhat, A. A., Nisar, S., Mukherjee, S., Saha, N., Yarravarapu, N., Lone, S. N., Masoodi, T., Chauhan, R., Maacha, S., Bagga, P., Dhawan, P., Akil, A. A.-S., El-Rifai, W., Uddin, S., Reddy, R., Singh, M., Macha, M. A., &amp; Haris, M. (2022, November 18). <em>Integration of CRISPR/Cas9 with artificial intelligence for improved cancer therapeutics — journal of translational medicine</em>. BioMed Central. <a href="https://translational-medicine.biomedcentral.com/articles/10.1186/s12967-022-03765-1">https://translational-medicine.biomedcentral.com/articles/10.1186/s12967-022-03765-1</a></p><p>Das, J., Kumar, S., Mishra, D. C., Chaturvedi, K. K., Paul, R. K., &amp; Kairi, A. (2022, December 12). <em>Machine learning in the estimation of CRISPR-Cas9 cleavage sites for Plant System</em>. Frontiers. <a href="https://www.frontiersin.org/articles/10.3389/fgene.2022.1085332/full">https://www.frontiersin.org/articles/10.3389/fgene.2022.1085332/full</a></p><p>Nayak, A., &amp; Dutta, D. (2023, June 30). <em>A comprehensive review on CRISPR and artificial intelligence based emerging food packaging technology to ensure “Safe food.”</em> Royal Society of Chemistry. <a href="https://pubs.rsc.org/en/content/articlelanding/2023/fb/d3fb00059a">https://pubs.rsc.org/en/content/articlelanding/2023/fb/d3fb00059a</a></p><p>University of Columbia (2023, July 5). <em>Artificial Intelligence meets CRISPR: The rise of precision RNA-targeting and gene modulation</em>. SciTechDaily. <a href="https://scitechdaily.com/artificial-intelligence-meets-crispr-the-rise-of-precision-rna-targeting-and-gene-modulation/">https://scitechdaily.com/artificial-intelligence-meets-crispr-the-rise-of-precision-rna-targeting-and-gene-modulation/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7fd85ced193f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>