<?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 Zenia.H. on Medium]]></title>
        <description><![CDATA[Stories by Zenia.H. on Medium]]></description>
        <link>https://medium.com/@zeniaharis1?source=rss-a03b8fc5c3a7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*J-5Xnyq0RypszVxY</url>
            <title>Stories by Zenia.H. on Medium</title>
            <link>https://medium.com/@zeniaharis1?source=rss-a03b8fc5c3a7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:43:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zeniaharis1/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[Opporteenity: The Master Plan]]></title>
            <link>https://medium.com/@zeniaharis1/opporteenity-the-master-plan-1462a34e397a?source=rss-a03b8fc5c3a7------2</link>
            <guid isPermaLink="false">https://medium.com/p/1462a34e397a</guid>
            <category><![CDATA[teens]]></category>
            <category><![CDATA[moonshots]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Zenia.H.]]></dc:creator>
            <pubDate>Thu, 08 May 2025 23:29:33 GMT</pubDate>
            <atom:updated>2025-05-08T23:29:33.544Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Just between us teens (and the adults still paying attention)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*QclIvnbnw_Al4wa9t2s7UA.png" /></figure><h3><strong>The Problem: Teens Are Missing Out</strong></h3><p>If you’re in high school, you’ve probably missed out on something that could’ve changed your life: a startup pitch night, a free coding workshop, or a youth entrepreneurship internship. All this because you didn&#39;t know where to look.</p><p>There’s no centralized, teen-first platform to explore internships, workshops, or events. Google doesn’t know you’re 16, LinkedIn assumes you have a résumé, and school bulletin boards might as well be written in Morse code.</p><p><strong>Toronto is a city brimming with <em>opportunities</em>. <br><br>Thousands of teens don’t know they exist.</strong></p><ul><li>A 2023 Toronto Youth Cabinet report found that <strong>68% of high school students rarely or never hear about programs outside school</strong>, and in lower-income areas, it rises to <strong>78%</strong>. That’s not a lack of ambition,it’s a lack of access.</li><li>Meanwhile, <strong>Volunteer Toronto</strong> reported that nearly <strong>1 in 3 youth-targeted opportunities go unfilled</strong> every semester. These aren’t empty seats because teens aren’t interested; they’re empty because teens don’t know where to look.</li><li>Toronto has over <strong>300 youth-focused organizations</strong> offering life-changing experiences. But without a centralized, youth-friendly discovery system, these initiatives float just out of reach.</li></ul><p>The result? A growing opportunity gap. Research from the <strong>Canadian Council on Learning</strong> shows that youth who engage in extracurricular and community-based programs are <strong>44% more likely</strong> to pursue post-secondary education and <strong>31% more likely</strong> to feel confident about their future.</p><p><strong>When that access disappears, so does momentum, and often, motivation.</strong></p><h3><strong>Our Vision: A Launchpad for Every Teen</strong></h3><p>Imagine a world where teens don’t have to dig through adult-centred sites or hope a teacher randomly shares a flyer. Instead, they open an app that feels like theirs, connecting ambition with action. Whether you’re into startups, science, design, or social justice, the right opportunity is always one click away.</p><h4>At Opporteenity, we’re building the go-to platform for teens to discover real-world opportunities that actually matter to them.</h4><p>Our goal is simple: help more young people show up to things that grow them.</p><p>We’ve already built a working prototype, a sleek, easy-to-use web app that curates high-quality, local opportunities in one place. From events to internships to pitch comps, it’s what we wish we had when we were 15.</p><p>We believe that when students can effortlessly find experiences that excite them, they show up more. And when they show up more, they grow faster.</p><p>Our solution has three parts:</p><ul><li><strong>Curation-first</strong>: We handpick high-quality opportunities teens actually want and filter out the noise.</li><li><strong>Built to feel native</strong>: A clean, intuitive interface designed like the apps teens already use.</li><li><strong>Growth-focused features</strong>: Save-for-later, track attendance, and connect with others going to the same events.</li></ul><p>This isn’t another newsletter or directory. It’s a tool teens actually want to use.</p><h4><strong>Phases to Action</strong></h4><p><strong>Phase 1: Test the Streets<br></strong> We already have a working prototype. Now, we’re testing it with real users in Toronto. We’re watching what works, what doesn’t, and what makes teens come back.</p><p><strong>Phase 2: Enter: AI + Opporteenity<br></strong> AI chatbot to pair teens with the right opportunity based on interests, location, age, etc. We tighten our curation, launch core features like save-for-later and personal recommendations, and start partnerships with local schools and clubs. <br>The goal is to get teens to use the app biweekly.</p><p><strong>Phase 3: Monetization Layer<br></strong> We keep it free for teens. But we introduce value-aligned monetization:</p><ul><li>Sponsored listings for organizations</li><li>Small transaction fees on paid-for events</li><li>Optional paid features like early access or matching</li></ul><p>Revenue helps us grow without compromising teen access.</p><p><strong>Phase 4: City to City<br></strong> Once Toronto works, we rinse and repeat in other cities. School partnerships help us spread naturally, like a useful secret.</p><p><strong>Phase 5: Expand Infrastructure<br></strong> Long-term, we partner with organizations offering internships, competitions, and mentorship, building the infrastructure behind teen growth.</p><p><em>We’re not here to disrupt school. We’re here to amplify what changes lives.</em></p><h4><strong>Technical Philosophy: Built for Teens</strong></h4><p>Start lean, move fast, and stay curious.</p><p><strong>Tech Stack</strong>: Next.js, MongoDB, Tailwind CSS. Fast, scalable, flexible.</p><p><strong>User Experience</strong>: Minimal clicks, personable, and useful.</p><p><strong>Future Enhancements</strong>: Smart filtering, optional profiles, AI-curated recommendations, and integration with tools schools already use.</p><p>We’re building for scale but always with soul.</p><h3><strong>Risks and Mitigations</strong></h3><p><strong>Risk 1: Low Teen Engagement</strong><br>Solution: Conducted surveys, and the results speak for themselves</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*1iP4TuSD43zYQnKl5j12Tw.png" /><figcaption>50+ answers were provided for this chart</figcaption></figure><p><strong>Risk 2: Insufficient Opportunities Listed</strong><br> Solution: Using scraping tools and automated bots to handle all event listings.</p><p><strong>Risk 3: User Drop-off Over Time</strong><br> Solution: Make it actually fun to use. Gamify exploration. Reward curiosity.</p><p>We know the internet is full of shiny distractions. We’re here to be the one that matters.</p><h3><strong>Join Us</strong></h3><p>If you’ve read this far, you’re probably the kind of person we built this for or someone who can help us build it better.</p><p>Here’s how you can get involved:</p><p><strong>01.</strong> <strong>Spread the Word</strong>: Tell a friend or five.</p><p><strong>02.</strong> <strong>Share Opportunities</strong>: Send us events or programs to feature.</p><p><strong>03. Provide Feedback</strong>: Seriously, we’re listening.</p><blockquote><em>Are you building for youth too? Let’s talk. We’re open to partnerships, pilots, and shared missions.</em></blockquote><blockquote>We’re not just building a site. We’re building a launchpad for the next generation.</blockquote><p>The secret’s out, and you’re part of it now.</p><h4><strong>Check out </strong><a href="https://opporteenity.typedream.app/"><strong>https://opporteenity.typedream.app/</strong></a><strong> for more information.</strong></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1462a34e397a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I made Just a Rather Very Intelligent System using Python, More Popularly Known as J.A.R.V.I.S.]]></title>
            <link>https://medium.com/@zeniaharis1/i-made-just-a-rather-very-intelligent-system-using-python-more-popularly-known-as-j-a-r-v-i-s-caa00641e502?source=rss-a03b8fc5c3a7------2</link>
            <guid isPermaLink="false">https://medium.com/p/caa00641e502</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[personal-assistant]]></category>
            <category><![CDATA[jarvis]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[ironman]]></category>
            <dc:creator><![CDATA[Zenia.H.]]></dc:creator>
            <pubDate>Thu, 28 Nov 2024 06:20:10 GMT</pubDate>
            <atom:updated>2024-11-30T02:02:23.958Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C3yKCJH7UrJXGT4K6oOQCQ.png" /></figure><h4>When I was little, I had a Marvel movie marathon with my brother and mom, and I’ll never forget how much I loved watching JARVIS and Iron Man interact! I always wondered if I could have my own version of JARVIS because we all know that Google Assistant and Alexa are…let’s just say inconsistent.</h4><p>This project was my attempt to bring that memory back…but this time I’m Iron Man (technically Iron Woman but close enough).<br>I knew I couldn’t create <strong>the</strong> JARVIS, especially as an amateur coder…</p><p><strong>**Flashback**</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*tjOKn0qcvp_igX9S5bXZbQ.png" /></figure><p>So even though my <em>current </em>model could be considered basic, I had so much fun making it and testing and the possibilities are endless!</p><h3><strong><em>Check out my demo here: </em></strong><a href="https://youtu.be/O6WgIFzVJHY">https://youtu.be/O6WgIFzVJHY</a></h3><h3>Why Build a JARVIS Assistant? Because Life is Busy and Superpowers Would Help!</h3><p>First off, who wouldn’t want a robot friend telling them what’s next on their schedule, managing tasks, &amp; being able to tell them the time weather etc?<br>I have 7 total extra-curricular activities (4 in school, 3 outside), 6 of which are year-long. Life gets pretty busy with basketball, DECA, Business Club, Athletic Council, Create for Kids Halton, TKS, and now Velocity requirements. Having an AI assistant to help you manage your tasks and schedule is pretty nice if I do say so myself.</p><p><strong>What it can do</strong>: <br>Please keep in mind that this is just what MY CURRENT version of JARVIS can do (working on turning my nanoleaf - lights - on and off, just need some details), I wanted to keep it pretty simple as of right now and go all out on my final project! <strong>*foreshadowing*</strong></p><ul><li>Manage calendars.</li><li>Help organize tasks.</li><li>Weather Info</li><li>Time</li><li>Date</li><li>Use voice commands</li></ul><p><strong>What makes it cool</strong>:</p><ul><li>It’s custom-built for <em>you</em>!</li><li>Works with Google Calendar.</li><li>Its personality and characteristics are very open-ended</li><li>You feel like Iron Man while talking to it</li><li>You know where all your info is coming from/going</li><li>YOU are in control of every aspect</li></ul><h3>The Not-So-Glamorous Side: Struggles and Bugs</h3><ul><li>Let&#39;s talk about the hardest part: setting up the Google Calendar API.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*M0HV8mLy7NF9JEouXnRmsQ.png" /><figcaption>This is my proof guys.</figcaption></figure><p>I will be completely honest when I say that without ChatGPT, I probably wouldn&#39;t have been able to do this, and that is OKAY! Slightly off-topic but, I believe that if we are given resources like ChatGPT, it would be a shame not to use them. I learned so much through ChatGPT and will be able to use those skills later on!</p><p>Okay, spiel over.</p><h4>Funny/Frustrating Moments.</h4><p>This, like any other project, was not done without frustration and the feeling of helplessness. Most of my frustration was taken out on ChatGPT…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*1DNxUEfr6VjEQfaHxsziDA.png" /><figcaption>More proof.</figcaption></figure><h3>Why This Project Matters (More Than Just Looking Cool):</h3><p>At first glance, this project may seem like just a fun way to build a robot assistant, but it’s much more than that. Building JARVIS is about learning how to solve problems, being creative, and getting hands-on experience with artificial intelligence.</p><p>This project also helps me connect to bigger goals. By learning how to build AI systems like this, I’m setting myself up for future success in tech. Whether I’m designing smarter systems or improving how people interact with technology, every project like this is a step toward making life easier through innovation.</p><h3>How You Can Build Your Own JARVIS (Without Going Full Tony Stark):</h3><p>Building your own JARVIS is totally doable. The key is to take it step by step.<br>Start by identifying what you need help with. What do you want your assistant to do for you? Once you’ve reached your goal, you can explore basic tools like Python and APIs to build it. Start small — there’s no need to go straight for the full Iron Man experience.</p><p>Note: Note: This guide won’t give you the exact results of my code, but it will show you how to build the foundation of your own model. After that, you’re on your own! <br><em>(My Github repo will be linked at the bottom so keep reading )</em></p><h4>1. Import Libraries</h4><pre>import pyttsx3  # Text-to-speech<br>import speech_recognition as sr  # Speech-to-text<br>import datetime  # Date and time<br>import time  # Delays</pre><ul><li><strong>pyttsx3</strong>: A library that converts text to speech. This allows your program to speak out responses.</li><li><strong>speech_recognition</strong>: A library that helps convert speech into text. It listens to your voice and transcribes what you say.</li><li><strong>datetime</strong>: Used to fetch the current date and time.</li><li><strong>time</strong>: Provides various time-related functions, such as delays, useful for controlling the flow of your program.</li></ul><h4>2. Speech Engine</h4><pre># ------------------- SPEECH ENGINE ------------------- #<br>def Speak(text):<br>    rate = 150<br>    engine = pyttsx3.init()<br>    voices = engine.getProperty(&#39;voices&#39;)<br>    engine.setProperty(&#39;voice&#39;, voices[0].id)<br>    engine.setProperty(&#39;rate&#39;, rate + 50)<br>    engine.say(text)<br>    engine.runAndWait()</pre><p><strong>Speak function</strong>: This function takes a text string as input and speaks it out loud.</p><ul><li>engine = pyttsx3.init(): Initializes the text-to-speech engine.</li><li>engine.getProperty(&#39;voices&#39;): Retrieves available voice options (male or female).</li><li>engine.setProperty(&#39;voice&#39;, voices[0].id): Sets the voice to the first available voice (usually a male voice).</li><li>engine.setProperty(&#39;rate&#39;, rate + 50): Sets the speed of speech, making it slightly faster.</li><li>engine.say(text): Converts the input text into speech.</li><li>engine.runAndWait(): Runs the speech engine and waits until the speech is finished.</li></ul><h4>3. Global Variables</h4><pre>r = sr.Recognizer()<br>keywords = [(&quot;jarvis&quot;, 1), (&quot;hey jarvis&quot;, 1), (&quot;jarvis listen up&quot;, 1)]<br>source = sr.Microphone()</pre><ul><li><strong>r = sr.Recognizer()</strong>: Creates an instance of the Recognizer class to handle speech recognition.</li><li><strong>keywords</strong>: A list of trigger phrases like &quot;jarvis,&quot; &quot;hey jarvis,&quot; and &quot;jarvis listen up&quot; that the program listens for. These are the words that will activate the assistant.</li><li><strong>source = sr.Microphone()</strong>: Sets the microphone as the audio source for listening to input.</li></ul><h4>4. Main Recognizer - Speech Recognition/Response</h4><pre># ------------------- MAIN RECOGNIZER ------------------- #<br>def recognize_main(recognizer, audio):<br>    try:<br>        data = recognizer.recognize_google(audio).lower()<br>        print(&quot;You said: &quot; + data)</pre><ul><li><strong>recognizer.recognize_google(audio)</strong>: This converts the captured audio into text using Google’s Speech-to-Text API.</li><li><strong>.lower()</strong>: Converts the text to lowercase to make it case-insensitive, ensuring the comparison works regardless of how the user speaks.</li><li><strong>print(&quot;You said: &quot; + data)</strong>: Prints what was recognized in the console for debugging purposes.</li></ul><pre>if &quot;how are you&quot; in data:<br>            Speak(&quot;Oh, I&#39;m doing fabulous. How about you?&quot;)<br>        elif &quot;good&quot; in data:<br>            Speak(&quot;good for you, why am I here then?&quot;)<br>        elif &quot;bad&quot; in data:<br>            Speak(&quot;womp womp&quot;)<br>        elif &quot;hello&quot; in data:<br>            Speak(&quot;Hello human, still dealing with the human world?&quot;)<br>        elif &quot;what&#39;s the time&quot; in data:<br>            current_time = datetime.datetime.now().strftime(&quot;%I:%M %p&quot;)<br>            Speak(f&quot;The time is {current_time}.&quot;)<br>        elif &quot;what&#39;s the date&quot; in data:<br>            current_date = datetime.datetime.now().strftime(&quot;%B %d, %Y&quot;)<br>            Speak(f&quot;Today&#39;s date is {current_date}.&quot;)<br><br>        elif &quot;exit&quot; in data or &quot;quit&quot; in data:<br>            Speak(&quot;Goodbye.&quot;)<br>            exit()<br>        else:<br>            Speak(&quot;Sorry, I didn&#39;t catch that. Could you repeat?&quot;)</pre><p>This section checks if specific phrases are found in the recognized speech (data).</p><ul><li>If a phrase like “how are you” or “hello” is detected, the assistant responds accordingly using the Speak function.</li><li>If the user says “what’s the time” or “what’s the date,” it fetches the current time and date using the datetime module and speaks it.</li><li>If the command is “exit” or “quit,” it exits the program.</li><li>If no recognized command is matched, it asks the user to repeat.</li></ul><pre>except sr.UnknownValueError:<br>        print(&quot;Jarvis did not understand your request.&quot;)<br>    except sr.RequestError as e:<br>        print(f&quot;Could not request results from Google Speech Recognition service; {e}&quot;)</pre><p>These exceptions handle errors related to speech recognition.</p><ul><li>UnknownValueError: Raised when speech is unclear or not recognized.</li><li>RequestError: Raised if there is a problem with the Google API request (e.g., no internet).</li></ul><h4>5. Main Program Loop</h4><pre>while True:<br>    print(&quot;Waiting for a keyword...&quot;)<br>    r.listen_in_background(source, recognize_main)<br>    time.sleep(1000000)</pre><ul><li><strong>while True</strong>: An infinite loop keeps the program running, constantly listening for voice input.</li><li><strong>r.listen_in_background(source, recognize_main)</strong>: This method listens for audio input in the background and calls the recognize_main function when it detects something.</li><li><strong>time.sleep(1000000)</strong>: A large sleep time is used to keep the program running indefinitely. It essentially pauses the program to allow the background listening to continue.</li></ul><h3>TL;DR of the Code Steps:</h3><ol><li><strong>Import Libraries</strong>: Use pyttsx3 for text-to-speech, speech_recognition for speech-to-text, datetime for date/time functions, and time for delays.</li><li><strong>Text-to-Speech Function</strong>: Define the Speak function that takes the text and converts it into speech using pyttsx3.</li><li><strong>Global Variables</strong>: Set up variables for speech recognition (sr.Recognizer), trigger phrases (keywords), and microphone input (source).</li><li><strong>Speech Recognition</strong>: Create the recognize_main function to recognize spoken commands (e.g., &quot;how are you,&quot; &quot;what&#39;s the time&quot;) and respond appropriately. Handle errors like unrecognized speech.</li><li><strong>Main Loop</strong>: Use an infinite loop to keep the program running and actively listening for speech input continuously.</li></ol><p>This is what the code should look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*HypL9NAa1GQ8eCXL0qoQEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*IZ91OPLw3wkksU_QI0fhLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*5LMMWgdB2dYEP4z7A3ggZg.png" /></figure><p>In my Github repository, I will have this code and my version of the code so you can mess around with that!</p><h3>Key Takeaways:</h3><p>Building something like JARVIS is possible — even if you’re not Tony Stark.</p><p>Troubleshooting isn’t something to be afraid of — it’s how you learn.</p><p>Start small, and keep improving. It’s a journey, not a race.</p><p>Make it fun and personal. The more you put into it, the more you’ll get out.</p><h4>If this article has inspired you to create your own assistant, go ahead and give it a try! Follow my journey as I continue to improve my JARVIS, and share your progress with me too. I’d love to hear about your ideas and how you make your assistant unique. Let’s make technology work for us in cool and creative ways!</h4><p><strong>About Me:</strong></p><p>Hello! I am Zenia Haris, a 15-year-old researching AI. In my last article, I made an image classification AI model. As you can see, I’m back with another AI model but it’s JARVIS! It may seem like nothing really lines up, what with the ethical AI, and image classification, but stay tuned for the final article regarding the last part of this project! <br>It’ll all make sense soon!</p><p>I couldn&#39;t have been able to make the base of this model without TechMoto’s tutorial. It was amazingly simple to understand!<br><a href="https://www.youtube.com/watch?v=n4MXCnppKOY&amp;list=PLm4rgP2bwr1q4s_9EwAo4pHBcYxsBRPKs&amp;index=2">https://www.youtube.com/watchv=n4MXCnppKOY&amp;list=PLm4rgP2bwr1q4s_9EwAo4pHBcYxsBRPKs&amp;index=2</a></p><p><strong>Github:</strong> COMING SOON<br><strong>Gmail</strong>: zeniaharis1@gmail.com<br><strong>LinkedIn:</strong> <a href="http://www.linkedin.com/in/zenia-haris">www.linkedin.com/in/zenia-haris</a><br><strong>Subscribe to my Substack for my Monthly NewZletter! (Please ❤)<br></strong><a href="https://zeniaharis.substack.com/">https://zeniaharis.substack.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=caa00641e502" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an AI Image Classification Model using Python and Convolutional Neural Networks]]></title>
            <link>https://medium.com/@zeniaharis1/building-an-ai-image-classification-model-using-python-and-convolutional-neural-networks-07bf9c732f9c?source=rss-a03b8fc5c3a7------2</link>
            <guid isPermaLink="false">https://medium.com/p/07bf9c732f9c</guid>
            <category><![CDATA[cnn-model]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[image-classification]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Zenia.H.]]></dc:creator>
            <pubDate>Thu, 14 Nov 2024 23:12:34 GMT</pubDate>
            <atom:updated>2024-11-17T03:25:39.399Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PaB5gwGuFCjckBbO.jpg" /><figcaption>Investopedia / Joules Garcia</figcaption></figure><h3><strong>Picture this: A tenth grader with absolutely NO experience with Python or neural networks…but very fascinated by it. I decided to dream big and build an image classifier that can recognize ordinary things/animals like planes, cars, deer, horses, and more!</strong></h3><p><strong><em>Check out my demo video here: </em></strong><a href="https://youtu.be/7PA1i4hE4vI?si=EYG4RcF6OmIzjTtA"><strong><em>VIDEO</em></strong></a></p><h4>How I Managed This: The Emotional Turmoil of Learning Python</h4><p>As embarrassing as it is, here was my first step.</p><p>1. Taking a screenshot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/267/1*N8xBuqFYp7j5tWW10g9ETg.png" /></figure><p>So, I actually had <em>no</em> idea what PyCharm was before I started. To figure out what app NeuralNine (guy in my tutorial) was using, I put this photo into Google Lens! Once I figured it out, I downloaded it. <br>In all seriousness, this project has 2 parts and here are the actual steps I followed while making the model.</p><h3>PART A - Build &amp; Train Model</h3><p><strong>Step #1 - Downloading &amp; Installing Apps/Libraries</strong></p><p>After figuring out that I needed to download Python and PyCharm in terms of apps, then came libraries like; TensorFlow, NumPy, and Matplotlib. <br><a href="https://www.jetbrains.com/pycharm/download/?section=windows">Downloading PyCharm</a> is really simple, you just go on their website, click download, and BOOM, done. <br>I had to download the libraries by running a ‘pip install’ line in my Command Prompt (cmd.exe).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XyzWTDVwYwH8RBlqy7nuVg.png" /><figcaption>It says already satisfied because this is a recent screenshot and I had already downloaded them</figcaption></figure><pre>pip install tensorflow keras numpy matplotlib </pre><p>I’ll be nice and tell you beforehand, that TensorFlow is NOT compatible with the latest version of Python (3.13.0). It is <a href="https://www.tensorflow.org/install#:~:text=TensorFlow%20is%20tested%20and%20supported,or%20later%20(with%20C%2B%2B%20redistributable)"><em>only compatible</em></a> with versions 3.8–3.11. You also cannot install an older version of Python from the website so here&#39;s a trick I learned while troubleshooting (thank you Diapolo10);</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*PujUj-b1rKFVgEjQq_Z-Mg.png" /><figcaption><a href="https://www.reddit.com/r/learnpython/comments/13udc9l/how_to_install_a_previous_version_of_python_on/">https://www.reddit.com/r/learnpython/comments/13udc9l/how_to_install_a_previous_version_of_python_on/</a></figcaption></figure><p>Just run Windows + R, type in “ cmd ” click enter and paste this in;</p><pre>winget install Python.Python.3.8</pre><p>Finally, I had successfully installed all compatible versions of apps and libraries!</p><p><strong>Step #2 - Importing Libraries</strong></p><p>To import the libraries I had just downloaded, I entered the code below;</p><pre>import sys <br># sys is a module that gives me access to a lot of variables and functions<br><br>from keras.src.datasets import (cifar10) <br># This will import cifar10 (dataset) from keras to my code. <br># CIFAR-10 is a popular data set of 60,000 small 32x32 images<br><br>from tensorflow.keras import (datasets, layers, models) <br># This will import datasets like CIFAR-10, MINST.<br># Layers are used to build neural network layers (e.g., convolutional layers, pooling layers).<br># Models are used to construct, compile, and train neural network models. <br><br>print(sys.executable)<br># This prints the path being used by the python interpreter, it&#39;ll show up when I run the code!<br><br>import cv2 as cv<br># Imports OpenCV (labeled as cv), <br># OpenCV is a library for image and video processing tasks, like reading and showing images.<br><br>import numpy as np<br># Imports NumPy, a library for numerical computations in Python. <br># Often used for handling data arrays.<br><br>import matplotlib.pyplot as plt<br># Imports Matplotlib&#39;s pyplot module as &#39;plt&#39;, <br># This is used for data visualization, <br># like plotting images, graphs, and training performance metrics.<br><br>from tensorflow.keras.preprocessing.image import ((ImageDataGenerator))<br># The image data generator helps augment training data by rotating, shifting, or flipping images to prevent overfitting<br># Imports ImageDataGenerator from TensorFlow’s Keras. <br># This tool generates batches of image data with real-time data augmentation. <br># This is helpful in increasing the size and variety of training data.</pre><p>The results of this will appear to be different for EVERYONE based on pre-existing libraries and datasets seeing as NeuralNine didn&#39;t face as many problems as I did (I have proof)…I kept on troubleshooting and used what worked for me!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*v5G2WhyHQjM-17xc4QDAIg.png" /><figcaption>I definitely wanted to give up here</figcaption></figure><p><strong>Step #3 - Loading &amp; Processing CIFAR-10</strong></p><p>So, with the basics set up, I got to loading my dataset! I used CIFAR-10, a popular dataset of 60,000 32x32 colour images divided into ten different categories: airplanes, cars, birds, cats, deer, dogs, frogs, horses, ships, and trucks. Each image is tiny, but that’s what makes this dataset so cool — it’s designed for beginner projects, which is perfect because, let’s be honest, I am VERY much a beginner.</p><pre>(training_images, training_labels), (testing_images, testing_labels) = cifar10.load_data()<br># Loading the CIFAR-10 dataset<br><br>training_images, testing_images = training_images / 255.0, testing_images / 255.0<br># Normalize the pixel values to be between 0 and 1</pre><p>Adjusting the pixel values to be between 0 and 1 instead of 0 and 255, (which is the default for images) helps the neural network process the data better and makes training faster and more effective!</p><p><strong>Step #4 - Data Augmentation</strong></p><p>Data augmentation is a fancy way to say I increased the training set of data by creating changed copies of a dataset using existing data.</p><pre>datagen = ImageDataGenerator<br># This line initializes the ImageDataGenerator with specific augmentation parameters. <br># These parameters define how each image will be randomly changed during training.<br>(<br>    rotation_range=15,<br>    width_shift_range=0.1,<br>    height_shift_range=0.1,<br>    horizontal_flip=True<br>)<br><br>datagen.fit(training_images)<br># Fit the data generator to our training images  <br># For certain augmentations, like normalization, the generator needs to understand the properties of the dataset </pre><p><strong>Step #5 - Seeing it in Real Time</strong></p><p>This step helped me understand what kinds of images the model would train on and was a nice confidence boost to see everything actually working!</p><pre>class_names = [&#39;Plane&#39;, &#39;Car&#39;, &#39;Bird&#39;, &#39;Cat&#39;, &#39;Deer&#39;, &#39;Dog&#39;, &#39;Frog&#39;, &#39;Horse&#39;, &#39;Ship&#39;, &#39;Truck&#39;]<br># Each category is the name of a class (or category) in the CIFAR-10 dataset. <br># CIFAR-10 has 10 classes, and each class corresponds to an index.<br><br>for i in range(16):<br># This starts a loop to show the first 16 images from the &#39;training_images&#39; dataset.<br># The range 16 means the loop will iterate 16 times (i.e., i goes from 0 to 15).<br><br>    plt.subplot(4, 4, i+1)<br># This makes a 4x4 grid used to display 16 images in a 4x4 layout.<br><br>    plt.xticks([])<br>    plt.yticks([])<br># This removes the x-axis and y-axis tick marks, giving a cleaner look to the image.<br><br>    plt.imshow(training_images[i], cmap=plt.cm.binary)<br># This converts the images to grayscale for display<br><br>    plt.xlabel(class_names[training_labels[i][0]])<br># This sets the x-axis label below each image to the class name corresponding to training_labels[i][0]. <br># For example, if training_labels[i][0] is 3, it will display &quot;Cat&quot; because class_names[3] is &quot;Cat&quot;.<br><br>plt.show()<br># This just shows the result</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*3-A1FkP5LBJgW0eMr23JGQ.png" /><figcaption>This is what you should be seeing</figcaption></figure><p><strong>Step #6 - Dataset Sizes</strong></p><p>It was important that the model be accurate, this only comes from good training.</p><pre>training_images = training_images[:50000]<br>training_labels = training_labels[:50000]<br>testing_images = testing_images[:10000]<br>testing_labels = testing_labels[:10000]</pre><p>These lines take the first 20,000 images from the training images array and the first 10,000 images from the testing labels. This keeps the labels aligned with the set of training images.</p><p><strong><em>Note</em></strong><em>: </em>In the CIFAR-10 dataset, there are only 50,000 training and 10,000 testing images.</p><p><strong>Step #7 - Building the Convolutional Neural Network (CNN)</strong></p><p>Quick definition; a CNN is a a type of neural network used mainly for image recognition and processing, due to its ability to recognize patterns in images.</p><p>Here is how I defined my model for image classification using Keras!</p><pre>model = models.Sequential()<br># This starts a model which lets you stack layers in sequence.<br><br>model.add(layers.Conv2D(32, (3, 3), activation=&#39;relu&#39;, input_shape=(32, 32, 3)))<br>model.add(layers.MaxPooling2D((2, 2)))<br><br>model.add(layers.Conv2D(64, (3, 3), activation=&#39;relu&#39;))<br>model.add(layers.MaxPooling2D((2, 2)))<br><br>model.add(layers.Conv2D(64, (3, 3), activation=&#39;relu&#39;))<br><br>model.add(layers.Flatten())<br>model.add(layers.Dense(64, activation=&#39;relu&#39;))<br><br>model.add(layers.Dense(10, activation=&#39;softmax&#39;))</pre><p>Instead of writing the purpose of each line in the code itself, I’ll write the function here this time!</p><p>‘ <strong>Conv2D </strong>’ adds a 2D convolutional layer with 32 filters, the layer learns 32 different filters (or feature detectors) in this layer. <br><strong>‘ (3, 3) ’</strong> is the kernel size, and each filter is a 3x3 matrix. <br><strong>‘ relu ’ </strong>(Rectified Linear Unit) activation function, which introduces non-linearity, replaces negative values with zero to speed up learning. <br><strong>‘ input_shape=(32, 32, 3) ’</strong> is the shape of the input images; 32x32 pixels with 3 color channels, RGB.<br><strong>‘ MaxPooling2D((2, 2)) ’</strong> is a layer that reduces the size of the image by taking the maximum value from each 2x2 section, making the image smaller (e.g., from 32x32 to 16x16).<br><strong>‘ Flatten ’ </strong>reshapes the 3D output from the convolutional layers into a 1D vector, preparing it for the fully connected (dense) layers.<br><strong>‘ Dense(64, activation=‘relu’) ’ </strong>is a fully connected layer that has 64 neurons and uses ReLU activation. It combines the features learned by the convolutional layers and can learn more complex patterns by connecting all inputs to each neuron.<br>‘ <strong>Dense(10, activation=’softmax’) ’</strong> is the output layer, this has <strong>10 neurons, </strong>one for each class in CIFAR-10. The ‘<strong>softmax activation’</strong> turns the output into a probability distribution, so each neuron’s output represents the probability of the image belonging to each of the 10 classes.</p><p>The reason this part of the code seems so repetitive is that each convolutional layer is designed to slowly learn more complex features at increasing levels of abstraction.</p><p><strong>Step #8 - Compile &amp; Train</strong></p><p>With all the structure and foundation done, I just needed to enter the code that would compile everything and train it!</p><pre>model.compile(optimizer=&#39;adam&#39;, loss=&#39;sparse_categorical_crossentropy&#39;, metrics=[&#39;accuracy&#39;])<br># This prepares the model for training by specifying the optimizer, loss function, and metrics.<br><br>model.fit(training_images, training_labels, epochs=10, validation_data=(testing_images, testing_labels))<br># This is the function used to train the model on the data.<br><br>loss, accuracy = model.evaluate(testing_images, testing_labels)<br><br>print(f&quot;loss: {loss}&quot;)<br>print(f&quot;Accuracy: {accuracy}&quot;)<br># this will just print the measurements in the terminal</pre><p><strong>1. <br>‘ adam </strong>’ is an optimization algorithm that changes the learning rate during training to help the model learn more efficiently.<br>The loss function is used to measure how well the model is performing, and <strong>‘ sparse categorical crossentropy ’</strong> is used for classification in the categories (like CIFAR-10, which has 10 categories). It calculates the difference between the model’s predicted probabilities and the true labels.<br> <strong>‘metrics=[‘accuracy’])’ </strong>specifies the measurement used to assess the model during training. In this case, we are measuring accuracy.</p><p><strong>2. <br></strong>We’ve covered <strong>‘ training_images and training_labels ’</strong>. <br><strong>‘ epochs=10 ’</strong> means the model will go through the entire dataset 10 times and each pass through the dataset is called an epoch. <br><strong>‘ validation_data=(testing_images, testing_labels) ’</strong> is the data the model will use for validation after each epoch. <br>The<strong> ‘ testing_images and testing_labels ’ </strong>are not used for training, but the model will evaluate its performance on this data after each epoch to see how it’s performing on examples it hasn’t seen during training.</p><p>When you run the code, this is what training should look like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aGjA61ue7ccqi36gXlyZHA.png" /></figure><p>Run the training a few times because it is a lengthy process and the accuracy does increase!</p><h3>Congratulations! Part A is done!!!</h3><h3>PART B - Loads the Model and Makes Prediction</h3><p>Don’t worry, this part isn&#39;t more lengthy code that you don&#39;t know the meaning of. Now you get to see the model come to life!</p><p><strong>Step #1.b - Save &amp; Load Trained model</strong></p><p>After training is done, you can use the following code to save the model separately and insert it to properly use it!</p><pre>model.save(&#39;image.classifier.keras&#39;)<br># Saves the trained model as &#39;image.classifier.keras&#39;</pre><p>The red rectangle shows the saved model and that is crucial to part B.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*P2zyrnBm_17ZGLPgGaR63Q.png" /></figure><p>Now this was the most heartbreaking part, (for me at least) you will delete all the code from <strong>‘ for i in range(16): ’ </strong>till<strong> ‘ plt.show() ’ </strong>from step 5. Additionally, you will also delete all the code from steps 7 and 8.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zAbsAMA_WgkW-HkJoGol2Q.png" /></figure><p>This is what your code should look like. By itself, this means nothing but remember how you saved the model? Now we put it to use like this!</p><pre>model = models.load_model(&#39;image.classifier.keras&#39;)<br># This simply loads in the trained model we just made in part A</pre><p><strong>Step 2.b - Load and Preprocess Images for Prediction</strong></p><p>To test the model, I loaded a new image into the PyCharm project, preprocessed it, and displayed it to verify what the model would “see.”</p><pre>img = cv.imread(&#39;horse-image.jpg&#39;)  <br># img loads an image file (in this case, horse-image.jpg). <br># The cv.imread() function from OpenCV reads the image in the default BGR (Blue-Green-Red) color format.<br><br>img = cv.cvtColor(img, cv.COLOR_BGR2RGB)<br># This line converts the image from BGR to RGB format, which is the standard color format for most libraries, including Matplotlib.<br># OpenCV reads images in BGR, while Matplotlib expects images in RGB. This step ensures the colors display correctly.<br><br>plt.imshow(img, cmap=plt.cm.binary)<br># This parameter is optional, if you want the image in its original color, you can remove this line. <br>plt.show()</pre><p>I can confirm that the best way to get test images is to use <a href="https://pixabay.com/">Pixabay</a> and find pictures of a horse, car, deer, and plane without much background clutter. Then, use <a href="https://www.gimp.org/downloads/">Gimp</a> (image editing app — need to download) to scale the pictures down to 32x32 pixels. <strong>(Scaling is necessary)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*p8baePD5mD0sMUndYzyxsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/309/1*PI9Ps3k_8QhfB85tg_q8xQ.png" /></figure><p>It SHOULD look like this, these images are for the model to classify!</p><p><strong>Step 3.b - Making and Interpreting the Prediction</strong></p><p>Finally, the moment of truth: feeding the image to the model for a prediction.</p><pre>prediction = model.predict(np.array([img]) / 255.0)<br># This line preps the image for prediction by creating a collection of images with a single image and then normalizing it.<br><br>index = np.argmax(prediction)<br># Identifies the index of the highest probability in the prediction array.<br># This represents the class the model is most confident about. <br># For example, if prediction = [0.1, 0.05, 0.7, 0.15], the function returns 2 because 0.7 (the highest value) is in the third position (index 2).<br># Don&#39;t get confused with the numbers, array positions start at 0 in code!<br><br>print(f&#39;Prediction is {class_names[index]}&#39;)<br># This line prints the class name of the model’s prediction.<br><br>plt.show()<br># Show the result</pre><p>Now click run and watch the magic happen…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lls9RfNFrnHv3KlqwBRSNw.png" /><figcaption>The relief I felt after this was real</figcaption></figure><p>TA-DA, Now you have your very own image-classifying AI model!</p><h4>All Done!!</h4><h4><strong>What Did I Learn From this Project?</strong></h4><p>Where to start? <br>This project definitely taught me the basics of: <br>- Building a neural network <br>- How to run — PyCharm, Python, Gimp, TensorFlow, and Keras <br>- What a CNN is <br>- How CNN work and why they&#39;re so cool. <br>- How libraries work in code (I sadly did not know before this)</p><p>I encountered countless errors, from compatibility issues with TensorFlow and Python versions to syntax mistakes. I<strong> </strong>learned how to troubleshoot effectively by researching solutions and breaking problems down line by line. This project also forced me to be resourceful. I learned how to interpret documentation, use forums, and adapt code examples from online tutorials to fit my needs. One of my key takeaways from this is that in the coding community; even if you see red errors, if the code works, leave it alone. (Before you touch something, mess up and spend another hour troubleshooting)</p><h4><strong>What would this look like if I made a bigger version of this?</strong></h4><p>If I were to scale this up, the complexity of the model would need significant enhancements. For example, instead of a basic CNN, I might use a different architecture like Vision Transformers (ViT)] to improve performance on larger and more diverse datasets.</p><p>Unfortunately, I don&#39;t mean this transformer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/242/1*uUDEDKsOIsllM9SR7Ro_Hw.png" /><figcaption>Robosen US Store | The Robot Store</figcaption></figure><p>ViT would handle finer distinctions between objects, which is necessary when dealing with a broader range of categories or more detailed images.</p><h4><strong>Can it solve problems?</strong></h4><p>With additional training, a similar model could help identify medical conditions from X-rays or MRIs, assisting doctors in diagnosing diseases. This could eventually evolve into a paid app, offering services to hospitals or health tech companies. An existing example of this would be <a href="https://mipav.cit.nih.gov/">MIPAV</a>!</p><p>The future of image classification looks bright seeing as approximately <a href="https://keylabs.ai/blog/applications-of-image-classification-in-different-industries/">1.72</a> trillion photos are taken worldwide every year, helping in the training of image recognition technologies. AI image recognition is transforming sectors like healthcare, manufacturing, and retail by enhancing efficiency and innovation. Image classification has significant applications in security, agriculture, and autonomous driving systems.</p><p><strong>About Me:</strong></p><p>Hello! I am Zenia Haris, a 15-year-old researching AI. In my last article, I discussed ethical AI and how it works. This time I decided to tackle making AI models using neural networks and I learned so much throughout this whole process. <br>Big shout out to my TKS directors Skylor and Lyn for believing in me!</p><p><strong>Sources</strong>: <br>NeuralNine. “Image Classification With Neural Networks in Python.” <em>YouTube</em>, 6 May 2020, <a href="https://www.youtube.com/watch?v=t0EzVCvQjGE&amp;list=PL7yh-TELLS1G9mmnBN3ZSY8hYgJ5kBOg-&amp;index=15">www.youtube.com/watch?v=t0EzVCvQjGE.</a></p><p>Diapolo10. “How to install a previous version of python on windows?” <em>Reddit</em>, 2023, <a href="http://www.reddit.com/r/learnpython/comments/13udc9l/comment/jm0488d.">www.reddit.com/r/learnpython/comments/13udc9l/comment/jm0488d.</a></p><p>Keylabs. “Applications of Image Classification in Different Industries.” <em>Keylabs: Latest News and Updates</em>, 1 July 2024, <a href="https://keylabs.ai/blog/applications-of-image-classification-in-different-industries/">keylabs.ai/blog/applications-of-image-classification-in-different-industries.</a></p><p>Shah, Jigar. <em>Medical Image Processing, Analysis and Visualization</em>. <a href="https://mipav.cit.nih.gov/">mipav.cit.nih.gov.</a></p><p>David, Pat. <em>GIMP — Downloads</em>. <a href="http://www.gimp.org/downloads.">www.gimp.org/downloads.</a></p><p>“Download PyCharm: The Python IDE for Data Science and Web Development by JetBrains.” <em>JetBrains</em>, 2 June 2021, <a href="http://www.jetbrains.com/pycharm/download/?section=windows.">www.jetbrains.com/pycharm/download/?section=windows.</a></p><p><strong>Contacts<br>Gmail:</strong> zeniaharis1@gmail.com<br><strong>LinkedIn:</strong> <a href="http://www.linkedin.com/in/zenia-haris">www.linkedin.com/in/zenia-haris</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=07bf9c732f9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is AI Ethical? How DevOps Prevents Errors on Mission-Critical Software]]></title>
            <link>https://medium.com/@zeniaharis1/ai-x-ethics-is-ai-ethical-can-it-be-ef0bc2ce7f41?source=rss-a03b8fc5c3a7------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef0bc2ce7f41</guid>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ethics]]></category>
            <category><![CDATA[framework]]></category>
            <dc:creator><![CDATA[Zenia.H.]]></dc:creator>
            <pubDate>Sun, 13 Oct 2024 01:30:21 GMT</pubDate>
            <atom:updated>2024-10-19T15:36:21.087Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*9toXfFPKVEmKEmkt" /><figcaption>Navigating the Ethical Landscape of AI - <br>Sabari Saran S - A Global Design Thinker and AI Engineer</figcaption></figure><h3><strong>AI is so arbitrary at times… right?</strong></h3><p>We humans cannot always trust each other to make ethically right decisions, so how could we trust machines? It’s pretty simple when you think about it.</p><p><strong>Erase irrelevant deciding factors.</strong></p><p><strong>Erase the stereotypes.</strong></p><p><strong>Erase the bias.</strong></p><p>Suppose a world in which machines, free from human review, make decisions that impact people’s lives. It’s real; it’s not science fiction. AI systems are increasingly making decisions related to hiring, lending, criminal justice, and healthcare. These technologies have the potential to reinforce preexisting biases and unfair practices if appropriate ethical standards are not followed.</p><h4><strong>First off, what even are ethics?</strong></h4><p>Ethics are the moral principles that drive decision-making and the attitude toward carrying out a task. An example of an <a href="https://theconversation.com/the-trolley-dilemma-would-you-kill-one-person-to-save-five-57111"><em>ethical dilemma</em></a> would be the classic;</p><p>Imagine you are standing beside some tram tracks. In the distance, you spot a runaway trolley going towards five workers who cannot hear it coming. They won’t be able to move out of the way in time. You look down and see a lever connected to the tracks. You realize that if you pull the lever, the tram will be diverted down a second set of tracks away from the five unsuspecting workers. However, down this side track is one lone worker who carries the cure for cancer. Do you see how that is a difficult decision?</p><h4><strong>What does this have to do with AI, you ask?</strong></h4><p>Having unbiased AI is crucial for everyone in society who uses any form of media.</p><p>Without ethical AI solutions and frameworks, we would have recurring instances like prejudiced <a href="http://gendershades.org/overview.html"><em>commercial gender classification tools</em></a> from more companies than Microsoft, <a href="https://www.reuters.com/article/us-amazon-com-jobs-automation-insight-idUSKCN1MK08G/"><em>Amazon’s sexist hiring tools</em></a><em> </em>and <a href="https://www.nbcnews.com/tech/internet/facial-recognition-s-dirty-little-secret-millions-online-photos-scraped-n981921"><em>IBM’s photo-scraping.</em></a> Developers want fast, accurate and high-quality answers from AI but without the correct implementation of these frameworks, we will continue to have inconsistent data, baseless tests and inconsistent results.</p><p>So what now, I’ve essentially ruined your perception of these big companies, what can be done to combat all of this? <br>Robust Test Automation Frameworks. These frameworks are essentially what is saving us from having these scandals within every company, or every other day. Let me give you a quick rundown on a Test Automation Framework; A software development team uses a test automation framework, which is a set of guidelines, to design and develop test cases in an organized and thorough manner.</p><h4><strong>How does all of this work?</strong></h4><p>I’m sure any software developer knows about Selenium right? If not, Selenium is one of the most popular automated testing tools to ensure web applications are effective across multiple browsers.</p><p>When robust test automation frameworks (RTAFs) are integrated with a powerful test management tool like Selenium, they provide quality assurance (QA) professionals with a comprehensive solution. This combination enhances testing efficiency, facilitates the creation of test cases that adhere to industry best practices, and streamlines the process of summarizing and reporting results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/0*MeU4JtWVv-I8dqdy" /></figure><p>In early 2024, Google’s Gemini AI model faced criticism for producing historically incorrect photos that excessively portrayed diversity. Sometimes the model was asked to generate representations of historical individuals or events, and the outputs didn’t match historical truth. According to CNN <a href="https://www.cnn.com/2024/02/22/tech/google-gemini-ai-image-generator/index.html">“<em>When prompted by CNN on Wednesday to generate an image of a pope, for example, Gemini produced an image of a man and a woman, neither of whom were White. Tech site The Verge also reported that the tool produced images of people of color in response a prompt to generate images of a “1943 German Soldier.</em>”</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CS8l7BcTHMW_O-Gl" /><figcaption>This screen grab shows CNN asking Google Gemini to create an AI-generated image of a pope, as well as the tool’s response. Clare Duffy/CNN via Google Gemini</figcaption></figure><p>The training data for the model, the lack of proper frameworks and the company’s efforts to make the AI more inclusive are the sources of this bias. It also emphasizes how difficult it is to strike a balance between historical accuracy and representation.<br>Robust test automation frameworks (RTAFs) with an emphasis on bias detection, mitigation, and ethical AI practices can be developed to address the Gemini AI crisis and prevent similar difficulties. <br>These frameworks should incorporate continuous integration of bias detection tests into the development, automatic bias checks, and a variety of test data. <br>The framework should consist of ethical rules and include explainability tests to make sure AI can defend its decisions. Version control and feedback loops are two components of a continuous improvement approach that assist in tracking and addressing biases over time. Businesses may greatly reduce bias in AI outputs and enhance the overall ethical performance of their AI systems by putting these strategies into practice.</p><p>There are 26 components to these RTAFs, lucky for you I have condensed it down to 7 categories if all 26 subtopics are too disheartening!</p><p><strong>Core Components</strong></p><ol><li>Test Scripts: Test scripts are detailed instructions for executing test cases and validating application functionalities. They outline specific actions, input data, and expected results, forming the backbone of the automation framework by directly interacting with the application under test.</li><li>Test Data Management: Test data management involves creating, manipulating, and cleaning up data to ensure consistent and reliable test results. It includes creating data subsets, implementing data masking for sensitive information, and using automation tools to maintain the integrity and relevance of tests across multiple executions.</li><li>Reporting and Logging: Comprehensive reporting and logging provide detailed insights into; test execution status, failures, and defects. This component includes custom logs with problem details and categorized execution status reports, facilitating quick decision-making and continuous improvement of the testing process.</li><li>Configuration Management: Configuration management handles different environments and configurations for consistent testing across various scenarios. It provides options to choose test execution environments, browsers, operating systems, and platforms at runtime, ensuring tests can be easily adapted to different conditions.</li><li>Reusable Libraries: Reusable libraries store common functions and methods to ensure code reusability and hide complex implementation logic. They significantly reduce code duplication and improve the maintainability of the framework by grouping application utilities.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/0*XhVFEkiQHMRfU-zP.jpg" /><figcaption>Image by DEV Community</figcaption></figure><p><strong>Design Principles</strong></p><ol><li>Modular and Scalable Architecture: A modular and scalable architecture enables easy maintenance, expansion, and reuse of test components across projects, improving the long-term sustainability of automation efforts.</li><li>Clear Objectives and Scope: Ensures alignment with business goals and testing requirements, helping prioritize efforts and measure success.</li><li>Standardized Naming Conventions: Enhances clarity, consistency, and maintainability, facilitating easier understanding and collaboration among team members.</li></ol><p><strong>Execution/Configuration</strong></p><ol><li>Integration with CI/CD: Seamless integration with CI/CD pipelines automates test execution, providing faster feedback loops and quicker release cycles.</li><li>Parallel Execution: Running tests concurrently saves time and improves efficiency, especially for large test suites.</li><li>Test Environment Configuration: Proper setup of servers, databases, browsers, and devices ensures consistent test execution across different environments.</li><li>Cross-Browser and Cross-Platform Testing: Conducting automated tests across multiple browsers, operating systems, and devices to validate application functionality under diverse conditions.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*b4nRDUG-Uewuw0vp.png" /><figcaption>Image by Xenonstack</figcaption></figure><p><strong>Reports &amp; Maintenance</strong></p><ol><li>Error Handling: Implementing robust error-handling mechanisms in test scripts manages failures and unexpected scenarios, ensuring test execution continuity.</li><li>Continuous Monitoring and Maintenance: Regular monitoring and maintenance of the framework ensure its long-term effectiveness and relevance.</li><li>KPIs and Metrics: Defining and tracking key performance indicators helps measure the framework’s effectiveness and identify areas for improvement.</li><li>Feedback Loop: Gathering insights from stakeholders and analyzing test results helps refine the automation strategy.</li><li>Benchmarking and Comparative Analysis: Evaluating the framework against industry standards provides valuable insights and guides strategic decisions.</li><li>Quality Gates and Release Readiness: Implementing automated quality checks ensures AI meets predefined standards before deployment.</li></ol><p><strong>Version Control</strong></p><ol><li>Version Control: Using tools like Git to manage test scripts allows for collaborative work and maintains a history of changes.</li><li>Collaboration and Communication: Fostering collaboration among teams ensures well-coordinated automation efforts that meet stakeholder needs.</li></ol><p><strong>Skill Development</strong></p><ol><li>Selecting Appropriate Tools: Choosing the right tools based on the technology stack and testing requirements impacts the framework’s efficiency.</li><li>Training and Skill Development: Providing training opportunities enhances team expertise in test automation tools and best practices.</li></ol><p><strong>Data Security</strong></p><ol><li>Implementing ‘data protection measures’ ensures compliance with regulations and maintains testing integrity.</li><li>Ethical Principles: Establishing guidelines for AI design, development, and deployment ensures responsible AI practices.</li><li>Ethical Processes: Implementing fairness metrics, explainability tools, and governance structures.</li><li>Ethical Consciousness: Fostering actions motivated by moral awareness helps anticipate and address potential ethical issues proactively.</li></ol><h4>Current Limitations</h4><ol><li>Explainability and Transparency: A lot of AI systems, particularly those that use deep learning, function as “black boxes,” making it challenging to comprehend and provide an explanation for the decisions they make. The model had long since ‘lost track’ of the inputs that guided its decisions. Alternatively, it was better stated as never keeping track. The “black box problem,” which refers to our incapacity to observe the decision-making process of deep learning systems, is significant for several reasons. This lack of transparency makes it difficult to hold AI systems accountable and trust them.</li><li>Test automation implementation necessitates significant initial expenses and resources. This comprises acquiring licenses and tools for automation, setting up test environments and the required infrastructure, and creating preliminary test frameworks and scripts. Such substantial initial expenditure can be intimidating, particularly for smaller businesses or those with tighter budgets. Financial limitations frequently keep teams from using automation testing.</li><li>Maintaining consistent environments, setting up the pipeline for dependable test execution, and controlling the performance impact of automated tests are just a few of the difficulties that come with integrating test automation with CI/CD pipelines. Issues include making sure test environments faithfully replicate production and manage test failures without causing pipeline disruptions. Long-running test suites can also cause installations to lag, which makes parallelization and cloud-based resource optimization necessary. Efficient result management is equally crucial, necessitating AI analytics and centralized reporting solutions to swiftly spot failure patterns.</li></ol><h4>What’s the Future?</h4><p>Although whether these companies use robust test automation frameworks has not been disclosed to the public, their efforts in the ethical AI sector and in improving the current limitations of the framework have been commendable.</p><ul><li><a href="https://www.nuenergy.ai/"><strong>NuEnergy.AI</strong></a></li></ul><p>NuEnergy.AI, based out of Ottawa, focuses on AI governance and trust quantification. Their key offerings include: <br>A cloud-based tool called Machine Trust Platform (MTP) assesses AI’s reliability in comparison with commonly used frameworks and standards.<br>Creation of an AI Governance Framework which is helping companies develop strong governance systems for the application of AI. <br>A Machine Trust Index (MTI) offers quantitative measures for AI accountability and transparency.</p><ul><li><a href="https://wellsaidlabs.com/ethics/"><strong>WellSaid Labs</strong></a></li></ul><p>WellSaid Labs, based in Seattle, is a leader in ethical AI voice technology. Their commitment to responsible AI practices is evident in their approach:<br>They collaborated with NPR’s Planet Money to educate listeners about ethical AI voice practices, reaching over 500,000 listeners.<br>Ethical Data Sourcing: They use in-house models trained on ethically sourced data.<br>Alignment with Industry Standards: Their approach aligns with Adobe’s commitment to responsible AI practices.</p><ul><li><a href="https://knockri.com/"><strong>Knockri</strong></a></li></ul><p>Knockri, a Toronto-based company, has created an AI-powered interview assessment tool designed to reduce bias in hiring processes. Their technology combines:<br>Using natural language processing (NLP) to evaluate interview transcripts objectively. <br>Algorithms for machine learning that exclude demographic variables in evaluations.</p><ul><li><strong>Improving CI/CD Integration</strong></li></ul><p><a href="https://about.gitlab.com/free-trial/devsecops/?utm_medium=cpc&amp;utm_source=google&amp;utm_campaign=brand_rlsa__global_exact&amp;utm_content=free-trial&amp;utm_term=gitlab&amp;_bt=656315922370&amp;_bk=gitlab&amp;_bm=e&amp;_bn=g&amp;_bg=148481441276&amp;gad_source=1&amp;gclid=CjwKCAjwvKi4BhABEiwAH2gcw07hAAtmxb5bxkHEFTzoH-R_f6cBh_07hY10eSKhMp8KzLSzTV4N4RoCAJ4QAvD_BwE"><strong>GitLab</strong></a></p><p>Some of the issues raised in the integration of test automation with continuous integration and delivery (CI/CD) pipelines are addressed by GitLab’s CI/CD features, however, not all are covered in detail. In order to address these problems, GitLab does the following: <br><a href="https://www.testmo.com/guides/gitlab-ci-test-automation/">Preserving consistent environments:</a> Test environments are consistently maintained throughout pipeline stages thanks to GitLab’s support for Docker containers. <br>Configuring consistent test execution: Code changes 12 triggers automated test execution in GitLab, which is a component of the continuous integration and development pipeline. Testing is made more frequent and consistent as a result. <br>The utilization of GitLab’s parallel test execution feature can greatly expedite the testing process, particularly for extensive test suites, hence mitigating the impact on performance. This contributes to the solution of the delay-causing issue caused by long-running test suites.<br>Managing Test Failures: GitLab provides integrated test result reporting and visualization right within the pipeline-interface 13. As a result, teams can detect and resolve problems more rapidly and without disrupting the pipeline. <br>Effective handling of results: GitLab has tools for reporting and displaying test findings 13. Even though AI analytics isn’t specifically mentioned in the search results, GitLab does provide centralized reporting tools that can be used to spot failure patterns.</p><ul><li><strong>Reducing Test Automation Costs</strong></li></ul><p><a href="https://www.mabl.com/"><strong>Mabl</strong></a></p><p>While initial investment is still necessary, Mabl significantly lowers entry barriers for test automation, especially for startups or companies on a restricted budget. The low-code methodology and AI capabilities of the platform assist in addressing many of the resource and budgetary constraints that frequently keep teams from using automation testing. <br>Diminished early Costs: Using a low-code, AI-powered platform, Mabl minimizes the need for a lot of early setup and programming. “Creating preliminary test frameworks and scripts” is the challenge that is addressed here.<br>Reduced Requirements for Resources: Because of Mabl’s intuitive interface, even non-technical people may design tests, which eliminates the requirement for specialized knowledge. Due to the platform’s user-friendliness, creating tests may be completed 98% faster than using traditional approaches, as demonstrated by one customer, Arch Insurance.<br>Cost reductions: ITS, a provider of business travel solutions, experienced 80% cost reductions with Mabl compared to Selenium. With the help of Mabl’s method, <a href="https://www.mabl.com/customer-stories/its-uses-mabl-to-extend-automated-testing-and-improve-the-speed-and-quality-of-development"><em>ITS</em></a> was able to complete a task that would have taken two years and $240K to complete with typical automation tools like Selenium in four months. <br><a href="https://www.mabl.com/test-automation-software-as-a-service"><em>Scalability and Resource Optimization</em></a>: With Mabl, teams can run numerous tests in parallel without worrying about infrastructure management. This allows them to expand testing as needed. The difficulty of “setting up test environments and the required infrastructure” is addressed here. <br>Improved Test Coverage Without Proportionate Cost Increase: ITS was able to raise test coverage from less than 5% to 75% while keeping expenses constant.</p><ul><li><strong>Explainability and Transparency Solutions</strong></li></ul><p><a href="https://www.seldon.io/"><strong>Seldon Technologies</strong></a></p><p>With their explainable AI products, Seldon Technologies is rapidly tackling the “black box” issue in AI systems. <a href="https://www.seldon.io/seldon-technologies-named-a-representative-vendor-in-gartner-2023-market-guide"><em>Their system offers:</em></a><br>More sophisticated monitoring tools are needed to expedite the ML system root cause investigation. <br>Organizations can use Explainable AI (XAI) capabilities to use AI in Trust, Risk, and Security Management (TRiSM). <br>Equipment that ensures outstanding datasets and improves ML projects’ accountability and transparency. <br>Characteristics that reveal possible model bias by clarifying a model’s selection standards.</p><h4><strong>Economic Incentives &amp; Implications</strong></h4><p>Test automation has important and far-reaching future implications. A study by<em> </em><a href="https://www.gminsights.com/industry-analysis/automation-testing-market"><em>Global Market Insights</em></a><em> </em>projects that the test automation market will expand at a compound annual growth rate (CAGR) of more than 15%, from $22.2 billion in 2023 to over $90 billion by 2032.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ioNC4Dg1zkBGxyvNLT5-0g.png" /><figcaption>Provided by Global Marketing Insights</figcaption></figure><p>This widespread adoption will necessitate a greater focus on responsible and ethical AI practices. According to <a href="https://aiindex.stanford.edu/report/"><em>Stanford University’s AI Index Report</em></a> 2024, generative AI funding increased by roughly eight times to $25.2 billion in 2023, despite a fall in total AI private investment. This substantial investment implies that generative AI will be essential to the advancement of technology in the future. Research evaluating AI’s effect on labour has demonstrated that AI can help workers finish jobs faster and with higher-quality output, which may help close the skill gap between low- and high-skilled workers. Moreover, the enactment of laws such as the EU AI Act is probably going to provide new guidelines for AI research and use worldwide, highlighting the significance of ethical considerations in AI systems. In the years to come, AI’s effects will go much beyond technical breakthroughs and have a big influence on ethical frameworks, economic models, and societal structures.</p><h4><strong>Author</strong></h4><p>I am Zenia Haris, a 15-year-old researching ethical AI. That as well as how it can be implemented in our society more often, how it works, and sharing what I find, with you!</p><p><strong>Contacts</strong></p><p><strong>Gmail:</strong> zeniaharis1@gmail.com <br><strong>LinkedIn:</strong> <a href="http://www.linkedin.com/in/zenia-haris">www.linkedin.com/in/zenia-haris</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef0bc2ce7f41" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>