<?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 Vatsal Khanna on Medium]]></title>
        <description><![CDATA[Stories by Vatsal Khanna on Medium]]></description>
        <link>https://medium.com/@vatsalkhanna5?source=rss-96379041eea2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*krNV4WPsAGxw8DrRlyfeoA.png</url>
            <title>Stories by Vatsal Khanna on Medium</title>
            <link>https://medium.com/@vatsalkhanna5?source=rss-96379041eea2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:17:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vatsalkhanna5/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[OpenLearn | The Purpose of Machine Learning]]></title>
            <link>https://medium.com/@vatsalkhanna5/openlearn-cohort-1-0-the-purpose-of-machine-learning-aa60d2910901?source=rss-96379041eea2------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa60d2910901</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[openlearn]]></category>
            <category><![CDATA[community]]></category>
            <dc:creator><![CDATA[Vatsal Khanna]]></dc:creator>
            <pubDate>Sat, 14 Jun 2025 19:58:34 GMT</pubDate>
            <atom:updated>2025-11-29T12:02:32.218Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>“</em>Taking the right decision is less important than making the decision right.<em>”</em><br> — <strong>Ajit Doval</strong>, NSA of India</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E0XTa60zWeFrwe8mYx6V0w.jpeg" /><figcaption>The Motto of The OpenLearn Initiative</figcaption></figure><h3>Welcome To Open Learn : Our Learning Pioneers !</h3><p>Hey Pioneers! <br>A Heartfelt welcome to<strong> The <em>OpenLearn</em></strong><em> </em>from the <strong>Pathfinders</strong>! Being the first blog in the series, we’ll cover today, the most interesting parts of Machine Learning, which will establish the vibe, the intuition and the philosophy of this whole process of <strong>Artificial Intelligence</strong> and its Development which stands on the foundations of Machine Learning.</p><p>Before we begin, here’s a small request: please maintain consistency throughout this cohort. Since the results are going to be outstanding if you guys just make sure of being active at least everyday in some or the other way. This entire summer season could be a game-changer for the rest of your college journey.</p><p>And another request is to stay curious, and don’t give up, If a tricky concept arrives, stay strong and smile, take the challenge and win over it! <br>We are all rooting for you! :)</p><h3>Contents Walk-through</h3><p>Before we start, Here’s a quick overview of today’s agenda :-</p><ol><li><em>Why Should You Even Care About Machine Learning?</em></li><li><em>What exactly is Machine Learning ?</em></li><li><em>An End-to-End Machine Learning Project</em></li><li><em>Your Tasks for Today</em></li><li><em>BONUS Resources !</em></li></ol><h3>Why Should you even care about Machine Learning ?</h3><p>On 30th November 2022, OpenAI dropped one of the most revolutionary tech updates in the world, which changed the way we see the tech world, the way we interact with machines, the way we imagine the AI forever by releasing the <a href="https://chatgpt.com/"><strong>ChatGPT</strong></a>. Since then, we have seen the tech world evolve so rapidly that we hardly see a day when there are no talks about AI. We all use it in our day to day lives, Some of us use it to complete our assignments, write blocks of code, ask for personal help, or even generate Ghibli-style art.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BRLOmHEG8VfBgsDv" /><figcaption>An artificially generated Ghibli art collection of famous Indian Movie Scenes</figcaption></figure><p>All this change, brought in by AI, is essentially powered by the most widely used paradigm today: <strong><em>Machine Learning</em></strong><em>. </em>Machine Learning is the backbone or foundation of modern day AI, with an overlapping collection of Statistics, Mathematics and Programming. And it literally means to make the “Machines learn”. But again, a pioneer might wonder, <strong><em>But why should I care about Machine Learning, Vatsal</em></strong> ?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*0_8Q8G5znuvsUN6L.jpeg" /><figcaption>JP Morgan Chase &amp; Co. handles assets of worth exceeding $4 trillion (as of 2024*)</figcaption></figure><p>Well, Here are a few reasons to answer this question -</p><ol><li><strong>Wide-scale Applications of ML</strong> : Have you ever wondered how Netflix knows what you’ll binge next? How do banks detect fraud? What powers Google Search? The answer is - ML. As of 2025 one of <a href="https://www.upgrad.com/blog/highest-paying-machine-learning-jobs-india/"><em>The Most high paying jobs</em></a><em> </em>in the industry since it’s wide range of applications and safest in terms of long term market demand.</li><li><strong>Relevance in the Field of Finance </strong>: The Machine Learning is the basis of Financial markets’ forecasting, trading, and quantitative research for global banking firms such as JP Morgan &amp; Chase, HSBC, Goldman Sachs. Many of the High Frequency Trading Firms such as Jane Street, Tower Research, Jump Trade etc. hire Quantitative traders at record packages from top Indian Institutes.</li><li><strong>The Rise of AI </strong>: As AI is booming, there is a surge in hiring professionals in the field of AI. Even the Software Developers are learning Gen-AI and Agentic AI skills since the high demand in the industry. But a good Programmer cannot be a good AI Developer without having strong foundation of Machine Learning.</li><li><strong>Higher Education/Research </strong>: A lot of ML Researchers/AI scientists are hired in the industry with minimum qualification being a PhD in the field from a reputed institutes. In the institutions of high reputation in India or even globally offer PhD programmes in Machine Learning and related fields. But without a good ML Research experience in U.G., it becomes quite tough to get approved for such roles.</li><li><strong>Philosophical Reasons </strong>: This is one of my personal reasons to carry forward the learning in AI and ML. This field takes me back to my childhood habit of being curious all the time, of questioning why and how things work as they do. And the origin of Intelligence is one such thing for me. Thus by not just having a monetary Incentives but having an inner reason to move ahead in this field, to find reasons and question even the origin of life, intelligence and consciousness.</li></ol><h3>What exactly is Machine Learning ?</h3><p>Let’s understand the whole concept of Machine Learning in simpler terms. <strong>Learning</strong> is the process of acquiring new understanding, knowledge, behaviours, skills, values, attitudes, and preferences. Let’s see the process of learning in humans, for example. A newborn baby is born with no “learning” whatsoever, just a genetic human preconditioning exists, but a child is naive in the sense it doesn’t know any “Information” about the world and the environment, and neither does the child know the counter response for the various environmental conditions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LEE77fXZLFcAmUu3.png" /><figcaption>A Newborn’s Learning curve from age 0 to 12 months</figcaption></figure><p>How does a child learn to do anything ? Well it turns out to be simple 4 step mechanism :-<br>1. Perceive Information from senses.<br>2. Take an action corresponding to information.<br>3. Learn from the consequences of the actions.<br>4. Behave according to “Learnt” information.</p><p>Interestingly, machines can also be made to learn from the external world through a similar process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iBdN1dhsrQ1_XzTOZ2Kgog.png" /><figcaption>Architecture of Supervised Machine Learning Model</figcaption></figure><p>A Machine Learning Task consists of three main components :</p><ol><li><strong>Training Dataset</strong> : This is the “information source” for the machine to learn from. Based on its nature, a machine learning technique can be Supervised, Unsupervised or Semi-Supervised in nature.</li><li><strong>Learning Algorithm </strong>: A Learning algorithm is chosen as per the task of ML Model. For example for continuous numerical predictions we use Regression Algorithms, for Single/Multi-class Classification we use Classification Algorithms.</li><li><strong>Hypothesis </strong>: This is the most important aspect of a Complete ML project. Hypothesis is the final model which can make predictions on real world data. It is the outcome of the whole process, and the goal is to achieve the best performing hypothesis.</li></ol><p>So, enough of buzzwords now, let’s take you on a journey in next step, a day in the life of a Machine Learning Engineer to understand what exactly machine learning does, and how is it done!</p><h3>An End-to-End Machine Learning Project</h3><p>So this is the story of a machine learning engineer’s daily life, let’s take a sneak peek into what is his job and what does he do.</p><blockquote><strong><em>Important Note</em></strong><em> : To visit the entire End-to-End Machine Learning Project’s Jupyter Notebook visit this </em><a href="https://www.kaggle.com/code/vatsalkhanna/uber-fare-prediction-model-86-25-score"><em>Kaggle link</em></a><em>.</em></blockquote><h4>The Problem : Uber Fare Prediction Model</h4><p>So our ML guy is working in this company called <strong>Uber</strong>, which is famous for cab booking services in North America.</p><p>He attends a meet, where the marketing guys are yapping about not making effective and targeted ads for users, the sales guys yap about effective discounting for the customers to be done, and our ML guy sits and hears them carefully. After some thinking he suggests, “What if we could predict how much does it cost for a user to book a cab based on different parameters, would it help you guys make some decisions?”</p><p>Everyone immediately agrees ! They tell him how it could help them do selective discounting and route based traffic allocation for cabs etc. So he asks for time and gets to his desk and starts to work on this Machine Learning Model which <strong><em>Predict Fare for a user based on different input parameters</em></strong>.</p><p>And this is how he starts :</p><h4>Step 1 : Data Gathering</h4><p>Before starting the work, an ML model needs a lot of data to work on. Sufficient amount of data (more is better) lays the basis for making a good hypothesis. So he goes to fetch the Uber archives and asks the team to provide all the data they have for the users, the parameters of journey and the fare. He also finds some data on a platform called <strong><em>Kaggle.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o14owTINhfZRsmOdtg5zpg.png" /></figure><p><strong>Quick Check</strong> : Ponder over this, What kind of learning technique is this ?<br><strong>Hint</strong> : Look at the dataset to determine if model is Supervised, Unsupervised or Semi-Supervised in nature.</p><blockquote><strong>Note<em> : </em></strong><em>The Amount of data directly impacts the accuracy of model. A research work done by </em><strong><em>Peter Norvig</em></strong><em> at </em><a href="https://medium.com/u/be36e94a7e47"><em>Google</em></a><em> named “</em><a href="https://research.google.com/pubs/archive/35179.pdf"><strong><em>The Unreasonable Effectiveness Data</em></strong></a><em>” proved that by increasing the amount of data, beyond a certain threshold, it doesn’t matter which Algorithm is chosen. It all reaches similar accuracy.</em></blockquote><h4>Step 2 : Setting up environment/Importing data</h4><p>Our ML Guy primarily works on <em>Python</em>, due to powerful libraries coming handy and the opensource community of Python. He sets up environment by checking his requirements of libraries and imports data as well.<br>He usually works in<em> Jupyter Notebooks</em>, to analyse different checkpoints and document his work rather than getting in trouble of running different scripts.</p><pre>import matplotlib.pyplot as plt<br>import seaborn as sns<br>import folium<br>from folium.plugins import HeatMap<br>import datetime as dt<br><br>from sklearn.model_selection import train_test_split<br>from sklearn.preprocessing import StandardScaler, PolynomialFeatures<br>from sklearn.linear_model import LinearRegression<br>from sklearn.metrics import mean_absolute_error, mean_squared_error, r2_score<br><br>import xgboost as xgb<br>import lightgbm as lgb</pre><pre>import kagglehub<br>uber_fares_dataset_path = kagglehub.dataset_download(&#39;yasserh/uber-fares-dataset&#39;)<br><br># Find the CSV file within the downloaded directory<br>csv_file_path = None<br>for filename in os.listdir(uber_fares_dataset_path):<br>    if filename.endswith(&#39;.csv&#39;):<br>        csv_file_path = os.path.join(uber_fares_dataset_path, filename)<br>        break #stop after finding the first one.<br><br>if csv_file_path:<br>    df = pd.read_csv(csv_file_path)<br>    print(df.head()) #or any other operation on the df<br>else:<br>    print(&quot;CSV file not found in the downloaded directory.&quot;)</pre><h4>Step 3: Data Preprocessing</h4><p>Before proceeding with analysis, he clean the data by removing incorrect values, handling null values, and filtering out unrealistic fare amounts.</p><p>✔ Actions Performed:</p><ul><li>Drop unnamed index column.</li><li>Remove negative or zero fare amounts (invalid).</li><li>Drop rows where drop-off locations are missing.</li><li>Filter NYC geographical boundaries for valid coordinates.</li></ul><p>And here he notices that now the size of the dataset is →</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*3cTzoUAoXlQxcdOgszSn3A.png" /></figure><h4>Step 4 : Feature Engineering</h4><p>Our ML guy, notices that the dataset contains the following fields:</p><ul><li><strong>key</strong> — a unique identifier for each trip</li><li><strong>fare_amount</strong> — the cost of each trip in $</li><li><strong>pickup_datetime</strong> — date and time when the meter was engaged</li><li><strong>passenger_count</strong> — the number of passengers in the vehicle (driver entered value)</li><li><strong>pickup_longitude </strong>— the longitude where the meter was engaged</li><li><strong>pickup_latitude</strong> — the latitude where the meter was engaged</li><li><strong>dropoff_longitude</strong> — the longitude where the meter was disengaged</li><li><strong>dropoff_latitude</strong> — the latitude where the meter was disengaged</li></ul><p>Now here he notices, that some “<strong>additional information</strong>” which can directly affect the fare prices can be derived using given parameters such as using haversine formula we can derive Distance between <strong>Pickup </strong>and <strong>Drop </strong>Locations. Similarly one can categorise Time of the day into rush hour etc.<br>So after adding such “<strong>engineered</strong>” features to dataset, his new dataset is ready.</p><h4>Step 5 : Data Analysis</h4><p>Now that the dataset is ready, our ML Guy starts with some analysis of dataset. He needs to know important characteristics and inter-relations of the dataset to choose the correct model for the best accuracy. <br>So in this step he does some visualisations, calculates some statistical aspects of dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sKv2zuAm90Eu-36Trf6wdg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*d6bVw3v_uqWS89QK6w5QKQ.png" /><figcaption>A Histogram of Uber Fare Amount (Left) and a Correlation Matrix for the new Dataset (Right)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*j7g0yNsC2G0v7x4c64v0Lw.png" /><figcaption>A Heat-map showing distribution of cab bookings in New York city</figcaption></figure><h4>Step 6 : Model Training</h4><p>The dataset is split into train and test dataset and then a series of models are chosen for training. His given hypothesis has to perform Regression task i.e. predicting continuous variable therefore he chooses different types of Regression Models. He used following models →</p><ul><li>Linear Regression</li><li>Multiple Linear Regression</li><li>Polynomial Regression</li><li>XGBoost &amp; LightGBM</li></ul><pre># Selecting features and target<br>features = [&quot;pickup_longitude&quot;, &quot;pickup_latitude&quot;, &quot;dropoff_longitude&quot;, &quot;dropoff_latitude&quot;, <br>            &quot;passenger_count&quot;, &quot;year&quot;, &quot;month&quot;, &quot;day&quot;, &quot;day_of_week&quot;, &quot;hour&quot;,<br>            &quot;is_rush_hour&quot;, &quot;is_night&quot;, &quot;is_weekend&quot;, &quot;distance_km&quot;]<br><br>X = df[features]<br>y = df[&quot;fare_amount&quot;]<br><br># Splitting dataset<br>X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)<br><br># Standardization<br>scaler = StandardScaler()<br>X_train_scaled = scaler.fit_transform(X_train)<br>X_test_scaled = scaler.transform(X_test)</pre><pre>poly = PolynomialFeatures(degree=2)<br>X_train_poly = poly.fit_transform(X_train_scaled)<br>X_test_poly = poly.transform(X_test_scaled)<br><br>poly_lr = LinearRegression()<br>poly_lr.fit(X_train_poly, y_train)<br>y_pred_poly = poly_lr.predict(X_test_poly)<br><br>mae_poly = mean_absolute_error(y_test, y_pred_poly)<br>r2_poly = r2_score(y_test, y_pred_poly)<br>print(f&quot;Polynomial Regression - MAE: {mae_poly:.2f}, R²: {r2_poly:.2f}&quot;)</pre><p>Don’t worry, we’ll cover them in detail later in cohort :)</p><h4>Step 7 : Model Evaluation</h4><p>Now that our ML Guy has trained the dataset on multiple Algorithms, he’s gotta choose the best model for the job. We do this by evaluating the model score on test data set in terms of <strong>Cost</strong> and <strong>Accuracy</strong> usually depicted by <strong>MAE</strong> and <strong>R²</strong> Scores respectively. (We’ll cover this in great detail in Cohort)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*3NN0aEYNMkvMpU3X.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*VENXVGdNunWYVV_JPnMnAg.png" /></figure><p>The above observations show that the best Model that should chosen is on with Higher accuracy (Proportional to <strong>R²</strong> Score) i.e. Ensemble Model.</p><h4>Step 8 : Model Exportation and Deployment</h4><p>So now that our ML guy has completed task of predicting Fare prices. He has to make it usable so that non-tech savvy guys such as Marketing team are able to use it, he needs to make it export this model.</p><p>He exports the model into a special file called <strong>Pickle </strong>file which contains all the model parameters which define the model, and it can behave in input-output manner.</p><pre>import joblib<br><br># Define the best model (Replace &#39;best_model&#39; with the actual best model variable)<br>best_model = xgb_model  # Example: Replace this with the final best-performing model<br><br># Save the trained model<br>joblib.dump(best_model, &quot;uber_fare_prediction_model.pkl&quot;)<br><br>print(&quot;✅ Model successfully saved as &#39;uber_fare_prediction_model.pkl&#39;. Ready for deployment! 🚀&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*nycHvi2r5idoEWEYwVFQUg.png" /></figure><p>Now that the model is exported, it can easily be deployed using an API (Application Programming Interface) and be used anywhere by the ML guy, in following format.</p><pre>// Load the saved model¶<br>loaded_model = joblib.load(&quot;uber_fare_prediction_model.pkl&quot;)<br><br>// Example prediction (Replace with actual feature values)<br>sample_input = np.array([[2017, 5, 20, 14, -73.982, 40.767, -73.964, 40.753, 2]])<br><br>predicted_fare = loaded_model.predict(sample_input)<br>print(f&quot;🚕 Predicted Fare Amount: ${predicted_fare[0]:.2f}&quot;)</pre><h3>Your Task for Today</h3><ul><li>Share <strong>1 ML problem </strong>you’ve seen in real life that excites you on <strong>X</strong>.</li><li>Set up <strong>Python</strong> and <strong>Anaconda</strong> or configure your <strong>Kaggle environment</strong> (if not already).</li><li>Join the <strong>community group</strong> and <strong>introduce yourself</strong> with:<br> 1. Name, Branch, and a fun fact about you.<br> 2. ML Learning/Post learning thoughts.</li></ul><h3>Previous &amp; Next</h3><blockquote><em>🔜</em> <a href="https://medium.com/@sharmaachintya49/dec42499dae0"><strong><em>Next:</em></strong><em> </em><strong><em>W0D1 — Python, Pandas, and Jupyter Quickstart</em></strong></a></blockquote><h3>Bonus Resources</h3><ul><li><strong>Recommended Videos </strong>: <em>“</em><a href="https://www.youtube.com/watch?v=Gv9_4yMHFhI&amp;list=PLblh5JKOoLUICTaGLRoHQDuF_7q2GfuJF"><em>A Gentle Introduction to Machine Learning?</em></a><em>”</em> by <strong>StatQuest</strong></li><li><strong>Recommended Books : </strong><a href="https://github.com/openlearnnitj/Resources/blob/main/ML%20League%202025/Hands-on-Machine-Learning.pdf">Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa60d2910901" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fighting the “Deepfake” problem in 2025]]></title>
            <link>https://medium.com/@vatsalkhanna5/fighting-the-deepfake-problem-in-2025-2cd998d1c4ca?source=rss-96379041eea2------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cd998d1c4ca</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[deepfake-detection]]></category>
            <category><![CDATA[gdgc-nit-jalandhar]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Vatsal Khanna]]></dc:creator>
            <pubDate>Sat, 28 Dec 2024 11:23:36 GMT</pubDate>
            <atom:updated>2024-12-28T11:38:19.154Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>In this blog let’s review how the tech world plans to counter the roaring problem of the year 2024 as we advent into the year 2025 : <strong>Deepfakes</strong></blockquote><p>On November 24, 2024 CBS News put out a concerning article titled <em>“</em><a href="https://www.cbsnews.com/texas/news/deepfakes-ai-fraud-elon-musk/"><strong><em>Deepfakes of Elon Musk are contributing to billions of dollars in fraud losses in the U.S.</em></strong></a><em>”- </em>Raising a lot of questions on secure and effective measures in the rapid development of AI technologies standing on the back of Deep Learning techniques. <br>But before delving in, Let’s first understand what is Deepfake ? Deepfakes are synthetic media (videos, images, or audio) created using artificial intelligence techniques to manipulate or generate content that appears authentic. How is that done ?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cJvUYgsXaubaQSz4Tw6JFQ.jpeg" /></figure><h3>Technologies used in Deepfake generation</h3><p>The primary architecture behind any AI based product roots back to some set of training of the model, which is essentially based on mathematically developed algorithms which “learn” to generate not just key insights but also figure out how to effectively operate on a given set. In simpler words a model is a naive program with no information whatsoever, but as soon as it is fed data in a predefined orientation, it updates its parameteres and modifies itself to fit in correctly. Such a techinque is referred to as Machine Learning.<br>Machine Learning contains a sub domain, “ Deep Learning” which involves complex neural network techniques and a huge deal of mathematics in its background to work on even complex machine learning problems such as “<em>Feature Extraction”, “Video Processing”, “Face Detection” </em>etc.</p><p>Deepfakes are primarily generated using <strong>Generative Adversarial Networks (GANs)</strong>, where two neural networks (a generator and a discriminator) work against each other to create realistic content. Other machine learning models, such as <strong>Auto-encoders</strong>, are also used for simpler deepfake creation.</p><figure><img alt="An architecture of a typical GAN network" src="https://cdn-images-1.medium.com/max/1024/1*yj6P2pmUl1Xl8Gxo8aatag.jpeg" /><figcaption>A simple diagram of GANs</figcaption></figure><h3>Problems arising with Deepfakes</h3><p>Deepfake generation is often used in the following applications :-</p><ul><li><strong>Satire and Parody</strong>: Light-hearted or humorous applications.</li><li><strong>Education</strong>: Simulations, language learning, or historical reenactments.</li><li><strong>Entertainment</strong>: De-aging actors, creating fictional scenes.</li></ul><p>With use cases of deepfakes being limited, the misuse of this powerful technology finds an unimaginable presence in our rapidly evolving and technologically enabled society. Some prominent examples of Misuse include:-</p><ul><li><strong>Misinformation</strong>: Spreading fake news by altering speeches of public figures.</li><li><strong>Fraud and Scams</strong>: Impersonation for financial gain.</li><li><strong>Defamation</strong>: Creating fake videos to harm someone’s reputation.</li><li><strong>Privacy Violations</strong>: Unauthorised use in explicit content.</li></ul><p>With a digitally enabled world, this technology poses a lot of dangers for the social fabric of the modern society, where majority of population has some sort of digital footprint always present on the internet, there are serious risks of getting trapped into such malicious activities. Deepfakes are extraordinarily effective on modifying a given original image/video which was impossible to be done by a Photoshop tool or any other traditional tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*0GjRwdaNsvKGJf8JGavNyg.jpeg" /></figure><h3>Deepfake Detection techniques and tools</h3><p>If we discuss detection abilities on the deepfake media, the early versions had noticeable flaws (e.g., blinking patterns, lighting inconsistencies). But as we notice, advanced deepfakes are increasingly harder to detect without specialised tools. Let’s discuss it in detail :-</p><h4>1. Manual Detection Techniques</h4><ul><li><strong>Blink Rate Analysis</strong>:<br>Early deepfakes often failed to replicate natural blinking patterns, making them detectable through close observation.</li><li><strong>Facial and Lighting Inconsistencies</strong>:<br>Misaligned shadows, unnatural reflections, or mismatched skin tones can indicate tampering.</li><li><strong>Audio-Visual Sync Issues</strong>:<br>Discrepancies between lip movements and speech can be a clear sign of manipulation.</li></ul><h4>2. Algorithmic Methods</h4><ul><li><strong>Machine Learning-Based Approaches</strong>:</li><li><strong>Convolutional Neural Networks (CNNs)</strong>: Specialized in analyzing spatial features of images to detect anomalies.</li><li><strong>Recurrent Neural Networks (RNNs)</strong>: Used for detecting temporal inconsistencies in video sequences.</li><li><strong>Feature Engineering</strong>:<br>Algorithms analyse features like eye movement, facial geometry, and texture anomalies to identify deepfakes.</li></ul><h4>3. Blockchain-Based Techniques</h4><ul><li><strong>Digital Authentication</strong>:<br>Blockchain technology can secure the integrity of digital media by embedding timestamps and verifying the source of content.</li><li><strong>Cryptographic Watermarking</strong>:<br>Media files are embedded with invisible watermarks that verify originality and detect unauthorized modifications.</li></ul><h4>4. Real-Time Detection Systems</h4><ul><li>Advanced real-time AI systems analyze live video streams to identify deepfake characteristics within milliseconds.</li><li>Applications include social media platforms implementing automated moderation systems.</li></ul><h4>5. Tools for Detecting Deepfakes</h4><ul><li><strong>Deepware Scanner</strong>:<br>Scans videos to detect signs of deepfake manipulation.</li><li><strong>Sensity AI</strong>:<br>Provides a suite of AI-powered detection tools for media authenticity.</li><li><strong>Microsoft Video Authenticator</strong>:<br>Analyses videos and images for subtle deepfake indicators like fading or blending boundaries.</li><li><strong>FaceForensics++</strong>:<br>A robust framework designed for bench marking deepfake detection models using standardised datasets.</li><li><strong>XceptionNet</strong>:<br>A CNN-based model fine-tuned for deepfake detection through detailed feature extraction.</li><li><strong>Deepfake Detection Challenge (DFDC) Models</strong>:<br>These open-source models were developed as part of Facebook’s DFDC to encourage advancements in the field.</li></ul><h4>6. Emerging Techniques</h4><ul><li><strong>Multimodal Analysis</strong>:<br>Combines audio, visual, and textual features to enhance detection accuracy.</li><li><strong>GAN Fingerprinting</strong>:<br>Identifies unique patterns left by generative models, similar to digital fingerprints.</li><li><strong>Explainable AI (XAI)</strong>:<br>Improves transparency by showing why certain content is classified as fake.</li></ul><h3>Challenges in Detection</h3><p>Despite the advancements in tools and techniques, challenges remain:</p><ul><li>Evolving deepfake algorithms produce increasingly realistic content.</li><li>Limited availability of diverse and high-quality training datasets.</li><li>Resource-intensive detection processes can hinder real-time applications.</li></ul><p>The rapid evolution of deepfake technology necessitates a multidisciplinary approach, combining technological innovations, ethical considerations, and public awareness to counter its misuse effectively.</p><h4>References</h4><ol><li><a href="https://www.researchgate.net/publication/351300442_Deep_Insights_of_Deepfake_Technology_A_Review"><em>Deep Insights of Deepfake Technology: A Review</em></a></li><li><a href="https://link.springer.com/article/10.1007/s42454-024-00054-8"><em>Exploring Deepfake Technology: Creation, Consequences and Detection</em></a></li><li><a href="https://dl.acm.org/doi/10.1145/3603781.3603790"><em>Research on Deepfake Technology and Its Application</em></a></li><li><a href="https://ieeexplore.ieee.org/document/9721302"><em>Deepfake Detection: A Systematic Literature Review</em></a></li><li><em>CBC News article </em><a href="https://www.cbsnews.com/texas/news/deepfakes-ai-fraud-elon-musk/"><em>https://www.cbsnews.com/texas/news/deepfakes-ai-fraud-elon-musk/</em></a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cd998d1c4ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>