<?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 Nisha McNealis on Medium]]></title>
        <description><![CDATA[Stories by Nisha McNealis on Medium]]></description>
        <link>https://medium.com/@nisha.mcnealis?source=rss-17215d71bd06------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*chDc3EQx8wqQ8SC4c6Uf_Q.jpeg</url>
            <title>Stories by Nisha McNealis on Medium</title>
            <link>https://medium.com/@nisha.mcnealis?source=rss-17215d71bd06------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 10:25:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nisha.mcnealis/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[The Road to Autonomous Vehicles: Navigating Technical & Ethical Challenges]]></title>
            <link>https://medium.com/@nisha.mcnealis/the-road-to-autonomous-vehicles-navigating-technical-ethical-challenges-1e1564b2db18?source=rss-17215d71bd06------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e1564b2db18</guid>
            <category><![CDATA[tech-ethics]]></category>
            <category><![CDATA[self-driving-cars]]></category>
            <category><![CDATA[autonomous-vehicles]]></category>
            <category><![CDATA[driverless-cars]]></category>
            <dc:creator><![CDATA[Nisha McNealis]]></dc:creator>
            <pubDate>Thu, 23 Sep 2021 04:40:36 GMT</pubDate>
            <atom:updated>2021-09-23T04:40:36.016Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In 2015, Baidu predicted that it would be selling autonomous cars by 2020. One year later, Business Insider forecasted that “10 million self-driving cars will be on the road by 2020,” while Lyft’s John Zimmer claimed that most rides would be carried out by driverless cars by 2021. And in 2019, Elon Musk tweeted “the color orange is named after the fruit.” That one isn’t related to self-driving cars, just a helpful reminder for all of us.</p><p>The point is, we’ve been expecting autonomous vehicles (AVs) to become commonplace for years. But our latest developments have fallen short of predictions — and many of us aren’t sure why. Moreover, we still haven’t resolved critical conversations about the societal implications of driverless cars.</p><p>In this article, we’ll consider the <strong>technical and ethical issues surrounding AVs </strong>to figure out why driverless cars aren’t ready to hit the streets just yet<strong>. </strong>Buckle up, because we’re about to go over the <strong>basics of autonomous technology</strong>, analyze the<strong> current state of AV research</strong>, and dive into some of the<strong> biggest societal concerns</strong> about self-driving vehicles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qm07CdVC8eusRSPH_VIdeA.jpeg" /></figure><p>Let’s start with the fundamentals: <em>what even is an autonomous vehicle</em>? An AV is any vehicle that’s capable of (1) sensing its environment and (2) moving safely with little or no human input. This includes self-driving cars, which we’ll spend most of this article talking about, but also drones, boats, and planes. Autonomous vehicles use a whole bunch of <a href="https://www.itransition.com/blog/autonomous-vehicle-sensors">sensors</a> to detect key features in their environment, ranging from <strong>cameras</strong> (pretty boring) to <strong>radar</strong> (more interesting, we like radio waves 🔊) to <strong>Lidar</strong> (like radar but with lasers — very very cool).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XJW5KZj33mcAhd4kYvpNTQ.png" /></figure><h3>Levels of Automation</h3><p>There are<a href="https://www.synopsys.com/automotive/autonomous-driving-levels.html"> <strong>five levels of automation</strong></a> that tell us how equipped a car is to operate without a driver.</p><h4>Level 0: No Automation</h4><p>All operating tasks are performed by the driver. Today, most older cars (eg. a 2005 Honda Accord) and some newer cars (eg. a 2018 Jeep Wrangler) are still at this level. Level 0 cars might have some safety features like blind-spot monitoring and a backup camera, but the driver will always be in control of the car. So if you ignore the blind spot alert, your 2015 Mazda 3 will allow you to drive straight into your garage door instead of breaking automatically (this is a completely hypothetical situation that never happened).</p><h4>Level 1: Driver Assistance</h4><p>The driver handles all car operations but gets a little extra help from the car — this includes features like brake/acceleration support, lane centering or adaptive cruise control. A few boujee old cars and a lot of standard new cars have reached this level, like the 1999 Mercedes-Benz S-Class, the 2019 Kia Soul, and the 2020 Hyundai Sonata.</p><h4>Level 2: Partial Automation</h4><p>The driver can disengage from simple tasks like cruise control and lane centering. Today, only ridiculously expensive cars (i.e. new Tesla, Cadillac, and Mercedes cars 😭) have reached this level.</p><h4>Level 3: Conditional Automation</h4><p>Speaking of Tesla, they’re actually really close to reaching Level 3. Level 3 cars have the ability to take over in specific situations (eg. a traffic jam), but not in others.</p><h4>Level 4: High Automation</h4><p>This is what you probably think of when you picture a self-driving car. Level 4 cars can carry out all predictable operations, but still should have a driver at the wheel just in case.</p><h4>Level 5: Full Automation</h4><p>Cars can navigate around completely unpredictable situations and have no need for a human driver. We’re a long way from Level 5 — we still haven’t reached Level 4, and there are a lot of roadblocks we need to get past before we have the technology we need to achieve complete autonomy.</p><h3>Ethical Issues</h3><p>But developing AVs isn’t just a technical challenge — there are also a lot of ethical issues we need to discuss before self-driving cars become the norm.</p><h4>Liability</h4><p>Who should have legal responsibility in events involving cars with autonomous abilities? If there’s a crash, should we blame the driver? The car manufacturer? The company that created the autonomous technology? Should we trace it all the way back to the programmer? According to current laws, the driver is at fault if they did not take <em>reasonable</em> precautions and the manufacturer is at fault if they did not ensure the safety of <em>reasonably</em> <em>expected</em> use cases. But who’s to say which precautions and use cases are reasonable and which aren’t? There’s a lot of gray area in our legislation that could be exploited.</p><h4>Decision-Making</h4><p>While we’re on the subject of gray area, the snap decisions that we expect drivers to make are hardly ever black or white. To slightly plagiarize the infamous trolley problem, imagine that you’re driving through your neighborhood when you see a group of three pedestrians illegally crossing the street right in front of you. You’re too close to stop, but you can swerve onto the sidewalk, in which case you’ll hit a single pedestrian waiting for their turn to legally cross. Should you hit the group of jay-walkers or the single law-abiding person? What if the people in the group are kids and the single person is an adult? What if the person on the sidewalk is one of your friends? What if you could swerve around everyone and crash into a wall, but doing so would result in your own death? There are infinite mind-twisting variations of this problem (check out some of them <a href="https://www.moralmachine.net/">here</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fYcpTPP9pv-wK4iQUjnAZg.jpeg" /></figure><p>The main takeaway is that everyone’s choices are personal — they vary based on cultural differences and each individual’s identity. So is it even possible to program a machine to make these nuanced decisions? Who should have the power to determine how a machine ought to act in controversial situations?</p><h4>Sustainability</h4><p>Climate change is one of the most urgent crises facing our world, so it’s essential that we evaluate how every new technology can help or hurt the fight against it. Thankfully most autonomous vehicles are designed to be entirely electric, which means they won’t have to rely on toxic fossil fuels and will produce lower carbon emissions. That said, energy consumption will still remain high since the sensors and computers in the car will demand a lot of power.</p><h4>Equity</h4><p>Ensuring transportation equity, or equitable access to reliable and affordable transportation, is an often-overlooked aspect of autonomous vehicles. The poorest 20% of Americans spend over 40% of their income on transportation — autonomous vehicles could reduce these costs by providing cheaper, more efficient public transport. And elderly people/people with low mobility who are unable to drive themselves could use autonomous vehicles to get around. So self-driving cars clearly have the potential to help marginalized communities. The problem is that we’ll only see these kinds of benefits if these communities are represented among AV technologists and policymakers. If only the most privileged members of society are creating and using self-driving cars, then the needs of disadvantaged groups will likely be neglected. We’re already seeing this start to happen: our current object detection systems are <a href="https://www.independent.co.uk/life-style/gadgets-and-tech/news/self-driving-car-crash-racial-bias-black-people-study-a8810031.html">significantly worse at detecting pedestrians with darker skin types</a>. This means that <a href="https://www.vox.com/future-perfect/2019/3/5/18251924/self-driving-car-racial-bias-study-autonomous-vehicle-dark-skin">today’s self-driving cars are more likely to hit Black pedestrians</a>.</p><h4>Economy</h4><p>Autonomous vehicles have the potential to revolutionize our global economy by cutting down delivery costs and oil prices. This will be <em>extremely beneficial</em> to industries like mining and farming where goods need to be transported, especially since they’ll no longer need to pay human drivers. AVs will also promote lots of growth for automotive companies and encourage advancement in AI/ML research. But they’ll also come with <em>major economic downsides</em>. As we start to adopt self-driving cars, an estimated <a href="https://www.cnbc.com/2017/05/22/goldman-sachs-analysis-of-autonomous-vehicle-job-loss.html"><em>300,000</em> <em>driving jobs</em></a><em> </em>will be lost every year in the U.S. alone. The increase in demand for ML and mechanical engineers will come nowhere near to making up for the jobs lost, which means <em>much</em> higher unemployment rates. A disproportionate number of minimum wage drivers are people of color, so the job displacement will only further amplify racial disparities in income and living conditions.</p><h4>Safety</h4><p>There are some unique security challenges presented by AVs — imagine, for example, what would happen if the president’s car got hacked and driven off the road 😮. But overall, self-driving cars might actually be safer than human-driven vehicles. Let’s do the math: over <a href="https://www.bloomberg.com/news/articles/2019-02-13/traffic-deaths-in-u-s-exceed-40-000-for-third-straight-year">40,000 people die in the U.S, every year due to car accidents</a>, and <a href="https://www.baileyjavinscarter.com/what-percentage-of-auto-accidents-are-caused-by-human-error/#:~:text=The%20National%20Highway%20Transportation%20Safety,some%20type%20of%20human%20error.">at least 94% of car accidents are due to human error</a>. So 37,600 lives would be saved every year in just the U.S. by eliminating human error, which any fully operational self-driving car could do.</p><h3>Conclusion + Next Steps</h3><p>Ok, that was a lot. Where do you go from here?</p><p>If you want to help advance the development of AVs, we’d suggest building a strong technical foundation by:</p><ol><li><strong>Focusing on your math classes </strong>(a solid understanding of calculus and linear algebra is key to understanding machine learning)</li><li><strong>Taking a Python course</strong> (there are some awesome beginner-friendly, totally free ones online like <a href="https://www.codecademy.com/">Codecademy</a> that will give you a leg up when you start building your own machine learning models)</li><li>(Get ready for a shameless plug 🔌) <strong>checking out ACM’s own resources</strong>, like our <a href="https://teachla.uclaacm.com/classes/ml">high school machine learning course</a> and our <a href="https://www.youtube.com/playlist?list=PLPO7_kXilXFY3rAF2UC0X9N2lFgyss6R-">recorded AI workshops</a>!</li></ol><p>To get more involved on the ethical side, you should:</p><ol><li><strong>Spend time analyzing different technologies</strong> when you read about them — always ask yourself if anyone is being treated unfairly or left behind, and come up with creative solutions to problems that you see around you.</li><li>(Shameless plug pt. 2) don’t forget to<strong> look over ACM’s resources</strong> — read our <a href="https://medium.com/@acmucla">tech ethics blog</a> and watch our <a href="https://www.youtube.com/watch?v=qOWqpS8dROk&amp;list=PLPO7_kXilXFY0TTzcriK5SxH3brqkdpau">recorded tech ethics workshops</a>!</li></ol><p>Clearly we have a lot of ethical questions to answer, societal impacts to consider, and technological advancements to make before we’re completely ready for autonomous vehicles. But if you’re interested in being part of the progress, the best time to start is right now.</p><p><em>This article was adapted from</em><a href="https://teachla.uclaacm.com/ai-ethics"><em> ACM’s AI Ethics Series</em></a><em>: </em><a href="https://docs.google.com/presentation/d/1Gr-FBMS1kvD5odafyN1F84vhmGXOl1bumqoas0igx7c/"><em>“Autonomous Vehicles”</em></a><em> by Aman Oberoi and Nisha McNealis.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e1564b2db18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Simple Introduction to Dropout Regularization (With Code!)]]></title>
            <link>https://medium.com/analytics-vidhya/a-simple-introduction-to-dropout-regularization-with-code-5279489dda1e?source=rss-17215d71bd06------2</link>
            <guid isPermaLink="false">https://medium.com/p/5279489dda1e</guid>
            <category><![CDATA[dropout]]></category>
            <category><![CDATA[regularization]]></category>
            <category><![CDATA[dropout-regularization]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Nisha McNealis]]></dc:creator>
            <pubDate>Wed, 22 Apr 2020 23:45:45 GMT</pubDate>
            <atom:updated>2020-04-30T23:23:42.815Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Aman Oberoi and Nisha McNealis | <a href="https://uclaacmai.github.io/blog/">UCLA ACM AI</a></blockquote><p><strong>What is Dropout?</strong></p><p>“Dropout” in machine learning refers to the process of randomly ignoring certain nodes in a layer during training.</p><p>In the figure below, the neural network on the left represents a typical neural network where all units are activated. On the right, the red units have been dropped out of the model — the values of their weights and biases are not considered during training.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/0*EY8R7nS10y5kQzOx" /><figcaption>Adapted from Srivastava, Nitish, et al. ”Dropout: a simple way to prevent neural networks from<br>overfitting”, JMLR 2014</figcaption></figure><p>Dropout is used as a regularization technique — it prevents overfitting by ensuring that no units are codependent (more on this later).</p><p><strong>Other Common Regularization Methods</strong></p><p>When it comes to combating overfitting, dropout is definitely not the only option. Common regularization techniques include:</p><ol><li><a href="https://machinelearningmastery.com/how-to-stop-training-deep-neural-networks-at-the-right-time-using-early-stopping/">Early stopping</a>: stop training automatically when a specific performance measure (eg. Validation loss, accuracy) stops improving</li><li><a href="https://machinelearningmastery.com/introduction-to-weight-constraints-to-reduce-generalization-error-in-deep-learning/">Weight decay</a>: incentivize the network to use smaller weights by adding a penalty to the loss function (this ensures that the norms of the weights are relatively evenly distributed amongst all the weights in the networks, which prevents just a few weights from heavily influencing network output)</li><li><a href="https://towardsdatascience.com/how-to-use-noise-to-your-advantage-5301071d9dc3">Noise</a>: allow some random fluctuations in the data through augmentation (which makes the network robust to a larger distribution of inputs and hence improves generalization)</li><li>Model combination: average the outputs of separately trained neural networks (requires a lot of computational power, data, and time)</li></ol><p>Despite the plethora of alternatives, dropout remains an extremely popular protective measure against overfitting because of its efficiency and effectiveness.</p><p><strong>How Does Dropout Work?</strong></p><p>When we apply dropout to a neural network, we’re creating a “thinned” network with unique combinations of the units in the hidden layers being dropped randomly at different points in time during training. Each time the gradient of our model is updated, we generate a new thinned neural network with different units dropped based on a probability hyperparameter <em>p</em>. Training a network using dropout can thus be viewed as training loads of different thinned neural networks and merging them into one network that picks up the key properties of each thinned network.</p><p>This process allows dropout to reduce the overfitting of models on training data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/0*DhRPJZKX6Wyzn1if" /><figcaption>Srivastava, Nitish, et al. ”Dropout: a simple way to prevent neural networks from<br>overfitting”, JMLR 2014</figcaption></figure><p>This graph, taken from the paper “Dropout: A Simple Way to Prevent Neural Networks from Overfitting” by Srivastava et al., compares the change in classification error of models without dropout to the same models with dropout (keeping all other hyperparameters constant). All the models have been trained on the MNIST dataset.</p><p>It is observed that the models with dropout had a lower classification error than the same models without dropout at any given point in time. A similar trend was observed when the models were used to train other datasets in vision, as well as speech recognition and text analysis.</p><p>The lower error is because dropout helps prevent overfitting on the training data by reducing the reliance of each unit in the hidden layer on other units in the hidden layers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/0*5M-4yLH56uPs0aBy" /><figcaption>Srivastava, Nitish, et al. ”Dropout: a simple way to prevent neural networks from<br>overfitting”, JMLR 2014</figcaption></figure><p>These diagrams taken from the same paper show the features learned by an autoencoder on MNIST with one layer of 256 units without dropout (<em>a</em>) and the features learned by an identical autoencoder that used a dropout of p = 0.5 (<em>b</em>). It can be observed in figure <em>a</em> that the units don’t seem to pick up on any meaningful feature, whereas in figure <em>b</em>, the units seem to have picked up on distinct edges and spots in the data provided to them.</p><p>This indicates that dropout helps break co-adaptations among units, and each unit can act more independently when dropout regularization is used. In other words, without dropout, the network would never be able to catch a unit <em>A</em> compensating for another unit <em>B</em>’s flaws. With dropout, at some point unit <em>A</em> would be ignored and the training accuracy would decrease as a result, exposing the inaccuracy of unit <em>B</em>.</p><p><strong>How to Use Dropout</strong></p><p>A CNN without dropout could be represented by code similar to this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/0*fZn_-RoHMXFfr_4C" /></figure><p>To add a dropout layer, a programmer could add a line like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/0*Yq4eFeBo6P9LIhHu" /></figure><p>The first parameter, circled in orange, is the probability <em>p </em>that a given unit will drop out. In this example, the probability is 0.5, which means that roughly half of the given units will drop out. The value 0.5 has been experimentally determined to be close to the optimal probability for a wide range of models, but feel free to experiment with other probabilities!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*AyXXu6Fd8jigIc_M" /></figure><p><strong>Adjusting Weights During Testing</strong></p><p>Since dropout removes some of the units from a layer, a network with dropout will weigh the remaining units more heavily during each training run to compensate for the missing inputs. However, at test time, it is not feasible to use the weights of the trained model in their exaggerated states and so each weight is scaled down by multiplying by the hyperparameter <em>p</em>. This phenomenon can be observed in the example below.</p><p>Let’s look at a network with four units in a layer (image a). The weight on each unit will initially be ¼ = 0.25.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/156/0*iO-MDUkVFBL939o-" /><figcaption>(Image a)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/175/0*qMRUNsLyGLnUf6Ir" /><figcaption>(Image b)</figcaption></figure><p>If we apply dropout with p = 0.5 to this layer, it could end up looking like image b. Since only two units are considered, they will each have an initial weight of ½ = 0.5. However, dropout is only used in training, so we don’t want these weights to be fixed at this high a number during testing.</p><p>To fix this issue, when we move to the testing stage we multiply the weights by <em>p </em>(as seen in the image below), ending up with 0.5*0.5 = 0.25, the correct initial weight.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/0*PfYLhhrVRP60A_VV" /><figcaption>Srivastava, Nitish, et al. ”Dropout: a simple way to prevent neural networks from<br>overfitting”, JMLR 2014</figcaption></figure><p><strong>Hyperparameters in Dropout Regularization</strong></p><p>Hyperparameter settings that have been found to work well with dropout regularization include a large decaying learning rate and a high momentum. This is because restricting our weight vectors using dropout enables us to use a large learning rate without worrying about the weights blowing up. The noise produced by dropout coupled with our large decaying learning rate helps us explore different regions of our loss function and hopefully reach a better minimum.</p><p><strong>The Downside of Dropout</strong></p><p>Although dropout is clearly a highly effective tool, it comes with certain drawbacks. A network with dropout can take 2–3 times longer to train than a standard network. One way to attain the benefits of dropout without slowing down training is by finding a regularizer that is essentially equivalent to a dropout layer. For linear regression, this regularizer has been proven to be a modified form of L2 regularization. For more complex models, an equivalent regularizer has yet to be identified. Until then, when in doubt: dropout.</p><p><strong>Try it Yourself!</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e4e21e0437e9bcc105f0de897a276fcd/href">https://medium.com/media/e4e21e0437e9bcc105f0de897a276fcd/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*WyqWF-JglMsvv4vXyfKX0Q.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5279489dda1e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/a-simple-introduction-to-dropout-regularization-with-code-5279489dda1e">A Simple Introduction to Dropout Regularization (With Code!)</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>