<?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 Girik Narang on Medium]]></title>
        <description><![CDATA[Stories by Girik Narang on Medium]]></description>
        <link>https://medium.com/@giriknarang?source=rss-3876314641ed------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Girik Narang on Medium</title>
            <link>https://medium.com/@giriknarang?source=rss-3876314641ed------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 02:53:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@giriknarang/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[Modern Mercantilism And The Collapse Of The Contested Middle]]></title>
            <link>https://giriknarang.medium.com/m-76342dd63f22?source=rss-3876314641ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/76342dd63f22</guid>
            <dc:creator><![CDATA[Girik Narang]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 22:44:58 GMT</pubDate>
            <atom:updated>2026-10-30T14:25:19.235Z</atom:updated>
            <content:encoded><![CDATA[<h4>How the AI Race Is Forcing Nations Into U.S. and Chinese Technology Blocs</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*TTsblI__f20Hspky.jpg" /><figcaption>Photo by Donald J. Boudreaux on <a href="https://thedailyeconomy.org/article/what-is-mercantilism/">The Daily Economy</a></figcaption></figure><blockquote><strong>Disclaimer: </strong>This article reflects my personal views based on information available at the time of writing. It is intended for education and discussion only and is not investment advice.</blockquote><p><a href="https://pubs.aeaweb.org/doi/pdfplus/10.1257/jep.14.1.177"><strong>Rodrik’s Trilemma</strong></a>, a theory proposed by the Turkish-American economist and Professor of International Political Economy at Harvard University, Dani Rodrik, posits that complete international economic integration, national sovereignty, and democratic politics cannot sustainably co-exist. <strong>A state must instead choose between two of the three.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/0*ci7OZvt7aOKDz-Qr.png" /><figcaption><strong>Rodrik’s Trilemma Visualized</strong></figcaption></figure><p>The onset of Modern Mercantilism, whereby national self-interest takes priority over global cooperation, marks the beginning of the transition away from the deep globalization of the post-1990 era, as national security concerns surrounding the AI race have made administrations second-guess their strategic dependencies on one another. What Rodrik did not anticipate was that the retreat from hyperglobalization would not take the form of the shallower state-by-state integration he envisioned, but rather a <strong>shift toward bloc-based globalization</strong>, where trade continues but reorganizes around trusted political alignments rather than market efficiency.</p><p><strong>This partitioning, however, is not uniform across the modern AI stack.</strong></p><p>Cross-bloc flow decreases as you move up the <strong>“five-layer cake”</strong> popularized by Jensen Huang, which stacks energy at the base, then chips, infrastructure, models, and applications at the top. The physical inputs, energy and chips, remain structurally entangled between the two blocs because full substitution is not yet feasible. Meanwhile, applications inside national jurisdictions no longer cross the divide. In between, infrastructure and models form the contested zone where efficiency and sovereignty are actively being weighed against each other.</p><blockquote>I argue that over the next decade, policy and trade will tighten across these layers to the point where the contested middle largely disappears, forcing global participants to commit to either the U.S.-centric or China-centric bloc rather than continuing to hedge between them.</blockquote><h3>Policy Walls Across the AI Stack</h3><blockquote><strong>To better understand the aforementioned tightening, it is necessary to see how both blocs are actively building policy walls at every layer of the stack.</strong></blockquote><p>In December 2024, China banned exports of controlled dual-use goods to U.S. military users, created a presumption of licence denial for U.S.-bound gallium, germanium, antimony, and superhard materials, and subjected graphite exports to stricter end-user and end-use reviews. Although the broader civilian-facing restrictions were temporarily suspended in November 2025 as part of a trade agreement, <strong>the military-use ban remained in force.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Sao02NsUn76WoSn0" /><figcaption>Photo by <a href="https://unsplash.com/@mosdesign?">Mos Design</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In November 2026, Beijing will decide whether to extend the suspension or allow some or all of the broader 2024 restrictions to return.</p><p>China currently supplies approximately <strong>67% of U.S. rare-earth </strong>consumption, <strong>53% of antimony</strong> consumption, and <strong>43% of graphite</strong> consumption, giving it considerable leverage over strategically important American industries. Restoring or expanding restrictions would provide China with a targeted response to continued U.S. tariffs, semiconductor controls, and limits on Chinese technology. However, tighter controls could also accelerate American stockpiling, recycling, domestic production, and sourcing from countries such as Australia and Canada, gradually reducing China’s influence.</p><p>China must therefore weigh the immediate value of using its current supply dominance against the longer-term risk of encouraging alternative supply chains. Because those alternatives remain incomplete and China’s leverage is strongest before they mature, <strong>some form of renewed restriction appears more likely than extending the suspension unchanged</strong>.</p><p>Higher up the stack, the tightening runs in the opposite direction. In July 2026, Beijing-based startup Moonshot AI released Kimi K3, an open-weight model designed to compete with U.S. models at a fraction of the cost. However, <strong>the very economics that make it attractive to enterprises also make it a policy problem for Washington</strong>. American companies have both the incentive and the ability to adopt it, since the model is cheaper and more customizable than proprietary U.S. models, and its open-weight distribution means it can spread beyond Moonshot’s direct servers, making conventional website or app restrictions insufficient.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EWizWiEpoTMqh3UMx2tSbg.png" /><figcaption><strong>AI Model Pricing (USD Per 1 Million Tokens)</strong></figcaption></figure><p>Conversations with engineers in San Francisco suggest this shift is already underway, with multiple companies testing Kimi K3 and other open-weight alternatives, and some actively evaluating a move away from proprietary U.S. models like Anthropic’s on cost and performance grounds. The administration is reportedly considering sanctions and further restrictions following allegations that Moonshot used improper distillation and restricted American chips to develop the model.</p><p>While the U.S. cannot erase downloaded copies, it can block the commercial infrastructure around the model. Commerce’s ICTS authority has already been used against <a href="https://www.bis.gov/press-release/commerce-department-prohibits-russian-kaspersky-software-u.s.-customers"><strong>Kaspersky</strong></a> and <a href="https://www.bis.gov/press-release/commerce-finalizes-rule-secure-connected-vehicle-supply-chains-foreign-adversary-threats"><strong>Chinese connected-vehicle software</strong></a>, establishing both the legal machinery and the political precedent for a broader restriction. Congress has also introduced the bipartisan <strong>No Adversarial AI Act</strong>, which would exclude AI models from adversarial nations including China from federal use, laying groundwork that could later extend into the private sector.</p><p>The main opposing pressure comes from U.S. technology companies and open-software organizations arguing that broad restrictions would harm American innovation and competition, which could push Washington toward a narrower rule covering only federal agencies and contractors. But because political incentives, security concerns, and industrial-policy alignment all point in the same direction, <strong>a binding nationwide restriction on the commercial hosting, licensing, or deployment of an advanced Chinese foundation model appears likely.</strong></p><p>At the top of the stack, the same tightening reaches applications. In July 2026, the FCC added foreign-produced humanoid and quadruped robots to its <strong>Covered List</strong>, which identifies equipment considered an unacceptable national-security risk and prevents newly introduced robot products from receiving the authorization generally required for U.S. import, marketing, or sale. The concern extends beyond the finished machine because networked robots rely on sensors, communications modules, firmware, and control hardware that can collect data and receive commands after purchase.</p><p><strong>Unitree’s UniPwn vulnerability highlighted this risk</strong>, as hard-coded Bluetooth encryption keys could allow an attacker to execute code with root privileges and spread the exploit between nearby robots. An American-built robot could therefore carry comparable risks if its connected, security-sensitive components were supplied by a Chinese-controlled company.</p><p>Having restricted new complete robots, the next logical step would be to close this supply-chain gap by restricting components capable of collecting data, communicating externally, or controlling movement. Any broader component rule would first need to distinguish those systems from passive mechanical parts, <strong>making such restrictions more likely to develop over the following years than immediately.</strong></p><h3>The Race for the Contested Middle</h3><p>As these policy restrictions spread across the stack, the remaining flexibility is concentrated in its contested middle, where governments can still combine infrastructure and models from different blocs. That flexibility is beginning to erode as the U.S. and China move from exporting individual products to offering integrated AI systems. These systems would contain advanced chips, servers, cloud infrastructure, data pipelines, foundation models, cybersecurity, and the technical support required to maintain them.</p><p>The <strong>American AI Exports Program</strong> formalizes this approach by assisting U.S. companies with bundling their technologies into exportable packages for foreign buyers. U.S. technology coalitions have submitted 78 proposals for government designation, with approved packages potentially receiving diplomatic advocacy, federal financing, and faster export-licence review. These advantages reduce the financial and administrative barriers facing foreign buyers and make a binding deployment of an American package increasingly probable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Ph4trcPB0iubKITT.jpg" /><figcaption>Photo by <a href="https://commons.wikimedia.org/wiki/Category:Photographs_by_Joyce_Boghosian">Joyce N. Boghosian</a> on <a href="https://commons.wikimedia.org/wiki/Main_Page">Wikimedia</a></figcaption></figure><p>China, meanwhile, is developing a competing offer built around lower-cost infrastructure, open-weight models, local adaptation, and technical training. Its 2026 AI cooperation plan provides an institutional framework for supplying these capabilities to governments seeking sovereign AI capacity, particularly those already dependent on Chinese telecommunications or cloud infrastructure, such as South Africa. Chinese packages may also appeal to countries that want greater control over model customization or face difficulty accessing the most advanced American chips. However, <strong>once a government builds its national system around one package, using components from the other bloc becomes harder</strong> because the models, data architecture, and applications will be designed to operate together.</p><p><strong><em>The case of the UAE-based company G42 illustrates how access to American technology can shape choices across the rest of the stack.</em></strong></p><p>Following pressure from Washington over its ties to Huawei and other Chinese firms, G42 removed Chinese equipment and investments, adopted Microsoft Azure under a binding security framework, and was later authorized to purchase the equivalent of up to 35,000 Nvidia GB300 Blackwell chips. Although the exact conditions attached to the authorization are not public, <strong>G42’s reduced exposure to Chinese technology appears to have helped preserve its access to American chips</strong>. No public document confirms that the chip licence required the exclusion of Chinese models, cloud services, or data platforms, but the sequence suggests that Washington is increasingly prepared to use access to advanced chips and related financing to steer foreign operators toward a U.S.-aligned stack.</p><h3>Europe and the Limits of Strategic Autonomy</h3><p>Taken together, the tightening across the stack and the erosion of its contested middle point toward a world in which governments face increasingly constrained choices. Choosing a bloc, however, will not be straightforward or entirely voluntary. Countries outside the two powers will still try to preserve control over the layers they consider most sensitive, even when the infrastructure beneath them ties them to one bloc.</p><p><strong><em>Europe provides the clearest example.</em></strong></p><p>France’s domestic intelligence agency is gradually replacing Palantir with the French firm ChapsVision, Germany’s military has so far declined to adopt Palantir’s software, and Britain is reviewing Palantir’s £330 million NHS contract amid pressure to use its 2027 break clause. These steps make a jointly funded European defence or intelligence data-fusion platform plausible, particularly because NATO’s digital strategy already calls for federated platforms, interoperable data sharing, and reduced vendor lock-in.</p><p>Europe’s record of coordination, however, shows why such a system may take years to appear. In 2025, EU members spent €115 billion on defence equipment, but only 24% was jointly purchased, <strong>below the European Defence Agency’s 35% benchmark</strong>. A shared platform would still require governments with different security priorities to coordinate funding, migrate sensitive databases, and match mature American providers without weakening NATO interoperability. Europe may therefore gain greater control over selected parts of its technology stack, but this resistance is <strong>unlikely to reverse the broader division of the global AI system or produce a fully independent third bloc</strong>.</p><h3>Final Thoughts</h3><p>Bloc-based globalization will ultimately leave countries room for selective autonomy, while the infrastructure beneath those choices continues pulling them toward one of the two dominant blocs.</p><p><strong>That choice will shape more than the tools governments use. </strong>It will determine whose standards govern their data, whose capital finances their infrastructure, and whose security requirements they accept in exchange for access to frontier AI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76342dd63f22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Biggest Problem In The Aviation Industry That You’ve Probably Never Heard About]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://giriknarang.medium.com/global-distribution-systems-the-biggest-problem-in-the-aviation-industry-that-youve-probably-c143b95a6dce?source=rss-3876314641ed------2"><img src="https://cdn-images-1.medium.com/max/2600/0*bIP1jLUtXVQDRyBY" width="4250"></a></p><p class="medium-feed-snippet">Why Global Distribution Systems Are Insufficient by Modern Standards</p><p class="medium-feed-link"><a href="https://giriknarang.medium.com/global-distribution-systems-the-biggest-problem-in-the-aviation-industry-that-youve-probably-c143b95a6dce?source=rss-3876314641ed------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://giriknarang.medium.com/global-distribution-systems-the-biggest-problem-in-the-aviation-industry-that-youve-probably-c143b95a6dce?source=rss-3876314641ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/c143b95a6dce</guid>
            <category><![CDATA[sabre-gds-integration]]></category>
            <category><![CDATA[aviation-industry]]></category>
            <category><![CDATA[airlines]]></category>
            <category><![CDATA[aviation]]></category>
            <category><![CDATA[gds]]></category>
            <dc:creator><![CDATA[Girik Narang]]></dc:creator>
            <pubDate>Fri, 14 Apr 2023 23:27:36 GMT</pubDate>
            <atom:updated>2026-09-25T21:22:02.433Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Classifying Handwriting Using Feedforward Neural Networks]]></title>
            <link>https://giriknarang.medium.com/classifying-handwriting-using-feedforward-neural-networks-4f1b41f85eab?source=rss-3876314641ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f1b41f85eab</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[image-recognition]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[image-classification]]></category>
            <dc:creator><![CDATA[Girik Narang]]></dc:creator>
            <pubDate>Fri, 16 Dec 2022 21:38:51 GMT</pubDate>
            <atom:updated>2026-08-04T21:57:00.463Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4JJcNiXUHM0SoRdZU9sUlQ.png" /><figcaption>Photo by <a href="https://machinelearningmastery.com/author/jasonb/">Jason Brownlee</a> on <a href="https://machinelearningmastery.com/how-to-develop-a-convolutional-neural-network-from-scratch-for-mnist-handwritten-digit-classification/">Machine Learning Mastery</a></figcaption></figure><p>Take a minute to try to read out the <strong>numbers</strong> in the picture above.</p><p>Seems simple enough, right?</p><p>What if I told you this was actually a challenging task… for a <em>computer?</em></p><p>It turns out that even as intelligent and complex as these machines can be, there are some things computers just can’t do, at least not as well as humans.</p><p>Computers would fail to recognize these digits invariably as each image contains inconsistencies in pixels. In other words, if two digits aren’t the <strong>EXACT</strong> copy of one another, an untrained computer would presumably fail to recognize the underlying similarities and, as a result, inaccurately group the two.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f7sXZiWq8e2TeK378b-fIQ.png" /><figcaption><strong>Since Each “3” Is Written Differently, Computers May Have a Hard Time Classifying Them</strong></figcaption></figure><p>Attempting to convert<strong> written sentences</strong> to typed form can get even more complicated. The computer now has to factor in additional variables humans wouldn’t even think twice about, including the start of new words, letter spacing, capitals vs lowercase, and messy handwriting.</p><p>Interestingly enough, that’s where <strong>machine learning</strong> can be applied.</p><p>Machine learning, or ML, is a subfield of <a href="https://www.ibm.com/topics/artificial-intelligence">artificial intelligence (AI)</a> that analyses and develops algorithms that can learn from data, identify patterns, and make decisions/predictions with minimal human intervention.</p><p>Machine learning algorithms can be divided into <strong>four</strong> types:</p><ul><li><a href="https://www.ibm.com/cloud/learn/supervised-learning"><strong>Supervised learning</strong></a> algorithms use labelled data to learn how to classify or predict a specific output.</li><li><a href="https://www.ibm.com/topics/unsupervised-learning"><strong>Unsupervised learning</strong></a> algorithms use unlabeled data to identify patterns and hidden relationships between data points.</li><li><a href="https://www.datarobot.com/blog/semi-supervised-learning/"><strong>Semisupervised learning</strong></a> algorithms use both labelled and unlabeled data to produce more accurate models.</li><li><a href="https://deepsense.ai/what-is-reinforcement-learning-the-complete-guide/"><strong>Reinforcement learning</strong></a> algorithms use rewards and punishments to learn how to optimize an action or decision.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AHPXlXKasHkNm2zdP3qhhQ.png" /><figcaption><strong>Breakdown of Machine Learning Types</strong></figcaption></figure><h4>Neural Networks</h4><p>One of AI’s most widespread and commonly used buzzwords is <a href="https://www.investopedia.com/terms/n/neuralnetwork.asp">neural networks</a>. These learning algorithms are modelled after the human brain and are used to solve complex problems that are generally too demanding for traditional algorithms. Each “<strong>neuron</strong>” is connected and communicates with each other, just like in the human brain and transmits information through “<strong>synapses</strong>,” which act like electrical signals.</p><p>Neural networks can learn from data by analyzing and recognizing patterns, then making decisions based on those patterns. They can adjust their parameters as new data is presented, allowing them to perform more complex tasks as they become more familiar with the data. This process of learning from data is known as “<a href="https://www.ibm.com/topics/deep-learning">deep learning</a>.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fkr9M3JPv8l1sHstbTX5sQ.png" /></figure><p>The above diagram illustrates the typical architecture of a neural network. It starts with an<strong> input layer</strong> that takes in certain data from a specific dataset and ends with an <strong>output layer</strong> that predicts the final outcome. In between,<strong> hidden layers</strong> perform complex computations in the network to get from the input to the output layer. If there is more than one hidden layer, the neural network is considered “deep.”</p><p>Going back to our original digit classifying dilemma, we can use a specific type of neural network, called<strong> </strong><a href="https://builtin.com/data-science/feedforward-neural-network-intro"><strong>feedforward neural networks</strong></a><strong>,</strong> to train an algorithm that simulates the activity in our brains by using patterns to identify the characteristics of a particular digit instead of simply trying to memorize it.</p><p>In feedforward neural networks, the algorithm only moves in one direction: forward, from the input layer to the many hidden layers to the output layer. Furthermore, it resets after every <a href="https://www.baeldung.com/cs/epoch-neural-networks#:~:text=An%20epoch%20means%20training%20the,to%20train%20the%20neural%20network.">epoch</a>, which is one complete run through all of the data forwards and backward when training/testing, resulting in<strong> higher accuracies</strong>.</p><p>Now that we have this information, we can actually employ these concepts to develop a handwriting classifier using <a href="https://colab.research.google.com/"><strong>Google Collaboratory</strong></a><strong>.</strong> This free cloud-based programming environment allows users to write code, develop machine learning models, and collaborate with other developers.</p><blockquote>If you’re new to programming or <strong>Python</strong>, don’t worry; I’ll keep this section as straightforward as possible while still breaking all the code down.</blockquote><p>Finally, we will need to take the following steps to ensure this project is a success:</p><ol><li>Find or create a labelled data set to train our neural network</li><li>Create the neural network</li><li>Train, test, and modify our code until we feel like our model is accurate</li><li>Test our model with unique data and analyze the results</li></ol><h3>Building The Project</h3><h4>Step #1: Importing Libraries</h4><p>The first thing we’ll do is import the EMNIST libraries so that we have access to the training set.</p><pre>!git clone https://github.com/sorki/python-mnist<br>!./python-mnist/bin/mnist_get_data.sh<br>!pip3 install emnist<br>from emnist import extract_training_samples<br><br>print(&quot;Imported the EMNIST libraries we need!&quot;)</pre><h4>Step #2: Extracting Training Samples From the Imported Libraries</h4><p>We need to access data from the imported libraries to prepare for our model. Specifically, we will access the EMNIST “letters” dataset, which consists of 145,600 28x28 pixel images of letters. Each pixel is a grayscale value between 0 and 255. To provide a more efficient input for the neural network, we divide each value by 255 and transform it into a number between 0 and 1. This approach is referred to as <strong>pre-processing</strong> and may vary depending on the data type.</p><p>This dataset contains labels for the images our neural network will learn from. We will use the first 60,000 images as the training set and the following 10,000 images as the testing set to evaluate how well the network learned. This is an arbitrary choice, but it is a large enough sample to produce an accurate model. Remember to keep the training and testing sets separate if you want to try different samples.</p><pre># Grab the data from the OpenML website<br># X will be our images and y will be the labels<br>X, y = extract_training_samples(&#39;letters&#39;)<br><br># Make sure that every pixel in all of the images is a value between 0 and 1<br>X = X / 255.<br><br># Use the first 60000 instances as training and the next 10000 as testing<br>X_train, X_test = X[:60000], X[60000:70000]<br>y_train, y_test = y[:60000], y[60000:70000]<br><br># There is one other thing we need to do, we need to<br># record the number of samples in each dataset and the number of pixels in each image<br>X_train = X_train.reshape(60000,784)<br>X_test = X_test.reshape(10000,784)<br><br>print(&quot;Extracted our samples and divided our training and testing data sets&quot;)</pre><p>It might take a little time to run this cell — remember that this code essentially downloads 70,000 pictures!</p><h4>Step #3: Verify That the Data Was Downloaded Correctly</h4><pre>import matplotlib.pyplot as plt<br><br>img_index = 14000 # &lt;&lt;&lt;&lt;&lt;  You can update this value to look at other images<br>img = X_train[img_index]<br>print(&quot;Image Label: &quot; + str(chr(y_train[img_index]+96)))<br>plt.imshow(img.reshape((28,28)))</pre><p>Let’s double-check the data we downloaded by examining the photos and labels in the set. Swap the img_index<strong> </strong>with various numbers and run the code to check other training examples.</p><p>We can easily recognize some of the letters in the dataset (for example, <strong>14000</strong> is an apparent “<strong>M</strong>”), though others can be more difficult to decipher.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*-uBxxB9qj7nYkP88JZ3NKw.png" /></figure><p>It is crucial that we can be sure that the data was <strong>downloaded successfully</strong>, thus enabling us to move forward with the next steps.</p><h4>Step #4: Building Our MLP Neural Network</h4><p>Having studied the data, let’s construct a multi-layer perception (MLP) neural network to accept images as inputs and output the correct letter. To expedite the process, we’ll leverage an existing library that provides some MLP components rather than writing the entire network from scratch. This approach is often employed when tackling AI challenges, as existing libraries can be tweaked and adapted to suit our needs.</p><p>To try this out, we’ll create a neural network — an MLP classifier — with one hidden layer that has 50 neurons in it. We’ll have it run through the training data 20 times (that’s max_iter=20) so it doesn&#39;t take too long.</p><p>We also set various other parameters for teaching the MLP. Some of these, such as the learning rate, may be familiar to you. By altering these parameters, we can affect how the MLP behaves in the training and testing phase. I recommend starting with the default settings and then working on it from there.</p><pre># These two lines import the ML libraries we need<br>from sklearn.datasets import fetch_openml<br>from sklearn.neural_network import MLPClassifier<br><br># This creates our first MLP with 1 hidden layer with 50 neurons and sets it to run through the data 20 times<br>mlp1 = MLPClassifier(hidden_layer_sizes=(50,), max_iter=20, alpha=1e-4,<br>                    solver=&#39;sgd&#39;, verbose=10, tol=1e-4, random_state=1,<br>                    learning_rate_init=.1)<br><br>print(&quot;Created our first MLP network&quot;)</pre><h4>Step #5: Training the MLP</h4><p>Now that we have created the MLP let&#39;s test it out. Use the “fit” command to start the training process and see how well it can classify handwritten letters. It could take a moment for the training to complete. During the training, the program will print out status updates about the learning process. As the procedure progresses, the loss value should decrease, which means the MLP is becoming better at recognizing the examples it is being taught.</p><pre>mlp1.fit(X_train, y_train)<br>print(&quot;Training set score: %f&quot; % mlp1.score(X_train, y_train))<br>print(&quot;Test set score: %f&quot; % mlp1.score(X_test, y_test))</pre><h4>Step #6: Analyze Training + Testing Accuracy</h4><p>By executing this multiple times, you should observe that the accuracy and loss stay in the same range but with some variation. This is because the neural network weights are reset with random values each time. Usually, you will observe a training dataset accuracy of around 89% and a testing dataset accuracy of 84%, as long as you haven’t modified anything involving the MLP structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AWs2vyi1ZkFI8DeneefjsQ.png" /></figure><p>That’s actually pretty good — it means that the network is guessing correctly 84% of the time on images it’s never been exposed to before. We could further examine the dataset to determine what went wrong and improve the results.</p><pre># First let&#39;s initialize a list with all the predicted values from the training set<br>y_pred = mlp1.predict(X_test)<br><br># Now let&#39;s visualize the errors between the predictions and the actual labels using a confusion matrix<br>from sklearn.metrics import confusion_matrix<br>cm = confusion_matrix(y_test, y_pred)<br>plt.matshow(cm)</pre><h4>Step #7: Identify Commonly Confused Letters</h4><p>The brightness of each cell in the <strong>confusion matrix</strong> indicates the number of elements in that cell, with brighter colours indicating more elements. The matrix rows correspond to the correct label, while the matrix columns correspond to the predicted label. The numbers on the x-axis and y-axis of the matrix refer to the 26 letters in the alphabet (in EMNIST, these are represented by numbers, with 0=A, 1=B, etc.). For example, the brightness of cell (0,0) in the matrix shows the number of times that our network correctly classified an “A” as an “A.”</p><p>The diagonal line of cells in the matrix represents the instances in which the predicted label was correct. It is desirable to see a bright diagonal line in the confusion matrix, which indicates a high number of <strong>correct predictions</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*NoBqQRfJnm0GPB_XYrh0Cg.png" /></figure><p>We can investigate further if any cells (off the diagonal) appear significantly brighter than the others.</p><p>It can be easy to mix up letters such as “I” and “L” (“U” and “V” are also examples of this), so let’s review any cases where this occurs. You can modify the code and run it as many times as you wish to observe examples of these mistakes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*77C4SDALOV0wLlrOeCaubA.png" /></figure><pre># You can change this to any letters that you think the neural network may have confused...<br>predicted_letter = &#39;l&#39;<br>actual_letter = &#39;i&#39;<br><br><br># This code counts all mistakes for the letters above<br>mistake_list = []<br>for i in range(len(y_test)):<br>  if (y_test[i] == (ord(actual_letter) - 96) and y_pred[i] == (ord(predicted_letter) - 96)):<br>    mistake_list.append(i)<br>print(&quot;There were &quot; + str(len(mistake_list)) + &quot; times that the letter &quot; + actual_letter + &quot; was predicted to be the letter &quot; + predicted_letter + &quot;.&quot;)<br><br># Once we know how many mistakes were made, we can change this to see an image of a particular one<br>mistake_to_show = 4 # &lt;&lt;&lt; e.g., change this to 3 if you want to see the 4th mistake<br><br># This code checks that the number mistake you asked for can be shown and if so, displays an image of it<br>if (len(mistake_list)&gt; mistake_to_show):<br>  img = X_test[mistake_list[mistake_to_show]]<br>  plt.imshow(img.reshape((28,28)))<br>else:<br>  print(&quot;Couldn&#39;t show mistake number &quot; + str(mistake_to_show + 1) + &quot; because there were only &quot; + str(len(mistake_list)) + &quot; mistakes to show!&quot;)</pre><h4>Step #8: Alter Variables + Increase Iterations (Improve Accuracy)</h4><p>On EMNIST, the state-of-the-art machine learning techniques get higher than 96% accuracy, so our network could surpass 84%. Let’s experiment and see what we can do.</p><p>To begin with, we can have more hidden layers and more neurons in the hidden layers. For example, to add another hidden layer of 50 neurons, you can do the following: hidden_layer_sizes=(50,50,).</p><p>We can also try training for more epochs (or iterations). For example, we can change our max_iter=30.</p><p>Experimenting with different structures can be fun; however, remember that increasing layers and epochs will mean a more extended training period for the network.</p><p>Let us start with 5 layers of 100 neurons each and train for 50 epochs.</p><pre># Change some of the values in the below statement and re-run to see how they <br># affect performance!<br>mlp2 = MLPClassifier(hidden_layer_sizes=(100,100,100,100,100,), max_iter=50, alpha=1e-4,<br>                    solver=&#39;sgd&#39;, verbose=10, tol=1e-4, random_state=1,<br>                    learning_rate_init=.1)<br>mlp2.fit(X_train, y_train)<br>print(&quot;Training set score: %f&quot; % mlp2.score(X_train, y_train))<br>print(&quot;Test set score: %f&quot; % mlp2.score(X_test, y_test))</pre><h4>Step #9: Grab New Data To Retest the Network</h4><p>This modified dataset from <a href="https://thecrashcourse.com/topic/ai/">Crash Course AI</a> is what we’ll use in our code, and you can find it in the GitHub repository here:</p><p><a href="https://github.com/crash-course-ai/lab1-neural-networks/tree/master/letters_mod">lab1-neural-networks/letters_mod at master · crash-course-ai/lab1-neural-networks</a></p><pre># Pulls the scanned data set from GitHub<br>!git clone https://github.com/crash-course-ai/lab1-neural-networks.git<br>!git pull<br>!ls lab1-neural-networks/letters_mod<br>!cd /content/lab1-neural-networks/letters_mod<br>!pwd<br><br># Puts all the data in the &quot;files&quot; variable<br>import os<br>path, dirs, files = next(os.walk(&quot;/content/lab1-neural-networks/letters_mod/&quot;))<br>files.sort()</pre><h4>Step #10: Registering the Images</h4><p>We will go through each image, add it to a list, and print it out to ensure it has been read correctly. You can change the index if you want to view different letters.</p><pre># These libraries let us import the letters, resize them, and print them out<br>import cv2<br>import matplotlib.pyplot as plt<br><br># This code processes all the scanned images and adds them to the handwritten_story<br>handwritten_story = []<br>for i in range(len(files)):<br>  img = cv2.imread(&quot;/content/lab1-neural-networks/letters_mod/&quot;+files[i],cv2.IMREAD_GRAYSCALE)<br>  handwritten_story.append(img)<br><br>print(&quot;Imported the scanned images.&quot;)<br><br>plt.imshow(handwritten_story[4])  #&lt;--- Change this index to see different letters</pre><h4>Step #11: Testing With the Handwritten Sentence</h4><p>We’ll put the handwritten sentence into our trained MLP and see how it performs.</p><pre># These are libraries we need to do some math on the image<br># to be able to give it to the MLP in the right format and to resize it to 28x28 pixels<br>import numpy<br>import cv2<br><br>typed_story = &quot;&quot;<br>for letter in handwritten_story:<br>    letter = cv2.resize(letter, (28,28), interpolation = cv2.INTER_CUBIC)<br>    single_item_array = (numpy.array(letter)).reshape(1,784)<br>    prediction = mlp2.predict(single_item_array)<br>    typed_story = typed_story + str(chr(prediction[0]+96))<br>    <br>print(&quot;Conversion to typed story complete!&quot;)<br>print(typed_story)</pre><h4>Step #12: Adding Blank Spaces</h4><p>Understandably, the output is nonsensical.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kmd5ShJdVESS1ELGr07zJA.png" /></figure><p>We did not teach our model to recognize spaces. However, we can train it to identify blank images just as it does with handwritten letters. Consequently, we will assess each image to see if it is a blank space, and if it is, then a space will be added to the sentence.</p><pre># This is a library we need to do some math on the image to be able to give it to the MLP in the right format<br>import numpy<br><br>typed_story = &quot;&quot;<br>for letter in handwritten_story:<br>  letter = cv2.resize(letter, (28,28), interpolation = cv2.INTER_CUBIC)<br>    <br>  #this bit of code checks to see if the image is just a blank space by looking at the color of all the pixels summed<br>  total_pixel_value = 0<br>  for j in range(28):<br>    for k in range(28):<br>      total_pixel_value += letter[j,k]<br>  if total_pixel_value &lt; 20:<br>    typed_story = typed_story + &quot; &quot;<br>  else:         #if it NOT a blank, it actually runs the prediction algorithm on it<br>    single_item_array = (numpy.array(letter)).reshape(1,784)<br>    prediction = mlp2.predict(single_item_array)<br>    typed_story = typed_story + str(chr(prediction[0]+96))<br>    <br>print(&quot;Conversion to typed story complete!&quot;)<br>print(typed_story)</pre><h4>Step #13: Resizing Labels</h4><p>There is a noticeable improvement here, as there are separate words, and the first word is “The.” But there’s still something going wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p33LfZzoSiqttcSGWJR88A.png" /></figure><p>We need to make the strokes more blurry, put the letter at the very center of the image, crop out the rest, and resize each one to 28x28 pixels.</p><p>Once the processing has been completed, we can print out a single letter to evaluate the result. We can also modify the index in the code to display a different letter if desired.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*iS54XoV9Anv95Ujo0vcHsA.png" /></figure><pre># These steps process the scanned images to be in the same format and have the same properties as the EMNIST images<br># They are described by the EMNIST authors in detail here: https://arxiv.org/abs/1702.05373v1<br>processed_story = []<br><br>for img in handwritten_story:<br>  #step 1: Apply Gaussian blur filter<br>  img = cv2.GaussianBlur(img, (7,7), 0)<br>  <br>  #steps 2 and 3: Extract the Region of Interest in the image and center in square<br>  points = cv2.findNonZero(img)<br>  x, y, w, h = cv2.boundingRect(points)<br>  if (w &gt; 0 and h &gt; 0):<br>    if w &gt; h:<br>      y = y - (w-h)//2<br>      img = img[y:y+w, x:x+w]<br>    else:<br>      x = x - (h-w)//2<br>      img = img[y:y+h, x:x+h]<br>     <br>  #step 4: Resize and resample to be 28 x 28 pixels<br>  img = cv2.resize(img, (28,28), interpolation = cv2.INTER_CUBIC)<br>  <br>  #step 5: Normalize pixels and reshape before adding to the new story array<br>  img = img/255<br>  img = img.reshape((28,28))<br>  processed_story.append(img)<br><br>print(&quot;Processed the scanned images.&quot;)<br><br>import matplotlib.pyplot as plt<br>plt.imshow(processed_story[4]) #&lt;&lt;&lt; change this index if you want to see a different letter from the story</pre><h4>Step #14: Processing the Handwritten Sentence One Last Time</h4><p>Now we can process the sentence with our neural network one last time!</p><pre># This is a library we need to do some math on the image to be able to give it to the MLP in the right format<br>import numpy<br><br>typed_story = &quot;&quot;<br>for letter in processed_story:<br>  #this bit of code checks to see if the image is just a blank space by looking at the color of all the pixels summed<br>  total_pixel_value = 0<br>  for j in range(28):<br>    for k in range(28):<br>      total_pixel_value += letter[j,k]<br>  if total_pixel_value &lt; 20:<br>    typed_story = typed_story + &quot; &quot;<br>  else:         #if it NOT a blank, it actually runs the prediction algorithm on it<br>    single_item_array = (numpy.array(letter)).reshape(1,784)<br>    prediction = mlp2.predict(single_item_array)<br>    typed_story = typed_story + str(chr(prediction[0]+96))<br>    <br>print(&quot;Conversion to typed story complete!&quot;)<br>print(typed_story)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t7wa0jFi9tAnjlL7oIGGGQ.png" /></figure><p>Although the result isn’t wholly accurate, I think it emphasizes the true power of computers and their ability to learn quickly. Just think about how you could leverage machine learning to go from being completely unable to recognize similar letters to just under 90% accurate in fifteen minutes.</p><p><em>Imagine how much more we could accomplish with AI and ML.</em></p><p>So how did it go for you? Were you able to follow along successfully?</p><p>If you’re seeking more clarification behind the code or want to see the result, check out the original <a href="https://youtu.be/6nGCGYWMObE">Crash Course video</a>, where they go step-by-step with you throughout the whole project.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F6nGCGYWMObE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D6nGCGYWMObE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F6nGCGYWMObE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d90abbde4fc73a6cd22c5ae1b4ee38b4/href">https://medium.com/media/d90abbde4fc73a6cd22c5ae1b4ee38b4/href</a></iframe><blockquote>This project was modified from <a href="https://thecrashcourse.com/">Crash Course AI</a>’s How to make an AI read your handwriting tutorial. See the original project above.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f1b41f85eab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhancing Lithium-ion Battery Performance With Machine Learning]]></title>
            <link>https://giriknarang.medium.com/enhancing-lithium-ion-battery-performance-with-machine-learning-dea9cefebe55?source=rss-3876314641ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/dea9cefebe55</guid>
            <category><![CDATA[lithium-ion-battery]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[battery]]></category>
            <category><![CDATA[battery-technology]]></category>
            <dc:creator><![CDATA[Girik Narang]]></dc:creator>
            <pubDate>Sat, 12 Nov 2022 19:15:58 GMT</pubDate>
            <atom:updated>2026-09-25T21:22:59.892Z</atom:updated>
            <content:encoded><![CDATA[<h4>A Scientific Overview of Li-ion Batteries &amp; Breakdown of ML</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/0*eyJjymmWwv33hfpz" /><figcaption>Photo by <a href="https://li-cycle.com/">LI-CYCLE COR</a>P on <a href="https://www.forbes.com/sites/jimvinoski/2021/08/09/li-cycle-aims-to-change-the-game-for-recycling-lithium-ion-batteries/?sh=699aab3444f4">Forbes</a></figcaption></figure><p>Have you ever thought about how Teslas work? Sure, we know that electric vehicles convert, store and distribute energy, but what exactly is allowing them to do so?</p><p>Well, it’s actually all thanks to <strong>batteries</strong>. And lots of them.</p><p>There are approximately 6000 to 8000 individual lithium-ion battery cells beneath the passenger compartment of a Tesla vehicle, the entire battery weighing roughly 550 kg (1200 lbs).</p><p>Naturally, the rise of the<strong> electric vehicle</strong> has forced automakers to take a closer look at the performance and life of lithium-ion batteries.</p><p>While earlier, automakers treated the battery as a separate entity, today, these companies build their battery expertise in-house.</p><p>Let’s take <strong>Tesla</strong>, for example.</p><p>Panasonic has been an exclusive lithium-ion battery cell supplier for Tesla’s cars like Model S, X, and 3. In 2014, Tesla signed a deal with the Japanese conglomerate to jointly build a battery production facility — <a href="https://www.tesla.com/en_CA/gigafactory">Gigafactory One</a> — to mass-produce <strong>35 gigawatt-hours</strong> worth of Panasonic car batteries per annum.</p><p><em>Why?</em></p><blockquote><strong>“Because batteries are expensive.”</strong></blockquote><p>Although the cost of lithium-ion batteries has decreased over the past decade, it still amounts to roughly <strong>$101 USD per kWh</strong>. It continues to be the <strong>most expensive</strong> component of an electric vehicle. For electric cars to be mainstream, they must match petrol/diesel cars based on <strong>price</strong> and <strong>range</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nPzKBoLQdZN7zWQ9rPbM9Q.png" /><figcaption>“<a href="https://pubs.rsc.org/en/content/articlehtml/2021/ee/d0ee02681f">Re-examining rates of lithium-ion battery technology improvement and cost decline</a>” by Micah S. Ziegler</figcaption></figure><p>In this case, both factors are contingent on unlocking the potential of the battery by getting more life and range out of it, or in other words, <strong>enhancing lithium-ion battery performance</strong>.</p><p>Although there is a buzz about newer configurations, such as NanoBolt lithium tungsten or sodium-ion batteries, it’s unlikely that the industry will shift to a new prototype anytime soon.</p><p>Regardless of what you think the industry favourite will become, one thing is clear; <strong>we can always have better batteries</strong>.</p><p>Whether they charge faster, carry increased storage capacities or have better discharge rates, we don’t necessarily know the limits of battery tech. That’s why research into the various intersections between machine learning and specific aspects of battery performance is critical, not just from a technological and economic standpoint but also for the <strong>sake of our planet</strong>.</p><p>To properly assess the weaknesses of lithium-ion batteries and determine how machine learning could be used to improve them, it is crucial first to understand their structure and operation. This would include breaking down the materials used in their construction, their chemical processes and the electrical systems that manage the flow of charge.</p><p>Furthermore, gaining a thorough understanding of how lithium-ion batteries function makes it easier to identify specific areas where machine learning could be implemented to improve their <strong>efficiency</strong> and <strong>reliability</strong>.</p><h3>The Science Behind Lithium-ion Batteries</h3><p>It goes without saying that batteries, specifically lithium-ion and lithium-ion polymer classifications, play a significant role in our day-to-day life. They are found <em>everywhere</em> in relation to modern technology, such as cell phones, computers, industrial robots, production equipment, and automobiles. They have quickly become the <strong>industry standard</strong> due to their higher energy density-to-weight ratio, faster charging times, longevity and self-discharge rates, superseding the traditional <strong>nickel-metal hydride</strong>, <strong>nickel-cadmium</strong>, and <strong>lead-acid batteries</strong>.</p><blockquote>If you are interested in learning more about other types of batteries and the varying chemistries, check out the resources below:</blockquote><ul><li><a href="https://www.electronicsforu.com/technology-trends/learn-electronics/different-types-of-batteries">Different Types Of Batteries</a></li><li><a href="https://www.electronicshub.org/types-of-batteries/">What are the Different Types of Batteries? Primary, Rechargeable, Li-Ion</a></li></ul><h4><em>What Makes Lithium-ion Batteries Different?</em></h4><p>For starters, all batteries contain an <strong>anode</strong>, <strong>cathode</strong>, <strong>separator</strong>, <strong>electrolyte</strong>, and <strong>two current collectors </strong>(positive and negative).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t8Jlk3vMwHxmJHJ7lhqyqw.png" /></figure><p>Lithium-ion batteries work by using <strong>lithium ions </strong>to move between the positive and negative electrodes in the battery during <strong>charging</strong> and <strong>discharging</strong>. Electrodes are made of a thin sheet of metal or metal oxide and coated with a layer of active material that can store and release lithium ions. Positive electrodes typically comprise lithium cobalt oxide, while negative electrodes comprise carbon. When the battery is being charged, the lithium ions move from the negative electrode to the positive electrode. When the battery is discharged, the ions move in the opposite direction. This movement of ions creates an <strong>electrical current</strong> that can power electronic devices.</p><p>These batteries also have several additional components, including an <strong>electrolyte</strong> and <strong>separator</strong>.</p><p>The electrolyte is a <strong>chemical solution</strong> that allows the lithium ions to move between the electrodes, while the separator is a thin layer of <strong>insulating material</strong> that prevents the electrodes from coming into contact with each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*_BljNCMdI_da34Sa2hb_mg.png" /><figcaption><strong>Lithium-ion Battery Charge vs Discharge</strong></figcaption></figure><p>The main difference between lithium-ion batteries and other types of batteries is the use of lithium ions, which allows for a higher energy density and a longer lifespan. Lithium is a <strong>lightweight metal </strong>with a <strong>high electrochemical potential</strong>, which means it can store a large amount of energy in a small space. In addition, lithium-ion batteries do not suffer from the “<a href="https://evreporter.com/understanding-memory-effect-in-lithium-ion-batteries/#:~:text=Memory%20effect%20is%20a%20term,remember%20its%20regular%20usage%20pattern.">memory effect</a>” that can plague other rechargeable batteries. This means they can be recharged <strong><em>anytime</em></strong> without affecting their performance.</p><h4>Advantages vs Disadvantages</h4><p>Lithium-ion batteries have become the dominant technology in the world of rechargeable batteries due to their many advantages. However, like any technology, they also have some disadvantages that should be considered. In this section, we will take a closer look at the pros and cons of lithium-ion batteries to help you better understand their <strong>capabilities</strong> and <strong>limitations</strong>.</p><p><strong>Advantages:</strong></p><ul><li><strong>High Energy Density:</strong> Lithium-ion batteries have a high energy density, which means they can store a lot of energy in a small space. This makes them ideal for portable electronic devices, where size and weight are important considerations.</li><li><strong>Long Lifespan:</strong> These batteries have a relatively long lifespan compared to other choices. They can retain their charge for an extended period of time, and they can be recharged many times before they need to be replaced.</li><li><strong>No Memory Effect:</strong> They do not suffer from the “memory effect,” which means they can be recharged anytime without affecting their performance.</li><li><strong>Lightweight:</strong> Lithium-ion batteries are relatively lightweight compared to other batteries, making them ideal for portable electronic devices.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/0*ZDCPAV4bHv1Cg4WH.png" /><figcaption><strong>Volumetric Energy Density (y) vs Gravimetric Energy Density (x)</strong></figcaption></figure><p><strong>Disadvantages:</strong></p><ul><li><strong>High Cost: </strong>They tend to be more expensive than other batteries, which can significantly deter some applications.</li><li><strong>Degradation Over Time:</strong> Lithium-ion batteries degrade over time, so their performance will decline with use.</li><li><strong>Safety Concerns:</strong> These batteries have been known to catch fire or explode under certain circumstances, which can be a safety concern.</li><li><strong>Environmental Impact:</strong> Lithium-ion batteries&#39; production negatively impacts the environment due to greenhouse gas emissions and the mining of raw materials.</li></ul><h3>Improving Li-ion Batteries Using Machine Learning</h3><p>Machine learning is a type of artificial intelligence that involves training a computer model to make predictions or decisions based on data. It can be used to solve a wide range of problems, including those related to <strong>energy</strong> and <strong>battery performance</strong>.</p><p>At a high level, machine learning algorithms discover patterns in data and use those patterns to make projections about new, unseen data. For example, a machine learning algorithm might be trained on a dataset containing data about lithium-ion battery performance, including various features such as the cathode material, electrolyte material, and charging rate, as well as the corresponding performance data. The algorithm would then use this training data to learn patterns that relate the input features to the output performance data.</p><p>Once the model has been trained, it can be used to make predictions about the performance of a <strong>new lithium-ion battery</strong> based on its cathode material, electrolyte material, and charging rate. This can be particularly useful in cases where it is difficult or time-consuming to measure battery performance directly, as the machine learning model can make predictions <strong>quickly</strong> and <strong>accurately</strong> based on the data it has learned from.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iXhJUI2LSHd9P08n.jpg" /><figcaption><strong>You Must Pick and Choose What Battery Features Are Most Important to You</strong></figcaption></figure><p>Here are a few alternative approaches that you could take to develop a machine-learning algorithm that can improve lithium-ion battery performance:</p><p><strong>1. Classification:</strong> A classification algorithm can be employed to foresee whether a given lithium-ion battery is probable to fail based on factors such as battery age, usage patterns, and other pertinent data. This can help recognize batteries at risk of failure and take steps to avert or lessen those failures.</p><p><strong>2. Regression:</strong> A regression algorithm can be utilized to anticipate how various factors, such as temperature, charging rate, and battery age, will affect the performance of the lithium-ion battery. This can aid in recognizing conditions prone to cause poor battery performance and making changes to enhance it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uXocNHUQRnx49yfgA_ZgWQ.png" /><figcaption><strong>Classification Model (Left) vs Regression Model (Right)</strong></figcaption></figure><p><strong>3. Clustering:</strong> A clustering algorithm can cluster lithium-ion batteries with similar performance characteristics. This can help recognize patterns and trends in battery performance and suggest hypotheses for improving it.</p><p><strong>4. Reinforcement Learning: </strong>Reinforcement learning can be utilized to train a machine learning algorithm to make decisions that optimize battery performance over time. For example, the algorithm could learn to adjust charging rates or employ specific charging patterns to maximize battery lifespan.</p><h3>The Problem With These Models</h3><p>Unfortunately, several data challenges can still arise when it comes to analyzing and optimizing the performance of batteries. Some of these include:</p><ol><li><strong>Limited Data Availability:</strong> One issue is that it can be challenging to collect enough data to accurately model the behaviour of lithium-ion batteries, especially over long periods of time. This is because battery performance can be influenced by a wide range of factors, including the age of the battery, the charging and discharging patterns, the temperature, and the humidity, among others. Collecting data on all of these factors can be time-consuming and costly.</li><li><strong>Data Quality:</strong> Another challenge is that the quality of data collected about lithium-ion battery performance may vary. For example, data collected from different sources may be in different formats or units or be incomplete or inconsistent. This can make it difficult to analyze and compare different battery performance datasets accurately.</li><li><strong>Data Storage and Processing:</strong> Storing and processing large amounts of data about lithium-ion battery performance can also be problematic, as the data can be voluminous and complex. This can require specialized hardware and software to handle the data efficiently.</li><li><strong>Data Privacy and Security:</strong> In some cases, data about lithium-ion battery performance may be sensitive or proprietary, and protecting this data from unauthorized access can be a concern. This can require strong security measures and protocols to keep the data confidential.</li></ol><p>Addressing these data challenges is essential for accurately modelling and optimizing the performance of lithium-ion batteries. By developing robust data collection and management systems and implementing <strong>practical data analysis</strong> and <strong>modelling techniques</strong>, we will better understand the factors influencing battery performance and identify opportunities for improving it.</p><h3>Final Thoughts</h3><p>Lithium-ion batteries are a critical component of electric vehicles and significantly impact their range, lifespan, and overall performance. By using machine learning to analyze data about battery performance, it is feasible to identify patterns and trends that can help to optimize the design and output of these batteries. This can involve identifying more stable cathode materials or electrolytes with improved conductivity and temperature resistance, among other factors. By improving the technology of lithium-ion batteries, we could increase the range and lifespan of electric vehicles, making them <strong>more competitive with traditional gasoline-powered vehicles</strong> and helping to accelerate the transition to a more <strong>sustainable transportation system</strong>.</p><p>Overall, potential applications of machine learning in the development of batteries are vast and varied, and the technology has the ability to impact their performance and sustainability significantly.</p><p>As the field of machine learning continues to advance, we will likely see even more innovative and impactful uses of this technology in the world of lithium-ion batteries and energy tech.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dea9cefebe55" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solving The Opioid Crisis With Blockchain]]></title>
            <link>https://giriknarang.medium.com/using-blockchain-to-solve-the-opioid-epidemic-1d692634734b?source=rss-3876314641ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d692634734b</guid>
            <category><![CDATA[opioid-crisis]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <category><![CDATA[opioid-epidemic]]></category>
            <category><![CDATA[prescription-drugs]]></category>
            <dc:creator><![CDATA[Girik Narang]]></dc:creator>
            <pubDate>Sat, 03 Sep 2022 21:32:21 GMT</pubDate>
            <atom:updated>2026-08-04T21:42:30.884Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Utilizing Blockchain Technology to Create Accountability, Transparency, and Decentralization in Opioid Prescription Tracking</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fw96FKM5HQX8M5tRQBZcLw.png" /><figcaption>Photo by <a href="https://www.istockphoto.com/portfolio/Moussa81?mediatype=photography">Moussa</a> on <a href="https://www.pexels.com/">Pexels</a></figcaption></figure><p>Take a second to <strong>really internalize</strong> this: a friend or family member is suffering from some terminal condition, and you’re concerned that the pain may be too much for them to bear. But you feel somewhat relaxed because they received prescription opioids from one of your city’s finest and most trustworthy clinicians. Fast forward a few weeks, and you begin seeing them recover. It seems like everything is going according to plan until, one day, you get a call. It turned out your loved one had been discreetly doctor shopping and receiving several times their necessary dosage.</p><p><strong>Your loved one died from an overdose.</strong></p><p>Unfortunately, stories like this recur quite frequently. In fact, roughly <strong>115 Americans</strong> die after overdosing on opioids <strong>EVERY SINGLE DAY</strong>. These pharmaceuticals are easily misused due to the production of euphoria and pain relief. In light of these effects, regular use (even through valid prescriptions) can yield dependence and addiction, hence why the abuse of pain relievers often leads to <strong>overdose</strong> and <strong>death</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6W_zWWDuAnv4IC269yn7UA.png" /><figcaption><strong>Percent Increase of Overdose Deaths in the US (2014–2018)</strong></figcaption></figure><p>It is important to note that opioids are designed to <strong>block pain signals between the brain and the body</strong>, making them different from other classes of drugs. The most common types you will likely hear about are heroin and legal pain relievers like oxycodone, hydrocodone, codeine, and morphine. These pain-relieving opioids can be safe when prescribed for the right reasons and duration, but as you can imagine, this isn’t always the case.</p><p>By calculating healthcare expenditures, addiction treatment, and criminal justice involvement, the Centers for Disease Control and Prevention (<a href="https://www.cdc.gov/about/">CDC</a>) estimates that prescription opioid misuse has an average economic burden of <strong>$78.5 billion</strong> annually in the United States.</p><figure><img alt="Total and Projected Costs of the Opioid Epidemic in Billions (2016)" src="https://cdn-images-1.medium.com/max/1024/0*4l9xCcUlmHj3o1mL.png" /><figcaption><strong>Total and Projected Costs of the Opioid Epidemic in Billions (2016)</strong></figcaption></figure><p>To make matters worse, the existing prescription tracking system in the US lacks the technical infrastructure to address this crisis effectively. In particular, the prescription marketplace is rife with:</p><ul><li><strong>Fraudulent Prescriptions</strong></li><li><strong>Doctor Shopping</strong></li><li><strong>Data Hoarding</strong></li><li><strong>Vulnerable and Centralized Data</strong></li><li><strong>Lack of Clinician Accountability</strong></li><li><strong>Synthetic Alternatives</strong></li></ul><p>Attacking the opioid crisis requires an approach to prescription monitoring that makes pharmaceuticals safer and encourages providers to write fewer prescriptions. Providers today are <strong>economically incentivized</strong> to prescribe opioids to patients. Consequently, clinicians often spend less face-time with patients, thereby lowering costs associated with patient treatment and increasing their financial returns.</p><p>Likewise, pharmacies today are encouraged to produce and distribute opioids because the more pharmaceuticals sold, the greater their earnings, which also increases shareholder value. Patients themselves are also urged to consume opioids. For example, physical therapy in pain treatment can be <strong>highly frustrating</strong> and filled with <strong>disappointment. </strong>Opioids provide <strong>short-term relief </strong>and a sense of euphoria, which often leads to patient addiction. This self-reinforcing cycle can be alleviated by a technical approach that realigns priorities for patients, providers and pharmacies.</p><h4><strong>Key Challenges Faced by Current Approaches</strong></h4><p><strong>PDMPs: </strong>With the widespread problem of opioid misuse in the United States, federal, state, and local governments have begun efforts to implement prescription drug monitoring programs (PDMPs). The agency responsible for the administration of the PDMP varies by region and includes the state’s regulatory, administrative, and law enforcement agencies. However, they still do not fix the fundamental problems with how clinicians and pharmacies are economically incentivized to prescribe opioids.</p><figure><img alt="Traditional Prescription Tracking System" src="https://cdn-images-1.medium.com/max/1024/1*b8Ls9JQZNCMoAIUaaRuzZA.png" /><figcaption><strong>Traditional Prescription Tracking System</strong></figcaption></figure><p>The diagram above depicts a scenario where a patient attempts to request an opioid prescription. In this conventional approach, the patient is required to present a state-issued ID as proof of their identity. Providers (<strong>Provider A</strong> and <strong>Pharmacist B</strong>) within the same state can exchange prescription data of the same patient using their provided ID through case reporting enabled by statewide PDMPs. However, the state-by-state siloed implementation of PDMPs limits interoperability beyond state lines. As a result, when the same patient visits another provider (<strong>Pharmacist C</strong>), <strong>Pharmacist C</strong> is unaware of the patient’s previous prescription activities, which creates a loophole in the system that patients with opioid addiction can exploit to <strong>doctor shop</strong> across states and obtain more than the necessary opioid dosage.</p><p>Now in all fairness, PDMPs still provide an important contribution to the fight against opioid abuse. Nonetheless, the following challenges remain largely unresolved:</p><p><strong>1. Lack of Interoperability Between States:</strong> PDMPs create one statewide electronic database to contain data on administering particular substances. While these databases are a necessary first step, their state-by-state implementation restricts the interoperability of states, which is explicitly concerning for a country like the US.</p><p><strong>2. Vulnerability of Centralized Databases:</strong> Maintaining one central database raises the risk of losing all data through a single hack or cyber-attack.</p><p><strong>3.</strong> <strong>Reliability and Consistency of Information</strong>: Physicians using existing PDMP databases are often dissatisfied with data reliability and consistency.</p><h3>Blockchain</h3><p>Blockchain is a rapidly evolving technology with potential applications for the opioid crisis and healthcare system–level issues related to <strong>data</strong> <strong>availability</strong>, <strong>interoperability</strong>, <strong>privacy</strong> and <strong>security</strong>.</p><blockquote>For the purpose of this article, I won’t be going into all the specifics of blockchain and how it works beyond its advantage over a traditional centralized system, so if that’s a priority for you, review the following resources below before returning to this next section:</blockquote><ul><li><a href="https://blockgeeks.com/guides/what-is-blockchain-technology/">Blockchain For Beginners: What Is Blockchain Technology? A Step-by-Step Guide</a></li><li><a href="https://www.funfirst.blog/blockchain-without-the-hype/">Blockchain (Without The Hype)</a></li></ul><p>Fundamentally, blockchain is a distributed ledger technology that uses a peer-to-peer network to provide a <strong>shared</strong>, <strong>immutable</strong>, and <strong>transparent</strong> single-entry record of all the transactions that have occurred to all the network participants (also called <a href="https://www.infoq.com/articles/blockchain-as-a-service-get-block/">nodes</a>).</p><p>Using various <a href="https://blockgeeks.com/guides/blockchain-cryptography/">cryptographic techniques</a>, blockchain enables participants to interact (e.g. store, exchange, and access information) without preexisting trust. Additionally, no central authority exists in this system; instead, transactions are stored and distributed among all network participants in the form of <strong>blocks</strong>, which are linked together through the cryptographic hash of the previous block. Therefore, the network doesn’t have a single point of failure, so it is less likely to experience downtime. If a failure does ever occur, each device possesses a full copy of the blockchain, so data is never lost.</p><p>Blockchain interactions are also made known to all nodes and must be <strong>verified</strong> before the information is added to the network, which enables trustless collaboration between network participants while recording a time-stamped and immutable trail of all interactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B4Mv3V2puY9_BkiY.png" /><figcaption><strong>Each Block Contains the Hashes of the Previous Block</strong></figcaption></figure><p>Moreover, it’s crucial to note that blockchain systems can be classified into three types: <strong>public</strong>,<strong> private </strong>and<strong> hybrid</strong>. A public Blockchain has several member nodes connected in a decentralized way that allows <strong>anyone</strong> to participate, read, and report data to the chain. On the other hand, private Blockchains allow only <strong>authorized</strong> nodes to participate in the network and exchange digital assets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i0poa952wDeOHVSx.png" /><figcaption><strong>Blockchain Transaction Process (Simplified)</strong></figcaption></figure><p>In light of this, it makes sense to consider developing private blockchains where nodes across the country are interconnected and have access to all patient data, improving healthcare accountability and allowing tracking patient activity to be considerably more accessible. Specifically, I think there are <strong>two fundamental issues</strong> we can tackle using this approach:</p><ol><li>Ensuring the secure exchange and management of electronic opioid prescriptions throughout the country.</li><li>Incentivizing the secondary use of clinical data to facilitate further research in this area.</li></ol><h4>Secure Exchange and Management of Electronic Opioid Prescriptions</h4><p>Nowadays, it seems like the solution to any problem is to <strong>digitize</strong> whatever you’re dealing with. Especially when it comes to prescriptions, moving from paper to electronic prescribing minimizes (but does not eliminate) prescription theft and forgery, and facilitates tracking of prescription histories for prescribers, pharmacists, and patients. However, current PDMP programs are <strong>outdated</strong> and <strong>insufficient</strong>, and I believe blockchain is the missing piece of the puzzle.</p><p>For starters, the current problems with managing electronic prescriptions all involve <strong><em>centralization</em></strong>. By switching to an interoperable and decentralized model, clinicians will no longer be able to overprescribe without arousing suspicion, and patients won’t be able to doctor shop freely since all health institutions will have identical databases. On top of all that, data will be less vulnerable and much more available for research.</p><p>An intriguing concept to explore is using clinicians as “nodes” to verify prescriptions. Based on the medical history and information already documented on the blockchain, clinicians can <strong>anonymously</strong> verify each other’s prescription transactions and raise red flags whenever deemed necessary. This allows for a<strong> self-sufficient </strong>and <strong>autonomous</strong> database in which there is little to no need for a single central authority to hold medical professionals liable for their decisions.</p><h4>Incentivizing Secondary Use of Clinical Data</h4><p>One of the most prominent challenges relating to opioids and other pharmaceuticals — apart from the overdoses — is the<strong> lack of patient data</strong> available for research. To accurately address research issues and conduct real-time public health monitoring, it is necessary to possess a complete and precise picture of a patient’s trajectory over time, across providers, and between healthcare and non-healthcare settings. However, patient health data are often collected and stored in <strong>diverse information systems</strong> (e.g. emergency department registries and first responder data systems), which significantly <strong>lowers researchers’ access to real-world data</strong> for opioid-related treatment and public health surveillance.</p><p>In addition to access concerns, dealing with substance use data is slightly different because it mandates unique and detailed handling. <strong>Privacy</strong> and <strong>security</strong> are critically important, given that substance use disorder (<a href="https://www.mayoclinic.org/diseases-conditions/drug-addiction/symptoms-causes/syc-20365112"><strong>SUD</strong></a>) opioid misuse remains highly stigmatized and is consequently classified as sensitive protected health information. This means they require <strong>extra</strong> <strong>protection</strong> and <strong>consent requirements</strong>, creating apparent barriers for opioid researchers and data exchange. Overcoming this deterrent is essential as SUD and associated treatment data are vital to understanding patient outcomes concerning treatment settings and treatment types.</p><p>During periods of crisis, where overdosing deaths skyrocket, patient data is deemed more <strong>valuable</strong> than ever to provide a <strong>proactive response</strong> to spikes in the near future, as opposed to a <strong>reactive</strong> one. In this case, blockchain’s interoperability and decentralization also make it the ideal solution. A model could be developed where patients could grant or deny permission to have their data used for research purposes or not in exchange for <strong>financial incentives</strong> associated with rehab (e.g. lower rehab costs or free therapy services). If agreed upon, the records can be stored instantaneously on the blockchain for medical researchers across to country to use for drug discovery, testing, classification, and ultimately, overdose prevention.</p><h3>Building an E-prescription Smart Contract</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ucjm8_7e_DxIonx2" /><figcaption>Photo by <a href="https://unsplash.com/@jstrippa?utm_source=medium&amp;utm_medium=referral">James Harrison</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you’ve made it this far, it’s safe to say that you’ve got a reasonably solid background on both blockchain and the opioid crisis. Nevertheless, I continually got asked the same question when I explained these concepts to friends and family:</p><blockquote><strong>What would a prescription on blockchain actually look like?</strong></blockquote><p>Initially, I didn’t see any problem visualizing the smart contract since I was already familiar with them, but I understand this may not be the case for everyone. That’s why I decided to add this interactive portion of the article, as the best way to understand the ins and outs of a decentralized prescription would be to <strong>create one yourself</strong>.</p><p>If you’re new to programming or <a href="https://docs.soliditylang.org/en/v0.8.17/"><strong>Solidity</strong></a>, don’t worry; I will keep this section as straightforward as possible while highlighting the fundamental proof of concept. Now that we’ve established that, let’s get started writing and deploying our prescription!</p><h4>Step #1: Setting up Your Workspace</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HndLBj2loT4oTVmJsi6vWg.png" /><figcaption><strong>Remix (Ethereum IDE) Homepage</strong></figcaption></figure><p>After trying multiple IDEs, I found <a href="https://remix.ethereum.org/#optimize=false&amp;runs=200&amp;evmVersion=null"><strong>Remix</strong></a> to be the best since there is no installation or need to open the terminal, which keeps it simple for newer developers. To follow along, set up your workspace with a solidity file and name it <strong>prescription.sol.</strong></p><h4>Step #2: Declaring License + Solidity Version</h4><p>For starters, I declared an MIT license, which permits users to reuse code for any purpose. When announcing the solidity version, I recommend going with the latest one (unless you are following an older tutorial or a feature you require is no longer available).</p><pre>// SPDX-License-Identifier: MIT</pre><pre>pragma solidity ^0.8.15;</pre><p>In this case, the ^0.8.15 means that the code is written in version 0.8 of the Solidity programming language and will compile for Ethereum contracts running on the <strong>EVM</strong> (Ethereum Virtual Machine) at a gas cost of 15 Gwei per operation.</p><h4>Step #3: Define A Contract</h4><p>Next, define a contract using the “contract” statement.</p><pre>contract prescription {</pre><h4>Step #3: Add Prescription Data Points</h4><p>This is where we write the prescription layout and customize the information that is added to the blockchain in the form of “strings”. Feel free to add or remove any sections based on the data you prefer to store.</p><pre>struct prescriptionInfo {</pre><pre>uint id;</pre><pre>string patientFullName;</pre><pre>string age;</pre><pre>string prescriptionHistory;</pre><pre>string clinicianFullName;</pre><pre>string licenseType;</pre><pre>string NPInumber;</pre><pre>string prescriptionName;</pre><pre>string NDCDrugID;</pre><pre>string dosageMlMg;</pre><pre>string additionalNotes;</pre><pre>bool dataUsageAgreement;</pre><pre>}</pre><h4>Step #4: Mapping</h4><p><a href="https://deanschmid1.medium.com/understanding-mappings-soliditys-key-valuable-data-type-32adb0185d03">Mapping</a> in Solidity acts like a hash table or dictionary in any other language and is used to store the data in the form of key-value pairs.</p><pre>mapping (uint =&gt; prescriptionInfo) public patientsById;</pre><pre>uint public patientCount;</pre><h4>Step #5: Storing Data Points In Memory</h4><p>Now we’re writing a function to add our data points to string memory, which you can imagine as RAM for the smart contract.</p><p>You may also notice that the last line is slightly different from the rest, which is entirely intentional. As opposed to the other variables, the data usage agreement boolean will prompt a <strong>“true or false”</strong> response from the clinician to determine whether the patient has been granted permission for their data to be used for research purposes.</p><pre>function addPrescription(</pre><pre>string memory _patientFullName,</pre><pre>string memory _age,</pre><pre>string memory _prescriptionHistory,</pre><pre>string memory _clinicianFullName,</pre><pre>string memory _licenseType,</pre><pre>string memory _NPInumber,</pre><pre>string memory _prescriptionName,</pre><pre>string memory _NDCDrugID,</pre><pre>string memory _dosageMlMg,</pre><pre>string memory _additionalNotes,</pre><pre>bool _dataUsageAgreement)</pre><h4>Step #6: Returning Patient Count</h4><p>This final part of the code effectively allows us to assign an I.D. to each patient and increase the patient count every time a new one is registered. This could be potentially useful for monitoring the frequency of prescriptions and patients dealing with a particular medical professional at a given time.</p><pre>public {</pre><pre>patientCount++;</pre><pre>patientsById[patientCount] = prescriptionInfo(patientCount, <br>_patientFullName, _age, _prescriptionHistory, _clinicianFullName, _licenseType, _NPInumber, _prescriptionName, _NDCDrugID, _dosageMlMg, _additionalNotes, _dataUsageAgreement);</pre><pre>}</pre><pre>}</pre><h4>Step #7: Compiling &amp; Deploying Our Smart Contract</h4><p>Finally, we are ready to compile and deploy our contract. If you look at the third icon on the toolbar (circled in red) and see a green check mark, it means you’ve got the green light to start customizing your transaction. Typically, I would set the environment to one of the various test-net options that remix offers. However, the default <strong>Remix VM (London)</strong> will suffice for this next step.</p><p>Once everything looks good, you can click “deploy,” allowing you to interact with your prescription under “deployed contracts.” Recall that depending on the various variables you chose; your contract would appear different than mine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P_F2qvPo3YiFu7_4u9rn-w.png" /></figure><p><strong>So how did it go for you? Were you able to follow along successfully?</strong></p><p>Now, as simple as this project seems, the reality is that a blockchain system capable of managing <strong>thousands of nodes</strong> and <strong>millions of patients</strong> mandates considerable resources and cooperation among various entities. This is why numerous barriers still prevent us from turning this concept into reality.</p><h3>Challenges and Limitations</h3><p>The use of blockchain in healthcare is still in its <strong>infancy</strong>. Further research and testing are required to determine whether applications for health care in general and areas that call for a high level of privacy protection are indeed feasible. Opportunities for short-term growth in the blockchain sector should focus solely or almost entirely on <strong>practical applications</strong> to identify further obstacles and constraints. The following are the fundamental limitations I’ve come across and believe are preventing us from <strong>progressing faster</strong> in this space:</p><ol><li>The adoption of<strong> blockchain in research is hampered by a fundamental lack of knowledge and comprehension of it.</strong> Researchers should be encouraged to use industry guidance to evaluate the viability of blockchain applications in the context of technological and policy constraints. By increasing awareness and fostering competencies among significant research partners, the community will be adequately equipped for implementation.</li><li><strong>Current standards for smart contracts are lacking.</strong> Given the fact that many blockchain applications rely on smart contracts, establishing better standards and guidelines can boost network interoperability.</li><li><strong>Sharing data can be challenging</strong> due to substance use treatment information’s legal and regulatory framework. To fully realize the potential for integrating substance use treatment records with other health care data to track patient outcomes over time, studies concerning the technical solutions for implementing blockchain in this complex ecosystem are required (taking into account various policy and privacy conditions).</li></ol><h3>Final Thoughts</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4_-zm5JJsjyEapt_Nux_zg.png" /><figcaption>Photo by <a href="https://unsplash.com/@_louisreed?utm_source=medium&amp;utm_medium=referral">Louis Reed</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Researchers are now facing various difficulties in accessing and utilizing opioid-related data. In addition to the necessity for <strong>reliable</strong>, <strong>timely</strong>, <strong>high-quality data</strong>, opioid researchers must also deal with fragmented information systems and the need for substance use disorder (SUD) data privacy. In light of blockchain’s capabilities and its current use in other industries, it could serve as a facilitator in aiding in addressing these challenges by offering a solution to research, data management, and data exchange that is more efficient, secure, and privacy-preserving. The use of blockchain in ensuring the secure exchange and management of electronic opioid prescriptions while incentivizing the secondary use of clinical data has the <strong>potential to impact millions</strong>.</p><p>Even though there is a lot of opportunity in these blockchain applications, further research needs to be done to identify and handle infrastructure, scalability, sustainability, implementation costs, and governance issues. Policy concerns linked to bridging the necessity to develop high-fidelity data that safeguard patient privacy and autonomy in retracting consent to utilize their data for research and treatment should also be discussed.</p><p>Simply put, the opioid epidemic is a massive predicament for families, communities, and hospitals across North America, and there needs to be a better approach to solving it. While providing aid to those impacted by these narcotics is extremely necessary, there needs to be a more promising universal drug monitoring system to prevent the <strong>overprescription</strong> of these drugs and finally<strong> hold medical professionals accountable </strong>for their actions.</p><p>If you want to learn more about the opioid crisis and how blockchain could make a difference, I highly recommend checking out the resources below:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FoHlaz0kQlRE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DoHlaz0kQlRE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FoHlaz0kQlRE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/bc24c8ad579a6660f656953219fcad71/href">https://medium.com/media/bc24c8ad579a6660f656953219fcad71/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FuxVeGsjHxjY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DuxVeGsjHxjY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FuxVeGsjHxjY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/116ef5be8813bc32655103f87be37e5c/href">https://medium.com/media/116ef5be8813bc32655103f87be37e5c/href</a></iframe><ul><li><a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8433945/?report=classic">Potential Uses of Blockchain Technology for Outcomes Research on Opioids</a></li><li><a href="https://www.sciencedirect.com/science/article/pii/S266660302100021X#:~:text=A%20Blockchain%20network%20is%20used,ones%20in%20the%20medical%20field">Blockchain technology applications in healthcare: An overview</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d692634734b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built My Own ERC-20 Token]]></title>
            <link>https://giriknarang.medium.com/how-i-built-my-own-erc-20-token-8a4a0919b5a?source=rss-3876314641ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a4a0919b5a</guid>
            <category><![CDATA[erc20]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[crypto]]></category>
            <dc:creator><![CDATA[Girik Narang]]></dc:creator>
            <pubDate>Mon, 04 Jul 2022 04:51:14 GMT</pubDate>
            <atom:updated>2026-08-04T21:39:50.371Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A Step-by-step Guide to Creating and Deploying an ERC-20 Token on the Ethereum Blockchain.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*pJQlxdAVOh1YaHSz.jpg" /></figure><blockquote>“The 2008 financial crisis cost the global economy trillions of dollars and destroyed trust between large financial institutions and the public, who were left to pay the price, while the large banks were bailed out.”</blockquote><p><strong>The year is 2009.</strong></p><p>Following one of the worst financial disasters in history, an individual or a group of programmers under the pseudonymous name <strong>Satoshi Nakamoto</strong> issued a white paper to address the centralized control of money and the trust placed upon financial institutions in handling public assets. In the traditional financial system, transactions can be reversed or tampered with by third parties, and fees can pile up quickly. <strong>Bitcoin</strong> was presented as a way to transact <em>without</em> requiring a third party, making transactions more secure and dismissing a substantial percentage of fees. Rather, the unique system utilized <strong>cryptographic proof</strong> to maintain the integrity of the network instead of relying on banks and other economic institutions.</p><p>Although Bitcoin was the first of its kind, it’s safe to say that we’ve come a long way in the realm of decentralized finance (<a href="https://ethereum.org/en/defi/"><strong>Defi</strong></a>) and cryptocurrency. In previous years, one of the central concerns around the popularity of these coins was that they <strong>demanded a ton of energy to verify transactions</strong> and were consequently detrimental to the environment. Nowadays, we’re seeing numerous coins transition from <strong>PoW</strong> to <strong>PoS</strong>, which not only offers further potential for scalability but is also more suitable for the environment.</p><p>In addition to these changes, initiatives like <a href="https://solarcoin.org/"><strong>SolarCoin</strong></a> (which encourages distributed renewable energy generation) and <a href="https://filecoin.io/"><strong>FileCoin</strong></a> (which introduced a cheaper and safer way to store data) have shown promise that cryptocurrency is more than just a digital asset and has so many possibilities and applications. Just think about it; <strong>thousands of unique coins</strong>, each with its own purpose and identity. At first glance, it can definitely be overwhelming, especially if you’re new to this space.</p><p>To save you time, here’s a quick list of some of the more <strong>popular</strong> cryptocurrencies that you’ll likely encounter and should be familiar with:</p><ul><li><a href="https://bitcoin.org/en/"><strong>Bitcoin</strong></a><strong> </strong>is the first and most valuable cryptocurrency.</li><li><a href="https://ethereum.org/en/"><strong>Ethereum</strong></a><strong> </strong>is commonly used to carry out financial transactions more complex than those supported by Bitcoin.</li><li><a href="https://cardano.org/"><strong>Cardano</strong></a> is a competitor to Ethereum, led by one of its co-founders.</li><li><a href="https://litecoin.org/"><strong>Litecoin</strong></a> is an adaptation of Bitcoin intended to make payments more manageable.</li><li><a href="https://solana.com/"><strong>Solana</strong></a> is another competitor to Ethereum that emphasizes speed and cost-effectiveness.</li><li><a href="https://www.investopedia.com/terms/s/stablecoin.asp"><strong>Stablecoins</strong></a> are a class of cryptocurrencies whose values are designed to stay stable relative to real-world assets such as the dollar.</li></ul><p>However, there is a crucial difference between <strong>traditional cryptos</strong> and <strong>tokens</strong>. While cryptos are the native asset of a blockchain, tokens are created by platforms and applications <strong>built on an existing blockchain</strong>. In other words, when a cryptocurrency uses or “<em>borrows”</em> another blockchain network, it is considered a token.</p><p>So what exactly are <em>ERC-20 </em>tokens?</p><h3>ERC-20 Tokens</h3><p>Back in 2015, when the Ethereum network first launched, developers noticed that a considerable number of people were using the platform for experimenting with token development. In the beginning, there weren’t any templates or guidelines for developing tokens. This resulted in a variety of tokens that were totally disconnected from each other. To bring this diversity to order, the community devised the <a href="https://eips.ethereum.org/EIPS/eip-20">ERC-20</a> standard to ensure that all tokens were more or less consistent. ERC is short for <strong>Ethereum Request for Comment</strong>, and 20 is the <strong>proposal identifier number</strong>.</p><p>The Ethereum platform in itself consists of a blockchain that is capable of storing transactions and a virtual machine that is capable of running smart contracts. It’s necessary to understand that tokens live on the Ethereum blockchain. They aren’t independent coins and thus rely on Ethereum’s blockchain and platform. In case you’re confused, the native currency on the Ethereum network is <strong>Ether (ETH)</strong>;<strong> </strong>however, Ethereum can still sustain tokens like <strong>ERC-20</strong> and <a href="https://ethereum.org/en/developers/docs/standards/tokens/erc-721/"><strong>ERC-721</strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LzGxkS9NJNsYTvBK.png" /><figcaption><strong>ERC-20 Tokens Live on the Ethereum Blockchain</strong></figcaption></figure><p>ERC-20 is one of the most consequential ERCs since it has become the technical standard for writing smart contracts on the Ethereum blockchain, used for token implementation. ERC-20 incorporates a set of rules that all Ethereum-based tokens must obey. This standard is similar to Bitcoin and Litecoin in many aspects, as they define tokens as blockchain-based assets that can be sent/received and retain value. However, the most notable difference is that instead of running on their own blockchain network, ERC-20 tokens operate on Ethereum’s blockchain network and use gas as the transaction fee.</p><p>Before the inception of the token standard, people who created tokens had a challenging time transacting with each other since all tokens were different from one other. For instance, if a developer wanted to work with another token, they had to understand that token&#39;s entire smart contract code, as there were no specific guidelines or structures for creating new tokens. This was particularly tough for wallets and exchange platforms since adding various types of tokens required developers to go through each and every token&#39;s code and understand it to regulate those tokens on their platforms. Needless to say, it was somewhat problematic to add new tokens to any application. Today, wallets and exchanges use the ERC-20 standard to integrate various standardized tokens onto their platforms and encourage easy exchange between ERC-20 and other tokens. <strong>It’s clear that the new ERC-20 standard has made exchange between tokens systematized and effortless.</strong></p><p>But what actually makes the ERC-20 guideline <em>distinct</em> from any other token standard?</p><p>The standard stipulates <strong>six mandatory functions</strong> a smart contract should implement and <strong>three optional variables</strong> the developer controls.</p><p>To begin with, you can give your token a <strong><em>name</em></strong>, <strong><em>symbol</em> </strong>and state how divisible your token is by defining the number of <strong><em>decimals</em></strong>. However, you must also obey a set of mandatory functions, which are a bit more complex and listed below:</p><ul><li><strong><em>TotalSupply:</em></strong><em> </em>Provides details about the total token supply</li><li><strong><em>BalanceOf:</em></strong><em> </em>Provides the account balance of the owner’s account</li><li><strong><em>Transfer:</em></strong> Executes transfers of a determined number of tokens to a specified address</li><li><strong><em>TransferFrom:</em></strong><em> </em>Executes transfers of a determined number of tokens from a specified address</li><li><strong><em>Approve: </em></strong>Authorizes a spender to withdraw a set number of tokens from a designated account</li><li><strong><em>Allowance: </em></strong>Returns a set number of tokens from a spender to the owner</li></ul><p>If you’re familiar with <strong>Object-Oriented programming</strong>, you can correspond ERC-20 to an Interface. If you want your token to be an ERC-20 token, you must implement the ERC-20 interface, which compels you to enforce these functions.</p><p>Now that we know what ERC-20 tokens are and how they work let’s dive deeper into how we can create and deploy our own token.</p><h3>What You’ll Need</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vebl3jdUrXlci5n6ERUzbA.png" /><figcaption>Photo by <a href="https://unsplash.com/@dose?utm_source=medium&amp;utm_medium=referral">Dose Media</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Metamask:</h4><p>When deploying a smart contract (Ethereum Mainnet or Test Network), you will require funds to cover <a href="https://ethereum.org/en/developers/docs/gas/"><strong>gas fees</strong></a> and therefore need a wallet to store these funds. I highly recommend Metamask as your crypto wallet, although other options exist.</p><h4>Remix — Ethereum IDE:</h4><p>After trying multiple IDEs, I found Remix to be the best since there is no installation or need to open the terminal. I used Remix to write and deploy the <strong>smart contract</strong> for my token.</p><h4>Etherscan:</h4><p>Want to see the result of your hard work? With Etherscan, you can search the entire Ethereum blockchain (including <a href="https://ethereum.org/en/developers/docs/networks/"><strong>test networks</strong></a>) for free. It displays past transactions, wallets, smart contracts, and other information related to Ethereum-based assets.</p><h3>Building the Token</h3><h4>Step #1: Setting up Your Workspace</h4><p>Set up your remix workspace with a solidity file, and name it<strong> token.sol.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*HwsuA9AyFHzss95Sa0mCoA.png" /></figure><h4>Step #2: Declaring License + Solidity Version</h4><p>To start, I declared the license, which is an MIT license. When announcing the solidity version, I recommend going with the latest one (unless you are following an older tutorial or a feature you require is no longer available).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*x3FD2SMFqj-4xqVqsyIEFw.png" /></figure><h4>Step #3: Safe Math Library</h4><p>Call the safe math interface to use math functions in the contract.</p><blockquote>This library provides mathematical functions that protect your contract from overflows and underflows. <strong>Overflow</strong> occurs when an arithmetic operation tries to form a numeric value outside the range that can be defined with a given number of bits.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FHg9KagFJC3cvGb8V0dlkg.png" /></figure><h4>Step #4: Implementing Mandatory ERC-20 Functions</h4><p>Remember the mandatory functions that every ERC-20 token must include? Well, it’s time to add them to our smart contract!</p><p>The first of the six, which is the totalSupply function essentially returns the amount of these tokens that exist. This means that the total sum of the token balances of all the token holders must correspond with the total supply. Along with that, thebalanceOf function returns the balance of the owner of the address using the contract.</p><p>Thetransfer function enables transfers of tokens from the person who called the contract to another address. The transferFrom function, on the other hand, refers to the transfer of tokens you do not own but have been approved to spend. It is used together with the approve function when an address establishes a certain allowance of tokens for another address to spend for them.</p><p>Finally, the allowance function returns the amount which the spender is still allowed to withdraw from the owner.</p><blockquote>Allowance or access permissions allow a third party to have the right to carry out a transaction of a specific amount of our tokens, which are associated with our address. For example, this can be used to authorize a contract to transfer tokens on your behalf or to charge fees in sub-currencies.</blockquote><p>The event functions are needed if the ERC-20 contract changes for whatever reason, effectively notifying services outside of the blockchain to let users know something went wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fQx6SmSrF48g5KFM9l3U5A.png" /></figure><h4>Step #5: Contract Function</h4><p>A contract function to receive approval and perform a function in one call.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tdJ6oQU85mPq_CuuNd_kyg.png" /></figure><h4>Step #6: Token Contract + Mapping</h4><p>In my case, I chose to call itOpioid Tracking Token (sneak peek of my next project) but you can replace this with the name of your own token. Below the name, we have four defined variables— the first will keep track of the total supply, and the other three are utilized to enhance readability throughout the contract.</p><p>The two mapping functions give users the ability to spend their tokens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mUlRfg0onpC1IjJ_8O36Rg.png" /></figure><h4>Step #7: Customizing Our Token</h4><p>At this point, we are initializing the constructor and choosing our token&#39;s name, symbol, decimals, and total supply value. Then we declare the total supply to be equal to your wallet’s balance for this token.</p><p>Using this, we can customize the token. The token details can be adjusted according to the needs of your own project!</p><ul><li>Opioid Tracking Tokenis the <strong>name</strong> of the token.</li><li>OPTis the <strong>token symbol</strong>, which is short for the token&#39;s name.</li><li>18is an integer value that represents <strong>token decimals. </strong>This<strong> </strong>determines how divisible your token is. The standard is 18, so I opted to go with that.</li><li>1000000000000000000000is the <strong>token supply,</strong> and an integer value. This will determine the total quantity of tokens in existence. Note that the total supply value must have additional zeros depending on your decimals. For example, if your Token Decimals value is four and you want 100 tokens in existence, then you would enter 100000.</li><li>0xaD29B940d55757c4B19DF62f7D7157c16e7Fdb24 is the Wallet Address.Replace this with your <strong>Metamask Wallet Address</strong> (you can copy and paste this directly from the Metamask extension in your browser). This is also where the initial pool of tokens will go.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uwiKwoKQJI6KIVLRbMus7Q.png" /></figure><h4>Step #8: Final Functions</h4><p>totalSupply returns the total supply of tokens.</p><p>balanceOfwill return the balance or amount of tokens held at the wallet address.</p><p>transfer will execute the transfer of tokens from the sender’s account to a different one. The transfer function must emit the transfer event (created earlier) on a successful transfer of tokens.</p><p>transferFrom is what a spender calls to spend an allowance. It requires two operations: transfer the amount being spent and lower the allowance by that amount.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0J_IqxqrbGjyrjZCMxRh3w.png" /></figure><p>approve will check if the total supply has the amount of token which needs to be allocated to a user.</p><p>allowance will allow anybody to check if a user has enough balance to perform the transfer to another user.</p><p>approveAndCall will execute the transactions of buying and spending tokens.</p><p>public payable prevents accounts from directly sending ETH to the contract and users paying gas on transactions where they forget to mention the function name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0U_r6OJnjmp-pytv4HRsLQ.png" /></figure><h4>Step #9: Deploying Your Token</h4><p>Now that the code is finalized, let’s compile and deploy our Token! First, confirm that your Metamask wallet is connected to a test network.</p><p>Start by heading over to the solidity compiler and ensure you have chosen the correct one. Once your file is compiled, you should notice a green checkmark on the Solidity Compiler icon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/0*HD__5jOYHQHib-wV.png" /></figure><p>Next, click <em>“Deploy and Run Transactions”</em> on the left and set the environment to <strong>Injected Web3</strong>. Set the contract to your token’s name, and hit deploy. If everything is running correctly, your Metamask extension will open and prompt you to pay gas fees to deploy the contract. Don’t worry; it won’t cost you anything. Instead, we’ll be using test ETH from a faucet. I recommend using the <a href="https://rinkebyfaucet.com/">Rinkeby test network</a>. However, feel free to use whichever one you are most familiar with.</p><p>After clicking confirm, wait a few seconds for your token to be added to the blockchain. Then extend the terminal, and click on <em>“block” </em>to show details about the transaction. Once you locate your contract address, copy it as you’ll require it for this last step.</p><h4>Step #10: View Your Token on Etherscan</h4><p>Are you ready to see your hard work in action?</p><p>Copy the transaction hash from your smart contact and search it on Etherscan. You should see your token popup, and from there, you can verify that you are the owner of it.</p><p>You can also import tokens directly into your Metamask wallet by going into the extension, clicking “<em>Assets”</em><strong><em> </em></strong>then<strong><em> “</em></strong><em>Import Tokens.”</em> Finally, paste your token address and click “<em>Add Custom Token.”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cE1e8xYlq6HUiUdzbYxt9w.png" /></figure><blockquote>This project was modified from <a href="https://www.youtube.com/c/CodeWithJoe">CodeWithJoe’s</a> How To Create Your Own Ethereum Token tutorial. See the original Github project here:</blockquote><p><a href="https://github.com/CodeWithJoe2020/ERC20Token">GitHub - CodeWithJoe2020/ERC20Token: Basic ERC20 Token</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a4a0919b5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Water Evaporation: A New Weapon In The Fight Against Climate Change]]></title>
            <link>https://giriknarang.medium.com/water-evaporation-a-new-weapon-in-the-fight-against-climate-change-a00075e28118?source=rss-3876314641ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/a00075e28118</guid>
            <category><![CDATA[climate]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[climate-change]]></category>
            <dc:creator><![CDATA[Girik Narang]]></dc:creator>
            <pubDate>Fri, 06 May 2022 03:08:52 GMT</pubDate>
            <atom:updated>2026-08-04T22:01:55.332Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*0DiSghftbtfzNcCE" /><figcaption>Photo by <a href="https://www.pexels.com/@markusspiske/">Markus Spiske</a> on <a href="https://www.pexels.com/">Pexels</a></figcaption></figure><p><strong>Climate change sucks.</strong></p><p>Nowadays, it seems like we hear that a lot. So much so that the actual meaning behind it has started to diminish. While it&#39;s true that we&#39;ve made extensive progress in the last few decades, our world is still far from perfect.</p><p>Today, about <strong>1.2 billion</strong> people worldwide are living with little to no electricity. However, for those with access to energy, nearly <strong>84%</strong> comes from non-renewable sources such as coal, oil and natural gas.</p><p>Well, what about <strong>renewable energy</strong>?</p><p>In efforts to switch to a greener world, we&#39;ve seen tons of hype around alternative energy sources like solar panels, wind farms and geothermal power plants. But it turns out we are a <strong>LONG</strong> way from reaching the <a href="https://www.un.org/en/climatechange/net-zero-coalition">UN&#39;s net-zero emissions by 2050</a> goal. In the US alone, renewable energy sources only make up<strong> 12–15%</strong> of the annual energy production, despite being one of the wealthiest countries. It makes you wonder if these energy sources work so well; why do they play such a minor role in <strong>total energy production</strong>?</p><p>Although several factors underline why we don&#39;t use more renewable energy, <strong>three</strong> central aspects are driving us away from them.</p><p><strong>1) Inconsistency</strong></p><p>Currently, renewables are too inconsistent; the sun doesn&#39;t always shine, the wind doesn&#39;t always blow, you get the point. These fluctuations make them unsuitable for many environments, which renders them to become supplementary energy sources since there&#39;s no guarantee you&#39;ll have the same power generated between two days. Even if we were to overcome these issues, geography and seasonal variations would make it extremely difficult to apply these technologies globally at scale.</p><p>For some additional clarity, here&#39;s the energy generation of a <strong>wind power plant</strong> in contrast to the <strong>energy demands of a city</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9q91AQSzb_Dmh1oNBkAcuQ.png" /><figcaption><a href="https://www.mdpi.com/1996-1073/13/18/4839"><strong>Wind Power Plant vs Citywide Demand</strong></a></figcaption></figure><p><strong>2) Resource Intensity</strong></p><p>When people think of renewables, one of their first thoughts is that these sources are environmentally friendly, which is a bit misleading. While they may not produce <em>direct</em> emissions, they require significantly more minerals and resources than other energy production methods. Especially today, with the global chip shortage, manufacturing and mass-producing &quot;green&quot; technologies like electric vehicles and solar panels are not only problematic but highly resource-intensive. Worse yet, most of these materials will become debris after their 20-year lifespan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uyMDJyImIHqhYy-cbYnT4A.png" /><figcaption><strong>Debris From Damaged Solar Panels</strong></figcaption></figure><p><strong>3) High Land Usage</strong></p><p>The most flawed part about renewables is their inferior power density, which is about <strong>1000x less than natural gas</strong>. In other words, we would need to build 1000 solar farms to produce the <strong>SAME</strong> amount of energy as <strong>ONE</strong> natural gas plant. This results in more deforestation, local community displacement, extinctions, and less land available to feed an ever-growing population. Just think about it; our earth is <strong>30% land</strong> and <strong>70% water</strong>, yet we continue using more and more land.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IYUFn6QOMgP35N2pquySFA.png" /><figcaption><strong>Windmills Require a Ton of Land</strong></figcaption></figure><p>At this point, it’s clear that we need a new form of renewable energy. One that can provide a consistent amount of power, isn&#39;t very resource-intensive, and doesn&#39;t require much land usage. Most importantly, we need it <strong>NOW</strong>.</p><p>As ridiculous as this might sound, there may be a new way to generate energy while sidestepping the previous flaws. A unique energy source that has the potential to generate <strong>365GW of energy per hour</strong> or fulfill over<strong> 70% of the US energy consumption.</strong></p><p>I&#39;m talking about <strong><em>evaporation</em></strong>.</p><h3>How It Works</h3><p>You’re probably a little confused, and that’s okay. How could we possibly harness the water cycle for energy? Well, it&#39;s a bit more complex than that. But before we get into the specifics, let&#39;s briefly go over evaporation.</p><p>In the <strong>water cycle</strong>, evaporation occurs when sun rays warm the surface of the water. The heat from the sun forces the water molecules to vibrate faster and faster until they move so quickly that they escape as a gas (or vapour). Once in the atmosphere, the vapour condenses to form clouds and eventually precipitates back to the ground in the form of rain or snow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/0*uVQ1-0AVoCHLz138.png" /></figure><p>But now, let&#39;s imagine that the vapour, for whatever reason, built up and was unable to leave the surface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/0*mxk93OcJnHTR72sK.png" /></figure><p>That&#39;s essentially what we want to try to accomplish with large-scale <strong>evaporation engines</strong>.</p><p>In a <a href="https://www.nature.com/articles/ncomms8346.pdf">2015 paper</a><em> </em>issued by a team of scientists at Columbia University, they reported using microscale devices that could generate small amounts of electricity using moisture. In these devices, bacterial spores are grown on films and positioned underneath shutter-like structures. The spores swell, and shutters open as humidity increases, <strong>allowing moisture to escape</strong>. As a result, the spores dry out and contract, allowing the shutters to close. A generator can then convert the force produced from the shutters&#39; repeated opening/closing into electricity.</p><p>In other words, when water molecules are turned into vapour, we want to contain them beneath these shutters instead of going directly into the atmosphere. Combined with a particular type of bacterial spore, we have a machine that <strong>generates power simply through changes in humidity levels.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RdVeSFZuBLY5lpwv.jpg" /><figcaption><strong>Looking Beneath the Shutters</strong></figcaption></figure><p>In the prototype above, a yellow layer of tape stretches across the length of the shutters. These tapes contain millions of spores called <a href="https://microbewiki.kenyon.edu/index.php/Bacillus_subtilis"><strong><em>Bacillus subtilis</em></strong></a><em>, </em>which can exist in a dormant state for hundreds of years. What makes them unique, however, is their ability to expand and contract, just like a muscle. <em>Bacillus subtilis </em>spores can continue to perform the necessary mechanical motion even when dead or dormant, which makes them an invaluable component of the device.</p><p>When the shutters of the evaporation engine are closed, it creates a humid environment that <em>Bacillus subtilis </em>spores require for expansion. Once expanded, the shutters open, which allows the vapour to escape. This forms a less humid atmosphere allowing these spores to contract again and, as a result, close the shutters. This <strong>continuous</strong> <strong>cycle</strong> of growing and shrinking bacterial spores that open and close the shutters are connected to an electromagnetic generator that produces a <strong>constant energy supply.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m7lCV9P64FSXzp_MEXw68A.png" /><figcaption><strong>Bacterial Spores Are Essential for Evaporation Engines to Work</strong></figcaption></figure><p>The power produced by the generator will be transported to the grid using similar infrastructure to floating solar farms, but it will eliminate the single most expensive thing that floating solar farms require;<strong> energy storage</strong>. The average US energy storage price is a staggering<strong> $625/kWh. </strong>Since evaporation is a continuous process, the energy generated is consistent; hence, we can<strong> eliminate the storage cost</strong> altogether.</p><p>Now that you understand the technical aspect of the device, you might be wondering what the downside is. If it were flawless, why hasn’t it been implemented yet?</p><p>As expected, there are still a few obstacles preventing us from bringing this technology to a larger scale. So, let&#39;s take a closer look at these challenges.</p><h3>What&#39;s Holding Us Back</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MIhW5ClA8qwUwdGQOcu5qQ.png" /><figcaption>Photo by <a href="https://unsplash.com/@alaskanhoneybee?utm_source=medium&amp;utm_medium=referral">Melissa Bradley</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>1) Altering Weather Patterns</strong></p><p>The most important thing to understand before installing these devices is their influence on a <strong>region&#39;s climate</strong>. It&#39;s difficult to precisely determine what shifts would occur in the water cycle if these devices were to be deployed on a large scale. That being said, to generate the bulk of the country&#39;s electricity, these engines would need to be installed on every inland body of water in the US, which is both <strong>ecologically</strong> and <strong>physically</strong> impossible. Nevertheless, shifting the project to the coastlines poses a similar risk regarding <strong>precipitation</strong>. Since the engines involve retaining vapour underneath the shutters, it&#39;s tough to infer the amount of vapour lost when the shutters eventually open and how that will affect rainfall patterns.</p><p>But this isn&#39;t all terrible news, either. When we focus on one of the most significant problems associated with climate change, <strong>increased precipitation</strong>, things become interesting. In most regions, a reduction in water evaporation is beneficial to us since it <strong>minimizes excessive rainfall</strong>. In other words, as climate change worsens, technology becomes more powerful, and vice versa.</p><p><strong>2) Device Durability</strong></p><p>Another factor to consider when looking at large-scale evaporation engines is their <strong>longevity</strong>. One of its most significant advantages is that it can be manufactured from <strong>cheap biological materials</strong> that are easier to dispose of than solar panels. However, the combination of these biodegradable and cheap materials comes at an expense: <strong>durability</strong>. If these devices were placed on coastal waters, there&#39;s always a chance that a storm could ruin the devices and leave the area toppled. With this in mind, the ideal engine would have to be made to withstand numerous unpredictable weather conditions while keeping costs relatively low.</p><p>It&#39;s crucial to note that water itself doesn&#39;t affect bacterial spores and their ability to function, especially since these spores retain their muscle-like property even when dead, which means that unless wholly demolished, the devices will continue to operate.</p><p><strong>3) Cost</strong></p><p>The ultimate hurdle preventing us from seeing this technology on a large scale is, unsurprisingly, <strong>cost</strong>. Although the proof of concept and technical aspects of an evaporation engine exist, much more research and development are required to make it a reality. We aren&#39;t moving forward with this device because of the lack of ambiguity and risk, but as more money is poured into development, we may see the first practical trials running within the next year or two.</p><h3>Final Thoughts</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0sCAbpRu44ucrSfE" /><figcaption>Photo by <a href="https://www.pexels.com/@spacex/">SpaceX</a> on <a href="https://www.pexels.com/">Pexels</a></figcaption></figure><p>Climate change remains one of our greatest threats. From fires to famine, the consequences are beyond real. Even with such a complex dilemma, the solution is straightforward: <strong>we need cheaper energy</strong>.</p><p>Without energy, our world wouldn&#39;t be the same. It’s why despite understanding the dire consequences, our society is still heavily reliant on fossil fuels; it’s no longer an option but a necessity. <strong>Until we find a cheaper and more sustainable source of energy, things aren’t going to improve as fast as we want them to.</strong></p><p>On the bright side, innovation in alternative energy space has never been better, and evaporation engines are just another example. Even though the future of this technology is uncertain, I believe it is a promising step toward <strong>promoting change in the alternative energy sector </strong>and <strong>safeguarding our future</strong>.</p><h3>Key Takeaways</h3><ul><li>While many of us worry about minimizing our carbon footprint, there are people in our world who don&#39;t have access to power at all.</li><li>Current renewables don&#39;t play a significant enough role in total energy generation.</li><li>We need a new form of renewable energy that provides consistent power, isn&#39;t resource-intensive, and doesn&#39;t require much land usage.</li><li>Using evaporation engines, we could harness the evaporation process to generate consistent power for up to 70% of the US.</li><li>These devices work by trapping moisture beneath the machine, allowing bacterial spores to expand and contract. The repeated expanding and contracting causes shutters to generate a mechanical force (through the constant opening/closing) which can be converted to energy.</li><li>These engines have three conceivable drawbacks: altering weather conditions, durability and large-scale development costs. However, as more time and money are invested into this technology, it won&#39;t be long before we see it used in real-world trials.</li><li>This technology holds so much promise for resolving the current energy crisis and developing an entirely new method of generating renewable energy that is cheaper, efficient, and reliable.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a00075e28118" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IPFS & Filecoin Explained]]></title>
            <link>https://giriknarang.medium.com/ipfs-filecoin-explained-95009844475a?source=rss-3876314641ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/95009844475a</guid>
            <category><![CDATA[ipfs]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Girik Narang]]></dc:creator>
            <pubDate>Thu, 24 Feb 2022 15:31:52 GMT</pubDate>
            <atom:updated>2026-08-04T21:33:16.436Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S1t2G7-BrO8wshKR.jpg" /></figure><p>Nowadays, our society is incredibly reliant on the internet. Whether we’re communicating with others, consuming media, or even handling our finances, it’s safe to say that we put a lot of faith in the modern internet. The web, however, holds one major downside: <strong>centralized information</strong>. Almost everything we consume is stored on server farms under the control of a single organization.</p><p>Could you imagine what it would be like if massive sites like YouTube or Wikipedia went down?</p><p>But the problems with centralization don’t just stop there. We’re witnessing <strong>censorship</strong> all over the world. Since most content is hosted on significant sites like Amazon Web Services and Google Cloud, blocking access to certain content becomes almost effortless for governments or other large entities. For example, in 2017, Turkey ordered internet providers to block access to Wikipedia because they saw the site as a threat to national security. Even in other parts of the world, we see governments brainwashing and altering the viewpoints of their citizens simply by choosing what people can and can’t see.</p><p>It doesn’t take a genius to realize that today’s centralizing of the web isn’t good. This begs the question — why continue to rely on such a model? Well, the answer lies in our standards. We want sites, images and videos to load quickly and in high quality, and centralizing servers allow companies to control how fast they deliver this content to us.</p><p>Consequently, it is essential to find a new alternative that does not compromise the <strong>quality</strong> and <strong>delivery</strong> of its content but also operates on a <strong>decentralized</strong> platform. Well, that’s where IPFS comes in.</p><h3>IPFS</h3><p>IPFS or <strong>InterPlanetary Filing System</strong> is a protocol and peer-to-peer network for storing and communicating data in a distributed file system. Created by Juan Benet, the founder of <a href="https://protocol.ai/">Protocol Labs</a>, he envisioned a faster, safer and more open decentralized version of the web. IPFS was designed to look like a merger of GitHub and BitTorrent. BitTorrent allows you to move large files quickly, and GitHub gives you built-in versioning of your data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7uLfWOfHuMANw--i.jpg" /></figure><p>Now that’s cool and all, but what actually makes IPFS different from the modern web?</p><p>Currently, when you want to access a file from the internet, you tell your computer where to find the resource you wish to acquire. This location is usually in the form of a URL. This method for accessing resources is<strong> location-based addressing</strong>. The main problem with this solution is that it is inaccessible if the server is offline. To help address this issue, IPFS introduces the concept of <strong>content-based addressing</strong>. When requesting a specific resource, you do not need to specify the location; you only have to identify what you are looking for. Every file is assigned a <strong>hash</strong>, which is essentially a unique identifier for the file. So when you want to access a specific file, you simply ask the network who has a copy with the particular hash. Once the request is made, someone on the IPFS network will provide the requested resource.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3LEq__UNdshgaNtRsPn-6g.png" /><figcaption><strong>Centralized Servers vs IPFS</strong></figcaption></figure><p>Let’s compare a traditional file directory system to the IPFS structure. A conventional system has a main folder with subfiles and folders inside. With IPFS, each folder and file is its own <strong>object</strong>. These objects link to each other when necessary. Another cool feature is its ability to support versioning, similar to Github. The system creates a new commit object when a file is added to the IPFS. The purpose is to tell the order the files were added. Commit objects link up the same way regular objects do, which helps store the file in sequential order.</p><p>But how does storage work? Surely there has to be a size limit to each file. This brings us to the data storage component of IPFS. Each file can store 256 KB of data and links to other objects. <strong>Linking</strong> makes storing data larger than 256 KB on the IPFS possible. Let’s imagine you are holding a picture larger than that, it will get broken up into multiple objects, and the system will create an empty object that will link to all the objects that form that picture.</p><p>Now from here, where things get even more interesting is the introduction of a <strong>paid model</strong>, incentivizing usage of the system and rewarding people by contributing to this network.</p><h3>Filecoin</h3><p>The Filecoin network was also founded by Juan Benet (Protocol Labs) to incentivize IPFS usage through a paid model. He compares it to Airbnb; the same way people have unused rooms, there’s a ton of storage in the world that’s going unused. Filecoin gathered massive attention during its ICO and collected a record-breaking $257 million from high-profile venture capitals. The Filecoin mainnet launched in October 2020, and since then, the network has grown exponentially, reporting a combined storage capacity of<strong> 14+ EiB</strong> thanks to the help of<strong> 3,600+ storage providers</strong> from around the globe.</p><p>For reference, <strong>1 EiB</strong> is enough storage for:</p><ul><li>290M 1080p movies</li><li>4,500 Wikipedias</li><li>685,000 years of continuous video calls</li><li>19 copies of the entire Internet Archive</li></ul><p>In Filecoin, users essentially pay to store their files on storage providers. Storage providers are computers responsible for holding files and proving they have stored them correctly over time. Anyone who wants to have their files stored or get paid for storing other users’ files can join Filecoin. Additionally, available storage and the price of that storage are not controlled by any single company. Instead, Filecoin facilitates <strong>open markets for storing </strong>and<strong> retrieving files</strong> that anyone can participate in. In exchange for storing files, storage providers earn units of <strong>FIL</strong>. Filecoin’s blockchain records transactions of sending and receiving FIL, along with proofs from storage providers that they are storing files adequately.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*412y3dVMo3qvvxoRFep2Yg.png" /></figure><p>Today, Filecoin has had over <strong>21 million uploads stored</strong> across <strong>16,000 users</strong>. Although the coin is relatively low in price (around $17.00), I believe that as we truly understand the weaknesses and disadvantages of centralization, decentralized options such as Filecoin will see a massive spike in users and effectively alter our current perception of the web.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qe_ETfe1CsF0Keaurh5lUQ.png" /><figcaption><strong>FIL YTD Price (USD)</strong></figcaption></figure><h3>Final Thoughts</h3><p>It’s clear that without data, there is no future. Just like we see the rapid development of society and various technologies, data storage is no exception. It will be interesting to see if IPFS continues to live up to its hype of being the future of data storage or if we see a new solution to centralization emerge in the coming years.</p><p>If you’re new to the space or want to learn more about the technology, check out this video to learn more about IPFS from the founder himself!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FzE_WSLbqqvo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DzE_WSLbqqvo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FzE_WSLbqqvo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e8cca6ee7547f55d637cb01d11d4767e/href">https://medium.com/media/e8cca6ee7547f55d637cb01d11d4767e/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95009844475a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain Will Completely Revolutionize The Way We Vote]]></title>
            <link>https://giriknarang.medium.com/blockchain-will-completely-revolutionize-the-way-we-vote-b69239a8a1af?source=rss-3876314641ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/b69239a8a1af</guid>
            <category><![CDATA[voting]]></category>
            <category><![CDATA[dapps]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Girik Narang]]></dc:creator>
            <pubDate>Thu, 03 Feb 2022 05:40:28 GMT</pubDate>
            <atom:updated>2026-08-04T21:30:40.190Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Making Elections Transparent and Fair; Using a Voting Dapp.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cpR0_AROblkY8BtB" /><figcaption>Photo by <a href="https://unsplash.com/@ajaegers?utm_source=medium&amp;utm_medium=referral">Arnaud Jaegers</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Think about what happens in an election. You get your ballot out, and you pick your candidate. It seems simple. Yet most people never wonder where these votes go, who counts them or what even happens to them. As citizens, we barely know anything about our election process. The issue with the current system is that votes (whether electronic or on paper) all go through a centralized server or hub. With anything centralized, it&#39;s a lot more vulnerable since it isn&#39;t challenging to breach this centralized server and tamper with the votes.</p><p>In other words, <strong>centralized servers enable </strong><a href="https://en.wikipedia.org/wiki/Electoral_fraud"><strong>electoral fraud.</strong></a></p><h3>The U.S Presidential Election (2020)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AYbEMisDwdARnbh4.JPG" /><figcaption>Photo by <a href="https://www.nbcnews.com/">NBC News</a></figcaption></figure><p>The year 2020 was one of the craziest in recent memory. But for Americans, it was a whole other story. Who knew that months of political conflict, protests, a pandemic, and an upcoming election would be a recipe for disaster?</p><p>However, after months of candidates battling it out, the country finally decided who its next president would be. But for the second election in a row, the winner was accused of tampering with the votes.</p><p>It became clear that people didn&#39;t have faith in security and transparency with how the current election system works. Every election, there is an abundance of controversy regarding the accuracy of the results.</p><p>Moreover, with the Covid-19 Pandemic, having people gather in large groups to vote is simply unsafe. The mail-in voting system was proven inefficient and significantly increased the time it takes for the entire election process to occur. In-person voting is inaccessible to citizens who cannot access transportation, those living abroad, or those employed by the military. Further complicating matters, ballots are counted by hand, which makes the whole process lengthy and often runs the risk of recounting ballots repeatedly to ensure the results are as accurate as possible. With online voting platforms, a person risks losing the anonymity that comes with voting in a democracy, and the security measures aren&#39;t enough to prevent a breach from occurring.</p><p><strong><em>A simple hack can forever change the future of a country.</em></strong></p><p>We need a new way of voting that&#39;s accurate, efficient, and constantly maintains a real-time poll. A system available to everyone, with no risk of votes being tampered with, and where the identity of everyone is anonymous. That&#39;s where <a href="https://www.investopedia.com/terms/b/blockchain.asp"><strong>blockchain</strong></a> comes in.</p><p>In fact, rather than <em>explaining</em> how the application works, I will show you how you could host an election by <em>building</em> your own decentralized voting application.</p><h3>Building A Voting Dapp</h3><p>Before we get into making the application, let&#39;s define some basic terms:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vgssc8NsE9NrRgsa" /><figcaption>Photo by <a href="https://unsplash.com/@cgower?utm_source=medium&amp;utm_medium=referral">Christopher Gower</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><a href="https://ethereum.org/en/developers/docs/smart-contracts/"><strong>Smart Contracts</strong></a></p><ul><li>Smart contracts are self-executing digital contracts with the terms of the agreement between buyer and seller directly embedded into the code</li><li>They render transactions traceable, transparent, and irreversible</li><li>The most popular blockchain for running smart contracts is <strong>Ethereum</strong></li></ul><p><a href="https://ethereum.org/en/dapps/#what-are-dapps"><strong>Decentralized Applications (dApps</strong></a><strong>):</strong></p><ul><li>A dApp is a digital application that runs on a blockchain network of computers instead of relying on a single computer</li><li>They are entirely decentralized (free from the control and interference of a single authority)</li><li>Key benefits of dApps are their ability to safeguard user&#39;s privacy, their lack of censorship, and their flexibility</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cwef6um6pWQ4sOlw7NCFMg.png" /><figcaption><strong>Traditional Web vs Decentralized App</strong></figcaption></figure><h3>What You&#39;ll Need</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MR1yDmOBmy3gFz4P" /><figcaption>By <a href="https://www.pexels.com/@karolina-grabowska">Karolina Grabowska</a> on <a href="https://www.pexels.com/">Pexels</a></figcaption></figure><h4>Metamask:</h4><p>When deploying a smart contract (Ethereum Mainnet or Test Network), you will require funds to cover <a href="https://ethereum.org/en/developers/docs/gas/">gas fees</a>; and therefore need a wallet to store these funds. I highly recommend Metamask as your crypto wallet, although other options exist.</p><h4>Remix — Ethereum IDE:</h4><p>After trying multiple IDEs, I found Remix to be the best since there is no installation or need to open the terminal. I used Remix to write and deploy the smart contract (backend).</p><h4>Replit:</h4><p>Also, an online IDE which I used for the interactive portion (frontend) of the dApp.</p><h3>Writing The Smart Contract (Backend)</h3><h4>Step #1: Setting up Your Workspace</h4><p>Set up your remix workspace with a solidity file, and name it <strong>election.sol.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*UhRruBNvKxGjbLuCZQo29Q.png" /></figure><h4>Step #2: Declaring License + Solidity Version</h4><p>To start, I declared the license, which is an MIT license. When announcing the solidity version, I recommend going with the latest one (unless you are following an older tutorial or a feature you require is no longer available).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D9gFyTJ_qmP1ix7HikXFYQ.png" /></figure><h4>Step #3: Define A Contract</h4><p>Next, define a contract using the &quot;contract&quot; statement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kUeop_FwbIv_9nv3ggTtCg.png" /></figure><h4>Step #4: Define The Candidate Structure</h4><p>Each candidate has an ID (integer), name (string) and vote count(integer).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*dqw1oBsJLpyfZxgFI3vqVQ.png" /></figure><h4>Step #5: Mapping Candidates + Voters + Candidate Count</h4><p>We need a place to store our candidates and save the candidate structure; we can do this with mapping. Using mapping in Solidity is similar to using a hash table or dictionary in any other language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*uaigcT4RKeX8KDPfrmkB7A.png" /><figcaption><strong>eventVote</strong> is explained in step #8</figcaption></figure><h4>Step #6: Introduce Your Candidates</h4><p>Now it&#39;s time for you to have fun with the election. To go along with the article&#39;s theme, I went with <strong>Trump</strong> and <strong>Biden</strong>, but you can use whatever you want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*rEX3tp4dtCtwb4TjwQ-gDA.png" /></figure><h4>Step #7: Add Candidates Function</h4><p>This allows us to add additional candidates to the contract.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n2EkyFym5hE4Fi4iTZ2UdQ.png" /></figure><h4>Step #8: Define Vote Function</h4><p>This function ensures that only one vote per address can be cast, and when they vote, the vote counter adds only one vote to the current count. Then we can check whether an address has voted if it sends back a <strong>true</strong>. This section also ties into the eventVote function on step #5, which ensures you can only vote once and for a valid candidate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PxiqKbK5oz4jkciQi6H5JA.png" /></figure><h4>Step #9: Return The Vote Count For A Candidate</h4><p>This last function gives us the total vote count of a candidate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JfaAMqfSQllEfDkt3hIQeA.png" /></figure><h4>Step #10: Test + Deploy Your Contract</h4><p>Deploy your contract to the JavaScriptVM to play around with the voting features. Once satisfied, I recommend deploying to a test network of your choice. You could deploy it directly to the Ethereum Mainnet; however, gas fees are ridiculously high. If you want to see your application in action, use a test network instead <a href="https://medium.com/coinmonks/the-many-ways-to-deploy-your-smart-contract-to-rinkeby-network-38cadf7b20be">(I used Rinkeby).</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*C7c9vkQc3Ja6w9iZJLm4dA.png" /></figure><p>Once the contract is deployed, we can start developing the application&#39;s frontend!</p><h3>Making It Interactive (Frontend)</h3><h4>Step #1: Set Up New Repl</h4><p>Go to your <a href="https://replit.com/~">Replit</a> account and create a new repl with <strong>HTML/CSS/JS</strong> for the primary language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*lG9ONdQ0NX6DR0NUm8iPWQ.png" /></figure><h4>Step #2: Create The Following Files</h4><p>If you want to create each file as you progress, that&#39;s fine, but I recommend creating them beforehand to avoid confusion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*GJt9RNCe8ouVJpJ68wJbLg.png" /></figure><h4>Step #3: Import The ABI (Application Binary Interface)</h4><p>A smart contract is stored as bytecodes in the blockchain under a specific contact address. Well, the ABI is needed to access this bytecode and essentially tells you which functions you can call on and guarantees that the function will return data in the form you expect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*641aI0YR30eWVtj0oroQeA.png" /></figure><p>Once copied, paste it into the contract.js file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WIG0FjXEwtpXzhSjViNMDQ.png" /></figure><h4>Step #4: Import The Smart Contract Address</h4><p>Next, we&#39;re copying our contract address from Remix into our contract.js file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*B25zzhP6KTvZlaT6-2BH0A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LWmZtVXijGmLeX2L0FH_5Q.png" /><figcaption><strong>Your Smart Contract Address Won&#39;t Be the Same as Mine</strong></figcaption></figure><h4>Step #5: Set Up The Index.js File</h4><p>The most important parts of the index.js file are <strong>web3-eth-contract</strong> because that allows us to interact with the smart contract and <strong>public/index.html</strong>,<strong> </strong>enabling us to connect with the HTML file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VvFgC5_f6uE7Dn0kA7347g.png" /></figure><h4>Step #6: Set Up The Public/index.html File</h4><p>At this point, you need to import a few scripts into the HTML file. However, I&#39;ll also leave a link to the code at the end of the article to make things easier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*vAn0UpbOT6pznS723JTPtg.png" /><figcaption><strong>You Can Find the Full Code for This Project in the Attached Video (End of Article)</strong></figcaption></figure><h4>Step #7: Create A Table For Candidates + Votes</h4><p>Next, we create a table to display the candidates and votes using HTML. Depending on how you want your dApp to look, you could either copy the code below or add some of your elements to take it to the next level!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*zHl7jzBreKzM-qnxY0wUOA.png" /></figure><h4>Step #8: Connect Metamask Function</h4><p>We can connect a user&#39;s Metamask wallet address to the application using web3.js functions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*8uhh6zSx9ZIp_WJedW_Oow.png" /></figure><h4>Step #9: Get Current Vote Count</h4><p>Now we are essentially writing the function that takes the vote count values of each candidate and updates them in the table we created earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BXTm8D4Ovl5iNpO_cr6SgQ.png" /></figure><h4>Step #10: Get Current Account Function</h4><p>Here we have a function to get the current account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fwsnDulHZDBqCRxCI_H1ZQ.png" /></figure><h4>Step #11: Create Vote Function</h4><p>When a vote is initiated, it will send a voting action to the blockchain through the smart contract and register your vote.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vmz31QYcgWuWJD0F8G0kSw.png" /></figure><h4>Step #12: Test Your Application</h4><p>Finally, we have arrived near the end; it&#39;s time for you to test your dApp. To do this, enter <strong>node index.js</strong> in the shell and click the Run button at the top of the screen. Your dApp should launch and look similar to what I have below, depending on any changes you might have made in the HTML file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mlhaKoPYVfG92f90s3-uCg.png" /></figure><p>At this point, the app should be up and running. I recommend you test it with secondary accounts on your computer by importing or creating new accounts through your Metamask wallet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*QHCCRc2-_XaZdEBHXWe2_w.png" /><figcaption><strong>Newly Created Accounts Cannot Be Deleted!</strong></figcaption></figure><blockquote>This project was modified from <a href="https://www.youtube.com/c/DappUniversity">Dapp University</a>’s How To Build An Ethereum Dapp tutorial. See the original Github project here:</blockquote><p><a href="https://github.com/dappuniversity/election">GitHub - dappuniversity/election: A Decentralized Ethereum Voting Application Tutorial</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b69239a8a1af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Blockchain Can Be Implemented In Prisons]]></title>
            <link>https://giriknarang.medium.com/how-blockchain-can-be-implemented-in-prisons-d6d436d98f36?source=rss-3876314641ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6d436d98f36</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Girik Narang]]></dc:creator>
            <pubDate>Thu, 11 Nov 2021 21:57:39 GMT</pubDate>
            <atom:updated>2026-08-04T21:35:35.450Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LkVMqAiuRt3AWaLw" /><figcaption>Photo by <a href="https://unsplash.com/@larryfarr?utm_source=medium&amp;utm_medium=referral">Larry Farr</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>2.3 Million.</strong></h3><p>That&#39;s the number of people incarcerated right now in the <strong>US alone</strong>. Yet it doesn&#39;t compare to the nearly 10 million Americans who have gone to bed in a cell. So how can we ensure everything inside runs smoothly with so many people behind bars?</p><p>As expected, these prisons are flooded with <strong>bribery</strong>, <strong>assault, narcotics smuggling, </strong>and<strong> stale food concerns. </strong>But unfortunately, these issues aren&#39;t reported most of the time, trying to protect the prison&#39;s reputation, and we don&#39;t have enough people talking about these problems or even aware of them.</p><p>Despite all this, I believe there is a potential solution to all these issues; combining blockchain with existing tech. So before I tell you <strong>three ways blockchain can be implemented in prisons</strong>,<strong> </strong>let&#39;s first lay out some basics.</p><h3>Understanding Blockchain</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vxxejPsxOGIYGJ7W.png" /></figure><p>Many of us look at blockchain as the technology that powers bitcoin. While this was its original purpose, blockchain is capable of much more.</p><p>As the name indicates, a blockchain is a chain of blocks containing some form of information, or a bit more technical; it is a <strong>ledger</strong> (logbook) of transactions between <a href="https://medium.com/coinmonks/blockchain-what-is-a-node-or-masternode-and-what-does-it-do-4d9a4200938f"><strong>nodes</strong></a>. Blockchain is also entirely <strong>decentralized</strong> (no third party involved) and <strong>distributed</strong> (anyone part of it has access to the ledger of transactions).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LnWB3PEL24tVP0IZpkkEeA.png" /></figure><p>One of the main perks of blockchain is its decentralized servers. They are far more effective than centralized servers, as the system does not have a single weak point that hackers can exploit. As a result, you can ensure the data will be safe across all nodes at all times.</p><p>Now, say someone did manage to modify a single block for some reason. Perhaps to profit from faulty crypto transactions or try altering medical records. What would prevent them from getting away with this?</p><p>Well, that&#39;s where <strong>hashing</strong> comes in! An input string (mix of numbers, letters and media files) transforms into a fixed-length hash (typically 256 bits). The hash function ensures that no block can be changed or edited.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*YGv-A8PExl_zOl1zbJDH9w.png" /><figcaption><strong>Each Block Contains the Hashes of the Previous Block</strong></figcaption></figure><p>Now here&#39;s where things get even better; the blockchain contains every single block&#39;s hash function and the previous block&#39;s hash. As a result, if the data stored in a block changed, the hash would also change, so the hashes of the following blocks would no longer match, thus making it <strong>almost impossible</strong> to alter data on the blockchain.</p><p>But how do nodes verify if blocks are legitimate? Well, blockchains rely on something called a <a href="https://ethereum.org/en/developers/docs/consensus-mechanisms/"><strong>consensus algorithm</strong></a>. It&#39;s a process used to reach an agreement with all the peers in the network about the present state of the distributed ledger. Each new block added to the blockchain is guaranteed to be the only version of the truth accepted by all nodes.</p><blockquote>The blockchain consensus algorithms serve as the primary means of preserving decentralization, integrity, and security.</blockquote><p>The two most common consensus algorithms are proof of work (PoW) and proof of stake (PoS). However, both algorithms have their flaws.</p><p><a href="https://blockgeeks.com/guides/proof-of-work-vs-proof-of-stake/">Proof of Work vs Proof of Stake: Basic Mining Guide</a></p><p>So now that we understand the fundamentals behind blockchain, let’s look at few interesting ways we can use blockchain to bring <strong>enhanced security</strong>, <strong>greater transparency</strong> and<strong> instant traceabilty</strong> to the prison system.</p><h3>Blockchain To Track Inmates</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RJhbrTdbz1X4tBkg" /><figcaption>Photo by <a href="https://unsplash.com/@ansleycreative?utm_source=medium&amp;utm_medium=referral">Matthew Ansley</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Recently, I read an article about using blockchain technology to protect elephants from poachers. It worked by tracking the location of the elephants using a GPS collar and documenting this information on a decentralized database that was carefully monitored to ensure the wellbeing of the animals.</p><p>Applying this concept, my view of solving the <strong>violence, narcotics </strong>and<strong> corruption</strong> problems most American prisons face; is a smartwatch.</p><p>This would work because <strong>everyone</strong> inside a prison facility would be required to wear one at all times. This includes prisoners, correctional officers, staff and visitors. However, this is different from any other smartwatch because it would <strong>work with blockchain</strong>.</p><p>Here&#39;s an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U7dRabLpXxPqlIyseuCexQ.png" /><figcaption><strong>Using Blockchain to Locate + Record Inmate and Guard Locations</strong></figcaption></figure><p>Inmates A and B are in a room. Since they are past the imaginary purple line, their monitor updates their location and heart rate on the blockchain. Now let&#39;s say something happens to inmate A. The watch would immediately detect a significant heart rate change, so it would record this on the blockchain. When inmate A is eventually located, the blockchain will have a complete list of everywhere and everyone that was recently around them.</p><p>Apart from the security of inmates, the monitor would also report drug usage to a blockchain. For example, illegal drugs such as cocaine or amphetamines are sure to cause disruptions in heart rate for their users. So if we could look at the blockchain afterwards and figure out a pattern of when heart rates are disrupted, eventually, we could get to the inmate before the next time they&#39;re using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zE-DOWT0n0W4ixuw" /><figcaption><strong>Smartwatch to Track Inmate Locations</strong></figcaption></figure><p>Now it&#39;s unrealistic to think that an inmate would want to keep the watch on at all times. So the smartwatch would be an add-on to the current security system on the occasion that an inmate was to remove or significantly damage the device. In this situation, the <strong>last location of the smartwatch</strong> (before it is removed or destroyed) would be recorded in the blockchain.</p><p>Unfortunately, the central issue with this solution is that the <strong>expenses</strong> involved would be pretty high. Creating smartwatches for an entire prison would require a ton of R&amp;D and funding to make them more durable and cost-effective.</p><p>On the other hand, private prisons make an outlandish <a href="https://www.statista.com/chart/24058/private-prisons/#:~:text=Private%20prisons%20make%20a%20profit,experienced%20and%20well%2Dequipped%20officers."><strong>$374 million annually</strong></a>, and the industry as a whole is worth upwards of <a href="https://www.ibisworld.com/united-states/market-research-reports/correctional-facilities-industry/"><strong>$9.3 billion</strong></a>, which means such an expenditure is relatively feasible. Whether or not these prisons decide to make this investment, it&#39;s definitely a cool concept that we could see more of soon.</p><h3>Blockchain To Track Food Shipments</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*flyfeZql81NnJSy6.jpg" /><figcaption><strong>Typical Meal at Texas State Penitentiary</strong></figcaption></figure><p>Probably the most attainable of the three, another intriguing way to apply blockchain is to prison supply chains. This concept isn&#39;t anything new; in fact, using blockchain in supply chain management has been around for a few years and has already been used by companies like <a href="https://www.microsoft.com/en-ca">Microsoft</a> and <a href="https://www.ups.com/ca/en/Home.page">UPS</a>. But how does blockchain actually make supply chain management better?</p><p>Well, some of the <strong>critical advantages</strong> of using blockchain are:</p><ul><li>Audit Transparency</li><li>Better Shipping Data</li><li>Provenance of Shipments</li><li>Reducing Human Error</li><li>Food Safety &amp; Quality</li><li>Reducing Counterfeit Goods</li></ul><p>What&#39;s great about it is that it&#39;s not only a proof of concept. A recent real-world example of this was in 2020 when an E. coli outbreak spanned 19 states and hospitalized 20 people, traced back to leafy greens in the US. It cost them <strong>MILLIONS</strong> to notify the public, track down the contaminated vegetables and remove them from the market.</p><p>Having been hit the hardest, Walmart decided to take a unique approach to prevent a repeat of the disaster. They now require all suppliers of leafy green vegetables to upload data onto a blockchain that tracks produce back to the farm it came from. As a result, Walmart can trace contaminated food within seconds rather than wait weeks for manual inspection, which is invaluable during a product recall.</p><p>Applying the same principle in prisons would make things easier and ensure that food coming in isn&#39;t spoiled. In addition, blockchain simplifies logistics and contracts for correctional facilities and their suppliers. Considering that this has already been accomplished before in other industries and benefits both inmates and the prison, making this a reality is certainly feasible.</p><h3>Blockchain To Monitor Parolees</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N5wfT5rHszAlY0ko.jpg" /><figcaption>Photo by <a href="https://unsplash.com/@kel_foto?utm_source=medium&amp;utm_medium=referral">Hansjörg Keller</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Without a doubt, my favourite application; using blockchain to monitor parolees. Unlike the smartwatch concept, this solves an entirely different set of problems, which I&#39;ll get to in a second. But to understand the purpose of the idea, let&#39;s cover what parole actually entails.</p><p>You can think of parole as conditional freedom for a prison inmate. The parolee gets out from behind bars but must live up to a series of responsibilities — a parolee who doesn&#39;t follow the rules risks going back into custody.</p><p>Prison authorities typically supervise parolees through mandatory visits with parole officers. In addition, parole services (usually a branch of the department of corrections) may provide transitional services tailored to a parolee&#39;s needs, such as shelter or counselling.</p><p>There are a ton of expenses and commitments involved in the process, especially for the parole officers appointed to investigate, report on, and supervise the behaviour of sentenced offenders. Unfortunately, less than half of all parolees complete parole without violating a condition of release, running or committing a new crime. As a result, over 200,000 parolees return to prison each year, which is quite a lot concerning the number of parole officers in the US. Once again, here&#39;s where blockchain comes in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZegpAVZlq90eSbWT0uDiKw.png" /><figcaption><strong>Using Blockchain to Record Parolee Locations and Timestamp Them</strong></figcaption></figure><p>Unlike my smartwatch conception, this idea is actually being tested out right now in Zhongshan, China. To enhance safety in the city, the city&#39;s justice department launched a blockchain and ankle monitor system to survey parolee movements.</p><p>Community service centers that have deployed this technology enable parolees to check in and complete daily duties within the city. Using the blockchain system, they claim the ministry of justice could track convict movements around the clock and get to them easily. Due to the distributed nature of convict data, staff at community corrections agencies and law enforcement agencies everywhere can access the data at any time and take appropriate action if a convict does not follow the required routine.</p><p>Ultimately, they could save a ton of money and reduce the human resources required to physically follow parolees while ensuring they obey laws and perform community service.</p><p>So if we&#39;re seeing all these revolutionizing blockchain applications in other parts of the world, why isn&#39;t there anything similar in the Western world?</p><h3>What&#39;s Holding Us Back</h3><p>At this point, two main things are holding us back from turning these concepts into reality; blockchain is too new for us, and the prison system isn&#39;t considered a priority.</p><p>The truth is that inmates are constantly dehumanized. They are viewed at the bottom of society as no one cares about what they must endure or put up with. This is why blockchain will drastically improve the likelihood of identifying and dealing with crimes in prisons, hold prisons accountable for serving spoiled food, and make parolees easier to monitor.</p><h3>Key Takeaways</h3><ul><li>The prison system is full of corruption and other overlooked issues.</li><li>Blockchain can be utilized to <strong>track inmate/guard movements</strong> to reduce violence and corruption.</li><li>We can apply the technology to <strong>track food shipments</strong> and ensure a certain standard of food is sustained.</li><li>We can also <strong>monitor parolees </strong>more effectively by combining blockchain with existing ankle monitors.</li><li>These solutions aren&#39;t yet a reality, likely because blockchain is too new for us and because nobody wants to take the responsibility of working with prisons.</li><li><strong>My take:</strong> as blockchain becomes more of a societal norm, we may see the technology applied in various aspects of the prison system.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6d436d98f36" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>