<?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 Maryam on Medium]]></title>
        <description><![CDATA[Stories by Maryam on Medium]]></description>
        <link>https://medium.com/@maryambibi1396?source=rss-aadd2cb3a34b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*p3WdqZqSV4c_joK1s1Ppaw.png</url>
            <title>Stories by Maryam on Medium</title>
            <link>https://medium.com/@maryambibi1396?source=rss-aadd2cb3a34b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 09:22:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@maryambibi1396/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[Cloud Misconfigurations: The Silent Cause Behind Most Data Breaches]]></title>
            <link>https://medium.com/@maryambibi1396/cloud-misconfigurations-the-silent-cause-behind-most-data-breaches-d0cd82fc7915?source=rss-aadd2cb3a34b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0cd82fc7915</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Maryam]]></dc:creator>
            <pubDate>Sat, 31 Oct 2026 13:06:25 GMT</pubDate>
            <atom:updated>2026-10-31T13:06:25.876Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Why the biggest threat to your cloud environment is often not a sophisticated hacker, but a single setting left in the wrong position.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DsOYVKdMFkUTql-jULuigQ.png" /></figure><h3>Introduction</h3><p>When we imagine a cloud data breach, we usually picture a skilled attacker defeating layers of advanced security. The reality is far less dramatic. In many incidents, no complex exploit was needed. A storage bucket was left publicly readable, a firewall rule allowed traffic from anywhere, or an access role had far more permissions than it needed.</p><p>These are <strong>cloud misconfigurations</strong>, and they remain one of the most common and most preventable causes of cloud security incidents. Industry analysts and cloud providers have repeatedly pointed out that most cloud security failures come from how customers configure their environments, not from flaws in the cloud platforms themselves.</p><p>In this article, I explain what cloud misconfigurations are, why they happen so often, which ones matter most, and how teams can detect and prevent them. The article is aimed at students, developers, and early-career engineers who are building their cloud security foundations.</p><h3>What Is a Cloud Misconfiguration?</h3><p>A cloud misconfiguration is any incorrect, insecure, or overly permissive setting in a cloud environment that exposes systems or data to unnecessary risk. It is not a bug in the cloud provider’s software. It is a gap between <strong>how a resource is configured</strong> and <strong>how it should be configured</strong> to stay secure.</p><p>A simple analogy: imagine building a house with a strong steel door, but leaving a window open all night. The door was not weak. The problem was a small oversight that made the strong door irrelevant. Cloud misconfigurations work the same way. Even a well-designed system can be exposed by one wrong setting.</p><h3>Why Misconfigurations Happen So Often</h3><p>Cloud platforms make it easy to create resources in seconds. That speed is a major benefit, but it also creates risk. Several factors explain why misconfigurations are so common:</p><ol><li><strong>Speed over security.</strong> Teams under delivery pressure often prioritise getting something working and plan to secure it later. “Later” frequently never comes.</li><li><strong>Complexity at scale.</strong> A real environment can contain thousands of resources across multiple accounts, regions, and services. Each service has its own settings, and no one person can track them all manually.</li><li><strong>Default settings are not always safe.</strong> Some defaults prioritise convenience. Assuming that defaults are secure is a common and costly mistake.</li><li><strong>Human error.</strong> Manual changes, copy-pasted policies, and rushed fixes introduce mistakes, especially when people do not fully understand the permissions they are granting.</li><li><strong>Configuration drift.</strong> An environment may start secure, then slowly change as people make small adjustments. Over time, it no longer matches its intended secure state.</li><li><strong>Skills gap.</strong> Cloud adoption has grown faster than the number of people trained in cloud security, so many teams learn on the job.</li></ol><h3>The Shared Responsibility Model</h3><p>To understand misconfigurations, you need to understand the <strong>shared responsibility model</strong>. Cloud providers such as AWS, Microsoft Azure, and Google Cloud secure the underlying infrastructure: physical data centers, hardware, and the core services.</p><p>The customer is responsible for what they build <strong>on top</strong> of that infrastructure: identity and access management, network rules, data protection, and the configuration of every service they use.</p><p>This is exactly where misconfigurations live. The provider can offer a secure storage service, but it cannot stop you from making your bucket public. Many people assume the provider handles all security, and that false assumption is itself a major cause of risk.</p><p>[embed: node/1a3de50c-4a2a]</p><p>The top band is where misconfigurations live: the provider cannot set your bucket policies, IAM roles, or firewall rules for you.</p><h3>The Most Common Cloud Misconfigurations</h3><p>The table below summarizes the misconfigurations that appear most often, along with the risk each one creates.</p><p>Misconfiguration</p><p>What goes wrong</p><p>Potential impact</p><p>Publicly accessible storage buckets</p><p>Files are readable by anyone on the internet</p><p>Data leaks of customer or company data</p><p>Overly permissive IAM roles</p><p>Users or services have far more access than needed</p><p>Privilege escalation and full account takeover</p><p>Open security groups and firewall rules</p><p>Ports such as SSH or database ports are open to all addresses</p><p>Direct attacks on servers and databases</p><p>Disabled logging and monitoring</p><p>No record of who did what</p><p>Breaches go undetected for long periods</p><p>Unencrypted data</p><p>Data at rest or in transit is not encrypted</p><p>Exposure if storage or traffic is intercepted</p><p>Missing multi-factor authentication</p><p>Accounts rely only on passwords</p><p>Credential theft leads to account compromise</p><p>Exposed credentials and keys</p><p>Access keys stored in code repositories or config files</p><p>Attackers use leaked keys to access cloud resources</p><p>Unpatched or outdated resources</p><p>Known vulnerabilities remain open</p><p>Exploitation of known flaws</p><p>Let us look closer at the three that cause the most harm.</p><h3>1. Publicly Accessible Storage</h3><p>Object storage services such as Amazon S3 are designed to hold huge amounts of data. When a bucket or its policy is set to allow public access, anyone who finds it can read, and sometimes even write, its contents. Attackers and researchers run automated scans that continuously search the internet for exposed storage, so a public bucket is often discovered quickly.</p><p>Modern cloud platforms now include safeguards such as account-level “block public access” settings, but these only help if teams enable and keep them on.</p><h3>2. Excessive Permissions in IAM</h3><p>Identity and Access Management (IAM) controls who can do what. A common shortcut is to give a user or application broad permissions, such as full administrator access, because it “just works.” The problem is that if those credentials are ever stolen, the attacker inherits the same broad power.</p><p>The security principle that prevents this is <strong>least privilege</strong>: grant only the minimum permissions required for a task, and nothing more.</p><h3>3. Open Network Access</h3><p>Security groups and firewall rules decide which network traffic can reach your resources. A rule that allows access from 0.0.0.0/0 (the entire internet) to a management port or a database is an open invitation. Management and database services should be reachable only from trusted networks, VPNs, or specific addresses.</p><h3>Why Misconfigurations Are Dangerous</h3><p>Misconfigurations are especially risky for four reasons:</p><ul><li><strong>They are easy to exploit.</strong> An attacker does not need advanced skills to read a public bucket or connect to an open port.</li><li><strong>They are easy to find.</strong> Automated tools scan the internet around the clock for exposed services.</li><li><strong>They are silent.</strong> Nothing breaks when a setting is wrong. The system keeps working normally, so the problem can exist for months without anyone noticing.</li><li><strong>They can chain together.</strong> One small issue, such as an exposed key, combined with an over-permissive role, can turn a minor weakness into a complete compromise.</li></ul><p>[embed: node/77e8e99f-47ef]</p><p>Each step is a misconfiguration, and the missing logs let the chain run without anyone noticing.</p><p>A widely reported example is the 2019 Capital One incident, in which a misconfigured web application firewall was exploited and allowed an attacker to reach data stored in the cloud. The case is often used in security teaching because it shows how a configuration weakness, combined with excessive permissions, can lead to a large-scale breach.</p><h3>How to Detect Misconfigurations</h3><p>Manual checking does not scale. Effective detection combines several approaches.</p><h3>Cloud Security Posture Management (CSPM)</h3><p>CSPM tools continuously scan cloud accounts and compare settings against security best practices and compliance standards. When a resource violates a rule, the tool raises an alert and often suggests how to fix it.</p><h3>Benchmarks and Standards</h3><p>Frameworks such as the <strong>CIS Benchmarks</strong> provide detailed, vendor-reviewed lists of recommended security settings for major cloud platforms. They give teams a clear, measurable baseline instead of guesswork.</p><h3>Open-Source Scanners</h3><p>Tools like Prowler and ScoutSuite are widely used by learners and professionals to audit cloud accounts against known checks. They are an excellent way for students to understand what a real security review looks like.</p><h3>Infrastructure as Code Scanning</h3><p>If infrastructure is defined in code (for example, with Terraform or CloudFormation), the code itself can be scanned <strong>before</strong> deployment. Catching a risky setting in a code review is far cheaper than fixing it in production.</p><h3>A Simple Example in Python</h3><p>To show how automated checking works, here is a small script using Boto3 that reviews S3 buckets and flags those without a full public access block:</p><pre>import boto3<br>from botocore.exceptions import ClientError</pre><pre>s3 = boto3.client(&quot;s3&quot;)<br></pre><pre>def bucket_is_protected(bucket_name: str) -&gt; bool:<br>    try:<br>        config = s3.get_public_access_block(Bucket=bucket_name)<br>        settings = config[&quot;PublicAccessBlockConfiguration&quot;]<br>        return all(settings.values())<br>    except ClientError as error:<br>        code = error.response[&quot;Error&quot;][&quot;Code&quot;]<br>        if code == &quot;NoSuchPublicAccessBlockConfiguration&quot;:<br>            return False<br>        raise<br></pre><pre>for bucket in s3.list_buckets()[&quot;Buckets&quot;]:<br>    name = bucket[&quot;Name&quot;]<br>    status = &quot;OK&quot; if bucket_is_protected(name) else &quot;REVIEW&quot;<br>    print(f&quot;{status}: {name}&quot;)</pre><p>This is a simplified check. A complete review would also examine bucket policies, access control lists, and account-level settings. Still, it shows the core idea: <strong>turn a security rule into code that can run repeatedly and automatically.</strong></p><h3>How to Prevent Misconfigurations</h3><p>Detection is important, but prevention is better. These practices reduce the risk significantly:</p><p>[embed: node/bf80bc8d-d085]</p><p>Every fix feeds back into prevention, so the same mistake is caught earlier next time.</p><ol><li><strong>Apply least privilege everywhere.</strong> Review IAM roles regularly and remove permissions that are not used.</li><li><strong>Enable account-level safeguards.</strong> Turn on features such as block public access and keep them enforced.</li><li><strong>Require multi-factor authentication</strong> for all human users, especially administrators.</li><li><strong>Encrypt data</strong> at rest and in transit by default.</li><li><strong>Enable logging and monitoring</strong> so that changes and suspicious activity leave a record.</li><li><strong>Use Infrastructure as Code</strong> so that configuration is reviewed, versioned, and repeatable.</li><li><strong>Automate compliance checks</strong> in your deployment pipeline and run continuous scans afterward.</li><li><strong>Never store secrets in code.</strong> Use a secrets manager and rotate keys regularly.</li><li><strong>Train your team.</strong> Tools help, but people who understand why a setting matters make better decisions.</li></ol><h3>The Role of AI in Fixing a Human Problem</h3><p>Because misconfigurations are numerous, hard to track, and often subtle, the industry is increasingly looking at <strong>AI and machine learning</strong> to assist security teams. Intelligent systems can help prioritise which findings matter most, detect unusual behaviour that rules alone would miss, and combine many separate signals into a single view of risk.</p><p>AI is not a replacement for good fundamentals. It works best when basic hygiene is in place and when its outputs are explainable, so that engineers understand why something was flagged. This combination of strong fundamentals and intelligent automation is where modern cloud security is heading.</p><h3>Key Takeaways</h3><ul><li>Most cloud security incidents are caused by <strong>customer-side misconfiguration</strong>, not by flaws in the provider’s platform.</li><li>The most common issues are <strong>public storage, excessive IAM permissions, open network rules, missing logging, and exposed credentials</strong>.</li><li>Misconfigurations are dangerous because they are <strong>easy to exploit, easy to find, and silent</strong>.</li><li>Detection requires <strong>automation</strong>: CSPM tools, CIS Benchmarks, open-source scanners, and Infrastructure as Code scanning.</li><li>Prevention starts with <strong>least privilege, secure defaults, encryption, logging, and team awareness</strong>.</li></ul><h3>Conclusion</h3><p>Cloud security is not only about stopping advanced attackers. It is about getting the basics right, consistently, across environments that change every day. A single overlooked setting can undo months of careful engineering, and in most cases the fix is simple once the problem is visible.</p><p>The lesson for anyone entering this field is clear: learn how cloud services are configured, learn what “secure” looks like for each of them, and build the habit of checking rather than assuming.</p><p>This topic is part of my ongoing work on cloud security, and I will continue sharing what I learn in upcoming articles on misconfiguration scanning, threat detection, and risk scoring.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0cd82fc7915" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI in Healthcare: How Machines Are Learning to Spot Disease Before Symptoms Appear]]></title>
            <link>https://medium.com/@maryambibi1396/ai-in-healthcare-how-machines-are-learning-to-spot-disease-before-symptoms-appear-9c7d06977b13?source=rss-aadd2cb3a34b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c7d06977b13</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[healthcare-technology]]></category>
            <dc:creator><![CDATA[Maryam]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 12:39:37 GMT</pubDate>
            <atom:updated>2026-10-21T12:39:37.300Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine a doctor who has reviewed millions of scans, never gets tired, and can notice patterns the human eye might miss. That is no longer science fiction: AI is increasingly being used to support early detection and clinical decision-making.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fCM8ocpiwMMamOCvOePAaw.jpeg" /></figure><h3>Why Early Detection Matters</h3><p>Most diseases are easier, cheaper, and safer to treat when caught early. Cancer found at an early stage, diabetic eye damage caught before vision loss, a lung nodule spotted before it grows: in each case, time is the most valuable resource. The challenge is that early signs are often subtle, and clinicians are overloaded. In many regions, including Pakistan, there are simply too few radiologists for the number of patients.</p><h3>How AI Reads Medical Images</h3><p>Medical imaging (X-rays, CT, MRI, ultrasound, retinal photos) is where AI has made the biggest impact. The core technology is the <strong>Convolutional Neural Network (CNN)</strong>.</p><p>Think of it like training a medical student. You show the model thousands of labelled scans: “this one has a tumour, this one is healthy.” Over time, it learns which visual patterns, such as texture, shape, and density, are linked to disease. When it sees a new scan, it estimates the probability that the pattern is present.</p><p>A typical pipeline looks like this:</p><ol><li><strong>Data collection:</strong> labelled images from hospitals, with patient privacy protected.</li><li><strong>Preprocessing:</strong> resizing, normalising, removing noise.</li><li><strong>Model training:</strong> a CNN or a Vision Transformer learns from the images.</li><li><strong>Validation:</strong> testing on data the model has never seen.</li><li><strong>Clinical review:</strong> a doctor checks the AI’s output before any decision is made.</li></ol><h3>Real-World Examples</h3><ul><li><strong>Diabetic retinopathy:</strong> AI systems that analyse retinal photographs have received regulatory clearance in the United States for screening, allowing detection even in clinics without an eye specialist.</li><li><strong>Breast cancer screening:</strong> Research and real-world screening programs suggest AI can help radiologists flag suspicious areas and improve cancer detection.</li><li><strong>Lung and chest imaging:</strong> AI tools help prioritise urgent chest X-rays and CT scans so critical cases are reviewed first.</li><li><strong>Pathology:</strong> Algorithms can scan digital slides to highlight regions that may contain cancer cells.</li></ul><h3>Beyond Images: Predicting Risk</h3><p>AI is not limited to pictures. Models trained on electronic health records, lab results, and wearable data can estimate the risk of conditions such as sepsis, heart disease, or diabetes complications, sometimes hours or years before they become obvious.</p><h3>The Challenges We Must Be Honest About</h3><p>AI in healthcare is powerful, but it is not magic.</p><ul><li><strong>Biased data:</strong> If a model is trained mostly on one population, it may perform worse on others. This matters a lot for countries underrepresented in global datasets.</li><li><strong>Class imbalance:</strong> Diseases are rare compared to healthy cases, so a model can look 95% accurate while missing most real patients. Accuracy alone is a misleading metric; sensitivity and recall matter more.</li><li><strong>Black-box problem:</strong> Doctors need to understand why a model flagged a scan. Explainability tools like Grad-CAM heatmaps help here.</li><li><strong>Privacy and regulation:</strong> Medical data is highly sensitive and must be handled with strict security and consent.</li><li><strong>Generalisation:</strong> A model that works in one hospital may fail in another because of different scanners and protocols.</li></ul><h3>The Right Mindset: Assistant, Not Replacement</h3><p>The most realistic future is not AI replacing doctors. It is doctors working with AI: the machine handles repetitive screening and highlights areas of concern, while the human provides judgment, empathy, and accountability.</p><h3>What This Means for Aspiring AI Engineers</h3><p>Healthcare AI needs more than model builders. It needs people who understand data quality, evaluation metrics, deployment, and ethics. If you are learning Python and machine learning, medical imaging datasets such as public chest X-ray or retinal image collections are a great way to build a portfolio project that matters.</p><h3>Conclusion</h3><p>AI will not cure disease on its own, but it can give clinicians something precious: time. Earlier detection, faster triage, and wider access to screening could save lives, especially where specialists are scarce. For countries such as Pakistan, where specialist access can be uneven, AI-supported screening could make early detection more widely available, provided models are validated locally and deployed responsibly. The technology is ready to help. Our job is to build it responsibly.</p><p><strong>What do you think is the biggest barrier to AI adoption in healthcare: data, trust, or regulation? Let me know in the comments.</strong></p><p>#AI #HealthcareAI #MachineLearning #MedicalImaging #Python #DeepLearning</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c7d06977b13" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Models Don’t Fail in Training. They Fail in Production.]]></title>
            <link>https://medium.com/@maryambibi1396/ai-models-dont-fail-in-training-they-fail-in-production-8f658a6ecf57?source=rss-aadd2cb3a34b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f658a6ecf57</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Maryam]]></dc:creator>
            <pubDate>Mon, 12 Oct 2026 09:55:29 GMT</pubDate>
            <atom:updated>2026-10-12T09:55:29.332Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why Every AI Project Needs a Backend Developer, Not Just a Data Scientist</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-v5QjB4O7pBZeXh5gqrYRw.png" /></figure><p>Every year, thousands of machine learning models reach impressive accuracy scores in a Jupyter Notebook. Very few of them ever reach a real user.</p><p>Industry surveys and practitioner reports have repeatedly suggested that a large share of ML projects never make it into production. The reasons are rarely about the model itself. The algorithm works. The accuracy looks good. The problem is everything <em>around</em> the model.</p><p>As a final-year Computer Science student working with Python, machine learning, and cloud tools, I have seen this gap firsthand. Building a model is one skill. Making it usable, secure, and reliable is a completely different one. This article explains why that second skill matters just as much, and why every serious AI project needs a backend developer alongside a data scientist.</p><h3>The Engine and the Car</h3><p>A simple way to understand this is with a car.</p><p>A data scientist builds the <strong>engine</strong>. It is powerful, carefully tuned, and the heart of the vehicle.</p><p>But an engine sitting on a workshop table cannot take anyone anywhere. You still need the chassis, the steering, the brakes, the fuel system, and the road. That is the work of a backend developer.</p><p>In AI projects, the “car around the engine” includes:</p><ul><li>An <strong>API</strong> so other applications can talk to the model</li><li>A <strong>database</strong> to store inputs, predictions, and user data</li><li><strong>Authentication and security</strong> to control who can access what</li><li><strong>Deployment infrastructure</strong> so the system runs 24/7</li><li><strong>Monitoring and error handling</strong> so failures are caught early</li></ul><p>Without these, a model is a research result. With them, it becomes a product.</p><h3>The Notebook Problem</h3><p>Most AI learners, including me when I started, work almost entirely in notebooks. Notebooks are excellent for exploration, visualisation, and experimentation.</p><p>But they have real limits in a production setting:</p><ol><li><strong>They are not services.</strong> A notebook cannot receive a request from a mobile app and return a prediction.</li><li><strong>They are hard to test and version.</strong> Code mixed with outputs and manual cell execution is difficult to maintain.</li><li><strong>They depend on a person.</strong> Someone has to click “Run.” Real systems must run without human involvement.</li><li><strong>They do not scale.</strong> One user is fine. A thousand simultaneous users is a different problem.</li></ol><p>Moving from a notebook to a working system is where backend engineering begins.</p><h3>What a Backend Developer Actually Does in an AI Project</h3><h4>1. Turns the model into an API</h4><p>The first step is exposing the model through an endpoint. With Python, frameworks like <strong>FastAPI</strong> make this clean and fast. A user or another application sends data; the API validates it, passes it to the model, and returns a prediction.</p><p>Input validation is critical here. Real users send missing values, wrong formats, and unexpected data. A model trained on clean data can crash or give nonsense on messy input. The backend is the first line of defence.</p><h4>2. Manages data storage</h4><p>Predictions, logs, uploaded files, and user records all need a home. Choosing between a relational database like PostgreSQL or MySQL and object storage like <strong>AWS S3</strong> is a backend decision that affects cost, speed, and reliability.</p><p>For example, in a project I built, an image optimisation API accepts an uploaded image, generates compressed, resized, and thumbnail versions, and stores the outputs in cloud storage. The processing logic is only a small part of the work. Handling uploads, file validation, storage structure, and retrieval is what makes it usable.</p><h4>3. Handles security</h4><p>AI systems often process sensitive data: personal information, medical records, financial details, or location data. Backend developers implement authentication, authorisation, encryption, and rate limiting. A model with no access control is a liability, not an asset.</p><h4>4. Deploys and scales the system</h4><p>A model that runs on a laptop is not deployed. Production requires containerization (Docker), cloud hosting (AWS, Azure, GCP), load handling, and automated deployment pipelines. Backend and cloud skills decide whether the system survives real traffic.</p><h4>5. Monitors and maintains it</h4><p>Models degrade over time. This is called <strong>data drift</strong>: the real world changes, and the data the model sees no longer matches what it was trained on. Backend systems log requests, track errors and latency, and alert the team when something is wrong. Without monitoring, a model can quietly give worse results for months, and nobody notices.</p><h3>Data Scientist vs Backend Developer: Different Questions</h3><p>Data Scientist vs Backend Developer: Core question: Is the model accurate? Is the system reliable?<strong>Focus</strong>Data, features, algorithmsAPIs, databases, infrastructure<strong>Success metric</strong>Precision, recall, F1-scoreUptime, latency, security<strong>Typical tools</strong>Pandas, Scikit-learn, TensorFlowFastAPI, Docker, SQL, AWS<strong>Risk they manage</strong>Overfitting, biasDowntime, data leaks, bottlenecks</p><p>Neither role is better. They solve different halves of the same problem. A brilliant model with a broken backend delivers no value. A strong backend with a weak model delivers wrong answers quickly.</p><h3>What Goes Wrong When Teams Skip the Backend</h3><p>These are common patterns in AI projects that struggle to launch:</p><ul><li><strong>The “works on my machine” trap.</strong> The model depends on a specific local setup and fails when moved to a server.</li><li><strong>No input validation.</strong> One malformed request crashes the entire service.</li><li><strong>Slow responses.</strong> A model that takes 30 seconds to respond is unusable in a live application, no matter how accurate.</li><li><strong>No versioning.</strong> Nobody knows which model version is running or how to roll back.</li><li><strong>Silent failures.</strong> The system returns predictions, but they are wrong, and no one is alerted.</li></ul><p>Each of these is a backend problem, not a data science problem.</p><h3>The Rise of the Hybrid Skill Set</h3><p>The industry is moving toward people who understand both sides. Roles such as <strong>ML Engineer</strong> and <strong>MLOps Engineer</strong> exist precisely because companies need someone who can connect models to real systems.</p><p>For students and early-career developers, this is an opportunity. If you can:</p><ul><li>Build and evaluate a model in Python,</li><li>Wrap it in a FastAPI service,</li><li>Store data in a database or cloud storage,</li><li>Deploy it on a cloud platform,</li></ul><p>you stand out from candidates who only know one layer. You show employers that you understand the <em>full lifecycle</em> of an AI product, not just one step.</p><h3>A Practical Path for Students</h3><p>If you are learning AI and want to build this full-stack understanding, here is a simple progression:</p><ol><li><strong>Learn Python well.</strong> Functions, classes, error handling, and virtual environments.</li><li><strong>Build a basic ML model.</strong> Use Scikit-learn on a real dataset.</li><li><strong>Wrap it in an API.</strong> Use FastAPI and test it with the built-in documentation page.</li><li><strong>Add storage.</strong> Connect a database or cloud storage.</li><li><strong>Containerise it.</strong> Learn Docker basics.</li><li><strong>Deploy it.</strong> Put it on a free or low-cost cloud tier.</li><li><strong>Document it.</strong> Write a clear README and share the project on GitHub.</li></ol><p>Even one small project completed end to end teaches more than ten unfinished notebooks.</p><h3>Final Thoughts</h3><p>AI is not only about intelligence. It is about <strong>delivery</strong>. A model creates potential value, but a well-built system turns that potential into something people can actually use.</p><p>The next time you see an impressive AI demo, ask a few questions. Where does the data come from? How is it secured? What happens when 1,000 users arrive? How will the team know when it stops working?</p><p>The answers to those questions are the work of backend developers, and they are the reason some AI projects succeed while others stay in a notebook forever.</p><p>AI needs great data scientists. It also needs great backend developers. The best teams, and the best engineers, understand both.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f658a6ecf57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Doesn’t My Machine Learning Model Reach High Accuracy? Lessons from Flood Prediction]]></title>
            <link>https://medium.com/@maryambibi1396/why-doesnt-my-machine-learning-model-reach-high-accuracy-lessons-from-flood-prediction-cbf7be8d8df9?source=rss-aadd2cb3a34b------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbf7be8d8df9</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[gis]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[remote-sensing]]></category>
            <dc:creator><![CDATA[Maryam]]></dc:creator>
            <pubDate>Mon, 05 Oct 2026 11:43:26 GMT</pubDate>
            <atom:updated>2026-10-05T11:43:26.950Z</atom:updated>
            <content:encoded><![CDATA[<p>When I started building a flood-risk prediction model using remote sensing data, I expected the model to deliver impressive accuracy after a few lines of Scikit-learn code. It didn’t. That experience taught me something every ML practitioner eventually learns: <strong>a model is only as good as the data, the validation strategy, and the metric behind it.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2hWeEjr8q8AMhWN2uy61_A.jpeg" /></figure><p>Here are the most common reasons ML models underperform, explained with a flood-prediction lens.</p><h3>1. Imbalanced Data: The “Accuracy Paradox”</h3><p><strong>Analogy:</strong> Imagine a security guard at a building where theft happens once in 100 days. If he says “no theft today” every day, he is 99% accurate, but completely useless.</p><p>Flood events are rare compared to non-flood observations. Suppose 97% of your samples are “no flood.” A model that predicts “no flood” every time scores 97% accuracy while missing every actual flood.</p><p><strong>What to do:</strong></p><ul><li>Use Precision, Recall, F1-score, and ROC-AUC instead of accuracy alone</li><li>Apply class weights (class_weight=&quot;balanced&quot;)</li><li>Try resampling (SMOTE or undersampling)</li><li>Prioritise <strong>Recall</strong> when missing a disaster is costly</li></ul><h3>2. Overfitting: Memorising Instead of Learning</h3><p><strong>Analogy:</strong> A student who memorises last year’s past paper scores full marks on it, but fails when the questions change.</p><p>An overfit model shows very high training accuracy and noticeably lower test accuracy. It has learned the noise in your dataset, not the real pattern.</p><p><strong>What to do:</strong></p><ul><li>Use cross-validation instead of a single split</li><li>Reduce model complexity (limit tree depth, add regularisation)</li><li>Collect more diverse data</li><li>Remove irrelevant features</li></ul><h3>3. Underfitting: The Model Is Too Simple</h3><p>The opposite problem. If both training and test accuracy are low, the model cannot capture the relationship in your data. Flood risk depends on many interacting factors (rainfall, slope, soil, land cover, distance from water), so a very simple model may miss these interactions.</p><p><strong>What to do:</strong> Try more expressive models (Random Forest, Gradient Boosting) and engineer better features.</p><h3>4. Poor Feature Quality</h3><p><strong>Analogy:</strong> Even the best chef cannot cook a great meal with bad ingredients.</p><p>In remote sensing, features such as NDVI, NDWI, elevation, slope, and precipitation drive the prediction. Problems arise when features are:</p><ul><li>Low resolution or mismatched in resolution</li><li>Affected by cloud cover or sensor noise</li><li>Not aligned to the same coordinate system (CRS)</li><li>Highly correlated with each other (redundant)</li></ul><p><strong>What to do:</strong> Check feature importance, remove redundant variables, and verify preprocessing before blaming the algorithm.</p><h3>5. Data Leakage: The Silent Accuracy Killer</h3><p>Data leakage means information from outside the training set (often from the test set) sneaks into training. The result is unrealistically high accuracy that collapses in the real world.</p><p>Common causes:</p><ul><li>Scaling or normalising before the train/test split</li><li>Using a feature that directly reveals the answer</li><li>Including future information when predicting the past</li></ul><p><strong>What to do:</strong> Always split first, then preprocess using a pipeline:</p><p>python</p><pre>from sklearn.pipeline import Pipeline<br>from sklearn.preprocessing import StandardScaler<br>from sklearn.ensemble import RandomForestClassifier</pre><pre>pipe = Pipeline([<br>    (&quot;scaler&quot;, StandardScaler()),<br>    (&quot;model&quot;, RandomForestClassifier(class_weight=&quot;balanced&quot;, random_state=42))<br>])<br>pipe.fit(X_train, y_train)</pre><h3>6. Spatial Autocorrelation: A Geospatial Trap</h3><p>Nearby locations tend to be similar (Tobler’s First Law of Geography). If you randomly split geospatial data, neighbouring pixels land in both train and test sets, and the model looks better than it really is.</p><p><strong>What to do:</strong> Use <strong>spatial cross-validation</strong>, splitting by region or block, so the test area is genuinely unseen.</p><h3>7. Noisy or Inaccurate Labels</h3><p>If your ground truth (for example, flood inventory or lake boundaries) is incomplete or inconsistent, the model learns from flawed examples. Better labels often improve results more than a fancier algorithm.</p><h3>8. Wrong Metric, Wrong Decision</h3><p>Choose the metric that matches the real-world cost:</p><p>SituationBetter MetricRare event detection (floods)Recall, F1, PR-AUCFalse alarms are costly Precision Ranking risk zonesROC-AUCBalanced classesAccuracy</p><h3>A Practical Checklist</h3><ol><li>Check class distribution first</li><li>Compare train vs. test performance</li><li>Use cross-validation (spatial if geospatial)</li><li>Inspect features and remove leakage</li><li>Evaluate with metrics that match the problem</li><li>Improve data quality before tuning models</li></ol><h3>Key Takeaway</h3><p>Low accuracy is not always a failure. Often it is an honest signal that the data, validation, or metric needs attention. In disaster-risk applications, a model that is <strong>trustworthy and well-validated</strong> is far more valuable than one with an impressive but misleading score.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbf7be8d8df9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating the Boring Stuff:]]></title>
            <link>https://medium.com/@maryambibi1396/automating-the-boring-stuff-0772c05d0a67?source=rss-aadd2cb3a34b------2</link>
            <guid isPermaLink="false">https://medium.com/p/0772c05d0a67</guid>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[fastapi]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Maryam]]></dc:creator>
            <pubDate>Tue, 22 Sep 2026 14:28:47 GMT</pubDate>
            <atom:updated>2026-09-22T14:28:47.727Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I Built an Image Processing API with FastAPI + Cloudinary</h3><p>Every developer eventually hits the same wall: repetitive, manual tasks that eat up time better spent building. For me, that wall was image handling. Every time I needed a compressed version, a resized copy, and a thumbnail of an image for a project, I was doing it manually — opening an editor, exporting three versions, uploading them one by one, tracking links.</p><p>So I built a solution: <strong>Cloud Media Optimiser</strong>, a Python-based API that takes a single image upload and automatically generates optimised, resized, and thumbnail versions — then pushes them straight to the cloud and returns ready-to-use links.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HpA_yRqHH94F8J7rHsCxHQ.png" /></figure><h3>The Problem</h3><p>Manual image processing doesn’t scale. Whether you’re building a content platform, an e-commerce site, or a personal media app, you typically need:</p><ul><li>A <strong>compressed version</strong> for faster load times and lower storage costs</li><li>A <strong>resized version</strong> for consistent display across UI components</li><li>A <strong>thumbnail</strong> for previews, grids, and lists</li></ul><p>Doing this by hand for every single upload isn’t a workflow — it’s a bottleneck. And as a Computer Science student building toward a career in Python development and cloud engineering, I wanted a project that didn’t just demonstrate “I know Python” but “I can design and ship a small, working backend system.”</p><h3>Why This Project</h3><p>I chose this specific idea because it sits exactly at the intersection of my two focus areas: <strong>cloud-backed backend development</strong> and <strong>practical Python engineering</strong>, with a touch of my graphic design background. It wasn’t a tutorial clone — it was a real problem I’d personally run into, which made every design decision feel purposeful rather than arbitrary.</p><h3>The Architecture</h3><p>I deliberately split the build into two stages, keeping complexity manageable at each step rather than trying to wire everything together at once.</p><p><strong>Stage 1 — Local Processing Engine</strong></p><p>Built with <strong>FastAPI</strong> and <strong>Pillow</strong>, this stage handles the core logic: a single /upload endpoint receives an image, processes it into three versions (original, compressed, thumbnail), and returns the results. I tested this thoroughly through Swagger UI before moving forward — validating the pipeline locally first meant fewer surprises later.</p><p>A simplified version of the core processing logic looks like this:</p><p>python</p><pre>from fastapi import FastAPI, UploadFile<br>from PIL import Image<br>import io</pre><pre>app = FastAPI()</pre><pre>@app.post(&quot;/upload&quot;)<br>async def upload_image(file: UploadFile):<br>    image = Image.open(io.BytesIO(await file.read()))</pre><pre>    # Compressed version<br>    compressed = image.copy()<br>    compressed.save(&quot;compressed.jpg&quot;, quality=60, optimize=True)</pre><pre>    # Thumbnail version<br>    thumbnail = image.copy()<br>    thumbnail.thumbnail((150, 150))<br>    thumbnail.save(&quot;thumbnail.jpg&quot;)</pre><pre>    return {&quot;status&quot;: &quot;processed&quot;}</pre><p>Simple on paper, but getting the compression quality, aspect ratio handling, and file-size tradeoffs right took real iteration.</p><p><strong>Stage 2 — Cloud Integration</strong></p><p>Originally planned around AWS S3 and Boto3, I pivoted to <strong>Cloudinary</strong> for cloud storage — a practical decision driven by accessibility (no card required to get started) rather than a compromise on functionality. The integration now uploads the compressed and thumbnail versions directly to Cloudinary and returns live, shareable cloud_url links in the API response.</p><p>python</p><pre>import cloudinary.uploader</pre><pre>result = cloudinary.uploader.upload(&quot;compressed.jpg&quot;)<br>cloud_url = result[&quot;secure_url&quot;]</pre><p>Full flow, end-to-end:</p><pre>Client → FastAPI /upload → Pillow (resize/compress) → Cloudinary → Live URLs returned</pre><h3>What It Does, Step by Step</h3><ol><li>User uploads an image via the /upload endpoint</li><li>FastAPI receives and validates the file</li><li>Pillow generates compressed and thumbnail versions locally</li><li>Both versions are uploaded to Cloudinary</li><li>The API responds with status 200 and live cloud URLs for each version, ready to embed anywhere</li></ol><h3>Challenges Along the Way</h3><ul><li><strong>Payment barrier with AWS S3:</strong> My original plan used Boto3 and S3, but AWS required a card I didn’t have access to. Rather than stalling the project, I researched alternatives and switched to Cloudinary — which turned out to be just as capable for this use case, and free to start.</li><li><strong>Balancing compression and quality:</strong> Getting Pillow’s quality and optimize parameters right required testing multiple values to find a sweet spot between file size and visual quality.</li><li><strong>Testing without a frontend:</strong> Since there was no UI yet, Swagger UI became essential for manually testing uploads, catching malformed responses, and verifying status codes before writing a single line of client code.</li></ul><h3>Key Takeaways</h3><ul><li><strong>Build in stages.</strong> Getting local processing rock-solid before adding cloud dependency saved me from debugging two systems at once.</li><li><strong>Constraints force better decisions.</strong> Switching from AWS to Cloudinary wasn’t in the original plan, but it kept the project moving instead of stalling on a payment method requirement — a lesson in staying resourceful under real-world limits.</li><li><strong>Test as you go.</strong> Swagger UI became my sanity check at every stage, catching issues before they compounded into harder bugs.</li><li><strong>Small projects prove real skill.</strong> This isn’t a massive system, but it’s a complete, working, testable backend — and that’s often more convincing to a recruiter than a half-finished large one.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0772c05d0a67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Earth Observation Data Is the Next Big Frontier for AI Engineers]]></title>
            <link>https://medium.com/@maryambibi1396/why-earth-observation-data-is-the-next-big-frontier-for-ai-engineers-51ea9b007e3c?source=rss-aadd2cb3a34b------2</link>
            <guid isPermaLink="false">https://medium.com/p/51ea9b007e3c</guid>
            <category><![CDATA[climate-change]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[remote-sensing]]></category>
            <dc:creator><![CDATA[Maryam]]></dc:creator>
            <pubDate>Thu, 17 Sep 2026 10:09:01 GMT</pubDate>
            <atom:updated>2026-09-17T10:09:01.226Z</atom:updated>
            <content:encoded><![CDATA[<p>For the past decade, the AI conversation has been dominated by language models, computer vision on everyday images, and recommendation systems. But quietly, a different kind of data has been accumulating at a scale most engineers haven’t fully grasped yet — Earth Observation (EO) data. Satellites are now capturing petabytes of information about our planet every single day, and the intersection of AI and EO is emerging as one of the most consequential — and underexplored — frontiers in applied machine learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-N7mHwEHKToC0xEsEuuIWg.png" /></figure><h3>The Data Explosion Nobody’s Talking About</h3><p>Missions like Sentinel-1, Sentinel-2, and Landsat generate continuous, freely available imagery covering nearly every square kilometre of Earth. Add commercial constellations like Planet Labs and Maxar, and you get daily, near-real-time snapshots of forests, glaciers, farmland, cities, and coastlines. This isn’t a niche dataset anymore — it’s one of the largest, most consistently updated sources of ground-truth data on the planet.</p><p>Yet the number of AI engineers actively building on this data remains small compared to those working in NLP or standard computer vision. That gap is the opportunity.</p><h3>Why This Matters for AI Engineers Specifically</h3><p>Working with EO data isn’t just “computer vision with satellite pictures.” It demands a different skill set that makes engineers more versatile:</p><ul><li><strong>Multispectral and temporal reasoning</strong> — unlike RGB images, satellite data often has 10+ spectral bands, and models need to reason across time-series, not single frames.</li><li><strong>Geospatial context</strong> — coordinate systems, projections, and spatial statistics become part of the modelling pipeline, not an afterthought.</li><li><strong>Real-world stakes</strong> — EO-driven models are used for disaster prediction, food security monitoring, and climate tracking, meaning the work has direct, measurable impact.</li></ul><p>I experienced this firsthand while working on a Glacial Lake Outburst Flood (GLOF) prediction system, where the challenge wasn’t just training a model — it was building a pipeline that could ingest satellite imagery, compute indices like NDWI to track lake boundaries, and turn that into a usable risk map for a specific geographic region. That kind of end-to-end thinking — from raw pixels to actionable insight — is exactly what makes EO-based AI work so valuable, and so different from typical ML projects.</p><h3>The Disaster Risk Reduction Angle</h3><p>Climate change is accelerating the frequency of floods, glacial outbursts, droughts, and wildfires — and Earth Observation is becoming the frontline data source for predicting and responding to these events before they become catastrophes. Programs like NASA and ESA’s EO4SDG (Earth Observations for Sustainable Development Goals) initiative exist precisely because this data can directly inform early-warning systems, resource allocation, and policy decisions.</p><p>For AI engineers, this means EO isn’t just a technical playground — it’s a field where machine learning has a direct line to disaster risk reduction, environmental monitoring, and sustainable development. Few domains offer that combination of technical depth and real-world urgency.</p><h3>Where the Opportunity Lies</h3><p>A few areas stand out as ripe for AI engineers entering this space:</p><ol><li><strong>Automated change detection</strong> — training models to flag deforestation, urban sprawl, or glacial lake expansion without manual review.</li><li><strong>Cloud-native EO pipelines</strong> — combining Google Earth Engine or AWS’s open geospatial datasets with cloud deployment (FastAPI, serverless functions) to make models operational, not just experimental.</li><li><strong>Accessible tooling</strong> — most EO work still requires specialised GIS knowledge; engineers who can bridge that gap and make these pipelines more approachable will be in high demand.</li></ol><h3>Getting Started</h3><p>The entry barrier is lower than most people assume. Google Earth Engine gives free access to decades of satellite imagery with a Python API. Libraries like GeoPandas, Rasterio, and Scikit-learn cover most of the geospatial-to-ML workflow. The real learning curve isn’t the tools — it’s developing the intuition for how spatial and temporal patterns in imagery translate into meaningful predictions.</p><p>For AI engineers looking for a domain where technical skill meets tangible impact, Earth Observation is no longer a fringe interest — it’s becoming core infrastructure for how we understand and respond to a changing planet. The engineers who build fluency here now will be well positioned as this field moves from research labs into production systems over the next few years.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51ea9b007e3c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Every Python Developer Should Understand Cloud Storage Trade-offs]]></title>
            <link>https://medium.com/@maryambibi1396/why-every-python-developer-should-understand-cloud-storage-trade-offs-334cf92529c7?source=rss-aadd2cb3a34b------2</link>
            <guid isPermaLink="false">https://medium.com/p/334cf92529c7</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Maryam]]></dc:creator>
            <pubDate>Mon, 14 Sep 2026 07:43:00 GMT</pubDate>
            <atom:updated>2026-09-14T07:43:00.305Z</atom:updated>
            <content:encoded><![CDATA[<p>An honest comparison of AWS S3, Cloudinary, and Firebase — based on a real project decision.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5V_Z0AP0zmZO6SOyONn77g.png" /></figure><p>While working on real-world Python projects, one lesson keeps repeating itself: the “best” tool on paper isn’t always the right tool for your situation. This became very clear to me while building <strong>Cloud Media Optimiser</strong>, a Python + FastAPI application that automatically compresses, resizes, and generates thumbnails for uploaded images before storing them in the cloud.</p><h3>The Problem</h3><p>Every modern application — from e-commerce platforms to social apps — needs a reliable way to store and serve media efficiently. The textbook answer is almost always <strong>AWS S3</strong>. It’s industry-standard, scalable, and deeply integrated with the rest of the AWS ecosystem. So naturally, that’s where I started.</p><h3>The Real-World Constraint</h3><p>Here’s what tutorials don’t tell you: AWS S3 requires a valid credit/debit card to even create a free-tier account — something not every student has easy access to. Instead of stalling the project, I treated this as a design decision rather than a blocker, and evaluated alternatives with the same goal: reliable image storage with a simple Python integration.</p><h3>Comparing the Options</h3><p>FactorAWS S3CloudinaryFirebase StorageSetup complexityModerate (IAM, buckets, permissions)Low (API key based)Low–ModerateCard required for free tier Yes No Yes (Blaze plan for storage)Built-in image transformations No (manual, via Lambda/Pillow)Yes (native)NoPython SDKBoto3 (robust, widely used)cloudinary Python packagefirebase-adminBest suited forLarge-scale, production infraMedia-heavy apps, quick MVPsFirebase-based mobile/web apps.</p><h3>Why I Chose Cloudinary</h3><p>For <strong>Cloud Media Optimiser</strong>, Cloudinary turned out to be the more practical choice — not because it’s “better” than S3 in every sense, but because it matched my actual constraints:</p><ul><li>No card requirement, so I could start immediately</li><li>Built-in compression and thumbnail generation reduced how much processing logic I had to write manually</li><li>The Python SDK integrated cleanly with my existing FastAPI /upload endpoint</li></ul><p><strong>python</strong></p><pre>import cloudinary.uploader</pre><pre>def upload_to_cloud(file_path: str):<br>    result = cloudinary.uploader.upload(<br>        file_path,<br>        folder=&quot;cloud_media_optimizer&quot;,<br>        eager=[<br>            {&quot;width&quot;: 300, &quot;height&quot;: 300, &quot;crop&quot;: &quot;thumb&quot;}<br>        ]<br>    )<br>    return result[&quot;secure_url&quot;]</pre><p>This single function replaced what would have taken significantly more setup with Boto3 and a separate Lambda function for image transformation.</p><h3>The Bigger Lesson</h3><p>This experience taught me something that goes beyond any single tool: <strong>cloud architecture decisions are rarely about which service is objectively best — they’re about which service best fits your constraints, timeline, and scale.</strong> A production system serving millions of users has very different priorities than a student project meant to demonstrate core engineering skills.</p><p>Understanding <em>why</em> you choose a tool — not just <em>how</em> to use it — is what separates following tutorials from making real engineering decisions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=334cf92529c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying a GIS/AI Model on the Cloud: My Experience with Google Earth Engine]]></title>
            <link>https://medium.com/@maryambibi1396/deploying-a-gis-ai-model-on-the-cloud-my-experience-with-google-earth-engine-f36bb4bec400?source=rss-aadd2cb3a34b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f36bb4bec400</guid>
            <category><![CDATA[remote-sensing]]></category>
            <category><![CDATA[climate-change]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Maryam]]></dc:creator>
            <pubDate>Wed, 09 Sep 2026 08:22:36 GMT</pubDate>
            <atom:updated>2026-09-09T08:22:36.126Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How I combined satellite data, machine learning, and cloud infrastructure to build a flood-risk monitoring system for Pakistan’s glacial lakes.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gDGg9qo-KyXMKRJlG177vA.png" /></figure><p>When people think about “cloud deployment,” they usually picture web apps, APIs, or containerised microservices. Rarely do they picture satellite imagery, elevation models, and machine learning models working together at a planetary scale. But that’s exactly what building a Glacial Lake Outburst Flood (GLOF) monitoring system taught me — cloud computing isn’t just for backend engineers. It’s becoming essential infrastructure for environmental science and disaster risk reduction.</p><p>In this article, I want to walk through how I used Google Earth Engine (GEE) as a cloud platform to detect, monitor, and assess glacial lake flood risk across Pakistan’s Hindu Kush–Karakoram–Himalaya (HKKH) region, and what this taught me about deploying GIS and AI workloads in the cloud.</p><h3>The Problem: Why This Matters</h3><p>Pakistan’s northern mountains hold thousands of glacial lakes, many of which are expanding rapidly due to glacier melt. When these lakes breach, they trigger Glacial Lake Outburst Floods — sudden, catastrophic floods capable of destroying entire valleys within hours. Monitoring these lakes manually, across such vast and remote terrain, is simply not feasible. This is a problem that <em>only</em> becomes solvable at cloud scale.</p><h3>Why Cloud, Not Local Processing</h3><p>Satellite imagery for a mountain range spanning thousands of square kilometres, across multiple years, is enormous — often too large to download or process on a local machine. This is where cloud-based geospatial processing becomes non-negotiable:</p><ul><li><strong>Data lives where it’s processed.</strong> Google Earth Engine hosts petabytes of satellite imagery (Landsat, Sentinel) directly in the cloud, so there’s no need to download raw data locally.</li><li><strong>Parallelised computation.</strong> Operations like NDWI (Normalised Difference Water Index) calculation across large regions run on Google’s distributed infrastructure instead of a single CPU.</li><li><strong>Reproducibility.</strong> A cloud-hosted script or repository means the entire analysis can be re-run, audited, or extended by anyone with access — critical for scientific and competition submissions.</li></ul><h3>The Architecture</h3><p>My workflow combined three layers, each doing a specific job:</p><p><strong>1. Data Layer (Google Earth Engine):</strong> I used GEE’s JavaScript API to pull multi-year satellite imagery and compute NDWI to detect water bodies. This step alone identified roughly 1,607 sq km of glacial lake surface area across the region, with around 233 sq km of new lake formation since the year 2000 — a clear, quantifiable signal of glacier retreat.</p><p><strong>2. Risk Modeling Layer:</strong> Detecting a lake isn’t the same as knowing whether it’s dangerous. I built a GLOF Risk Index by combining three weighted factors: NDWI-based water presence (30%), slope (35%), and elevation (35%). This composite index highlights which lakes pose the greatest downstream threat, not just which lakes exist.</p><p><strong>3. Machine Learning Layer:</strong> On top of the risk index, I trained a Random Forest classifier to predict flood risk, achieving 97.5% accuracy on the training data. This model was developed in a Jupyter Notebook, using labeled data structured around the same risk factors, and is designed to eventually validate and refine the rule-based index.</p><p><strong>4. Storage and Export:</strong> Processed outputs — risk maps, lake boundaries, and index layers — are exported directly to a structured Google Drive folder at 100m spatial resolution, making the results usable for GIS analysts without needing to touch the underlying cloud infrastructure.</p><h3>What I Learned About Cloud Deployment for GIS/AI</h3><p><strong>Cloud platforms aren’t one-size-fits-all.</strong> Google Earth Engine isn’t a general-purpose cloud like AWS or GCP Compute Engine — it’s a purpose-built geospatial cloud. Choosing the right <em>kind</em> of cloud infrastructure for the problem mattered more than choosing the most popular one.</p><p><strong>Version control matters even for geospatial code.</strong> Keeping the GEE scripts in a structured, versioned repository made it possible to collaborate, document, and later port pieces of the workflow into other environments (like Python-based Random Forest training).</p><p><strong>The pipeline is only as strong as its weakest layer.</strong> A perfectly accurate ML model is useless if the underlying satellite data pipeline is unreliable. Cloud deployment forced me to think about the <em>entire</em> pipeline — data ingestion, processing, modelling, and export — as one connected system, not isolated scripts.</p><p><strong>Reproducibility is a feature, not an afterthought.</strong> Because this project was built for a formal submission (EO4SDG 2026, under the IEEE GRSS REACT Technical Committee), every step needed to be explainable and repeatable — a discipline that’s easy to skip when working locally, but that cloud-based, script-driven workflows naturally enforce.</p><h3>Where This Goes Next</h3><p>This project is a small example of a much larger shift:</p><p>climate and disaster-risk monitoring increasingly depends on cloud-scale geospatial infrastructure combined with machine learning. As satellite data becomes more available and cloud platforms become more accessible to individual researchers and students, projects like GLOF monitoring won’t be limited to large institutions — they’ll be buildable by anyone with the right skills and the willingness to learn cloud-native geospatial tools.</p><p>For me, this project reinforced a simple idea: the future of AI isn’t just about better models. It’s about building complete, cloud-deployed systems that connect data, analysis, and real-world impact.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f36bb4bec400" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[97.5% Accuracy on Synthetic Data: What It Really Means (And What I Learned Building a GLOF Risk…]]></title>
            <link>https://medium.com/@maryambibi1396/97-5-accuracy-on-synthetic-data-what-it-really-means-and-what-i-learned-building-a-glof-risk-13194a9b6ede?source=rss-aadd2cb3a34b------2</link>
            <guid isPermaLink="false">https://medium.com/p/13194a9b6ede</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[remote-sensing]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[climate-change]]></category>
            <dc:creator><![CDATA[Maryam]]></dc:creator>
            <pubDate>Fri, 04 Sep 2026 11:04:26 GMT</pubDate>
            <atom:updated>2026-09-04T11:04:26.670Z</atom:updated>
            <content:encoded><![CDATA[<h3>97.5% Accuracy on Synthetic Data: What It Really Means (And What I Learned Building a GLOF Risk Model)</h3><p>A note on why numbers alone don’t tell the whole story in machine learning for disaster risk</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7lxeOHAhC2SvwaaycqkRew.png" /><figcaption>Satellite view of a glacial lake in the Hindu Kush-Karakoram-Himalayas, overlaid with a risk-heatmap combining NDWI, slope, and elevation data.</figcaption></figure><p>Glacial Lake Outburst Floods (GLOFs) are one of the most underestimated climate hazards in South Asia. In the Hindu Kush-Karakoram-Himalayas (HKKH) region, which spans across northern Pakistan, glacial lakes are forming and expanding at an alarming rate as glaciers retreat. When these lakes breach their natural or moraine dams, the resulting flood can devastate downstream communities within minutes, often with little to no warning.</p><p>As part of a remote sensing and machine learning project focused on this region, I built a system to detect glacial lakes, assess their risk, and predict potential GLOF events. Along the way, I trained a Random Forest classifier that achieved 97.5% accuracy. On paper, that number looks impressive. In practice, it taught me one of the most important lessons of my technical journey so far: a high accuracy score is not the same thing as a reliable model.</p><p>Here is what that project actually involved, and what the number really means.</p><p>Building the Risk Index</p><p>Before any machine learning model comes into play, the first step was identifying where glacial lakes exist and how they are changing over time. Using Google Earth Engine, I applied the Normalised Difference Water Index (NDWI) to satellite imagery to detect water bodies across the HKKH region. This surfaced roughly 1,607 square kilometres of lake area, with about 233 square kilometres of new lake formation identified since the year 2000, a clear signal of accelerating glacial retreat.</p><p>Detecting lakes is only half the problem. Not every lake poses the same threat. To capture that, I built a GLOF Risk Index that combines three weighted factors:</p><p>NDWI-based water presence, weighted at 30 percent Slope of the surrounding terrain, weighted at 35 percent Elevation, weighted at 35 per cent.</p><p>This index gives a composite risk score for each detected lake, factoring in both the physical presence of water and the terrain conditions that make a breach more or less catastrophic if it occurs.</p><p>On top of this index, I trained a Random Forest model to classify risk levels, which is where the 97.5% accuracy figure came from.</p><p>Why That Number Needs a Closer Look</p><p>The model was trained on synthetic data rather than a large set of historically labelled GLOF events. This is a common and often necessary approach in disaster prediction research, since real, labelled GLOF event data is scarce, geographically limited, and difficult to collect at scale. Synthetic data lets you generate a controlled, balanced dataset to train and test a model when real-world labelled examples are rare.</p><p>But this comes with an important tradeoff. A model trained on synthetic data learns the patterns and relationships that were built into the synthetic generation process. It performs well when the synthetic data closely resembles reality, but there is no guarantee that it will generalise the same way to real, messy, unpredictable satellite observations, sensor noise, seasonal variation, or rare edge-case terrain conditions.</p><p>In other words, 97.5% accuracy tells you the model is very good at recognising the patterns it was trained on. It does not yet tell you how the model will perform when it meets an actual, previously unseen glacial lake in the field.</p><p>This distinction matters enormously in a disaster risk context. A false sense of confidence in a flood prediction model is not just a technical footnote; it has real consequences for how such a tool might eventually be used, trusted, or deployed.</p><p>What I Learned</p><p>A few lessons from this stood out to me as more valuable than the accuracy score itself:</p><p>High accuracy is not the same as real-world reliability. A model can be mathematically correct on its training distribution and still be untrustworthy outside of it. Reporting accuracy without context can be misleading, even unintentionally.</p><p>Synthetic data is a starting point, not an endpoint. It is a legitimate and often necessary way to prototype a model when labelled real-world data is limited. But it should be treated as phase one of development, not the final validation.</p><p>Domain expertise matters as much as model performance. Understanding the physical process behind a GLOF, terrain slope, elevation, lake volume, and dam material shapes which features actually matter, and that domain knowledge is what makes a risk index meaningful in the first place.</p><p>Being transparent about limitations is a strength, not a weakness. It is tempting to lead with the impressive number. But the more valuable skill, especially in applied AI for real-world problems, is being able to explain exactly what a result does and does not prove.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13194a9b6ede" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Remote Sensing Needs More Python Developers]]></title>
            <link>https://medium.com/@maryambibi1396/why-remote-sensing-needs-more-python-developers-d67ff8fa6b51?source=rss-aadd2cb3a34b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d67ff8fa6b51</guid>
            <category><![CDATA[gis]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[climatetech]]></category>
            <category><![CDATA[remote-sensing]]></category>
            <category><![CDATA[programming-languages]]></category>
            <dc:creator><![CDATA[Maryam]]></dc:creator>
            <pubDate>Sun, 30 Aug 2026 11:05:06 GMT</pubDate>
            <atom:updated>2026-08-30T11:05:06.248Z</atom:updated>
            <content:encoded><![CDATA[<p>Earth observation is producing more data than ever before. Every day, satellites like Sentinel-2 and Landsat capture terabytes of imagery covering glaciers, coastlines, forests, and cities. The bottleneck isn’t data collection anymore — it’s the shortage of people who can turn that data into something actionable.</p><p>That gap is where Python comes in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vHUsbuU3HMBsmN9E-9VbbQ.png" /></figure><h3>The Skills Mismatch in GIS</h3><p>Most traditional GIS training focuses on point-and-click tools — digitising layers, running spatial joins through a menu, exporting a map. These tools are powerful, but they don’t scale. If you need to process a hundred satellite images the same way, a GIS analyst working purely through a GUI will spend days on a task that a script could finish in minutes.</p><p>At the same time, most software developers who know Python well don’t know geospatial data — projections, coordinate reference systems, raster vs. vector formats, or how satellite bands actually work.</p><p>That leaves a narrow but valuable space in the middle: people who understand both the domain and the code. Companies building climate monitoring systems, disaster-response platforms, agricultural analytics, or urban planning tools are actively looking for this combination, and there simply aren’t enough people who have it yet.</p><h3>A Case Study: Monitoring Glacial Lakes in Pakistan</h3><p>I ran into this gap directly while building a monitoring system for Glacial Lake Outburst Floods (GLOFs) in Pakistan’s Hindu Kush-Karakoram-Himalaya region — one of the most glaciated areas on Earth outside the poles, and one where glacial lakes are forming and growing as the climate warms.</p><p>The project needed to answer three questions at scale, across an enormous mountainous region:</p><ol><li>Where are the glacial lakes, and how are they changing over time?</li><li>Which of those lakes pose the highest flood risk?</li><li>Can a model flag high-risk lakes automatically, instead of relying on manual review?</li></ol><p>Doing this by hand — lake by lake, image by image — was never realistic. Python made it possible to treat the whole problem as a pipeline instead of a series of manual tasks.</p><p><strong>Detection</strong>: Using Google Earth Engine’s Python and JavaScript APIs, I ran NDWI (Normalised Difference Water Index) analysis across satellite imagery to automatically detect water bodies. This single automated step covered roughly 1,607 square kilometres of lake surface across the region — including about 233 square kilometres of new lake formation since 2000.</p><p><strong>Risk scoring</strong>: Not every lake is equally dangerous. I built a Risk Index that combined NDWI values, slope, and elevation data — each weighted based on how strongly it correlates with outburst risk — using GeoPandas and NumPy to process the geospatial layers together.</p><p><strong>Prediction</strong>: On top of the risk scoring, I trained a Random Forest model to classify lakes by risk level, reaching 97.5% accuracy on the dataset. That’s the difference between a static map and a system that can actually flag which lakes need attention first.</p><p>None of these three steps depends on a GIS-specific tool. They depend on Python — GeoPandas for spatial data handling, Scikit-learn for the model, Matplotlib for visualisation, and Google Earth Engine for the raw satellite processing.</p><h3>What This Actually Requires You to Learn</h3><p>If you’re a GIS professional considering this shift, or a Python developer considering this domain, here’s where the real leverage is:</p><ul><li><strong>GeoPandas</strong> — extends Pandas to handle spatial data (points, lines, polygons) with the same DataFrame logic you already know.</li><li><strong>Rasterio</strong> — reads and processes satellite raster data (the pixel grids that make up satellite images) directly in Python.</li><li><strong>Google Earth Engine’s Python API</strong> — gives you cloud-scale access to decades of satellite imagery without downloading terabytes of files locally.</li><li><strong>Scikit-learn</strong> — once your geospatial data is in a clean tabular format, standard ML models apply directly. Risk classification, land-cover classification, and change detection all reduce to fairly standard classification or regression problems.</li></ul><p>The geospatial-specific learning curve is real, but it’s smaller than it looks. If you already know Pandas and basic ML, the jump to geospatial data is mostly about understanding a few new data types (rasters, coordinate systems) — not learning an entirely new discipline.</p><h3>Where This Is Heading</h3><p>The next step for projects like this isn’t just running the analysis locally — it’s deploying it. A risk model that only runs on one person’s laptop doesn’t help early-warning systems in the field. That means packaging the pipeline behind an API (FastAPI is a natural fit), deploying it to the cloud, and setting it up to refresh automatically as new satellite imagery comes in.</p><p>That’s the direction I’m taking this project next — moving from a working analysis to a deployed, cloud-connected system. It’s also, I think, where the real opportunity is for anyone entering this field right now: not just running remote sensing analysis, but building the cloud infrastructure that makes it usable in real time.</p><p>Earth observation data isn’t the bottleneck anymore. The people who can turn it into decisions are.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d67ff8fa6b51" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>