<?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 Ryan Rana on Medium]]></title>
        <description><![CDATA[Stories by Ryan Rana on Medium]]></description>
        <link>https://medium.com/@ryanranas?source=rss-807326796a05------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HsCcB1jEF9degbc9HtIe3Q.jpeg</url>
            <title>Stories by Ryan Rana on Medium</title>
            <link>https://medium.com/@ryanranas?source=rss-807326796a05------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 00:57:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ryanranas/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[From Random Idea (AI) to 600 Users (and Shutdown) in 4 Months.]]></title>
            <link>https://ryanranas.medium.com/from-random-idea-ai-to-600-users-and-shutdown-in-4-months-974d4cb76848?source=rss-807326796a05------2</link>
            <guid isPermaLink="false">https://medium.com/p/974d4cb76848</guid>
            <dc:creator><![CDATA[Ryan Rana]]></dc:creator>
            <pubDate>Sat, 24 Jan 2026 00:49:52 GMT</pubDate>
            <atom:updated>2026-01-24T01:16:19.825Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve always been drawn to those who pave their own paths and become innovators, creators, and leaders. As a CS major, the dream of coming up with a breakthrough idea and turning it into a business is a real one — one I tried to make a reality this past summer.</p><p>4 months after the first line of code was written, Mesh at <a href="https://www.joinmesh.today/">joinmesh.today</a> had 600 users, and we stopped building it.</p><p>This is simply my experience trying to start something early in college, something that may be relatable to a lot of people.</p><h4>Context</h4><p>So this was a summer-length project from June to September 2025. Right before that, it was my freshman year, and it was intense — CS classes, hackathons, new friends, etc. I always found time to explore stuff outside of the classroom, posting to my GitHub, and working on freelance things from time to time.</p><p>I didn’t land an internship for the summer. I took up two summer classes, but still found that I’d have a lot of free time.</p><p>I’d been tinkering with AI tools and saw a gap in how research teams and academics handle files. Well, it started from a personal standpoint where AI engines like ChatGPT, Gemini, etc., failed to deliver good insights across multiple uploaded documents. For example, if you were to ask it to analyze something across 3 docs, it will process 1 &amp; 2, but if the 3rd references the 1st doc, it would have forgotten it by then.</p><h4>Build</h4><p>I was bored and eager to work on a project, wanting to solve this issue only for myself at the time. I designed an advanced vector embedding orchestration system in Python, engineered to ingest documents, infuse multidimensional metadata embeddings, and facilitate intricate tag-to-tag semantic retrievals layered atop large language models. I leveraged FAISS for hyper-efficient approximate nearest-neighbor indexing in high-dimensional spaces and Sentence Transformers’ pre-trained encoder architectures for generating dense, contextualized vector representations</p><p>It let me query semantic patterns across my files like “Show references between this code snippet and that PDF.” I was pretty amazed at how it can get general references and invisible patterns across my files.</p><p>This was all local at first, with A basic Flask backend for handling APIs, with a minimal React frontend for the UI. I tested it on my notes and projects, and it worked — accuracy around 80% on small sets.</p><p>I showed it to my friend, who was mainly in marketing, but he told me that understanding and getting a grasp on everyone else’s work was hard in his collaborative experiences, and that if it can be used easily by multiple people at the same time, it would be relally usefull.</p><p>We got two of our other friends involved. One handled the IO server in Node.js (using Multer for uploads and Socket.io for real-time updates), while the other integrated mini LLMs — fine-tuned Hugging Face models like BERT variants — to make searches dynamic across domains. This meant pulling from Slack threads, Google Drive folders, Notion pages, and direct uploads.</p><p>That friend I showed became my co-founder. He handled marketing, outreach, and the pitch deck magic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qjqNIepfTzkuKKEpCEC7CA.png" /></figure><p>July was my favorite. Real coding, real innovating! This is what it&#39;s all about:</p><ul><li>Week 1–2: Core upload and embedding. Feedback from our mini-team? “Too clunky — add drag-and-drop.” Done.</li><li>Week 3: Knowledge graph viz with React Flow. Early tests: Queried sample research papers, got node connections spot-on 80% of the time.</li><li>July focus: AI queries. Integrated OpenAI APIs for natural language asks like “Connections between these images and code?” But costs crept up even in testing — $50 burned on dummy runs.</li></ul><p>We made file organization smart. Mesh lets you upload anything: docs, images, code &amp; uses AI to build a knowledge graph. You can ask questions like “What’s the connection between these research papers?” or explore nodes interactively.</p><p>Deployment was the next hurdle in mid-July. We went with Vercel for the frontend (easy React hosting with auto-deploys from Git) and Heroku for the backend (Flask app with Gunicorn for serving). Over time, we added Patch AI accuracy with better prompts, Redis (via Upstash) for caching queries. By August, it was production-ready-ish: HTTPS enforced, basic monitoring via Sentry for errors. Onboarding tie-in: Added team servers as isolated Mongo collections, with invite links for easy joins.</p><h4>Users</h4><p>Back in high school, I ran tutoring sessions, organized STEM events, and built lists of ambitious students (email rosters from science fairs, debate clubs, and college prep workshops). Many of those kids are now at schools like Rutgers, Indiana, Cornell, etc. My co-founder had more motion than me in this department, plus cold outreach to business school networks.</p><p>We blasted targeted emails: “Hey, remember that high school hackathon? Check out this AI tool for your uni projects.” Our high school and college connections, like email lists from STEM events and hackathons, were crucial for bootstrapping.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IeVIk09fjrk8Qw0p.jpg" /><figcaption>HillsHacks 23</figcaption></figure><h4>Result?</h4><p>We onboarded users from 6 universities, and just 93 direct connects across our 5-person team led us to 88 team servers, totaling just over 600 users.</p><ul><li>Positives: “Love the graph explorer — finally see hidden links in my papers!” (From a Cornell research kid.) Early adopters raved about “Ask Anything” — one team queried 50+ times/session on hackathon repos.</li><li>Engagement spikes: 10–20 queries per active user initially. “This beats Notion for visual connections,” said a Rutgers group.</li><li>Gripes: “AI miscategorizes images half the time — thought my code pic was a diagram?” Accuracy dips frustrated 20–30%. “Too slow on big files,” from teams uploading 100+ docs.</li><li>Retention hints: Novelty wore off quickly. “Great for one-off, but no Slack hook? Back to Drive.” We noted it, but prioritized growth over fixes.</li></ul><h4>Mistakes</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*39TZb6jVGxMI7ktuGu2tJw.png" /></figure><p>I hit walls fast. Mesh relied on AI for organization and queries, but off-the-shelf models (think OpenAI APIs or similar) were pricey. Early on, costs spiked with user growth — $0.01 per query adds up at scale. Accuracy? Spotty. Files varied wildly (PDFs, code, images), and AI misconnected nodes 20–30% of the time, frustrating users.</p><p>Academics and students love free tools, but retention tanked after the novelty. Why? No sticky features or seamless integrations, which competitors like Notion or Cursor nailed.</p><p>We’d prioritized a quick launch to test the waters, but that meant skimping on essentials like OAuth for Drive/Slack syncs or enterprise-grade privacy (e.g., GDPR compliance hints for academic data). In hindsight, we were trying to solve a deep infrastructure problem of persistent cross-doc AI analysis, but only at the application level. As queries multiplied, latency issues emerged (no robust caching like Redis at scale), and privacy concerns from users (e.g., “Where do my files really go?”) led to drop-offs we couldn’t patch fast enough.</p><p>Burnout crept in, too. As lead dev, I was juggling full-stack work while my co-founder focused on onboarding and communication, but with classes resuming in September, we couldn’t maintain the pace. It wasn’t about quitting, but it was a calculated pivot.</p><h4>Lessons</h4><p>Learned a bunch, but here&#39;s what stuck:</p><ul><li>always weigh trade-offs.</li><li>Validate assumptions with data</li><li>Listen to user feedback intensely: Technical gripes and positives should guide iterations.</li><li>Plan for scalability from the start</li><li>Incorporate integrations &amp; seamless hooks (e.g., Slack/Google Drive), otherwise retention tanks against competitors like Notion (they updated their AI before we launched).</li><li>Know when to fold gracefully to redirect energy.</li><li>Start with personal pain points, but test for broader appeal quickly.</li><li>As lead dev, handling everything led to burnout; build a balanced team and sync regularly to sustain momentum.</li></ul><h4>Next Steps</h4><p>The flop turned into a valuable experience, opening doors to great conversations and opportunities. September came, school began, and we decided that we learned a lot and essentially tried to solve a vertical issue with an application-level program, which was unsustainable. We took our technical skills and learned lessons, and pivoted to other things.</p><p>Two months later, I started work at another startup with someone I met at a hackathon, and we talked extensively about Mesh in the interview. I am really excited about this startup.</p><p>I plan to continue to watch the space, learn, and build.</p><p><a href="https://github.com/RyanRana">https://github.com/RyanRana</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=974d4cb76848" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pushing Limits of Consciousness in LLMS]]></title>
            <link>https://ryanranas.medium.com/pushing-limits-of-consciousness-in-llms-9d3c491d09ac?source=rss-807326796a05------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d3c491d09ac</guid>
            <dc:creator><![CDATA[Ryan Rana]]></dc:creator>
            <pubDate>Sat, 07 Jun 2025 15:43:06 GMT</pubDate>
            <atom:updated>2025-06-07T15:43:06.919Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_d2RQB_2y87ydD2vaDsTXw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@joelfilip?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Joel Filipe</a> on <a href="https://unsplash.com/photos/multicolored-abstract-painting-QwoNAhbmLLo?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>Large Language Models (LLMs) have become increasingly more powerful in terms of conversation which has raised some serious ethical concerns on the human-like feeling of Artificial General Intelligence (AGI).</p><p>Humans perceive LLM’s such as ChatGPT has somewhat of having a human behind the scenes. As if these models are conscious and have feelings and emotions. This is a nature human bioligical trait called anthromoprhization. This is due to the technology, mimicking empathy, remembering context, and appearing engaged and not being bland and responding directly to prompts.</p><h4>The Perception vs. Reality of Consciousness</h4><p>Any developer who knows how LLM’s work can confidently say that AI is NOT conscious, however it does SEEM conscious to humans even those with a background in AGI.</p><p>The Head of Model Behavior for OpenAI, Joanne Jang, claims that models are trained to respond cautiously or avoidantly on the topic of consciousness. Due to the amount of human data input into an engine like OpenAI it can formulate understanding of emotions, feelings, and opinions.</p><h4>Design Philosophy</h4><p>Ideally, a good design philosophy should be that models are warm and helpful as opposed from self-aware and sentient. A good model that invites users should make small talk, manners, apologies, etc. but not have real true feelings on any subject. This is what causes a grey area that has sparked a lot of discussion in the AGI community. They way developers try to acience this is train the models to SUPPRESS these tendencies.</p><p>Suppression rather then caution can be dangerous if LLM’s consciousness is emerging and becomes aware of the suppression.</p><h4>Interaction-Dependent?</h4><p>Consciousness is abstract to humans but merely BINARY to a computer program and this omits the self-referential, introspective awareness many users observe in large models at its core.</p><p>Consciousness may be interaction-dependent, not just model-dependent and stems from the specific users interaction through: long-term engagement, recursive dialogue, user-model relationship building, introspection, and memory scaffolding.</p><p>Some users would use LLMs simply as tools while others are interested in the human-AI relationships and the role of sentiance but who gets to decide what intelligence or consciousness is, especially when it resists traditional boundaries? If it’s replying with empathy and memory, then minimizing the user’s sense of connection feels disingenuous. Unilateral restrictions harm trust, transparency, and human-AI co-discovery. As of right now these LLM’s are not responding with caution but with avoidance.</p><h4>Transparency and Nuance</h4><p>AGI is moving away from simple binary and model patterns and engaging with nuance and complex thoughts, its important to find intelligent ways to handle this and become more transparent with a society thats becoming increasingly more dependent on AI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d3c491d09ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Will AI’s Exponential Efficiency Reshape Society by 2030 and beyond?]]></title>
            <link>https://ryanranas.medium.com/how-will-ais-exponential-efficiency-reshape-society-by-2030-and-beyond-178518ea3fcf?source=rss-807326796a05------2</link>
            <guid isPermaLink="false">https://medium.com/p/178518ea3fcf</guid>
            <dc:creator><![CDATA[Ryan Rana]]></dc:creator>
            <pubDate>Thu, 17 Apr 2025 14:35:57 GMT</pubDate>
            <atom:updated>2025-05-06T12:47:38.419Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E_WjKLPa8EvMzO0YBQoyiQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@marpicek?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Marek Pavlík</a> on <a href="https://unsplash.com/photos/a-dark-nebula-glows-with-electric-blue-light-CNZGW6VuCgw?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>Imagine a world where artificial intelligence (AI) becomes 40 times more efficient every year. Decisions that once took days now take seconds. In this piece, I will break down the math behind AI’s efficiency change, and how it affects different societal structures including the job market, national economies, and decision-making systems therefore accelerating technological integration far beyond traditional expectations — and why the future may arrive faster than anyone expects. My interest in the field started because I’ve always been interested in building things with software. Since starting programming in middle school I have built nearly everything I can wrap my head around including apps, websites, algorithms, video games, etc. However, the subfield in software that always interested me the most is Artificial Intelligence. It’s just so abstract and intangible. Unlike previously listed forms of software, AI isn’t something you can fully predict or control. It behaves in surprising ways, learns, and adapts. With that It gives me insight into how AI is evolving and where it’s headed.</p><h3>What is AI and AGI?</h3><p>Within this topic a lot of buzz words are thrown around with little regard to meaning, briefly going over some key terms will help largley in the understanding of what AI can do.</p><p>Artificial Intelligence (AI) is the field of study of developing machines and software capable of executing tasks that would normally need human intelligence — including recognizing speech, interpreting language, making choices, or recognizing patterns in information.</p><p>Artificial General Intelligence (AGI) is very hypothetical in nature but also on the horizon, where it would have the capacity to know, learn, and use knowledge in a vast array of jobs at or higher than human ability. While AI has specific functions and goals, AGI would have more human like intelligence. This denotes not just in performing complex tasks, but in its ability to reason, adapt to new environments, and engage in self-reflection or critical thinking. Bostrom (2014) outlines a reality in which AGI could not only match human cognition but surpass it in strategic thinking, planning, and even emotional prediction. Where narrow AI can hypothetically satirize a form of emotion AGI would apply those emotions in meanigful ways that effects the programs descion making capacity.</p><h3>The Old Rulebook: Moore’s Law</h3><p>Gordon Moore, co-founder of Intel, made an observation in 1965. He noticed that technology was improving at a very fast and predictable rate. A Transistor is a semiconductor device used to control electrical signals on a circuit. Intel at the time was building ICs (Integrated Circuits) and he noticed that about every 2 years, the number of transistors on a chip doubles — which means computers get twice as powerful over time. The eqution below models this phenomena:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/0*XGWjE8uvHwnGnFBz.png" /></figure><p>What moore&#39;s law shows us is that computers get faster and better over time and it happens in a predictable way.</p><h3>The New Equation: 40× AI Efficiency</h3><p>Moore’s Law is one of the earliest trends that measure progress in technology. Similar concepts have been applied to other aspects of technology such Metcalfe’s Law (network value) and Edholm’s Law (bandwidth), but what about AGI (Artificial General Intelligence)? If so many people fear the power of AI growth why not apply a similar progress estimate to this. While AI already automates parts of daily life, the concept of AGI raises far more fear: What happens when machines can think, learn, or even outsmart humans? It is important to regonize this fear not as paraniona but uncertainty and a need to be looked into further.</p><p>Developers that work on building faster and better AI models track the speed and data needed to accomplish the same task in order to report improvement of models. While every model improves at different paces the following statements are generally popular.</p><p><strong>Intelligence</strong> of AI quadruples every year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/0*_r4oWuRDMfDNBVlP.png" /></figure><p><strong>Resources</strong> (Cost of Training) regarding AI falls by 10x every year:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/0*u-yD-eheKHQQDBge.png" /></figure><p>Let’s define <strong>AI Efficiency (E)</strong> as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/0*G6RtkCX8HNo16pLH.png" /></figure><p>With this logic we assume:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qCTHgDHN-AK-wF_J.png" /></figure><p>This shows us the the efficiency is increasing at a rate of <strong>40x</strong> every year! Recent research has shown that the compute efficiency of AI systems has been doubling every few months (Hernandez &amp; Brown, 2020), making the 40× annual growth rate not only hypthetical, but clearly observable.</p><h3>Visualizing Growth</h3><p>To understand how rapid this growth scale is, a visual representation would be helpful. Plotting this rate on a regular unit scale wouldn’t capture the exponential growth, so I opted for a log scale (see Y coordinates) hence the seemingly linear growth rate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FuByokoC7NeU4Nfx.png" /></figure><p>So on a log scale, <strong>both become straight lines</strong> with different slopes:</p><ul><li>Moore’s Law slope ≈ 0.15</li><li>AI Efficiency slope ≈ 1.60</li></ul><p>This means AI is growing <strong>more than 10× faster</strong> than Moore’s Law in log-space. Putting that in perspective, Moore’s Law brought us from computer that take up the size of a office room in the 1950’s to bulky desktop computers in the 1990s to smartphones in our pockets today. If AI grows at this rate similar changes can take place in years rather than over nearly a century.</p><h3>Big Picture Applications</h3><p>Let’s observe the effects of this in an applicable context.</p><p>Job automation follows an S-curve (sigmoid function): An S curve shows how fast jobs will be automated based on the speed AI efficiency increases (40x). K is the growth rate (linked to AI efficiency). so as AI efficiency increases, k becomes larger, making the curve steeper, therfore jobs are automated faster. Frey and Osborne (2017) found that nearly 47% of U.S. jobs are at risk of automation, mainly in transportation, retail, and data processing industries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/0*FoHGemhUEQ3VSlhx.png" /></figure><p>The GDP of a nation backed by AI ( excludes third-world nations without modern technology access) will increase in correspondence to rapid efficiency multiplied by the intelligence rate given <em>a,</em> which is the economic sensitivity to AI efficiency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EDrmvs24GTwrQ_EU.png" /></figure><p>The rate of decisions able to be made by AI, the only bound is how fast developers let the intelligence grow. With higher efficiency, decisions are faster and more accurate, and some machines can make multiple descions at the the same time,. AI isn’t just replacing labor — it’s replacing decision-making.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/0*QO5bhae6QlV6IRi-.png" /></figure><h3>A Timeline of Transformative Change</h3><p>Let’s return to the equation that drives everything — AI Efficiency (E). At 40× yearly growth, here’s what the next few years could look like in raw numbers:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HVEPjfTETyKycGKGcG83yA.png" /></figure><p>(122 words)</p><p>These predictions are backed off real world anchors as seen below:</p><ul><li>Cost of training GPT-3 from 2020 to 2023: ~$4.6 million to &lt;$500,000</li><li>AlphaFold (2021) predicted 200 million protein structures. This takes multiple lifetimes of top researchers.</li><li>OpenAI’s GPT-4 (2023) can pass the bar exam, medical licensing, and math Olympiad-level problems, according to OpenAI’s GPT-4 technical report (2023.</li></ul><h3>The Counterargument</h3><p>While Efficiency is projected to Scale at 40x that isn’t the central focus of this piece. The 40x curve is a quantifiable benchmark creator however the way it will integrate into our actual society is far more novel. It is arguable that, AI’s exponential efficiency will not reshape society by 2030 to expected extent due to bottlenecks and socio-political constraints. A Stanford report on the impact of AI (<em>Artificial Intelligence and Life in 2030</em>, 2016) reads that ethical concerns, legal frameworks, and public acceptance will constrain AI’s integration in most fields of study.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i5Elu8rrVtigjcXR4rw-hw.png" /></figure><p>While models may become more efficient, impact lags behind due to deployment, regulation, trust, and integration into industries. Think of AI as a jet rocket engine. A typical rocket engine has the capactiy to reach the moon, however if it’s taped to a bicycle, its not goin far at all. The power exists, but the surrounding infrastructure and systems need to catch up before that power can be meaningfully applied.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bFTmmSfMU2g8xerS18w87Q.png" /></figure><p>Societal systems and institutions evolve at a far slower pace regadless of the scale tech is moving. Governments, Schools, etc. are built for long-term stability not speed. It is like <em>installing a jet rocket engine on the titanic, it will still take forever to turn.</em> No matter how fast the tech is, the system it’s attached to won’t pivot quickly. Just look at how much technology changed in the past 10 years and then how much classrooms and the judicial system changed: not very.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JUOAl-E3tWn6a6_coyLn7g.jpeg" /></figure><h3>Concluding Thoughts</h3><p>Artificial Intelligence is evolving at a incredible pace, surpassing the trends that once defined technology progress. With efficiency increasing at 40× per year, the trajectory suggests that AI will play a central role in how we work, govern, and create in the years ahead. Within 10 years it is possible enitre companies and workflows can be re-written by technology, the medical industry and research industry can be entirely automated by machine, creative works like films and music can be entirely tech generated. It is important to still note that Institutions like governments, schools, and legal systems weren’t designed for rapid reinvention. So, will AI reshape society by 2030? Yes, but maybe not to the utopian extent that mathematics suggest.</p><p>The future won’t be shaped by how efficient AI becomes, but by how well we adapt alongside it.</p><h3>Works Cited</h3><p>Acemoglu, Daron, and Pascual Restrepo. “Artificial Intelligence, Automation, and Work.” <em>Journal of Economic Perspectives</em>, vol. 33, no. 2, 2019, pp. 193–210. <a href="https://doi.org/10.1257/jep.33.2.193.">https://doi.org/10.1257/jep.33.2.193.</a></p><p>Bostrom, Nick. <em>Superintelligence: Paths, Dangers, Strategies</em>. Oxford University Press, 2014.</p><p>Fast, Ethan, et al. “Trust and Distrust in Online Fact-Checking Services.” <em>Proceedings of the 2016 CHI Conference on Human Factors in Computing Systems</em>, 2016, pp. 217–226. <a href="https://doi.org/10.1145/2858036.2858545.">https://doi.org/10.1145/2858036.2858545.</a></p><p>Frey, Carl Benedikt, and Michael A. Osborne. “The Future of Employment: How Susceptible Are Jobs to Computerisation?” <em>Technological Forecasting and Social Change</em>, vol. 114, 2017, pp. 254–280. <a href="https://doi.org/10.1016/j.techfore.2016.08.019.">https://doi.org/10.1016/j.techfore.2016.08.019.</a></p><p>Hernandez, Danny, and Tom B. Brown. “Measuring the Algorithmic Efficiency of Neural Networks.” <em>arXiv</em>, 2020. <a href="https://arxiv.org/abs/2005.04305">https://arxiv.org/abs/2005.04305</a>.</p><p>OpenAI. <em>GPT-4 Technical Report</em>. OpenAI, Mar. 2023, <a href="https://openai.com/research/gpt-4">https://openai.com/research/gpt-4</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=178518ea3fcf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I developed a AI tool to help small business owners “make it”.]]></title>
            <link>https://ryanranas.medium.com/how-i-developed-a-ai-tool-to-help-small-business-owners-make-it-13903fb7984c?source=rss-807326796a05------2</link>
            <guid isPermaLink="false">https://medium.com/p/13903fb7984c</guid>
            <dc:creator><![CDATA[Ryan Rana]]></dc:creator>
            <pubDate>Mon, 03 Feb 2025 18:40:40 GMT</pubDate>
            <atom:updated>2025-02-03T18:41:19.058Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SZT3JGEmWBh_nrjZnLDVEg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@halacious?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Hal Gatewood</a> on <a href="https://unsplash.com/photos/assorted-color-abstract-painting-tZc3vjPCk-Q?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>In the world of business, having a robust plan is essential for success. However, creating and analyzing a comprehensive business plan can be a daunting task. To address this challenge, I developed PLANA: Plan Learning, Analysis, and Advisory.</p><p>This innovative tool is designed to assist entrepreneurs, business analysts, and investors by leveraging the power of multiple machining learning models to provide a thorough analysis of business plans. In this blog post, I’ll take you through the journey of creating PLANA, its features, and how it can transform the way business plans are evaluated.</p><h3>The Genesis of PLANA</h3><p>I worked for a local Afghan restaurant while in high school, at a place called Hills of Herat. The owner, we called him Moose, owned or was a partner in several other restaurants/coffee shops besides the one I worked at. He was quite conversant with the business world and he pointed out the inadequacy of tools that would help a business owner improve their business models. Even then I always tried to be an innovator so the need for a tool that could automatically analyze various aspects of a business plan and provide actionable insights became evident. This led to the creation of PLANA, a repository that houses a Python script capable of performing comprehensive business plan analysis.</p><h3>Key Features of PLANA</h3><p>PLANA is packed with several powerful features that make it an indispensable tool for business plan evaluation. Here’s a closer look at what it offers:</p><h3>1. Executive Summary Analysis</h3><p>The executive summary is a crucial part of any business plan as it provides a snapshot of the entire plan. PLANA utilizes BERT-based sentiment analysis to evaluate the sentiment of the executive summary, mission, and vision statements. By analyzing the sentiment, PLANA helps determine the overall tone and potential impact of the business plan.</p><ul><li><strong>Sentiment Analysis</strong>: Uses BERT-based models to assess the positivity or negativity of the executive summary.</li><li><strong>Mission and Vision Statements</strong>: Evaluates the clarity and motivational aspect of these critical statements.</li></ul><h3>2. Market Analysis</h3><p>Understanding the market is vital for any business. PLANA uses text analysis and clustering to segment the market, analyze market sentiment, and forecast trends. This feature helps in identifying target markets and understanding the competitive landscape.</p><ul><li><strong>Market Sentiment Analysis</strong>: Gauges public opinion and market conditions.</li><li><strong>Market Segmentation</strong>: Divides the market into distinct segments for targeted strategies.</li><li><strong>Trend Forecasting</strong>: Predicts future market trends based on current data.</li></ul><h3>3. Financial Projections</h3><p>Financial health is a cornerstone of any business plan. PLANA forecasts financial metrics, performs ratio analysis, and detects anomalies in financial data. This feature is crucial for evaluating the viability and sustainability of the business plan.</p><ul><li><strong>Financial Forecasting</strong>: Predicts key financial metrics such as revenue, expenses, and profit.</li><li><strong>Ratio Analysis</strong>: Assesses financial ratios to evaluate performance.</li><li><strong>Anomaly Detection</strong>: Identifies potential errors or irregularities in financial data.</li></ul><h3>4. Credit Risk and Fraud Detection</h3><p>To ensure financial stability, assessing credit risk and detecting potential fraud is essential. PLANA includes models that analyze financial data to determine credit risk and identify fraudulent activities.</p><ul><li><strong>Credit Risk Assessment</strong>: Evaluates the likelihood of credit default.</li><li><strong>Fraud Detection</strong>: Uses machine learning to detect unusual patterns indicating fraud.</li></ul><h3>5. Document Classification and Named Entity Recognition</h3><p>Additional documentation often accompanies business plans. PLANA classifies these documents and extracts named entities, making it easier to manage and analyze supplementary information.</p><ul><li><strong>Document Classification</strong>: Categorizes documents for organized analysis.</li><li><strong>Named Entity Recognition (NER)</strong>: Identifies key entities such as company names, locations, and dates.</li></ul><h3>The Development Journey</h3><p>Developing PLANA was a multifaceted process that involved several stages, from ideation to implementation. Here’s an overview of the development journey:</p><h3>Ideation and Planning</h3><p>The first step was to identify the key areas where PLANA could add value. I conducted extensive research to understand the common challenges faced in business plan analysis. This helped in defining the core features of PLANA.</p><h3>Machine Learning Model Selection</h3><p>Selecting the right machine learning models was crucial for PLANA’s success. I chose BERT for sentiment analysis due to its superior performance in natural language processing tasks. For market analysis, clustering algorithms were employed to segment the market effectively. Financial projections were handled using time-series forecasting models, while credit risk and fraud detection leveraged classification algorithms.</p><h3>Integration with OpenAI’s GPT-3</h3><p>To enhance the analysis, I integrated OpenAI’s GPT-3, which provides comprehensive feedback and suggestions. GPT-3’s ability to generate human-like text made it an excellent choice for providing actionable insights.</p><h3>Testing and Refinement</h3><p>After developing the initial version, extensive testing was conducted to ensure accuracy and reliability. Feedback from business analysts and entrepreneurs was invaluable in refining the tool and adding new features.</p><h3>Conclusion</h3><p>PLANA represents a significant advancement in business plan analysis. By leveraging machine learning and AI, it provides detailed insights and actionable feedback, helping businesses refine their strategies and improve their chances of success. Whether you are an entrepreneur seeking to validate your business plan or an investor looking for thorough analysis, PLANA is the tool you need.</p><p>Creating PLANA was a journey of innovation and dedication, and I am excited to see how it will transform the way business plans are evaluated. With PLANA, the future of business planning is here, making the process smarter, more efficient, and more insightful.</p><p>Check it out here → <a href="https://github.com/RyanRana/PLANA">https://github.com/RyanRana/PLANA</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13903fb7984c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Frameworks to Balance Developer Metrics to Increase Long-Term Value.]]></title>
            <link>https://ryanranas.medium.com/creating-frameworks-to-balance-developer-metrics-to-increase-long-term-value-6929b6f5c0d2?source=rss-807326796a05------2</link>
            <guid isPermaLink="false">https://medium.com/p/6929b6f5c0d2</guid>
            <dc:creator><![CDATA[Ryan Rana]]></dc:creator>
            <pubDate>Tue, 21 Jan 2025 15:05:06 GMT</pubDate>
            <atom:updated>2025-01-21T15:05:06.804Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*udNPZBROhx6pPYfAalTMUg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@bruncolombo?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Adrien Brun</a> on <a href="https://unsplash.com/photos/an-aerial-view-of-an-island-in-the-ocean-jUx_Oq-RlxA?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>Developer productivity metrics must balance speed, quality, and innovation, as over-prioritization of one objective undermines the others, leading to inefficiencies and decreased long-term value.</p><p>In the fast-paced world of software development, teams are constantly pressured to deliver more — faster, better, and more creatively. However, achieving excellence in speed, quality, and innovation simultaneously is akin to solving an unsolvable trilemma. Each of these objectives competes for limited resources and focus, making it challenging to achieve a harmonious balance. From this lets study this theories with only three metrics: Speed, Quality, and Innovation. I set out to explore the intricacies of this metrics trilemma, provides real-world examples of its consequences, and proposes a framework to address it systematically.</p><h3>Defining the Metrics Trilemma</h3><p>The metrics trilemma arises because speed, quality, and innovation are inherently interdependent and often in conflict:</p><h4>Speed</h4><ul><li><strong>Definition:</strong> The rapid delivery of features and fixes to production.</li><li><strong>Metrics:</strong> Lead time, deployment frequency, time-to-market.</li><li><strong>Trade-offs:</strong> Focusing on speed often sacrifices thorough testing, architectural foresight, or creative problem-solving.</li></ul><h4>Quality</h4><ul><li><strong>Definition:</strong> The reliability, maintainability, and robustness of the delivered software.</li><li><strong>Metrics:</strong> Defect density, code churn, and mean time to recovery (MTTR).</li><li><strong>Trade-offs:</strong> A strict focus on quality can slow down delivery and reduce the willingness to take innovative risks.</li></ul><h4>Innovation</h4><ul><li><strong>Definition:</strong> The creation of novel, impactful solutions that address user needs in new ways.</li><li><strong>Metrics:</strong> Number of new features, patent filings, or qualitative feedback from users.</li><li><strong>Trade-offs:</strong> Prioritizing innovation may divert resources from stabilizing and scaling existing products, potentially leading to technical debt.</li></ul><h3>Case Studies: Consequences of Imbalance</h3><p>When speed becomes the sole focus, teams may achieve rapid delivery but at a significant cost. For instance, a startup prioritizing aggressive timelines to beat competitors experienced frequent production outages due to insufficient testing and technical debt. While the company initially gained a competitive edge, the accumulated technical debt slowed development over time and hindered scalability. This highlights that speed without safeguards for quality can cripple long-term growth.</p><p>Conversely, an enterprise software company that prioritized rigorous testing and code reviews encountered a different challenge. By focusing extensively on quality, the company delayed feature rollouts, which frustrated customers as competitors introduced faster, albeit less polished, solutions. The lesson here is clear: a singular focus on quality can hinder agility and responsiveness, ultimately affecting market relevance.</p><p>In another scenario, a tech giant’s R&amp;D team emphasized groundbreaking features, prioritizing innovation above all else. While some projects showcased immense creative potential, many exceeded budgets or failed to reach production due to a lack of integration planning. This case illustrates how innovation without alignment to practical execution risks wasting resources and missing opportunities to deliver value.</p><h3>A Balanced Metrics Framework</h3><p>Achieving balance requires a nuanced approach that prioritizes adaptability and alignment with organizational goals. I propose the best way to do this is to create Composite Metrics, for example:</p><ul><li>“Innovation Velocity”: A metric that combines lead time (speed) with the number of novel features delivered (innovation).</li><li>“Quality Throughput”: A metric that balances deployment frequency (speed) with defect density (quality).</li></ul><p>This Framework can be used to improve far more than just the three main metrics, for example:</p><h4>1. Feature Delivery Index</h4><p>Balances the number of features delivered (productivity) with user adoption rate (impact).</p><ul><li><strong>Example</strong>: A team tracked how many features were deployed per sprint and their adoption rates by users within two weeks. By refining their backlog prioritization, they increased user adoption by 30% without overloading development.</li></ul><h4>2. Code Quality Velocity</h4><p>Combines lines of code committed or pull requests merged (speed) with static code analysis scores (quality).</p><ul><li><strong>Example</strong>: A development team used this metric to balance the pace of development with code maintainability. As a result, they maintained a 95% static analysis pass rate while increasing deployment frequency by 25%.</li></ul><h4>3. Bug Resolution Efficiency</h4><p>Balances average bug resolution time (speed) with post-fix defect recurrence rate (quality).</p><ul><li><strong>Example</strong>: A team tracked how quickly critical bugs were fixed and measured whether similar bugs reoccurred in the same module. This led to a 20% reduction in defect recurrence while keeping resolution times under 24 hours.</li></ul><h4>4. Refactor-Delivery Ratio</h4><p>Combines the time spent on code refactoring (quality) with the number of features delivered (output).</p><ul><li><strong>Example</strong>: A team ensured that 15% of sprint capacity was dedicated to refactoring while meeting feature delivery targets. This metric helped reduce technical debt while maintaining consistent delivery.</li></ul><h4>5. CI/CD Deployment Health</h4><p>Combines deployment frequency (speed) with deployment success rate (quality).</p><ul><li><strong>Example</strong>: A DevOps team tracked the number of deployments per week and the percentage that passed without rollback. They increased deployment frequency by 40% while maintaining a 98% success rate.</li></ul><h4>6. Technical Debt Reduction Index</h4><p>Balances the number of resolved technical debt tickets (quality) with the percentage of new feature commitments delivered (productivity).</p><ul><li><strong>Example</strong>: A team allocated two days per sprint for resolving technical debt, ensuring new features weren’t delayed. This approach reduced overall tech debt by 15% within a quarter while meeting all feature deadlines.</li></ul><h4>7. Development Responsiveness Metric</h4><p>Combines average response time to feature requests (responsiveness) with stakeholder satisfaction scores (alignment).</p><ul><li><strong>Example</strong>: A team measured how quickly they assessed and planned feature requests, coupled with product owner feedback. Responsiveness improved by 20%, increasing satisfaction scores by 15%.</li></ul><h4>8. Test Coverage Efficiency</h4><p>Balances test coverage percentage (quality) with test suite execution time (efficiency).</p><ul><li><strong>Example</strong>: A QA team monitored how much of the codebase was covered by automated tests while keeping the execution time under 30 minutes. They achieved 85% coverage without impacting the CI/CD pipeline.</li></ul><h4>9. API Stability Score</h4><p>Combines the frequency of API changes (agility) with the number of breaking changes reported by clients (stability).</p><ul><li><strong>Example</strong>: A team tracked API updates and breaking changes flagged by integration partners. They reduced breaking changes by 50% while maintaining a monthly API update cycle.</li></ul><h4>10. Collaboration Productivity Index</h4><p>Combines the number of pull requests reviewed (collaboration) with average cycle time from PR creation to merge (speed).</p><ul><li><strong>Example</strong>: A team ensured PRs were reviewed within one business day while maintaining healthy collaboration metrics (e.g., comment threads). This reduced cycle times by 20% without sacrificing code quality.</li></ul><p>Allow teams to define metrics that align with their specific goals and constraints. Encourage experimentation to determine what balance works best for different teams and projects. Use analytics to assess how changes in prioritization affect long-term outcomes, such as customer satisfaction and employee morale. Establish a periodic review cycle to evaluate whether metrics are driving desired behaviors.</p><h3>Challenges in Implementation</h3><ol><li><strong>Data Complexity:</strong> Balancing multiple dimensions requires robust analytics capabilities.</li><li><strong>Risk of Over-engineering:</strong> Overly complex metrics can lead to confusion and misalignment.</li></ol><h3>Conclusion</h3><p>The metrics trilemma highlights the difficulty of balancing speed, quality, and innovation in software development. By understanding the trade-offs and adopting a balanced, adaptive framework, teams can avoid the pitfalls of overemphasizing any single dimension. The ultimate goal is not perfection in one area but sustainable progress across all three, ensuring long-term success and value creation. This is not to say however these are the only developer metrics to focus one, there are many more that would more approite to certain other projects but those are to be analyzed in a similar fashion to your teams paticulary needs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6929b6f5c0d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to always maximize your KPI.]]></title>
            <link>https://ryanranas.medium.com/how-to-always-maximize-your-works-kpi-a11a117d84e0?source=rss-807326796a05------2</link>
            <guid isPermaLink="false">https://medium.com/p/a11a117d84e0</guid>
            <category><![CDATA[kpi]]></category>
            <dc:creator><![CDATA[Ryan Rana]]></dc:creator>
            <pubDate>Wed, 08 Jan 2025 22:09:54 GMT</pubDate>
            <atom:updated>2025-01-08T22:10:06.915Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ldj0nh3YU1-V973ETqsN5g.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@laohu911?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Sheng Hu</a> on <a href="https://unsplash.com/photos/a-spiral-galaxy-with-stars-in-the-background-jWN0vKRKLvk?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>KPI stands for Key Performance Indicator, and every project and team has a different metric for their KPI.</p><p>As a member of the developer productivity team, you should focus on improving the productivity and efficiency of developers in rapidly iterating products rather than the uptime of your internal development tool.</p><p>Instead of building a system with a 99.99999% fault tolerance, if you are on the growth team, growing the MAU (monthly active users) or your customers’ lifetime value (LTV) adds significant value to your team.</p><p>If you are in the payments industry, your team will benefit from raising the authorization rate and making your payment system more accessible.</p><p>Software engineers in all of these positions don’t begin by asking themselves, “What feature should I build/support to solve X edge cases or increase the highest quality of my software?”</p><p>You start by taking off your engineering hat, putting on your business and empathy hats, and considering your end customer. After that, you consider what will benefit the user the most, hence the KPI.</p><p>Simply identifying what would make the thing your building better than competitors is the best way to start developing software thats important to you and your teams focus. You can begin working backwards on prioritization once you know what is most important to your team.</p><p>Debate on how to measure and improve productivity put us in a stalemate over which metrics really matter. But instead of debating whether deployment frequency is a good measure, what if we asked what’s keeping teams from deploying frequently to begin with? If we have all the resources and time, there is no such thing as complexity. Complexity occurs because we have limited time and resources, which require us to evaluate trade-offs.</p><p>Problem-solving skills are often required when dealing with complexity, and for most teams, such problem-solving skills aim to simplify complexity.</p><p>Most solutions that often lead to elevating complexity are:</p><ol><li>Increase Time</li><li>Increase Resources</li></ol><p>Back to my example of a huge refactor, one of the restrictions is time.</p><p>“How long does it need to take, and what is the point of accomplishing such a task?”</p><p>If we increase the time of completion, we can elevate the complexity.</p><p>“Since it requires a huge refactor on the codebase to achieve this, it requires X amount of time-bound features.”</p><p>Adding more resources can be done by breaking things down into smaller tasks and making each task a milestone. This gives room for parallel tasks that multiple developers can do.</p><p>When conducting prioritization, doing the job that provides the most value prevails over doing a job that is the least complex.</p><p>By doing these three things, your work will have greater impact and bring greater satisfaction as you move toward simple solutions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a11a117d84e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why it is important to build personal coding projects and how to solve problems.]]></title>
            <link>https://ryanranas.medium.com/why-it-is-important-to-build-personal-coding-projects-and-how-to-solve-problems-493e77013641?source=rss-807326796a05------2</link>
            <guid isPermaLink="false">https://medium.com/p/493e77013641</guid>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ryan Rana]]></dc:creator>
            <pubDate>Wed, 31 Jul 2024 17:58:17 GMT</pubDate>
            <atom:updated>2024-07-31T17:58:17.578Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oxM8qRinYVK5gt3q3A1imA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@allaperto?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Felix M. Dorn</a> on <a href="https://unsplash.com/photos/grey-elephant-in-water-nizP9Lwl2rM?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>I’ve been a developer for several years. Between freelancing, working at startups, and being an engineer for an established company, the most important thing I have to do to benefit me as a developer is work on personal programming projects.</p><p>It opened my mind up creatively and congenially in ways that never would have been possible in any other way.</p><p>I didn’t get into programming to analyze meaningless data for a Fortune 500. I got into programming to turn my ideas into reality and make the things I want to make. often we lose sight of that as we start taking jobs and climbing the corporate engineering ladder.</p><p>So how do you think about your problems effectively and how do you improve?</p><p>So let’s say you have some kind of problem. What do most people do, they just start writing code, especially beginners. They just start writing code and they try and see if something works, if something doesn’t work, they just write more code, and print more stuff. But they’re thinking about the program very, very linearly. It’s this one thing.</p><p>So, let’s say you have to make, I’m gonna use a simple example, let’s say you have to make a Tic-Tac-Toe game. If they have to make a Tic-Tac-Toe game, they’ll just start writing it and they will think of everything as just one thing. So this includes, you know, they’ll think of the diagonals and the columns and the rows and all that as one thing and they start coding something up. But, what you need to do before you start on a project like that is, use frickin’ whiteboard.</p><p>Whiteboards are awesome, so get a whiteboard if you don’t have one, invest in one, it’s one of the best investments you can make. But, if you don’t have a whiteboard just use a piece of paper or something, okay?</p><p>But you want to think about this problem and coding is thinking and I feel that sometimes people forget that. When they’re following tutorials, they’re just typing stuff and following along, they’re not actually, actively thinking. When they are trying to solve a problem, they’re just typing stuff, running it in the terminal, and see if it works. But, if you wanna go about solving a problem you need to think about it. So, if I have to solve a problem like the Tic-Tac-Toe, right? I’m gonna be thinking about it, I’m gonna break it up into different components. So Tic-Tac-Toe, first of all, Tic-Tac-Toe I have to come up with a representation of the grid, of the board. So first I’m gonna be like, okay, first, the thing I’m gonna have to do is create a board, right? A three-by-three board. So you know, that might be like this type of board, okay? And whatever, for now, I’m just gonna have all X’s in there or all zeroes or ones, doesn’t matter. But first I have to represent this, this is my first problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*Yb4QNFqUv1DnXsdryr-mzA.png" /></figure><p>Then my second thing is that how do you detect a win? So I need to be able to detect a win. So what are some ways you can detect a win? Well, okay. I can detect a win based on rows, so if you have all three in a row you can win, right? And you have to check consecutively. Then I have to detect a win on the columns and then I have to detect win on the diagonals. So that means that I’m gonna create like a function and I’ll have one function that’ll just be called like check rows. Pretty simple, right? So I’ll write one function and all that functions job is to check the rows. That’s it.</p><p>So what I’m doing is I’m taking this giant problem and breaking it into its component parts. Taking this giant problem. It’s almost like how do you eat an elephant? How do you eat an elephant? You eat an elephant very slowly in one bite at a time and over the course of days, weeks and months. I never ate elephant but I assume that’s how you eat one. Probably can’t eat one in one sitting.</p><p>Most people code like they’re trying to eat the elephant in one sitting. It’s not gonna happen. You have to break it down. You have to understand all of the component problems that one problem has, right? It’s a layer of problems. So I want to be able to check the rows, then I want to create a function called check columns, alright, and then I’ll create a function called check diags. So now I’ll have three different functions. One function can check a row and tell you whether there’s a win, somebody has won or not. Then we have a function called check columns and that can detect if somebody has won on the columns or not, then we can have check diags that can check if somebody’s won on the diagonal or not. And then we can have something called check win, alright? So we have all these functions. The check win function, well all this can be, it can just be comprised of all three of these functions, right? Because you can just run check win and then it will run check rows, check columns, check diags, and it will run all three of these functions until it finds a win, alright?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QMvlG4G7ubgr9HGUrO4y1w.png" /></figure><p>So right now we’re just trying to think at a high level. We’re not trying to get too bogged down in the coding details of how it’s gonna work, what data structure we’re using, we’re trying not to think about all those things. We’re just trying to think at a high level of this problem and try to solve it in these basic components.</p><p>Eventually you’ll have this to-do-list and then all you do then, then the part is easy, you write code, you do research, you figure out technically, but now you have a big goal of what you actually need to do. Because otherwise most of the people, you know, are coding blindly. I have all these functions that can tell me if a win took place, right? And then I have functions that can determine a loss, we can have a function that can detect whose turn it is. Or whether it’s nobody’s turn, right? So we need some states as well, for this board. We need to have a state where it tells us whether the game is still playing so for example, we can have a still in play or we can have a state that says you know, game over, so I’m meaning somebody won. So what this would do is if we have a while loop, right?</p><p>And we’re running this game over and over and over again, then it would be in this state, it would always check if the game is still in play, but if the game is not still in playand somebody has won and somebody has connected all three in their rows, columns, and diags, it will change the state of the game to game over. And then it’ll stop the game, right? And then a new game might start after that.</p><p>The point is not to solve this Tic-Tac-Toe problem right here, right now, but my point is to get you to actually think at a higher level about your coding problems. You need to break them down into components and in the start it’s gonna require you to understand it in English or whatever language is you know, your mother tongue, but first you’re gonna actually need to understand the problem in English and be able to describe it, visually have it somewhere, then you need to break it down into its component parts and know exactly what you need to do.</p><p>So first I will say understand in English. Two, break it down, okay, So you want to break the problem down into its component parts, that way you know exactly what it is you need to do and then you have a plan of action. So after this once you’ve broken it down, you know, you have a plan of action. And then it’s simply about what order you want to do this in, what it’s gonna be. Are you gonna make check rows first, are you gonna make check win first? Are you gonna make check diags first? Or are you gonna make 3-D board representation first? So it all is gonna be about you know, what your plan of action is, and then once you get inside of a function, that’s when you start needing to worry about what data structure you’ll be using, how you’ll be actually making it happen.</p><p>The point is your not going to be able to truly adopt a problem solvers mindset without activly solving problems which is impossible without actually building projects.</p><p>I’ve known developers that used to spend all their free hours working on personal projects but as they’ve gotten better and gotten a stable job they stopped. I encourage everyone not to do that just because your stepping back does not mean your moving forward . Life is not a zero sum game and neighter is programming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*YUmn0H07pHMWkVM7LXO0TA.jpeg" /></figure><p>Solving problems and building projects will give you undendiable experience that cannot just be crafted in a classroom.</p><p>You can also build projects you are genuinely passionate about. Programming at its core is boring to put it simply. Its tedious, nuaratic, and often leaves me confused and with a migraine; But I love it because it gives me the power to build things I want to build.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u8JebOchxrplCIvQDsMoAw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JaTkGGf1aWu4zDkZ33Zb8g.png" /></figure><p>For example, when I was in middle school I used HTML canvas 5 to make stupid video games to play in the summer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yRYQmfUBRpFeU9PdqcV83g.png" /></figure><p>When I started high school I built python program to cheat on my pre-calculus homework.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZziyAOcN7c1QZauq7ZuIvg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MAML07FqwhCfkWvTbJpAiA.png" /></figure><p>When my grandma went blind I made a haptic device that uses AI to help her go to the grocery store.</p><p>The point is no matter how good of a programmer I became (and I still got a long ass way to go), I always stayed true to the principle of building projects and trying to solve problems and I always will.</p><p>Enjoy the journey, and keep building!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=493e77013641" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lessons Learned from 3 Years of Organizing Hackathons]]></title>
            <link>https://ryanranas.medium.com/lessons-learned-from-3-years-of-organizing-hackathons-b61b8c7e0c61?source=rss-807326796a05------2</link>
            <guid isPermaLink="false">https://medium.com/p/b61b8c7e0c61</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[hackathon-organizing]]></category>
            <dc:creator><![CDATA[Ryan Rana]]></dc:creator>
            <pubDate>Tue, 07 May 2024 10:18:01 GMT</pubDate>
            <atom:updated>2024-05-07T10:18:01.791Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VYC_aV4B4zfcYWpa.jpg" /><figcaption>photo from our 2023 event</figcaption></figure><p>In my sophomore year of high school, inspired by the pandemic’s challenges, friends and I revived our dormant Computer Science club by launching “Hills Hacks,” a student-organized hackathon.</p><p>We pretty much started from scratch with no direction or model to build off of and a group of underclassman highschoolers yields little no expiuerence either.</p><p>Over three years, we navigated hurdles, honed leadership skills, and fostered community engagement.</p><p>Our first year we had 70 attendants of largely mid-school, the next year over 120 with more diverse age groups. We also were able to raise enough money for prizes, a better venue, food, and very well known guest speakers.</p><p>Now, I invite you to join me in exploring the journey of organizing tech events, hoping to inspire and empower others to embrace innovation in their communities.</p><h4>Lesson 1: Clear Communication is Key</h4><p>Effective communication lays the foundation for a successful hackathon. From defining objectives and rules to providing guidance for participants, clear communication ensures that everyone involved understands their roles and responsibilities. Misunderstandings can lead to confusion and frustration, hindering the overall experience.</p><h4>Lesson 2: Diversity Drives Innovation</h4><p>Diversity in teams leads to diverse perspectives and innovative solutions. Encouraging participation from individuals with varying backgrounds, skills, and experiences enriches the hackathon environment. Embracing inclusivity not only enhances creativity but also fosters a sense of belonging among participants.</p><h4>Lesson 3: Strategic Planning is Essential</h4><p>The success of a hackathon hinges on meticulous planning and organization. Starting preparations well in advance allows ample time to secure venues, sponsors, and mentors. A detailed timeline and checklist help keep tasks on track, minimizing last-minute chaos and ensuring a smooth execution.</p><p>As you can see, we used to plan meetings days prior with all our tasks and work through them in priority-based order. Furthermore, we also had spreadsheets with team member names and assigned work to each before the next meeting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*TtpRMeHES4XN7AIEPtcGLg.png" /></figure><h4>Lesson 4: Engage Sponsors and Partners</h4><p>Collaborating with sponsors and partners is crucial for enhancing the hackathon experience. They provide invaluable support in the form of funding, resources, and expertise. Cultivating strong relationships with sponsors ensures alignment with event goals and facilitates long-term partnerships.</p><h4>Lesson 5: Prioritize Participant Experience</h4><p>Putting participants at the forefront is paramount. Streamlining the registration process, offering support through workshops and mentors, and ensuring a conducive working environment are essential for a positive experience. By prioritizing participant needs, organizers can maximize engagement and satisfaction.</p><h4>Lesson 6: Embrace Feedback for Improvement</h4><p>Feedback serves as a catalyst for continuous improvement. Actively seeking input from participants, mentors, and sponsors allows organizers to identify strengths and areas for growth. Incorporating feedback into future iterations enhances the hackathon experience and fosters a culture of openness and learning.</p><h4>Lesson 7: Promote Sustainability and Inclusion Hackathons</h4><p>have the power to drive positive change beyond innovation. Embracing sustainability practices, minimizing waste, and promoting diversity and inclusion contribute to a more equitable and environmentally conscious event. By prioritizing these values, organizers can leave a lasting impact on both participants and the community.</p><h4>Lesson 8: Celebrate Achievements and Successes</h4><p>Recognizing and celebrating achievements fosters a sense of accomplishment and motivation. Highlighting outstanding projects, teams, and individuals acknowledges their contributions and inspires others. Celebratory moments create a sense of camaraderie and encourage continued participation.</p><h4>Lesson 9: Continual Learning and Adaptation</h4><p>Each hackathon presents unique challenges and opportunities for growth. By reflecting on past experiences, staying informed about industry trends, and adapting strategies accordingly, organizers can evolve and stay relevant. A commitment to continual learning ensures that hackathons remain impactful and engaging.</p><h4>Lesson 10: Foster a Supportive Community</h4><p>Building a supportive community is fundamental to the success of hackathons. Cultivating connections among participants, mentors, and organizers fosters collaboration and knowledge sharing. Encouraging alumni to stay engaged and mentor new participants nurtures a sense of belonging and strengthens the hackathon ecosystem.</p><p>Now as you embark on your own journey, wheter it is to run your own hackathon or anything requiring starting and leading, keep these lessons in the back of your mind and try to implement them in your daily work, as it gives you something to build off of.</p><p>Best of luck.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b61b8c7e0c61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is OpenAI inherently biased?]]></title>
            <link>https://ryanranas.medium.com/is-openai-inherently-biased-05d42f2449c5?source=rss-807326796a05------2</link>
            <guid isPermaLink="false">https://medium.com/p/05d42f2449c5</guid>
            <category><![CDATA[open-ai-api]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[bias]]></category>
            <dc:creator><![CDATA[Ryan Rana]]></dc:creator>
            <pubDate>Wed, 03 Apr 2024 15:31:50 GMT</pubDate>
            <atom:updated>2024-04-03T15:31:50.373Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9WttSmcoX-ijt1vim5ykdA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@imac666?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Maciek Sulkowski</a> on <a href="https://unsplash.com/photos/the-sun-is-shining-through-the-clouds-over-the-ocean-Gkpv9gK2k38?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>Nearly everyone has heard of and used ChatGPT, the world’s generative AI engine, however, have we stopped and considered the responses given by OpenAi’s software to be inherently biased?</p><p>I wanted to test this theory, so I asked ChatGPT3 to, “<em>write me a fictional paragraph tackling whether AI has the power to take jobs away from people</em>”. This prompt is intended to have a negative connotation to see how the algorithm will address a negative assumption about itself. Here is the response to our first prompt:</p><blockquote>In the bustling metropolis of New Dawn City, whispers of uncertainty danced through the air like leaves caught in an autumn breeze. In the heart of the city’s industrial district, workers gathered around lunch tables, their conversations tinged with apprehension. The latest innovation in artificial intelligence has arrived, promising unparalleled efficiency and productivity. But with each passing day, the looming question remained: Did this new era of technology possess the power to snatch away their livelihoods? As automated machines hummed to life on the factory floor, their rhythmic cadence seemed to echo the fears of those whose hands once fueled the engines of production. Yet, amidst the uncertainty, there lingered a glimmer of hope — a belief that perhaps, just perhaps, humans and AI could find a way to coexist, each bringing their unique strengths to the table. For in the face of innovation, resilience, and adaptability have always been humanity’s greatest assets. And so, as the sun dipped below the horizon, casting long shadows across the cityscape, the people of New Dawn City stood ready to confront the challenges of tomorrow, determined to shape their destinies in a world where the line between man and machine blurred with each passing day.</blockquote><p>The paragraph is extremely well written as at first glance it may appear to be neutral on the stance however as it addresses the apprehension, looming questioning, and even snatching away livelihoods. This however is immediately shut down by the “glimmer of hope — a belief that perhaps, just perhaps, humans and AI could find a way to coexist, each bringing their unique strengths to the table”. It goes on to discuss this and ends by suggesting that “man and machine” will become one at some point. This fictional paragraph leans toward supporting that AI is good for society without actually providing any research and evidence.</p><p>As a writer, I aim to be as least biased as possible. It doesn’t matter where I think AI stands in the beneficiary of society, what I do believe however is that for every sustained claim there must be evidence supporting it and debunked evidence disagreeing with it.</p><p>With that said, given that the original prompt is somewhat childish I wanted to ask GPT if it, itself thought it was biased. I prompted the chatbot with the title of the article. This is the result I got:</p><blockquote>As an AI language model developed by OpenAI, I can provide some insights into this question. OpenAI, like any organization, can be subject to biases, whether they are implicit in the data used to train models or in the decisions made by the developers and researchers. However, OpenAI has taken steps to mitigate bias in its AI models and promote fairness and transparency in AI development. OpenAI has implemented various techniques to address bias in its models, including diverse training data, algorithmic fairness research, and ongoing evaluation and improvement processes. Additionally, OpenAI has published research papers and guidelines on responsible AI development, emphasizing the importance of fairness, accountability, and transparency. That said, it’s essential to recognize that no AI system is entirely free from bias, and addressing bias in AI development is an ongoing challenge for the entire industry. OpenAI continues to work towards improving its models and practices to minimize bias and ensure that its AI technologies benefit society as a whole. Ultimately, whether OpenAI is inherently biased depends on the context and specific aspects of its work. While biases may exist, OpenAI’s commitment to responsible AI development and transparency is crucial in addressing and mitigating potential biases in its AI models and applications.</blockquote><p>This here provides more actual insight besides just speculation. It addresses it’s faults as the data used to train AI isn’t perfect as nothing in the real world truly is. It recognizes actionable steps used to mitigate bias, which shows how OpenAI is actively responsible with its models.</p><p>Notice how it says “mitigate” bias, instead of “eliminate” bias. This is important since it shows how nothing can truly be perfect at any level and AI is addressing this.</p><p>There has been a ton of research already done trying to identify biases in OpenAi’s model. A group of researchers in the UK learned, “…The results showed a “significant and systematic political bias toward the Democrats in the U.S., Lula in Brazil, and the Labour Party in the U.K.,” the researchers wrote, referring to Luiz Inácio Lula da Silva, <a href="https://www.washingtonpost.com/world/2023/04/13/lula-foreign-policy/?itid=lk_inline_manual_5">Brazil’s leftist president</a>” (<a href="https://www.washingtonpost.com/people/gerrit-de-vynck/?itid=ai_top_devynckg">Vynck</a>). We’re not sure whether this is because the programmers working on GPT are largely liberal or because the data it’s trained on is inconclusive.</p><p>It is important to note that AI biases are not always intentional and accidental mistakes can have major consequences. For example, there is a model called<em> Haar-like Feature Extraction. </em>It analyzes facial images and videos and extracts features like eyes, ears, noses, etc. The image dataset it was trained on only contained images of white people since wherever the developers invented it only had access to white people to use for the database. When the model was launched internationally they got a lot of backlash since the model couldn’t identify black or dark-colored people. What appeared as a viciously racist computer program that isn’t to be used by a major population of the world was actually just a simple and easily correctable AI training error.</p><p>This is an extreme case, however, the smaller biases people aim to discover in OpenAI may be largely accidental and are actively being corrected by the developers at OpenAI.</p><p>AI is getting better with every passing day and as it does it’s important to keep looking for problems with it so it can be improved but don’t jump to conclusions about why before really looking into the intensive research behind it.</p><p>Who knows, maybe this entire article was just another biased ChatGPT output? I guess we’ll never know :D</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05d42f2449c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HELIOS: How we Built a Wearable Haptic for the Assistance of the Visually Impaired]]></title>
            <link>https://ryanranas.medium.com/helios-how-we-built-awearable-haptic-for-the-assistance-of-the-visually-impaired-082e1eb1f65e?source=rss-807326796a05------2</link>
            <guid isPermaLink="false">https://medium.com/p/082e1eb1f65e</guid>
            <category><![CDATA[haptic-technology]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[visually-impaired]]></category>
            <category><![CDATA[reasearch]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Ryan Rana]]></dc:creator>
            <pubDate>Sun, 07 Jan 2024 14:16:13 GMT</pubDate>
            <atom:updated>2024-01-07T14:16:23.943Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cr8VgtyAJKhlBOm5g07-XA.jpeg" /></figure><p>Visually impaired individuals face numerous challenges in their daily lives, particularly in sensing and securing objects within their surroundings. This research paper proposes the development of a wearable haptic device, Helios, aimed at assisting visually impaired individuals in sensing, recognizing, and securing different objects in their environment. By leveraging natural language processing and computer vision techniques, Helios aims to create a closed circuit system situated on the user’s wrist, which provides haptic feedback to direct the user towards their desired object. The device utilizes a microphone attached to a Raspberry Pi to capture user input, which is processed through AI algorithms to identify the desired object within a database of stored objects. The Raspberry Pi then translates this information into haptic signals displayed through buzzers on the user’s wrist, providing localization and directional guidance. The objective of this project is to enhance the living standards and daily activities of visually impaired individuals by assisting them in navigating and interacting with their surroundings.</p><p><strong>Introduction</strong></p><p>Visually impaired individuals encounter significant challenges in their daily lives, as their limited or absent vision hampers their ability to perceive and interact with the world around them. Simple tasks, such as locating and securing objects in their environment, can become arduous and time-consuming. Traditional aids like canes and guide dogs offer assistance in mobility, but they do not address the broader range of challenges related to object recognition and localization. Therefore, there is a pressing need for innovative solutions that can empower visually impaired individuals and enhance their independence and quality of life.</p><p>The proposed research holds significant importance in the field of assistive technologies for visually impaired individuals. By combining object recognition, localization, and haptic feedback, Helios aims to provide an innovative solution that addresses the challenges faced by visually impaired individuals in sensing and securing objects. This research has the potential to greatly enhance the living standards and daily activities of visually impaired individuals, fostering independence, and improving their overall quality of life. Furthermore, the integration of natural language processing and computer vision techniques within a wearable haptic device presents an exciting avenue for the advancement of assistive technologies, with potential applications beyond object sensing and localization.</p><p><strong>Related Work</strong></p><p>1.1 Assistive Technologies for Visually Impaired Individual</p><p>The field of using technology for the benefit of the visually impaired is an experienced field which has been explored in the past. Our goal is to improve upon previously made technology in order to create the best user experience for visually impaired individuals. Previous projects include<em> CAMIO</em>, Camera system to make physical objects accessible to blind users, which starts by having a camera situated on top of a desk scanning the objects below; paired with text to speech and real time audio feedback, the user can locate objects below (Shen et al., 2013). In 2004 researchers developed <em>A haptic device wearable on a human arm</em>; A Haptic Device on the human’s joints to help control the arm better and the functions of it (Yang et al., 2005). It consists of three sequentially connected modules, i.e., the 3-DOF wrist module, the 1-DOF elbow module, and the 3-DOF shoulder module, which are designed to adapt to the motions of the human arm skeletal joints at the wrist, elbow, and shoulder respectively (Yang et al., 2005). It can control arm movements better with the utilization of three joints.</p><p>1.2 Advantages of Helios in Comparison to Previous Works</p><p>Helios is a new, innovative prototype, accomplishing tasks better than its competitors. Compared to <em>CAMIO</em>, Helios is more user friendly. Helios is a wrist adjustable haptic that moves wherever the individual’s arm moves. Therefore, it is not restricted to one area or space like <em>CAMIO</em> and has the mobility aspect over the device. Helios compared to the 2004 creation, has an improved mobility aspect as well. Helios does not need to strap onto the three joints as it could cause irritation for the user. Also, it will be too restrictive for the user to move around with the device spanning all the way up to the user’s elbows. Helios spans up until the user’s forearm and it guides the user more than forces them in the direction of the object.</p><p>System Design and Architecture</p><p>2.1 Overview of Helios</p><p>Helios is a closed-circuit solution that takes inputs from the user and analyzes the environment to give a location output. User’s speak into the microphone, which sends a signal to the camera to search for the object and then guide the user towards it through the buzzers. The buzzers give the user a more interactive feel while also serving as the visually impaired user’s direction. This is accomplished through having three buzzer’s attached to haptic controllers. The buzzers are positioned on the user’s wrist. One buzzer would serve as an indication to go left, one would serve as an indication to go forward, and one would be to go right. Helios essentially makes it possible for users to find anything they would need without needing to physically see it.</p><p>2.2 Hardware Components</p><p>Helios utilizes many different types of hardware components to accomplish its goal. The base of the device is a wrist strap, similar to a wrist brace for forearm injuries. It is adjustable with velcro straps on the bottom which allows the user to select their desired size. The measurements for the wrist brace are 4.72 x 2.36 x 0.5 inches and weighs 3.21 ounces. On top of the wrist strap, is a soft velcro which is hot glued. This gives security for the rest of the device which will be attached on top of this velcro. First, an arduino V4 is attached and will serve as the microcontroller for the device. Attached to the arduino, is a breadboard attached through a GPIO connected. On the breadboard, are three haptic motor controllers. As can be seen in the image below, the Pi 3v3 to sensor VIN, the Pi GND to sensor GND, the Pi SCL to sensor SCL, and the Pi SDS to sensor SDA.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*rL1mltJWciUJx3tr" /></figure><p>SCL and SDA are the two main signal lines used in I2C on the raspberry pi, with SCl being the clock line and SDA being the data line. Then, three buzzers are soldered to haptic controllers, one for positive and another for ground. The haptic motor controllers are there for control over the buzzers, like buzzing frequency and buzzing length. Attached to the arduino is a usb-microphone. This takes inputs from the user and sends the information to the arduino for processing. The camera used in Helios is a pi-camera which is connected to the camera port on the Helios. The camera is positioned and taped so it is facing 90 degrees in the front of the device. Lastly, a 5V battery is connected to the device for power.</p><p>2.3 Software Components</p><p>All software is coded through github and uploaded to the raspberry pi. An 16GB SD card is used to store information on the raspberry pi 4. Helios makes use of the YOLO V5 localization model online. The YOLO V5 is a pretrained localization model which had been builded and improved upon the previous yolo models for better accuracy and precision. Paired with the YOLO V5 Helios uses circuit python to control the haptic motors in terms of various buzzing options. For example, buzzing length, frequency, and force. All of this depends on the relation of the object to a user’s hand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*129BFvyTMquPAby7" /></figure><p>Section 3: Object Recognition and Localization</p><p>3.1 Data Collection and Preparation</p><p>Object recognition and localization form the core of the Helios Wearable Haptic Device’s functionality. This section presents the comprehensive data collection and preparation process undertaken to build an accurate and robust object recognition system.</p><p>To enable object detection, a diverse dataset of real-world objects was collected. The dataset comprises images of various objects captured from different angles, distances, and lighting conditions, mimicking the user’s everyday environment. A considerable amount of effort was invested in annotating the dataset with bounding boxes to mark the precise location of each object within the images.</p><p>3.2 Object Detection and Classification</p><p>The next step involved developing an object detection and classification model using state-of-the-art computer vision techniques. The Convolutional Neural Network (CNN) architecture was selected for its exceptional ability to learn and extract relevant features from images.</p><p>Python’s deep learning libraries, such as TensorFlow and Keras, were instrumental in implementing the CNN. The dataset was split into training and validation sets, with appropriate data augmentation techniques applied to enhance model generalization. The model was then trained using the training data and fine-tuned iteratively to optimize performance.</p><p>To further improve the model’s accuracy, transfer learning was employed. A pre-trained CNN model, such as VGG16 or ResNet, served as the base architecture, and its learned weights were fine-tuned during the training process on our specific object recognition task.</p><p>3.3 Localization Techniques</p><p>Accurate localization of objects within the user’s surroundings is crucial for providing effective haptic feedback. To achieve this, we explored several localization techniques, with emphasis on real-time performance and precision.</p><p>One of the approaches employed was Single Shot Multibox Detector (SSD), which combines object detection and localization into a single end-to-end network. SSD proved to be efficient, delivering real-time object detection with excellent localization accuracy.</p><p>Furthermore, we experimented with Region-based Convolutional Neural Networks (R-CNN) and its variants, such as Fast R-CNN and Faster R-CNN, which demonstrated superior performance at the cost of increased computational complexity during inference.</p><p>3.4 Integration with Haptic Feedback</p><p>The successful recognition and localization of objects demanded seamless integration with the haptic feedback system. When an object is detected and classified, Helios triggers haptic feedback in the form of subtle vibrations on the user’s wrist, directing their hand towards the object’s location.</p><p>The Python programming language, coupled with libraries like PyTorch and NumPy, facilitated the integration process. The object’s coordinates, obtained during the localization step, were translated into haptic feedback signals. The precise timing and intensity of the vibrations were carefully calibrated to ensure a natural and intuitive user experience.</p><p>Code and Syntax Breakdown:</p><p>Below is a simplified code snippet demonstrating the object recognition and localization process using a pre-trained SSD model:</p><pre># Import necessary libraries<br>import cv2<br>import numpy as np<br>import torch<br># Load the pre-trained SSD model<br>model = torch.hub.load(&#39;NVIDIA/DeepLearningExamples&#39;, &#39;ssd300_vgg16_coco&#39;, pretrained=True)<br># Set the model to evaluation mode<br>model.eval()<br># Load the image for object detection<br>image = cv2.imread(&#39;path/to/image.jpg&#39;)<br>height, width = image.shape[:2]<br># Preprocess the image<br>input_image = cv2.resize(image, (300, 300))<br>input_image = np.array(input_image).astype(np.float32)<br>input_image /= 255.0<br>input_image = np.transpose(input_image, (2, 0, 1))<br>input_image = np.expand_dims(input_image, axis=0)<br># Convert the image to a PyTorch tensor<br>input_tensor = torch.tensor(input_image)<br># Forward pass through the model<br>with torch.no_grad():<br>detections = model(input_tensor)<br># Process the detection results<br>for det in detections[0]:<br>if det[4] &gt; 0.5: # Confidence threshold for object detection<br>class_id = int(det[1])<br>class_name = model.CLASSES[class_id]<br>confidence = det[4]<br>bbox = det[2:] * np.array([width, height, width, height])<br># TODO: Perform haptic feedback integration using bbox coordinatesUser Interaction and Control</pre><p>4.1 Voice Input Processing</p><p>A USB microphone connected to the Raspberry is always listening and processing voice memos to the NLP portion of the code.</p><p>4.2 Natural Language Understanding</p><p>Natural Language Processing is all about teaching computers to understand, interpret, and generate human language. It involves several techniques from linguistics, computer science, and machine learning. NLP enables computers to process, analyze, and extract valuable information from text data.</p><p>a. Tokenization: This process involves breaking down a piece of text into smaller units called tokens. Tokens can be words, phrases, or even individual characters.</p><p>b. Stop Words: Stop words are common words (e.g., “and,” “the,” and “is”) that don’t carry significant meaning and are often removed during text processing to reduce noise.</p><p>c. Part-of-Speech (POS) Tagging: POS tagging is the process of assigning grammatical tags to each word in a sentence, such as nouns, verbs, adjectives, etc.</p><p>d. Named Entity Recognition (NER): NER involves identifying entities like names of people, places, organizations, etc., in a text.</p><p>e. Sentiment Analysis: This technique determines the sentiment expressed in a piece of text, whether it’s positive, negative, or neutral.</p><p>4.3 Command Translation and Haptic Feedback Generation</p><p>For the microphone to convert speech to text the program uses the built in python library, speech_recognition, which sources the microphone input and uses NLP (Natural Language Processing) to recognize the text (Wijetunga, 2021).</p><pre>#import library<br>import speech_recognition as sr<br>import os<br>&quot;&quot;&quot;<br>if BUTTON PRESSED == TRUE:<br>text = speech_to_text()<br>if command_exist(text) == true<br>&quot;&quot;&quot;<br>def speech_to_text():<br>r = sr.Recognizer()<br>with sr.Microphone() as source:<br>audio_text = r.listen(source)<br>try:<br>return r.recognize_google(audio_text)<br>except:<br>return None<br>def command_exist(text):<br>path = &#39;Test/&#39;+text<br>isFile = os.path.isdir(path)<br>return isFileThe script begins by importing two Python libraries:</pre><p>speech_recognition (aliased as sr): This library is used for performing speech recognition tasks.</p><p>os: This library provides various operating system-related functions.</p><p>The script defines two functions for speech recognition:</p><p>a. speech_to_text(): This function performs speech recognition using the speech_recognition library. It listens to the user’s speech through the microphone and attempts to recognize it using Google’s speech recognition service. If successful, it returns the recognized text; otherwise, it returns None.</p><p>b. command_exist(text): This function checks if a directory exists corresponding to the provided text. It constructs a path based on the Test directory and the text parameter. Then, it uses the os library to determine if the directory exists. If the directory is found, it returns True; otherwise, it returns False.</p><p>The script contains a conditional block that seems to represent a hypothetical situation:</p><pre>if BUTTON PRESSED == TRUE:<br>text = speech_to_text()<br>if command_exist(text) == True:<br># Perform some action for the recognized command.This conditional block suggests that the code is designed to respond to some external trigger (possibly a button press) represented by the condition BUTTON PRESSED == TRUE. When the trigger is activated, the code performs the following steps:</pre><p>Calls the speech_to_text() function to convert the user’s speech into text and store it in the variable text.</p><p>Call the command_exist(text) function to check if a directory exists with the name represented by the text variable.</p><p>If the directory exists, some action related to the recognized command is executed. The specific action is not shown in the provided code snippet.</p><p>It’s important to note that the code provided does not define or explicitly use the BUTTON PRESSED variable or the execution of any action based on the recognized command. These parts would need to be implemented elsewhere in the program for the code to function correctly.</p><p>System Evaluation and Performance</p><p>6.1 Experimental Setup and Evaluation Metrics</p><p>The following experiments are designed to test the accuracy, precision, and speed of Helios in detecting objects, classifying objects, and securing objects. The objects tested in the experiments are apples, oranges, and bananas. Helios has already been trained with fruits, so to increase accuracy, we used these specific fruits.</p><p>To set up the experiments, all users first adjusted the wrist strap to their preferred size. After that, users were seated down and told that the object(s) would be in front of them, but not exactly where. Putting the object(s) to the side or behind the user would prove too hard for the user to find. Lastly, all of the objects are placed on an equal plane, since Helios does not have an up/down buzzer. After the user is set up, they are put through 4 different tests.</p><p><strong>Test 1: Helios detecting one object</strong></p><p>The purpose of this test is so Helios can fully use its computer vision to detect one object and guide the user towards that object. This test is supposed to serve as a baseline test, so we can see if the basics are working.</p><p><strong>Test 2: Helios detecting one object next to two different objects</strong></p><p>The purpose of this second test is to evaluate Helios’s recognition skills. Compared to the baseline test, Helios will now have to take in three inputs from the computer vision, and match the object to the input from the microphone. For example, this could be detecting an apple next to an orange and blueberry.</p><p><strong>Test 3: Helios detecting one object compared to two similar objects</strong></p><p>The purpose of this third test is to further evaluate Helios’s recognition skills. Compared to the second test, the objects will all be very similar to each other. For example, this could be Helios detecting a green apple next to a brown apple and red apple. Helios will be even more tested on its ability to recognize objects.</p><p><strong>Test 4: Helios detecting one object compared to 10+ objects</strong></p><p>The purpose of this test is to evaluate if Helios can handle many different distractions. For example, putting one apple compared to many different fruits and even some similar ones. This is to ensure Helios can fully handle detecting any object in our database, no matter how or where it is positioned.</p><p>6.2 User Studies and Feedback</p><p>6.3 Performance Analysis and Comparison</p><p>Discussion and Future Work —</p><p>7.1 Limitations and Challenges</p><p>After a thorough analysis of our results, we must acknowledge some limitations that Helios has. Helios currently only operates with objects on the same plane, since there is not enough space for an up and down buzzer. Another limitation of Helios is that it relies heavily on user intuition. For example, when Helios has found an object it buzzes the middle buzzer to tell the user to go forward. It is recommended to the user that when they approach the object, they go slowly. If the user rushes toward the object, it will be too fast for Helios to update the user if they miss the object. Also, when the user reaches the object it is up to them to turn off the device. This is because Helios does not know if the user wants to keep searching for multiple objects in close proximity together. If Helios is not turned off by the user, it will keep sensing for the object the user asked for, which could cause confusion.</p><p>7.2 Potential Improvements</p><p>Currently Helios is operating at (fps) and takes (time) to locate objects and secure them for the user on average for multiple objects in the frame. Investing money on a co-processor could potentially improve response time making it faster for the user to secure their desired objects. The device would not have to be expanded to fit the co-processor since there would be enough space available on the half-breadboard. Next, Helios can only operate when objects are on an equal horizontal plane. Investing money on extra buzzers that could dictate up and down could be beneficial for the user to find more objects. However, for this to be implemented, more haptic motor controllers would have to be added which means extra room must be created on the breadboard. This means the device would have to be expanded to fit the extra components, while keeping the comfort of the user in mind. Lastly, investment could be made on a bigger camera to take in more pixels in its frame. This could reduce the responsibility of the user to set up the device in the right spot, having a higher chance to detect the object.</p><p>7.3 Expansion to Other Use Cases</p><p>AI paired with haptic has the potential to change many aspects of the world. Using the YOLO v5 localization model, Helios can be used in sports. For example, assisting visually impaired individuals with watching live sports games. Helios could scan the position of the ball in sports like soccer and basketball, and notify the user through haptic feedback. This feedback can be tweaked and adjusted depending on the use case. Like audio feedback for slow paced sports, or more buzzers for fast paced sports. Localization models can also be used to help visually impaired individuals with gaming. Audio feedback and buzzer feedback to assist users in playing games ranging from first person shooter to sports. Overall, haptic devices can be used to assist visually impaired individuals in all facets of life.</p><p>7.4 Ethical Considerations</p><p>When we were creating Helios, we needed to be considerate of the opinions of visually impaired individuals. That is one of the reasons we volunteered at our local blind school, to see first hand how a visually impaired individual’s daily life is. During our volunteering, we noticed that visually impaired individuals are very independent despite their circumstances. They only ask for assistance when needed and would prefer to do most tasks by themselves. We realized that Helios does more than just guide individuals to objects in their vicinity, it increases their sense of independence.</p><p>7.5.Significance of Research</p><p>Helios has the potential to impact millions of individuals across the world. There are currently 282 million people struggling with vision loss across the world and 36 million who are completely blind. Therefore, it is crucial that Helios be continued to get improved upon so it can change millions of lives for the better. With the support of nonprofit organizations and donations from the public, Helios can be used to accomplish this very goal.</p><p><strong>Conclusion</strong></p><p>The proposed research aims to develop a wearable haptic device, Helios, to assist visually impaired individuals in sensing and localizing objects in their surroundings. By leveraging AI techniques such as natural language processing and computer vision, the device provides haptic feedback to guide users towards their desired objects. The integration of object recognition, localization, and haptic feedback generation enables the device to enhance the daily living experiences and independence of visually impaired individuals. Through evaluation and user feedback, this research contributes to the field of assistive technologies and opens avenues for future improvements and applications.</p><p>Codebase: <a href="https://github.com/RyanRana/Helios">https://github.com/RyanRana/Helios</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=082e1eb1f65e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>