<?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 Sofia Thai on Medium]]></title>
        <description><![CDATA[Stories by Sofia Thai on Medium]]></description>
        <link>https://medium.com/@sofia-thai?source=rss-aabac24c5c49------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*JEfPtatunDOD3UYQacwFKA@2x.jpeg</url>
            <title>Stories by Sofia Thai on Medium</title>
            <link>https://medium.com/@sofia-thai?source=rss-aabac24c5c49------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 07:13:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sofia-thai/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[“A year from now, you will wish you had started today.” — Karen Lamb]]></title>
            <link>https://sofia-thai.medium.com/a-year-from-now-you-will-wish-you-had-started-today-karen-lamb-f4de51e20e1c?source=rss-aabac24c5c49------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4de51e20e1c</guid>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[executive-coaching]]></category>
            <category><![CDATA[professional-development]]></category>
            <category><![CDATA[growth-mindset]]></category>
            <category><![CDATA[growth]]></category>
            <dc:creator><![CDATA[Sofia Thai]]></dc:creator>
            <pubDate>Thu, 07 Jan 2021 16:34:47 GMT</pubDate>
            <atom:updated>2021-01-07T16:34:47.742Z</atom:updated>
            <content:encoded><![CDATA[<h3>“A year from now, you will wish you had started today.” — Karen Lamb</h3><p>It’s finally 2021, but does that really mean anything to you? I’d say no, because the most impactful changes don’t happen when the clock moves from 11:59 to 12:00. They happen when thousands, millions, or even billions of small actions accumulate over time. We’ve even seen this in our personal lives- you didn’t wake up suddenly one day knowing how to talk or immediately know how to drive a car when you turned 16. Take it from [scrubbed name], he still doesn’t know how to use the turn signal (seems to be a trend among BMW drivers).</p><p>I’ve been applying this same mindset to my different goals in life (in fact, we’ve all been through our CDPs and DROPs). Whether it be about becoming a better family member, community member, business professional, Warzone player, etc., “A year from now, you will wish you had started today.” — Karen Lamb. Think about this while you round out your New Years resolutions or the next time you find yourself at somewhat of a standstill. “What skills should I sharpen if I want to be a VP in X years?” “What should I start doing if I want to be a body building champion by October?”</p><p>To tie it up, the New Year’s Holiday doesn’t change much, but your thoughts and actions can. Go be your greatest self this year!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4de51e20e1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Deep Dive Into Our DeepLens Basketball Referee]]></title>
            <link>https://medium.com/better-programming/a-deep-dive-into-our-deeplens-basketball-referee-c8ed96affd82?source=rss-aabac24c5c49------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8ed96affd82</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[basketball]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Sofia Thai]]></dc:creator>
            <pubDate>Mon, 06 May 2019 12:01:01 GMT</pubDate>
            <atom:updated>2019-05-07T17:30:33.924Z</atom:updated>
            <content:encoded><![CDATA[<h4>Using Computer Vision and AWS DeepLens to bring basketball into the future</h4><h3>Overview</h3><p>Basketball not only causes broken ankles, but it can also cause broken relationships. From arguments about ambiguous fouls to debates over two- or three-pointers, pick-up games can turn into long-term feuds. Enter our Basketball Virtual Referee. The goal of the Basketball Virtual Referee is to make games easier for players by allowing them to focus more on playing the game itself—and less on tracking shots, memorizing scores, and detecting fouls (nothing beats video replay capabilities).</p><p>For our first iteration, the team focused on shot detection. The team trained a Microsoft Custom Vision model to recognize a human, basketball, and basketball hoop and a second model to detect the basketball entering the hoop. An AWS Cloud application utilizes these machine learning models to identify DeepLens frames containing the desired objects, passes the images and their metadata through S3 and DynamoDB, and eventually outputs when a shot was made to the UI.</p><h3>What is DeepLens?</h3><p>AWS DeepLens is a wireless-enabled video camera and development platform integrated with the AWS Cloud. It lets you use the latest Artificial Intelligence (AI) tools and technology to develop computer vision applications based on a deep learning model.</p><p>DeepLens is similar to the AI-powered Google Clips camera, but while Clips is targeted at consumers, DeepLens is a new, exciting tool for developers. According to Amazon’s website, it’s the first video camera designed to teach deep learning basics and optimized to run machine learning models on the camera.</p><h3>What is Microsoft Custom Vision?</h3><p>The Custom Vision service uses a machine learning algorithm to classify images. You, the developer, must submit groups of images that feature and lack the classification(s) in question. You specify the correct tags of the images at the time of submission. Then, the algorithm trains to this data and calculates its own accuracy by testing itself on that same data. Once the model is trained, you can test, retrain, and eventually use it to classify new images according to the needs of your app. You can also export the model itself for offline use.</p><h3>Behind The Scenes</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hz-FFHq7fmGOmoj30kVzwQ.png" /><figcaption>Team: Mogi Patangan, Muhammad Naviwala, Sofia Thai, Brittany Harrington, and Alex Tai</figcaption></figure><h3>Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*ikm6HdaKSk3EpDYMAmAbxg.png" /><figcaption>Technology Stack</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*0MQCHCAqb4de54xhtfpWNg.png" /><figcaption>Systems Diagram</figcaption></figure><h3>Video Demo</h3><p>If you’d rather watch a video instead of reading the article below, feel free to use this!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FT_97v0HoA_Y%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DT_97v0HoA_Y&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FT_97v0HoA_Y%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f09420938e69981e36d751db76bed40f/href">https://medium.com/media/f09420938e69981e36d751db76bed40f/href</a></iframe><h3>How We Created It</h3><p>Below is what we used to create the Basketball Virtual Referee with AWS DeepLens:</p><ul><li>An Amazon DeepLens device</li><li>An AWS account</li><li>A Microsoft Custom Vision account (free)</li><li>A laptop or computer</li><li>Hands or other means of interacting with the computer</li></ul><h3>Training the Object Detection Custom Vision Model</h3><p>First, we gathered images of humans, basketballs, and basketball hoops. They could be separate images or all in the same photo.</p><p>Once we had our images, we created a free Microsoft Custom Vision Account: <a href="https://www.customvision.ai/">https://www.customvision.ai/</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*so1JpZELr2KV5X1nUiYt5w.png" /></figure><p>Here, we trained our object detection model to recognize your three objects (player/human, basketball, and basketball hoop).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*43JZof6mCmVpJPIfUTTvhg.png" /></figure><p>Once the model was trained with a high enough precision and recall, we needed a way to have our DeepLens camera feed pass into the Custom Vision model. A video feed is just a series of frames, so we needed to pass each frame into the model to detect the three objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*ZKXNj0JWtj-cZv0QXUhqKQ.png" /></figure><p>You can do this in many ways. We chose to utilize AWS Lambda because the DeepLens is part of the Amazon suite. To learn more about creating one, use <a href="https://docs.aws.amazon.com/toolkit-for-eclipse/v1/user-guide/lambda-tutorial.html">this link</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*a40mq9GAgCF46cJHQAAYZg.png" /></figure><p>Below is a snippet of how we hit the Custom Vision API and retrieved the probabilities back.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AlhgpamaVktNFL_IPgg1PA.png" /></figure><p>The output looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*Q7Z_FihEeoY0qO03cfE_qg.png" /></figure><p>Next, if the probability of a hoop and basketball being in the image is above 40 percent, we store the frame into an S3 instance and insert a new record into DynamoDB (if you don’t have an S3 spun up yet, feel free to <a href="https://docs.aws.amazon.com/quickstarts/latest/s3backup/step-1-create-bucket.html">create one now</a>). The DynamoDB record contains attributes about the frame, but yours can be different. Ours had the frame URL, probabilities dictionary (probability of a ball, hoop, and player), and timestamp.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*8cjwVPad-uQcJ0vvUs8FYw.png" /></figure><p>Going back to the lambda—if there is a probability of 40 percent or more that a player is in the frame, store the frame into S3 (regardless of the hoop and basketball probability). Feel free to change your thresholds as needed for your product and model performance. We did this to keep the system as modular as possible, so we could use this output to detect player improvements and eventually team-level feedback.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*76nt2pSo-cyYi-baD_IToA.png" /></figure><h3>Shot Detection</h3><p>Next, we had a separate lambda that is automatically triggered from the S3 upload that just occurred. Below is what your S3 will look like once you have images in there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*8j303tkchJMJtsk2ctjN5g.png" /></figure><p>To create a trigger for the second lambda (shot detection), we just needed to drag the S3 module to the left and fill out the necessary configurations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZTHak9GDy8quGdNeh8MvSA.png" /></figure><p>Next, we pass the frame that triggered the lambda into our 2nd Custom Vision Model to predict a successful shot. Again, the reason why we split these up is to allow for future features of player-level or team-level analytics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*44vG37TWnwK2LZ6vrBjzQw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LY89G7qDiqgXUQiCPBU3ag.png" /></figure><p>This is what the output of the shot detection model will looks like in our logs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*dA62tv7dyGXATmGiXxrh4w.png" /></figure><p>If the probability that the frame had a successful shot is more than or equal to 50 percent, update the DynamoDB record to include a point value of 1. If it’s less than 50 percent, update the record with a point value of 0.</p><p>Here is the final DynamoDB output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*PW4IyPdFnGQfcmsBeCYtkA.png" /></figure><h3>Conclusion</h3><p>Overall, the DeepLens was an easy tool to get started with and allowed us to prove our concept. Since the DeepLens has a low frame rate relative to other video processing tools, however, it can easily miss critical moments. For Team Finesse, it was a challenge to capture the continuous set of frames tracking a ball’s progression from player through hoop. As next steps, the team is interested in replacing the DeepLens video feed with that from an iPhone. We hope this can inspire you to create something of your own and thank you for reading!</p><h3>The Team</h3><p>Team Finesse is an internal initiative within Pariveda Solutions and our main goal is to create small, workable POCs with emerging technologies. Feel free to leave a comment or direct message us through <a href="https://www.instagram.com/ogteamfinesse/">https://www.instagram.com/ogteamfinesse/</a> (@OGTeamFinesse). We’re currently working on creating a blockchain that encourages meet-ups and networking opportunities- ask us about it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*D-y1WYuWUC8gMZqwwTOqag.png" /></figure><h3>Sources:</h3><p><a href="https://docs.aws.amazon.com/deeplens/latest/dg/what-is-deeplens.html">https://docs.aws.amazon.com/deeplens/latest/dg/what-is-deeplens.html</a></p><p><a href="https://mashable.com/2018/06/14/amazon-deeplens-camera/">https://mashable.com/2018/06/14/amazon-deeplens-camera/</a></p><p><a href="https://docs.microsoft.com/en-us/azure/cognitive-services/custom-vision-service/home">https://docs.microsoft.com/en-us/azure/cognitive-services/custom-vision-service/home</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8ed96affd82" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/a-deep-dive-into-our-deeplens-basketball-referee-c8ed96affd82">A Deep Dive Into Our DeepLens Basketball Referee</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>