<?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 Kamban Parasuraman on Medium]]></title>
        <description><![CDATA[Stories by Kamban Parasuraman on Medium]]></description>
        <link>https://medium.com/@kap923?source=rss-1f3283294fdf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*wYRHX1tp_KskFV4-0ar1Yw.jpeg</url>
            <title>Stories by Kamban Parasuraman on Medium</title>
            <link>https://medium.com/@kap923?source=rss-1f3283294fdf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 10:18:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kap923/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[Synthetic Data Generation for Fine-Tuning LLMs]]></title>
            <link>https://pub.towardsai.net/synthetic-data-generation-for-fine-tuning-llms-de9fe22bd1e6?source=rss-1f3283294fdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/de9fe22bd1e6</guid>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[insurtech]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[fine-tuning]]></category>
            <category><![CDATA[insurance]]></category>
            <dc:creator><![CDATA[Kamban Parasuraman]]></dc:creator>
            <pubDate>Sat, 25 Jan 2025 15:49:33 GMT</pubDate>
            <atom:updated>2025-01-27T11:44:09.376Z</atom:updated>
            <content:encoded><![CDATA[<h4>Tailoring General-Purpose Language Models for Enterprise Use</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ovc9TA97gbBZCz5y" /><figcaption>Photo by <a href="https://unsplash.com/@sortino?utm_source=medium&amp;utm_medium=referral">Joshua Sortino</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>General-purpose large language models (LLMs) like LLaMA, Mistral, and Phi excel at quickly answering a wide range of generic questions because they are trained on vast amounts of publicly available data, allowing them to have a broad understanding of various topics. However, when applied to specialized domains, they are less effective in grasping the industry’s nuanced language complexities. Enterprises collect and store large volumes of data, including propriety and sensitive information, for their internal use. This information remains inaccessible for public use, and hence general purpose LLM’s face limitations (understanding domain-specific terms and acronyms) when applied to industry-specific tasks.</p><p>In the insurance sector, this dynamic is particularly evident. Insurance companies collect proprietary information, including detailed client profiles, risk assessments, and claims histories. This data is crucial for accurate underwriting, policy pricing, and fraud detection. However, because this information isn’t shared publicly, general-purpose LLMs cannot access it, leading to sub-optimal performance when applied to insurance-specific applications. Custom-trained models, built with industry-specific data, are essential for delivering the precision and insights required in the insurance industry.</p><p>This article will explore how we can generate synthetic data for fine-tuning general-purpose LLMs. Dive in and discover how to overcome the limitations of general-purpose LLMs and adapt them to suit your specialized needs.</p><h3><strong>What is Synthetic Data?</strong></h3><p>Synthetic data is information that is artificially generated, rather than created by events in the real world. Synthetic data is derived from existing datasets or models, replicating the properties and characteristics of real-world events or models.</p><p>There are several ways to create synthetic data including:</p><p><strong>(a) Adding noise —</strong> Generate Gaussian or Uniform noise and add it to the data. This approach helps capture the variability/randomness we can expect in real-world data.</p><p><strong>(b) Transformations —</strong> Apply geometric transformations like rotations, translations, dilation, or scaling to come up with different perturbations of the data.</p><p><strong>(c) Statistical —</strong> The statistical models sample from different distributions (e.g., Normal, Exponential, Gamma) to create a multi-variate dataset. <a href="https://en.wikipedia.org/wiki/Copula_(statistics)">Copulas </a>are a widely employed statistical approach to generate/sample data that preserves the statistical properties of different attributes, and correlation structures.</p><p><strong>(d) Generative Adversarial Networks (GANs) —</strong> GANs are a class of generative models for tabular data. GAN architecture comprises two sub-modes — “generator” and “discriminator”, that compete with each other to produce datasets that mimic real-world data. The principle role of the Generator is to generate synthetic data that mimics the training dataset to an extent where the Discriminator cannot distinguish the synthetic data from the real data. For more details on GAN, <a href="https://towardsdatascience.com/stochastic-weather-generator-using-generative-adversarial-networks-a9856b0f83ef">please see my blog on applying GANs to simulate stochastic weather data</a>.</p><h3><strong>Why do we Need Synthetic Data?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*r9Mss0i3rnR7Y0i9EwnzUw.png" /></figure><blockquote>Real-life experiences shape biological neural networks, similarly, data shapes an artificial neural network.</blockquote><p>Real data is hard to come by or it might have sensitive/confidential information that we can’t readily get access to. Also, real-world data is very unstructured. In contrast, synthetic data is cheap to generate and is perfectly labeled and structured. This data can help organizations to fine-tune and test their models on scenarios that don’t exist. It can also help reduce the bias that may exist in real-world datasets, helping to make AI models more fair, accurate, and trustworthy.</p><p>While synthetic data provides domain-specific, well-labeled, high-volume data at a reasonable cost, it comes with its own sets of challenges. Since synthetic data is derived from existing data and models, it cannot generate completely new, yet plausible events that have not occurred yet.</p><h3><strong>Synthetic Data Generator Framework</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*6NCDkbg5JKJGoko1UQLEgw.png" /></figure><p>We will develop a Streamlit application that allows users to upload documents and generate synthetic datasets using the LLaMA 3–8B model. All of this will be done locally on our machines using Ollama. For a deeper dive into developing local RAG applications with open-source models, please see my earlier <a href="https://pub.towardsai.net/building-a-local-rag-application-for-document-discovery-e72aee7c0ab7">blog post</a>.</p><p>Typically in RAG applications, LLMs generate answers for a given question based on a specified context. The quality of these responses is based on the quality of the context the LLMs extract. However, we will employ a “UNO-reverse” strategy, where instead of seeking answers, we prompt the LLM to generate questions it can answer. In this approach, we first segment the document into smaller context windows, and for each of the contexts, we ask the LLM to generate a question that it can answer. This method leverages the LLM&#39;s ability to dynamically understand and produce contextually relevant questions.</p><p>The ultimate goal of synthetically generated data is to fine-tune general-purpose LLMs. Along with the generated questions, we should also extract corresponding reference answers. These reference answers can then serve as the “ground truth” against which the LLM’s can be fine-tuned. In summary, for each context window, we prompt the LLM to generate a question, and then use the generated question and the context to generate a reference answer from the LLM. At the end of this step, we will have a tuple consisting of Context, Question, and Reference Answer. Below is the system prompt used to generate the question-answer pairs for a given context window.</p><pre>question_answer_prompt = &quot;&quot;&quot;\<br>                You are an AI system that constructs question-answer pairs based on a given Context. <br>                Your response should always have two parts, and label the parts as follows:<br>                Question: [Insert question here]<br>                Answer: [Insert answer here]<br>                <br>                Strictly follow the response format. Please do not include any <br>                additional texts before or after Question and Answer labels.<br>                <br>                Context:<br>                {context}<br>                &quot;&quot;&quot;</pre><blockquote><strong>The source code for the Synthetic Data Generation application is available on my </strong><a href="https://github.com/kap923/SyntheticDataGenerator.git"><strong>GitHub page</strong></a><strong>.</strong></blockquote><h3>Generating Synthetic Data</h3><p>We’ll use the “<a href="https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf">Attention Is All You Need</a>” paper as an input to the application to demonstrate how the application works and generates synthetic datasets. To create the context windows, we will employ the standard <a href="https://python.langchain.com/docs/how_to/recursive_text_splitter/">RecursiveCharacterTextSplitter</a>. This results in 31 chunks for the referenced paper, each representing a context window. The application generates a Question and Reference Answer for each context using the LLaMA 3–8B model, while the Mistral model generates a response to compare against the Reference Answer. The resulting synthetic dataset consists of 31 data points for fine-tuning LLMs.</p><pre>def TextSplit(raw_text):<br>    text_splitter = RecursiveCharacterTextSplitter(<br>        chunk_size=1000,            # The maximum size of each text chunk<br>        chunk_overlap=80,           # The number of characters to overlap between chunks<br>        length_function=len,        # Function to calculate the length of each chunk<br>        is_separator_regex=False,   # Indicates if the separator is a regex<br>    )<br>    # Split the raw text into chunks and return the result<br>    return text_splitter.split_documents(raw_text)</pre><p>The table below presents the synthetic dataset generated by the application. For brevity only 4 of the 31 data points are shown. The “Context” column contains text chunks from the document. The “Question” and “Reference Answer” columns display the questions and reference answers generated by the LLaMA 3–8B model. The “Response” column includes the responses from the Mistral model. As demonstrated by the sample training instances in the table, the application successfully generated a variety of questions, including fact-based and contextual ones.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/79a69739d63445b9492b7b3e27742e89/href">https://medium.com/media/79a69739d63445b9492b7b3e27742e89/href</a></iframe><h3>Fine-Tuning LLMs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mS3Lr-7cgxf3wu-pxL7MGA.png" /></figure><p>Fine-tuning LLMs is beyond the scope of this blog and will be addressed in a future article. However, to demonstrate how the synthetic data generated by this application can be utilized for fine-tuning generic LLM’s, we will use the Mistral 7-B model to provide different perspectives on the generated question. This approach is similar to the variations we can expect when fine-tuning the weights in general-purpose LLMs. The objective function for fine-tuning the LLM will be to minimize the cross-entropy loss between the Reference Answer and the Response during each iteration of the weight adjustments.</p><h3>Final Thoughts</h3><p>Off-the-shelf, general-purpose LLMs excel at contextualizing information, but they fall short when applied to domain-specific tasks. While prompt engineering can help tease out some relevant information, these language models inherently struggle to understand industry-specific lingo.</p><p>Fine-tuning offers a viable solution to overcome these limitations, transforming general-purpose LLMs to fit specific industry needs. Fine-tuning LLMs requires a substantial amount of quality data (Question-Reference Answer pairs), and the application shared in this article provides an effective solution to quickly build and scale enterprise-specific synthetic datasets.</p><p>Thanks for reading this article! All feedbacks are appreciated. For any questions feel free to contact me.</p><p><strong>If you liked this article, here are some other articles you may enjoy:</strong></p><ul><li><a href="https://towardsdatascience.com/stochastic-weather-generator-using-generative-adversarial-networks-a9856b0f83ef">Stochastic Weather Generator using Generative Adversarial Networks</a></li><li><a href="https://pub.towardsai.net/building-a-local-rag-application-for-document-discovery-e72aee7c0ab7">Building a Local Committee-of-Expert (CoE) RAG Application for Document Discovery</a></li></ul><blockquote><strong><em>The views expressed in this article are my own and do not necessarily reflect the views of my employer.</em></strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de9fe22bd1e6" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/synthetic-data-generation-for-fine-tuning-llms-de9fe22bd1e6">Synthetic Data Generation for Fine-Tuning LLMs</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Local Committee-of-Expert (CoE) RAG Application for Document Discovery]]></title>
            <link>https://pub.towardsai.net/building-a-local-rag-application-for-document-discovery-e72aee7c0ab7?source=rss-1f3283294fdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/e72aee7c0ab7</guid>
            <category><![CDATA[insurance]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Kamban Parasuraman]]></dc:creator>
            <pubDate>Fri, 20 Dec 2024 06:30:41 GMT</pubDate>
            <atom:updated>2025-01-07T15:48:07.578Z</atom:updated>
            <content:encoded><![CDATA[<h4>Transforming the Landscape of Insurance and Reinsurance</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-V5tzkk-_dVmRxX_" /><figcaption>Photo by <a href="https://unsplash.com/@vladdeep?utm_source=medium&amp;utm_medium=referral">Vlad Deep</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I n today’s fast-paced world, where access to timely and accurate information can be a critical differentiator, organizations across various sectors constantly seek innovative solutions to stay ahead of the competition. This is particularly true in the insurance and reinsurance industry where the underwriting expenses have grown significantly in the last decade. Rising costs, salaries, and regulatory compliance requirements drive this consistent increase in underwriting expenses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*i9cSIuCFUKkw5E4YongRgQ.png" /><figcaption>U.S. Property and Casualty Insurance Industry — Underwriting Expenses (Source: <a href="https://content.naic.org/sites/default/files/inline-files/2023%20Annual%20Property%20%26%20Casualty%20Insurance%20Industries%20Analysis%20Report.pdf">WWW.NAIC.ORG</a>)</figcaption></figure><p>Insurance companies spend considerable time and resources in parsing out the information in the policy and claims forms. The extracted information from these documents underpins the rest of the underwriting &amp; claims decision-making process. Large Language Models (LLMs) present a transformative opportunity for the insurance industry to bring down the underwriting expenses by automating and streamlining the information extraction process from the vast amount of text data found in policy and claims forms.</p><p>However, despite their immense potential, there are concerns about using models like ChatGPT or any third-party platforms due to data privacy issues. Insurance companies handle vast amounts of sensitive information, including personal details and financial records. The prospect of transmitting sensitive information through external servers raises legitimate worries about data breaches and regulatory compliance, such as <a href="https://gdpr.eu/">GDPR</a> and <a href="https://oag.ca.gov/privacy/ccpa">CCPA</a>. Organizations are also concerned about third-party platforms using companies&#39; proprietary data for training their models.</p><p>Organizations can leverage AI’s advanced capabilities by deploying LLMs locally without compromising data privacy and security. In this blog, we will explore a simple RAG (Retrieval-Augmented Generation) application for document discovery using <a href="https://streamlit.io/">Streamlit</a>, <a href="https://ollama.com/">Ollama</a>, and <a href="https://www.trychroma.com/">ChromaDB</a>, all hosted locally to safeguard sensitive data while demonstrating the effectiveness of advanced AI technology.</p><h3>What is RAG?</h3><p>Retrieval-Augmented Generation (RAG) is an advanced AI technique that enhances the capabilities of Large Language Models (LLMs) by combining the strengths of information retrieval and text generation to create more accurate and contextually aware responses. RAG involves two steps:</p><p><strong>Retrieval:</strong> The model retrieves relevant information from an external source and/or an internal knowledge base.</p><p><strong>Generation:</strong> The retrieved information is then used to generate responses, making them more accurate and contextually relevant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gNJJrLUgivKFKD0uv5TB_g.png" /><figcaption>RAG Architecture</figcaption></figure><p>The chart below highlights the key benefits of building a local RAG application.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/235d9fad57c1e246017ce57e22a9a842/href">https://medium.com/media/235d9fad57c1e246017ce57e22a9a842/href</a></iframe><h3>Transformers</h3><p>LLM’s are based on Transformer architecture. Transformers are neural network architectures designed to handle sequential data, such as text. The architecture excels at “transforming” one data sequence into another sequence. They are highly effective for tasks in natural language processing (NLP) due to their ability to capture long-range dependencies and relationships within texts. Transformers consist of an encoder-decoder structure. The encoder processes the input sequence, while the decoder generates the output sequence. The key component of the transformers is the self-attention mechanism, which allows the model to weigh the importance of different words in a sequence relative to each other. Please refer to the <a href="https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf">Attention Is All You Need</a> paper for more information on transformers and attention mechanisms.</p><h3>Ollama</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/112/1*XKWn1_0Hr9rTeG1q0ZMBhA.png" /></figure><p><a href="https://ollama.com/">Ollama</a> is a free and open-source tool that allows users to run large language models (LLMs) locally on their machines, ensuring data privacy and controls. Ollama does this by using a technique called model quantization. In simple terms, quantization reduces the model size by converting the floating-point numbers used in the model’s parameters to lower-bit representations, such as 4-bit integers. This helps in reducing the memory footprint and allows for quick deployment on devices with limited resources. You can download Ollama using this <a href="https://ollama.com/download">link</a>. Ollama provides a Command-Line Interface (CLI) for easy installation and model management. Below is a partial list of available commands in Ollama.</p><pre># Check installed version of ollama<br>C:\&gt;ollama --version<br><br># Download a particular LLM or embedding model<br>C:\&gt;ollama pull llama3<br><br># List of installed models<br>C:\&gt;ollama list<br><br># Run your ollama models<br>C:\&gt;ollama serve<br><br># Show model information<br>C:\&gt;ollama show llama3</pre><h3>Streamlit</h3><p><a href="https://streamlit.io/">Streamlit </a>is an open-source Python library designed to facilitate rapid development and sharing of custom applications. It empowers developers and data scientists to create interactive, data-driven apps with minimal effort and maximum efficiency. To assist new users in familiarizing themselves with its capabilities, Streamlit offers an extensive <a href="https://streamlit.io/gallery">App gallery</a>. Streamlit can be easily installed using the following command-</p><pre>(envn) C:\&gt;pip install streamlit</pre><h3>ChromaDB</h3><p><a href="https://www.trychroma.com/">Chroma</a> is an open-source AI application vector database designed for storing and retrieving vector embeddings. Unlike traditional databases that store data in structured tables with rows and columns using a relational model, a vector database stores data as a vector representation, making them well-suited for handling complex, unstructured data. Vector databases excel at similarity searches and complex matching. A quick overview of Chroma can be found <a href="https://docs.trychroma.com/getting-started">here</a>. Chroma can be easily installed using the following command.</p><pre>(envn) C:\&gt;pip install chromadb</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*8P0NBe48ohRYkLTGEwNZwQ.png" /><figcaption>Transforming Texts to Latent-Space Representations</figcaption></figure><p>Vector embeddings provide a way to represent words, sentences, and even documents as dense numerical vectors. This numerical representation is essential because it allows machine learning algorithms to process and understand text data. Embeddings capture the semantic meaning of words and phrases. Words with similar meanings will have embeddings that are close together in vector latent space. For example, the words “king” and “queen” will be closer to each other than “king” and “transformer”. For LLaMA 3, the embedding vector has a dimension of 4096. This means each token is represented by a 4096-dimension vector. To experiment and visualize tokenization and embeddings from different models, please see this <a href="https://tiktokenizer.vercel.app/">app</a>.</p><h3>Committee of Experts</h3><p>In building a robust RAG application using quantized versions of the LLMs, one significant challenge users often face is ensuring the accuracy and completeness of the generated responses while also avoiding the issue of hallucinations in language models. To address this, let’s employ a Committee of Experts (CoE). By leveraging multiple LLMs — specifically LLaMA 3–8B, Mistral 7B, and Phi3-mini — for each query, the application can provide users with multiple perspectives on the same question. This method involves passing each query through all three models, allowing users to receive three distinct responses. While all three models are designed for general-purpose NLP tasks, their performance may vary slightly based on the specific task and dataset used for training these models. LLaMA 3–8B is the largest model, followed by Mistral 7B, and then Phi3-mini. Generally, larger models can capture more complex patterns and nuances in the data, leading to higher accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*BZSZ6ts7J_LfBYkt4cTIyA.png" /><figcaption>Committee of Experts</figcaption></figure><p>The multi-model strategy enhances users confidence in the system’s outputs, as the convergence of the contextually similar answers across different models suggests reliability. By cross-verifying the answers, users can identify the most accurate and comprehensive response, and build confidence scores for different models in the CoE. This collaborative methodology also helps identify and mitigate individual model biases and errors.</p><p>Using real insurance documents for testing is not feasible due to the presence of personally identifiable information and strict data protection regulations. Instead, we will use publicly available research papers to demonstrate the application’s capabilities. The structure and complexity of research papers provide a robust testbed, highlighting the application’s features without compromising data privacy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YX-GxEWGOOPlgbu85Xzhaw.png" /><figcaption>Local RAG Application</figcaption></figure><blockquote>The source code for the application can be found on my <a href="https://github.com/kap923/DocumentDiscovery.git">GitHub</a> page.</blockquote><p>We will use <a href="https://journals.ametsoc.org/view/journals/clim/34/1/jcliD200367.xml?tab_body=pdf">this </a>paper published in the American Meteorological Society to evaluate the application. When prompted to “Summarize the important findings from the paper”, responses were generated by each member of the CoE (see Table below). Each LLM in the CoE is trained on distinct datasets and exhibits unique characteristics and strengths, akin to the diverse expertise found in a panel of human experts.</p><p>For instance, the Phi-3 model provided a detailed response, itemizing the important findings. In contrast, the Mistral model delivered a more concise summary. This diversity in viewpoints ensures that the final output is comprehensive, nuanced, and well-rounded, effectively capturing the multifaceted nature of the query posed to the application.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5617b1a018f2c55a33231a47f4b676aa/href">https://medium.com/media/5617b1a018f2c55a33231a47f4b676aa/href</a></iframe><h3>Evaluate Model Outputs</h3><p>One crucial consideration for building a robust RAG framework is assessing the accuracy of responses generated by LLMs. Typically, the most reliable method for evaluating these responses involves human feedback, where individuals review and rate the AI-generated outputs. However, obtaining high-quality human feedback is often both expensive and time-consuming.</p><p>To streamline this process, we will automate the evaluation by comparing responses from different LLMs by encoding them into embeddings and calculating the cosine similarity between the outputs. If the cosine similarity among all three models exceeds a certain threshold, we can assign a high confidence score to the responses. A cosine similarity score of 1 indicates an exact match, while a score of 0 indicates no similarity.</p><p>Sentence Transformers are a type of machine learning model designed to generate dense vector representation (embeddings) of sentences and paragraphs. all-MiniLM-L6-v2 is a compact but powerful Sentence Transformer model trained to generate high-quality sentence embeddings. This model maps sentences and paragraphs to a 384-dimensional dense vector space, making it suitable for tasks such as clustering or semantic search. By default, input text longer than 256 word pieces is truncated. Overall, the responses have a meaningful similarity, indicating higher level of confidence in the responses from the CoE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/1*X2oE_TDJa2lM48laCC-ovA.png" /><figcaption>Cosine Similarity between responses from different LLM’s for the Prompt “Summarize the important findings from the paper”</figcaption></figure><h3>Closing Thoughts</h3><p>In this blog, we developed a minimalistic CoE RAG application for document discovery. This serves as a proof-of-concept, demonstrating the foundational capabilities of the application for document discovery. We can further customize the CoE RAG framework based on specific needs and preferences.</p><p>General-purpose LLMs like LLaMA, Mistral, and Phi may not natively comprehend the insurance-specific terms and acronyms used in the Property and Casualty industry. Due to this limitation, these models might not perform optimally out-of-the-box. To address this, we need to fine-tune the models to familiarize them with insurance-specific terminology. In the next blog, we will explore methods for generating synthetic data to custom-train general-purpose LLM’s for insurance-specific use cases.</p><p>Thanks for reading this article! All feedbacks are appreciated. For any questions, feel free to contact me.</p><p><strong>If you liked this article, here are some other articles you may enjoy:</strong></p><ul><li><a href="https://medium.com/@kap923/hurricane-path-prediction-using-deep-learning-2f9fbb390f18">Hurricane Path Prediction using Deep Learning</a></li><li><a href="https://towardsdatascience.com/stochastic-weather-generator-using-generative-adversarial-networks-a9856b0f83ef">Stochastic Weather Generator using Generative Adversarial Networks</a></li></ul><blockquote>The views expressed in this article are my own and do not necessarily reflect the views of my employer.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e72aee7c0ab7" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/building-a-local-rag-application-for-document-discovery-e72aee7c0ab7">Building a Local Committee-of-Expert (CoE) RAG Application for Document Discovery</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bringing AI to Next Generation Insurance Solutions]]></title>
            <link>https://medium.com/data-science/bringing-ai-to-next-generation-insurance-solutions-1a75d8e81a33?source=rss-1f3283294fdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a75d8e81a33</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[insurance]]></category>
            <dc:creator><![CDATA[Kamban Parasuraman]]></dc:creator>
            <pubDate>Fri, 29 Jan 2021 23:03:54 GMT</pubDate>
            <atom:updated>2021-03-17T20:15:19.728Z</atom:updated>
            <content:encoded><![CDATA[<h4>Convolutional Neural Nets for Property Insurance Applications</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gNCZz4Z7XfwTCjrQGD8Hyw.jpeg" /><figcaption><strong>Building Footprints - San Francisco </strong>(Image by Author)</figcaption></figure><p>From self-driving cars to crypto-currencies, technology is disrupting all facets of our lives — including how we work, eat, and communicate. Similarly, businesses are integrating technology and digitizing business processes to drive growth and create value for customers. While technology has transformed many industries, the pace of adoption of technology within the Property and Casualty (P&amp;C) industry is relatively slow. In fact, the cost structures in the P&amp;C industry have not improved. The administrative cost per policy has increased by more than 30% during the last decade.</p><p>To address increasing expenses and <a href="https://www.investopedia.com/terms/l/loss-ratio.asp">loss-ratios</a>, insurtechs like <a href="https://www.hippo.com/">Hippo Insurance</a> and <a href="https://www.lemonade.com/">Lemonade</a> are harnessing the power of AI and automation to redefine how customers interact with their insurance carriers. By forgoing the traditional insurance agents and creating online distribution channels, these insurtechs were able to minimize the customer touchpoints across the entire value chain starting from insurance quote to binding and all the way to claims settlement. While most of the insurtechs have focused on disrupting the residential property market by providing a quick and seamless online experience for their end-users, the commercial and industrial insurance markets are ripe for disruption.</p><blockquote><strong>The next insurtech disruptor would be a company that can map out commercial and industrial assets, build analytics for better risk selection and claims management, and scale the process to cover small and medium-sized enterprises (SME’s). </strong>For streamlining online distribution channels, establishing analytics-driven feedback loops across underwriting, pricing, and claims is critical. In this context, aerial imagery and photographs can be used to build custom analytics solutions for better risk selection and management for (re)insurance carriers. <strong>Think of building a data refinery and data pipelines from aerial imageries that can help in underwriting and post-event analysis after a hurricane or an earthquake strikes.</strong></blockquote><p>While there are many ways to build data-driven workflows from spatial imageries, in this article let’s explore one such powerful method of extracting insights from aerial and street-view data. In this article, let&#39;s explore how C<a href="https://en.wikipedia.org/wiki/Convolutional_neural_network">onvolutional Neural Networks</a> (CNNs) can help in building simple, yet powerful, predictive models for geospatial data. The actionable insights from these predictive models can help improve the quality of risk selection decision trees for underwriting and claims management.</p><h3><strong>Convolutional Neural Networks:</strong></h3><p>Convolutional Neural Networks (CNNs) are the most common type of neural networks used for image analysis &amp; classification problems. Similar to the standard neural networks, convolutional neural networks also have an input and an output layer, along with multiple hidden layers. For the CNNs, the hidden layers comprise a pair of operations — <strong><em>convolution</em></strong> and <strong><em>pooling</em></strong>. A schematic of the CNN architecture is shown below with two pairs of convolution and pooling operations. We start with the input image, which is typically a 3D matrix. The image is then transformed by passing the 3D array through a sequence of convolutional layers. The optimal number of stacks of convolution and pooling layers depends on the finer patterns that exist in the images. At the end of each convolution operation, we create a feature map of the input layer. After a predetermined number of convolution layers are reached, we flatten the convolved 3D outputs to a 1D vector, before feeding it to a standard multi-layer perceptron neural network model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RRjMbCz5r3VBdwL9Szn45A.png" /><figcaption><strong>Schematic of Convolutional Neural Networks </strong>(Image by Author)</figcaption></figure><p><strong><em>Convolution: </em></strong>The role of the convolution layer is feature extraction from images. Images typically comprise of patterns like edges, shapes, and objects. As these patterns are stationary, we can use smaller dimension filters/kernels to abstract these large scale image characteristics. As part of the convolution layer, we predefine a select number of filters, along with their dimensions. A filter can be thought of as a small matrix (e.g. 2x2) and the values are initialized with random numbers. We then convolve the filter and the image by sliding the center of the 2x2 filter over each 2x2 block of a pixel in the input image, then multiplying each value in the filter by the pixel value in the image, and finally summing up these products. The resulting output from the convolution layer represents a feature map of the input image, where different patterns are abstracted. The graphic below shows the 2D image array (4x4), filter (2x2), and the output feature map of dimension 4x4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*1izgwlPlYP3yPR515D3i0Q.gif" /><figcaption><strong>Convolution (Input Image X Filter = Feature Map)</strong></figcaption></figure><p><strong><em>Pooling: </em></strong>After convolution comes the pooling operation. The purpose of pooling the convolved feature maps is to — (1) compress information &amp; reduce the dimensionality of the data, (2) improve computational time, and (3) control overfitting. There are two common types of pooling functions: a) Max pooling and b) Average pooling. While the “max pooling” function returns the maximum value of the convolved array covered by the filter, the “average pooling” returns the average value of the convolved array covered by the filter. The graphics below shows an example of max pooling with pool size 2x2 and stride 2. Here we have reduced the dimensionality from size 4x4 to size 2x2. The pooled values represent the pixels that are most activated (e.g. edges, patterns) in the original image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*XfmDPCcCoFe-xW9mtu0QOw.png" /><figcaption><strong>Max Pooling [Pool Size = 2x2 &amp; Stride = 2] </strong>(Image by Author)</figcaption></figure><p>Now that we have covered the basic building blocks of the convolutional neural networks, let’s see how we can easily implement a convolutional layer using TensorFlow Keras API. The code snippet below shows the generic implementation of a convolutional layer. For this implementation, we are choosing the default number of filters to be 64, with a kernel/filter size of 3x3. We are also using max-pooling with a pool size of 3x3 and strides set to 1 pixel. <a href="https://en.wikipedia.org/wiki/Rectifier_(neural_networks)">Rectified Linear</a> (ReLU) is the activation function of choice for this implementation.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a86e9e74f212fe615b7a645a11da4f7c/href">https://medium.com/media/a86e9e74f212fe615b7a645a11da4f7c/href</a></iframe><p>We can easily stack up these convolution layers to create a CNN model of desired depth as shown in the code snippet below. For example, we start off by instantiating a Keras Tensor with the input image, and then sequentially pass the outputs from one layer as inputs to the next convolution layer. In the end, we flatten the 3D feature maps to 1D feature vectors before feeding them to a standard feed-forward network with a number of end nodes representing the number of labels in the classification problem we are trying to solve.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/106c0a4a97dfc52622cfab4807949618/href">https://medium.com/media/106c0a4a97dfc52622cfab4807949618/href</a></iframe><h3>Applications:</h3><p>We have seen how easy it is to implement a basic CNN in Keras. Now, let’s apply the CNN model to three different datasets, and gauge its effectiveness in inferring information/patterns from spatial imageries. The first two datasets involve identifying land-use categories from aerial imageries which helps in delineating and geocoding properties/infrastructure of interest, and building exposure datasets for underwriting data pipeline. The last dataset looks at assessing building damages, which helps in automated claims settlement workflows.</p><p><strong><em>Datasets:</em></strong></p><p><strong><em>1.UC-Merced Land Use Dataset: </em></strong>This dataset has nearly 2100 aerial imageries covering 21 different land use classes. A sample of 16 different images, along with the designated labels are shown below. The dataset can be downloaded from this <a href="http://weegee.vision.ucmerced.edu/datasets/landuse.html">link</a>. Although the data comes with one designated label per image, we can see from a visual inspection that more than one label can be assigned to some of the images. For example, the first image can be labelled as “baseball diamond” , “trees” and “buildings”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*a18hGybPo6XEveRzwK5Sbw.jpeg" /><figcaption><strong>Sample of UC-Merced Land Use Images </strong>(Image by Author)</figcaption></figure><p><strong><em>2. UC-Merced Land Use Dataset (Multi-Label): </em></strong>To make the UC-Merced land-use catalog more<em> </em>representative of the ground reference data, researchers at <a href="https://bigearth.eu/">https://bigearth.eu</a>/ manually re-labeled each image with one or more (maximum seven) labels. There are 17 different classes in the re-labeled dataset, and a sample of images along with the assigned label(s) is shown below. The multi-labeled UC-Merced land use database can be downloaded from this <a href="https://bigearth.eu/datasets">link</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*GecsC8JzSWREHstN3tyfEw.jpeg" /><figcaption><strong>Sample of UC-Merced Land Use Images [Multi-Label] </strong>(Image by Author)</figcaption></figure><p><strong><em>3. PEER ImageNet:</em></strong> As part of the <a href="https://apps.peer.berkeley.edu/phichallenge/">phi-net challenge</a>, the Pacific Earthquake Engineering Research (PEER) center at UC-Berkeley has assembled a large structural image dataset. The dataset aids in developing and evaluating automated vision-based algorithms for structural health monitoring and damage assessment. There are <a href="https://apps.peer.berkeley.edu/phi-net/detection-tasks/">eight detection tasks</a> within the phi-net challenge, and for this study, we will be using the Task 1 Scene Level data, which addresses the scaling issues in images. There are 24,309 images, and they are grouped under these three classes — a) Pixel, b) Object and c) Structural. The dataset can be requested from this <a href="https://apps.peer.berkeley.edu/phi-net/download/">webpage</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*eRPyHwke_2dkrTiUgCOChQ.jpeg" /><figcaption><strong>Task 1: Scene Level Images </strong>(Image by Author)</figcaption></figure><h3>Results:</h3><p>For all three applications, the base CNN model architecture is the same as shown earlier, with minor modifications to read/write operations reflecting the inputs-outputs data in use. The full model implementation can be found on my <a href="https://github.com/kap923/CNN_ImageClassifier.py">GitHub page</a>.</p><p><strong><em>Single Category: </em></strong>Out of the 2100 images in this dataset, we used 2000 images for training and validation purposes, and the remaining 100 images were used for testing the model. The exhibit below shows a sample of images in the test dataset, with both the actual (left) and predicted (right) labels. The model has done reasonably well in identifying patterns in the images and predicting the appropriate labels. There are also instances where there were minor mismatches between the actual and predicted labels. For example, the image on the 3rd row and 1st column is categorized as “dense-residential”, but the CNN model has predicted it to be a generic “building” category.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kR7C_Z6_-pfxXsTrdA74iw.png" /><figcaption><strong>Actual [left] and Predicted [right] </strong>(Image by Author)</figcaption></figure><p>To summarize the performance of the CNN model on this classification problem, we generated the confusion matrix based on the Actual and Predicted labels for the test data. We can see the model has generalized well, and the confusion matrix looks reasonable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*FPDUCdsi2ZlJuAu6dgCMFA.png" /><figcaption><strong>Confusion Matrix </strong>(Image by Author)</figcaption></figure><p><strong><em>Multiple Labels:</em> </strong>The same code implementation can be further extended to perform multi-label classification. Similar to the previous analysis, we used 2000 images for training and validating the model, and the remaining 100 images for testing purposes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NiirS-wAaRkeDwgQxn_opw.png" /><figcaption><strong>Sample of Images in Testing Dataset — Actual Labels </strong>(Image by Author)</figcaption></figure><p>The above exhibit shows a sample of images from the testing dataset along with the actual label(s). Now for the same images, let’s compare and contrast the generated labels from the CNN model. We can clearly see the predicted labels are more descriptive of the images, highlighting the effectiveness of the CNN model to pick multiple patterns within an image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kUu1NgarOjAUIZyJDBTXjg.png" /><figcaption><strong>Sample of Images in Testing Dataset — Predicted Labels </strong>(Image by Author)</figcaption></figure><p><strong><em>Building Damage:</em> </strong>Now, let’s transition to evaluating the robustness of the same CNN model in assessing scaling issues in visual damage estimation. As mentioned earlier, the goal here is to classify scene-level images and categorize them as Pixel, Object, or Structure. The model was able to achieve a prediction accuracy score of 82%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*B9mcSYDdlK2cCN5WMcW4ug.png" /><figcaption><strong>Confusion Matrix — Model Performance on Task 1 of Building Damage Estimation </strong>(Image by Author)</figcaption></figure><h3>Closing Thoughts:</h3><p>The majority of the world’s risks are uninsured. The difference between economic and insured loss is called a <strong><em>“protection gap”</em></strong>. There are a myriad of reasons why the insurance take-up rates are not higher, but the prevailing cost-structures are the most prohibitive reason. If we can leverage the recent advancements in technology and computing to bring down the insurance cost structures, we would be able to make a serious push in closing the protection gap.</p><p>In this article, we touched upon the topic of building a simple convolutional neural network model that can help in deriving actionable insights from spatial data. These automated models, when integrated within a re(insurer) data workflow, can help optimize combined-ratios and bring down the insurance cost structures. Once georeferenced, these models can be automated and scaled to:</p><blockquote><strong>1. Develop location-level exposure footprints of buildings and infrastructure for regions of interest</strong></blockquote><blockquote><strong>2. Create grid-level exposure sets and risk maps, which can be further extended to develop new parametric insurance products</strong></blockquote><blockquote><strong>3. Improve risk selection decision trees for underwriting and pricing</strong></blockquote><blockquote><strong>4. Fine-tune claims management process</strong></blockquote><p>Thanks for reading this article! All feedbacks are appreciated. For any questions, feel free to contact me.</p><p><strong>If you liked this article, here are some other articles you may enjoy:</strong></p><ul><li><a href="https://medium.com/@kap923/hurricane-path-prediction-using-deep-learning-2f9fbb390f18">Hurricane Path Prediction using Deep Learning</a></li><li><a href="https://towardsdatascience.com/stochastic-weather-generator-using-generative-adversarial-networks-a9856b0f83ef">Stochastic Weather Generator using Generative Adversarial Networks</a></li><li><a href="https://towardsdatascience.com/hurricane-florence-building-a-simple-storm-track-prediction-model-1e1c404eb045">Hurricane Florence — Building a Simple Storm Track Prediction Model</a></li></ul><p><strong><em>References:</em></strong></p><ol><li>Yang, Y, and Newsam, S. (2010). Bag-Of-Visual-Words and Spatial Extensions for Land-Use Classification, ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems (ACM GIS), 2010.</li><li>Chaudhuri, B., Demir, B., Chaudhuri. S., Bruzzone, L. (2018). Multi-label Remote Sensing Image Retrieval using a Semi-Supervised Graph-Theoretic Method, IEEE Transactions on Geoscience and Remote Sensing, vol. 56, no.1.</li><li>Gao, Y. and Mosalam, K. M. (2019). PEER Hub ImageNet (<em>Φ</em>-Net): A large-scale multi-attribute benchmark dataset of structural images, <em>PEER Report</em> №2019/07, Pacific Earthquake Engineering Research Center, University of California, Berkeley, CA.</li><li>Gao, Y., &amp; Mosalam, K. M. (2018). Deep transfer learning for image-based structural damage recognition. <em>Computer-Aided Civil and Infrastructure Engineering</em>, 33(9), 748–768.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a75d8e81a33" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/bringing-ai-to-next-generation-insurance-solutions-1a75d8e81a33">Bringing AI to Next Generation Insurance Solutions</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stochastic Weather Generator using Generative Adversarial Networks]]></title>
            <link>https://medium.com/data-science/stochastic-weather-generator-using-generative-adversarial-networks-a9856b0f83ef?source=rss-1f3283294fdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9856b0f83ef</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[insurance]]></category>
            <category><![CDATA[risk-management]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[insurtech]]></category>
            <dc:creator><![CDATA[Kamban Parasuraman]]></dc:creator>
            <pubDate>Thu, 10 Sep 2020 00:15:15 GMT</pubDate>
            <atom:updated>2025-01-25T15:33:19.612Z</atom:updated>
            <content:encoded><![CDATA[<h4>Modeling Multivariate Distributions using GANs</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*161a6Yv00JFvKJravvBBMA.jpeg" /><figcaption>Image by Author</figcaption></figure><p>Stuck behind the paywall? Click <a href="https://towardsdatascience.com/stochastic-weather-generator-using-generative-adversarial-networks-a9856b0f83ef?sk=87f42f965189c2a1ffe821d3d33e0bd8">here</a> to read this story using my friend link!</p><p>Generative models have been used in a myriad of applications across different domains — starting from quantitative finance to model and minimize tail risk to hydro-climate research to study the joint effects of extreme weather. The power of generative models lies in its ability to encapsulate the entire dependence structure and the underlying probability distribution of the datasets. This is very useful because, using generative models we can not only create future representations of datasets, but also sample new realistic data points that preserves the cross correlation across the original training dataset.</p><p>Generative Adversarial Networks (GANs) are a new class of generative models that was first introduced by <a href="https://arxiv.org/abs/1406.2661"><em>Goodfellow et al. (2014)</em></a>. Since then, GANs have found widespread adoption within the machine learning community to solve unsupervised machine learning problems including image/text generation and translation. In this article, let us explore how we can use GANs to model discrete-time stochastic processes, and on-demand create plausible samples to construct synthetic time series of weather data.</p><h3>Brief Review of GAN’s:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sJE_ax21jxB0cAbuPAc7eQ.jpeg" /><figcaption><strong>Schematic Architecture of Generative Adversarial Networks </strong>(Image by Author)</figcaption></figure><p>GANs architecture comprise of two sub-modes called <strong><em>Generator (G) </em></strong>and <strong><em>Discriminator (D)</em></strong>, that compete with each other with the goal of achieving <a href="https://en.wikipedia.org/wiki/Nash_equilibrium">Nash equilibrium</a> through the training process. The Generator learns to map the latent space (e.g. Noise ~ <em>N(0,1)</em>) to the data space over which the given data samples are distributed, and the Discriminator evaluates the mapping done by the Generator. The principle role of the Generator is to generate synthetic data that mimics the training dataset to an extent where the Discriminator cannot distinguish the synthetic data from the real data.</p><p>The input to the Generator is a random noise vector<em> x’ </em>(usually a uniform or normal distribution). The noise vector is mapped to a new data space via Generator to obtain a fake sample, <em>G(x’)</em>, which is a multi-dimensional vector. The Discriminator is a binary classifier that takes in both the synthetic <em>G(x’)</em> and the training (<em>x</em>) dataset and learn to classify them as fake and real. Optimal state of the GAN model is reached when the Discriminator cannot determine whether the data comes from the real dataset or the Generator.</p><p>Several variations of GANs have been developed over time to address specific needs of the problem in hand, but all these variants employ Adversarial training that happens in two phases:</p><p><strong>Phase I:</strong> Train the Discriminator and freeze the Generator. This is done by passing samples of both the real and fake data to the model and evaluate if the Discriminator can predict them correctly. During Phase I of the training process, the network will only do the forward pass and no back-propagation of error will be applied.</p><p><strong>Phase II:</strong> In this phase we train the Generator, and freeze the Discriminator. This is done by optimizing the Generator to create realistic samples that would fool the the trained Discriminator from Phase I.</p><p>Once trained, the GANs model is optimized to produce synthetic time series that’s realistic enough to mimic the real time series data. After training, the Generative model can be used to create new plausible samples, on demand.</p><h3>What is a stochastic weather generator?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*cJcixZCVoAN1J4q7Plj47A.jpeg" /><figcaption>Image by Author</figcaption></figure><p>A stochastic weather generator is a statistical model that aims to produce synthetic time series of weather data of unlimited length for a location or a region based on analysing the statistical characteristics of weather in that region. Most stochastic weather generators use a combination of Markov procedure and frequency distribution of different weather variables.</p><p>In climate modeling, multivariate distributions have been traditionally modeled using <a href="https://en.wikipedia.org/wiki/Copula_(probability_theory)#:~:text=In%20probability%20theory%20and%20statistics,the%20dependence%20between%20random%20variables.">Copulas</a>. A copula function is a multivariate distribution with standard uniform marginals. Any multivariate distribution can be written as a composition of its marginal distributions and its copula. For example, in a bivariate case, given two continuous random variables <strong><em>“x”</em></strong> and <strong><em>“y”</em></strong>, with marginal distributions <strong><em>“F”</em></strong> and <strong><em>“G”</em></strong>, and a joint distribution <strong>“<em>Q”</em></strong>, there exists a copula <strong>“C”</strong> such that <strong><em>Q(x,y) = C[F(x),G(y)]</em></strong></p><p>GANs offer a completely different framework to model multivariate distributions. Using a combination of Generative and Discriminative models, along with adversarial training, we would be able to transform noise into realistic weather data.</p><h3>Data:</h3><p>For this study, we will use the total monthly precipitation from five weather stations located in the Bay Area, CA. For training the GAN model, we will use the monthly precipitation data from year 1893 to 2012 obtained from the <a href="https://cdiac.ess-dive.lbl.gov/ftp/ushcn_v2.5_monthly/">NOAA’s USHCN database</a>. The precipitation values are in hundredths of inches. We will focus on GANs ability to capture the spatial correlation across five weather stations by modeling the total monthly precipitation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*-sAShvvrE8WUgKLBBpZN8g.jpeg" /><figcaption><strong>Weather Stations in Bay Area </strong>(Image by Author)</figcaption></figure><h3>Model:</h3><p>For both the Generator and Discriminator components of the GAN, we will employ a three layer Sequential model. The latent vector would comprise of 20 values sampled from a normal distribution. We will use the popular ReLU activation function in the hidden layers, and train the model using mean absolute percentage error (MAPE) loss and the Adam version of stochastic gradient descent. To prevent model from overfitting, we will adopt Dropout regularization technique. Schematic of the the GANs architecture used in this study is shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4dY8UvYEiXJn-UY8Hi0PdA.jpeg" /><figcaption><strong>GAN Architecture </strong>(Image by Author)</figcaption></figure><p>Our model output will have 10,000 synthetic data samples with 5 output features corresponding to total monthly precipitation across Livermore, Berkeley, Napa, Petaluma and Santa Cruz locations. The model was implemented using Keras library in Python, and code snippets are provided below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/99bb5181c5b92f2413bd514c58afcb96/href">https://medium.com/media/99bb5181c5b92f2413bd514c58afcb96/href</a></iframe><h3>Results:</h3><p>As mentioned in the introductory part of the article, one of the greatest strengths of GANs is its ability to generate data on demand. Using the trained GANs model, 10,000 new synthetic data points were generated for each of the five weather stations. The plots and table below compares the descriptive statistics of the actual data used for training the model and the synthetic data generated by the GANs model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v_UzcHtU99JtGW3xwv6k3g.jpeg" /><figcaption><strong>Box-Plot of Precipitation Data Across Different Weather Stations (Actual)</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dt0YScP2sPj98bZ8hNtLkA.jpeg" /><figcaption><strong>Box-Plot of Precipitation Data Across Different Weather Stations (Synthetic)</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M2jYDCcbs85HPdSme7a4VQ.jpeg" /><figcaption><strong>Descriptive Statistics and Correlation Comparison Between Actual (Training) and Synthetic Data</strong></figcaption></figure><p>A quick review of the model results show that the GAN model was able to learn the distribution of data at each of the weather stations relatively well, while simultaneously preserving the cross correlation across the stations. For Santa Cruz station, the modeled estimates are slightly higher than the observed values. But in general, the sample minium, lower quartile (25%), median (50%), upper quartile (75%), and sample maximum of the synthetic data are matching well with the corresponding statistics from the actual data. The performance of the GAN model can be further improved by optimizing the size of latent vector, number of layers, cost functions, training algorithm and activation functions.</p><h3>GANs Based Data Augmentation:</h3><p>For most of real world applications, data scarcity is one of the biggest bottlenecks to address. This is particularly true in the insurance and risk analytics domain where the problem of data scarcity is further compounded by the quality of data. GANs offer a powerful pre-trained modeling framework that can artificially synthesize new labeled data that can be used to develop better models and risk analytics. This study just scratches the surface of potential application of GANs for risk modeling. Stay tuned for more.</p><p>Thanks for reading this article! All feedbacks are appreciated. For any questions feel free to contact me.</p><p><strong>If you liked this article, here are some other articles you may enjoy:</strong></p><ul><li><a href="https://medium.com/@kap923/hurricane-path-prediction-using-deep-learning-2f9fbb390f18">Hurricane Path Prediction using Deep Learning</a></li><li><a href="https://towardsdatascience.com/interpreting-climate-change-through-data-science-321de6161baf">Interpreting Climate Change Through Data Science</a></li><li><a href="https://towardsdatascience.com/hurricane-florence-building-a-simple-storm-track-prediction-model-1e1c404eb045">Hurricane Florence — Building a Simple Storm Track Prediction Model</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9856b0f83ef" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/stochastic-weather-generator-using-generative-adversarial-networks-a9856b0f83ef">Stochastic Weather Generator using Generative Adversarial Networks</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interpreting Climate Change Through Data Science]]></title>
            <link>https://medium.com/data-science/interpreting-climate-change-through-data-science-321de6161baf?source=rss-1f3283294fdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/321de6161baf</guid>
            <category><![CDATA[climate-change]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[risk-management]]></category>
            <dc:creator><![CDATA[Kamban Parasuraman]]></dc:creator>
            <pubDate>Sat, 11 Apr 2020 18:40:47 GMT</pubDate>
            <atom:updated>2021-04-07T02:22:07.886Z</atom:updated>
            <content:encoded><![CDATA[<h4>Forecasting future CO₂ levels with FB Prophet</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*16CRP8chclH99Gi5SNZ3fA.jpeg" /><figcaption>Image by Gerd Altmann from Pixabay</figcaption></figure><p>Stuck behind the PayWall? Click <a href="https://towardsdatascience.com/interpreting-climate-change-through-data-science-321de6161baf?sk=334b94d8985334bd8c11a6566d62e7e8">here</a> to read the full story using my friend link!</p><p>Over the past few decades, the records for global mean annual temperature have steadily increased. With every additional increment in temperature, there is an exponential increase in accumulated heat in the atmosphere to cause changes in local and global weather patterns. As a consequence, during this period we witnessed a steady increase in weather-related disasters like prolonged droughts, heavier precipitation and flooding, severe tropical cyclones, and more recently with the sudden spike in wildfires across California. The long term impacts of climate change include shifting weather patterns, coastal erosion, and sea level rise.</p><p>Carbon dioxide (CO₂) is an important heat trapping (greenhouse) gas, which is released through human activities and burning fossil fuels. According to the United Nations Intergovernmental Panel on Climate Change (IPCC) report, since the beginning of the industrial revolution, the CO₂ concentrations have risen from 280 ppm (parts-per-million) to 407 ppm as of January 2018. During the same time period, the global mean temperature increased approximately 1⁰C above the pre-industrial baseline. <strong><em>In other words, the additional 125 ppm of CO₂ into the earth’s atmosphere corresponds to a rise in global temperature by around 1⁰C.</em></strong></p><p>Anything to do with climate change is strongly debated, and the warming effects of CO₂ is no exception. Contrary to the general belief that CO₂ drives increase in global temperature, some argue that changes in temperature causes changes in atmospheric CO₂ — not the other way around. While examining past climate change using ice cores, scientists observed that CO₂ lags temperature. This has led some to argue that the CO₂ lags disproves the warming effects of CO₂. In reality, both sides of the argument hold water as there exists a positive feedback loop between CO₂ and global temperature. In other words, warming causes more CO₂ and more CO₂ causes warming. This positive feedback loop further exacerbates the effects of global warming.</p><h3><strong>Mauna Loa Observatory, Hawaii:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*C3TFHSiJHun68x38Q32glA.jpeg" /><figcaption><strong>Atmospheric CO2 (ppm) @ Mauna Loa, Hawaii [1958–2020]</strong></figcaption></figure><p><a href="https://www.esrl.noaa.gov/gmd/obop/mlo/">Mauna Loa Observatory, Hawaii</a>, is the oldest continuous CO₂ monitoring station, and has become the global standard for CO₂ levels due to its location far away from any continent. The above graph shows monthly atmospheric CO₂ levels measured at Mauna Loa Observatory. The <em>x-axis</em> represents time and the <em>y-axis</em> represents monthly CO₂ levels measured in parts-per-million (ppm). The CO₂ concentration has steadily increased over time, and the present levels are higher than it has been for several million years.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/054fea9407e26bccacbdaf2cc2c5c566/href">https://medium.com/media/054fea9407e26bccacbdaf2cc2c5c566/href</a></iframe><h3><strong>Forecasting Future CO₂ Levels:</strong></h3><blockquote><strong>To limit global warming to 1.5 ⁰ C, global carbon emissions need to fall by a staggering 45% by 2030 from the 2010 levels (IPCC, United Nations)</strong></blockquote><p>In this study, let’s leverage the advances in data-driven modeling to forecast future CO₂ levels. Once modeled, the predicted future CO₂ levels can be used to assess how far we are in achieving IPCC emission goals, and what that means in terms of global temperature increase. Time series prediction problems are a difficult type of predictive modeling problem. Unlike regression predictive modeling, time series also adds the complexity of a sequence dependence among the input variables.</p><h4><strong>Decomposition of CO₂ Time series:</strong></h4><p>Observing the atmospheric CO₂ time series from Mauna Loa, we could see there is an increasing uptrend with a strong seasonality. The CO₂ annual highs are during the Spring (May) when melting snow cover exposes soil microbes to release an abundance of CO₂. During Autumn (September) the CO₂ levels are typically low as the atmospheric CO₂ is being siphoned off by a burst of summer plants. Time series decomposition techniques allow us to deconstruct a time series into its individual component parts. The idea behind decomposition techniques is that any series can be represented as a sum (or a product) of its components: a)Level, b)Trend, c)Seasonality, and d) Residuals. To perform this data decomposition, we will use <em>seasonal_decompose</em> function in <em>statsmodel </em>package<em> </em>as shown below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8da72d367527151ec664d8d16cb22749/href">https://medium.com/media/8da72d367527151ec664d8d16cb22749/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GZFwOfCm-MBvYuq82S__uw.jpeg" /><figcaption><strong>Decomposition of Time Series — Additive Model : y(t) = Trend(t)+Seasonality(t)+Residual(t)</strong></figcaption></figure><p>The above plot shows the breakdown of the timeseries to their individual components. Since the seasonal variations are of the same magnitude across time, our choice of additive model decomposition is good.</p><p><strong>Trend: </strong>Refers to the natural progression of a time series to relatively higher or lower values over a long period of time. With the CO₂ data, we see an uptrend.</p><p><strong>Seasonality: </strong>Repeating patterns within a fixed time period. Seasonality can be weekly, monthly, or yearly.</p><p><strong>Residual: </strong>Represents random and irregular (outliers and missing values) influences that are not consistent with the rest of the data.</p><h4><strong>Building a Forecast Model:</strong></h4><p>There are several time-series forecast methods and packages available, but <a href="https://facebook.github.io/prophet/">Facebook’s Prophet</a> is a quick and reliable way of arriving at very good results for that initial pass at modeling/forecasting time series data. Prophet is an additive regression model where nonlinear trends are fit by breaking down the time series into trend, seasonality and residual components. For details on the math behind Prophet, please read this <a href="https://peerj.com/preprints/3190/">paper</a>.</p><p>From the Mauna Loa observatory, we have nearly 62 years of monthly data between March 1958 and January 2020. The monthly data between March 1958 and October 2013 is used for “training” the model, and the remaining dataset (November 2013 — January 2020) is used for “validating” the model. Once validated, the model is used to forecast CO₂ levels for the next 50 years.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a10c80f6b6ee0542e777ef407d83f52c/href">https://medium.com/media/a10c80f6b6ee0542e777ef407d83f52c/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aDLgEcqFwrSTltrcgBTbDg.jpeg" /><figcaption><strong>CO₂ forecast for next 50 years until 2070</strong></figcaption></figure><p>The plot above shows the observed, estimated, and the forecast values of CO₂, along with the 95% confidence interval. In general, the FB Prophet model was very robust in capturing the longer term trends and seasonality. The 2015 Paris Agreement, the latest international climate treaty, is aiming to keep the global temperature increase this century well below 2 degrees C, and hopefully limit it to 1.5 degrees, below the pre-industrial levels.</p><blockquote><strong><em>At the current rate of growth in CO₂, levels will hit 530 ppm within 50 years, putting us on track to reach temperature boosts of perhaps more than 3 degrees C</em></strong>.</blockquote><h4><strong>Relationship to RCP Pathways:</strong></h4><p>To standardize climate research and policy making, the Intergovernmental Panel on Climate Change (IPCC) has set up four scenarios indicative of different climate futures. The four Representative Concentration Pathways (RCP) are commonly referred as RCP2.6, RCP4.5, RCP6.0 and RCP8.5. The numerical values of the RCPs (2.6, 4.5, 6.0 and 8.5) refer to the target radiative forcing (measured in watts per meter square) in the year 2100. These scenarios are designed to cover from very high (RCP8.5) through to very low (RCP2.6) future greenhouse concentrations. By forecasting future CO₂ levels, we can estimate corresponding change in surface temperature and the rate of energy change per unit area. These correlated measures aid in defining and benchmarking different RCP scenarios.</p><h4><strong>Closing Thoughts:</strong></h4><p>Clearly countries around the world are not doing enough to reach climate change goals, and are operating business-as-usual. With increasing temperatures, we can expect to see the frequency and severity of extreme weather-related disasters to increase, melting glaciers and coastal inundation causing mass migrations, droughts and fire destroying rainforest and global food supply chains. More needs to be done to combat climate change and build a low-carbon future. There is a general perception that low-carbon future means losing out on conventional jobs and stronger economy. Contrary to the general belief, companies like Tesla who are at the forefront of the fight against carbon emissions, and showing a way to getting it done.</p><p><strong>If you liked this article, here are some other articles you may enjoy:</strong></p><ul><li><a href="https://medium.com/@kap923/hurricane-path-prediction-using-deep-learning-2f9fbb390f18">Hurricane Path Prediction using Deep Learning</a></li><li><a href="https://towardsdatascience.com/stochastic-weather-generator-using-generative-adversarial-networks-a9856b0f83ef">Stochastic Weather Generator using Generative Adversarial Networks</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=321de6161baf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/interpreting-climate-change-through-data-science-321de6161baf">Interpreting Climate Change Through Data Science</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coronavirus in the US — What’s Next?]]></title>
            <link>https://medium.com/data-science/coronavirus-in-the-us-whats-next-965b7bc92f39?source=rss-1f3283294fdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/965b7bc92f39</guid>
            <category><![CDATA[coronavirus]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[pandemic]]></category>
            <dc:creator><![CDATA[Kamban Parasuraman]]></dc:creator>
            <pubDate>Mon, 30 Mar 2020 05:16:41 GMT</pubDate>
            <atom:updated>2020-04-06T15:56:50.203Z</atom:updated>
            <content:encoded><![CDATA[<h3>Coronavirus in the US — What’s Next?</h3><h4>The US is on track to have the worst outbreak of coronavirus among all countries</h4><p><strong><em>Note from the editors:</em></strong><em> </em><a href="http://towardsdatascience.com/"><em>Towards Data Science</em></a><em> is a Medium publication primarily based on the study of data science and machine learning. We are not health professionals or epidemiologists, and the opinions of this article should not be interpreted as professional advice. To learn more about the coronavirus pandemic, you can click </em><a href="https://www.who.int/emergencies/diseases/novel-coronavirus-2019/situation-reports"><em>here</em></a><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-d51VrGbLgX1cP--OxJ9hA.jpeg" /><figcaption>Image by <a href="https://pixabay.com/users/geralt-9301/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=4932430">Gerd Altmann</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=4932430">Pixabay</a></figcaption></figure><p>Before we try answering this question, let’s put things in context — United States now has the most cases of COVID-19 anywhere in the world. On April 4th, the number of confirmed cases in the US crossed 300,000, and the number of deaths breached the 8,000 mark. More alarming is the rate at which the number of deaths is increasing— just on April 4th, nearly 1,400 deaths were reported in the US. So, how did we get here?</p><h3>Coronavirus has no borders:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q6ZyvFoeATbIatuVANjZGQ.gif" /><figcaption><strong>Time Series of Confirmed Cases in Germany, Spain, Italy, UK and US</strong></figcaption></figure><p>From its origins in China during December 2019, the Coronavirus has spread to almost every country now. The plot above shows the time-history of the number of confirmed cases across Germany, Spain, Italy, the United Kingdom and the United States. All the countries show a similar trajectory in terms of the exponential growth of the confirmed cases over time. With the exception of China (not shown in the plot), where they were able to <a href="https://www.washingtonpost.com/graphics/2020/world/corona-simulator/"><em>flatten the curve</em></a>, other countries are still in the early stages of virus outbreak, with number of confirmed cases increasing exponentially every passing day. We do observe a latency period in terms of the onset of the outbreak across different countries. US and other EU countries had more than a month’s time (see table below) to prepare for the virus outbreak while it was making its way to our shores. Unfortunately, in our defense against Coronavirus, we started late and never recovered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*JP8QB7qau2G4ZAzQfXkO6g.jpeg" /><figcaption><strong>Confirmed Cases by Month</strong></figcaption></figure><p>Following a similar trend, the number of COVID-19 related deaths have increased exponentially. On April 4th, while Italy crossed 15,000 deaths, US and UK breached the 8,000 and 4,000 mark, respectively. Governments across the world are scrambling to contain the spread of virus and minimize loss of lives. With vaccinations few months away, the idea of <a href="https://www.cdc.gov/careerpaths/scienceambassador/documents/herd-immunity-2013.pdf">herd immunity</a>, as the first line of defense, was tried and dropped in the UK. While parts of US have imposed shelter-in-place, some states and counties are continuing to operate business as usual.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MLikoRNawvmnayjA6L2bTg.gif" /><figcaption><strong>Time Series of Reported Deaths in Germany, Spain, Italy, UK and US</strong></figcaption></figure><p>While the above plots show the cumulative number of confirmed cases and deaths, looking at the reported cases per day shows Spain and Italy are flattening out, and US and UK are still showing an upward trend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RrgJoBtZM0HoBp7DXhmLKg.jpeg" /><figcaption><strong>Number of Reported Deaths</strong> <strong>per Day in Germany, Spain, Italy, UK and US</strong></figcaption></figure><h3>US has become the epicenter of COVID-19</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XszzE2PECBGdCu2Sirv5hA.gif" /><figcaption>Spatial Footprint of COVID-19 Confirmed Cases (as of April 4, 2020)</figcaption></figure><p>Almost a month back, most of the confirmed cases of COVID-19 were mainly concentrated in the Washington and New York state areas. When it comes to pandemics, what happens in one place does not stay in the same place. Fast forward today (April 4th), Coronavirus has spread to all states in the US. The map above shows the spatial footprint of confirmed cases across US. Some of the states/counties were proactive in their fight against the spread of Coronavirus, and imposed shelter-in-place orders. For example, six counties in San Francisco Bay Area imposed shelter-in-place orders starting March 17th. As a consequence, Bay Area did not see the kind of outburst of COVID-19 cases like the ones we are witnessing in the New York and New Jersey areas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bI9FSuG0dd--TmeIJM3Upg.jpeg" /><figcaption><strong>Total Number of Confirmed Cases — Top Eight States</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tVMuT4QsCCTpFHIWiOzBuw.jpeg" /><figcaption><strong>Total Number of Deaths — Top Eight States</strong></figcaption></figure><p>The state of New York has half the total COVID-19 cases in the US. While everyone’s attention has been focussed on the situation in New York, we are seeing new coronavirus hotspots emerging. States like Florida, Illinois, Michigan, Louisiana are starting to see a surge in terms of both the confirmed cases and deaths. The outbreak in New York gives a preview of what’s to come if these states relax community lockdown and social distancing.</p><h3>What’s Next?</h3><p>Given all the moving parts with regards to the Coronavirus spread, and the containment efforts, there is lots of uncertainty in terms of how the battle against Coronavirus will play out long-term. But, in short-term, there are only two options — a) either the pandemic will continue to accelerate beyond the capacity of our healthcare system; or b) slow down the spread to an extent where we can flatten the curve. Of these two options, Italy and Spain offer grim warning to what we can expect in the US in near future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uLzTNzhpUbF6-SELXoCkNQ.gif" /><figcaption>Number of Confirmed Cases by Country since Reaching 200 Cases</figcaption></figure><p>The above plot shows the time series of number of confirmed cases after reaching 200 cases in each country. Interestingly, the trajectories look similar to each other, until 15 days after breaching the 200 cases threshold. Beyond 15 days, the number of cases show deviation from each other depending on the population density and containment efforts being implemented in each country to minimize the spread of the virus.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*tvxPJMKNwLtBKONTG3ErOQ.jpeg" /><figcaption><strong>Number of Confirmed Cases 5-, 10-, 15- Days after Breaching the 200 Cases Threshold</strong></figcaption></figure><p>Based on the above analysis, we can rationally infer that the trajectory of fatalities from all countries would follow a similar trend. The plot below shows the trajectory of number of deaths in each country since reaching 200 cases. Two days after reaching 200 casualties, Germany (342), US (417), UK (336), Italy (463)and Spain (533) have similar ranges of fatalities. Twenty-eight days after reaching 200 deaths, Italy has 15,362 total fatalities, and can be used to benchmark the progression of fatalities in other countries. <strong><em>In general, Spain is a week behind Italy in terms of the progression of the pandemic. Similarly, US and UK are two weeks behind Italy. In other words, two weeks from now, US will have similar fatality numbers (scaled for the population) that we see in Italy today.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AqE1OxFvq142OrNzRgbL-Q.gif" /><figcaption>Number of Deaths by Country since Reaching 200 Cases</figcaption></figure><p>Although the outlook is not bright, we have to look at the facts and recognize an uncomfortable reality. The US is on track to have the worst outbreak of coronavirus among all countries. Having fallen behind, it will be difficult, but not impossible, for the US to flatten the curve. In the meantime, let&#39;s do our part in the battle against this pandemic by following social distancing and helping others in <a href="https://covid19responsefund.org/">need</a>.</p><p><strong>Data Source:</strong> <a href="https://github.com/CSSEGISandData/COVID-19">https://github.com/CSSEGISandData/COVID-19</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=965b7bc92f39" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/coronavirus-in-the-us-whats-next-965b7bc92f39">Coronavirus in the US — What’s Next?</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hurricane Path Prediction using Deep Learning]]></title>
            <link>https://kap923.medium.com/hurricane-path-prediction-using-deep-learning-2f9fbb390f18?source=rss-1f3283294fdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f9fbb390f18</guid>
            <category><![CDATA[insurance]]></category>
            <category><![CDATA[risk-management]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[weather]]></category>
            <category><![CDATA[insurtech]]></category>
            <dc:creator><![CDATA[Kamban Parasuraman]]></dc:creator>
            <pubDate>Tue, 18 Jun 2019 14:43:37 GMT</pubDate>
            <atom:updated>2020-09-21T23:59:41.631Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*KPcflIqgSm7RLUC4kukvtw.gif" /><figcaption><strong>Hurricane Harvey, Irma &amp; Maria (2017) — Source: NOAA</strong></figcaption></figure><p>Stuck behind the PayWall? Click <a href="https://medium.com/@kap923/hurricane-path-prediction-using-deep-learning-2f9fbb390f18?source=friends_link&amp;sk=b1b5d59b048c6d2e00625e160867e75d">here</a> to read the full story using my friend link!</p><p>Every year, the time window between June 1 and November 30 signifies the North Atlantic Hurricane season. During this period, the warm waters in the Atlantic give birth to tropical cyclones, and few of these tropical cyclones end up making landfall causing major casualties and loss of property. In year 2017, there were record number of hurricanes including Harvey, Maria, and Irma with damages exceeding $300 billion. Accurate prediction of frequency, severity, and landfall locations are all important for mitigating the risk from these costly disasters.</p><p>The <a href="https://www.ecmwf.int/"><em>European Center for Medium Range Weather Forecast</em></a><em> </em>(ECMWF)model and <a href="https://nomads.ncep.noaa.gov/"><em>National Weather Service’s Global Forecast System</em></a> (GFS) models are widely used in predicting storm tracks. These data intensive numerical models attempt to model meso-scale weather patterns, and are computationally expensive. Predicting storm tracks and landfall locations is challenging, and the graphic below illustrates the uncertainty associated with these model predictions. In this article, let’s explore how we can leverage the power of deep learning to develop a storm track prediction model using LSTMS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*jkmbRTrZwvt3Jrd7LPwBsA.jpeg" /><figcaption><strong>Five Day Storm Track Forecast For Hurricane Sandy (2012) - Source: NOAA</strong></figcaption></figure><h3>Show Me the Data:</h3><p><a href="https://towardsdatascience.com/hurricane-florence-building-a-simple-storm-track-prediction-model-1e1c404eb045">Hurricane Florence — Building a Simple Storm Track Prediction Model</a></p><p>Similar to the <a href="https://towardsdatascience.com/hurricane-florence-building-a-simple-storm-track-prediction-model-1e1c404eb045">earlier study</a>, we will be using the Atlantic Hurricane Database (<a href="https://www.nhc.noaa.gov/data/#hurdat">HURDAT2</a>). The HURDAT dataset provides location details (Latitude &amp; Longitude) of every storm at every 6-hrs interval from the point of genesis to decay. More details about the dataset and exploratory analysis can be found <a href="https://towardsdatascience.com/hurricane-florence-building-a-simple-storm-track-prediction-model-1e1c404eb045">here</a>. Short-term forecasting (6 hrs., 12 hrs.) of the hurricane path is relatively straightforward. In this study, we will build a long-term prediction model that can predict the path of the hurricane few days/weeks in advance. In total, there are 1792 historical storms, and we would use 1590 of them to train the neural network model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*4SuwBeWwJfB3o6XDEuXoBQ.jpeg" /><figcaption><strong>Snapshot of Processed HURDAT Dataset</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*cay9-vjajCxsvkN0K4psqQ.jpeg" /><figcaption><strong>Atlantic Hurricane Historical Storms (1851–2014)</strong></figcaption></figure><h3>Feature Engineering:</h3><p>Since we will be using just the genesis point to predict the full path traversed by the hurricane, lets explore how we can use the domain knowledge to create additional features that would allow the model to capture the spatial patterns hidden in the historical data.</p><ol><li><strong>Transforming Latitude and Longitude:</strong></li></ol><p>Latitude and Longitude are two attributes that describes a point in a three dimensional space. Since Longitude goes all around, two extreme values are infact very close together in reality. In order to circumvent this issue, we will transform the Lat/Lon coordinates to points in unit sphere. This means close points in these 3 dimensions are also close in reality.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3ae7411a4b0a4429f33a2481f1de5e1c/href">https://medium.com/media/3ae7411a4b0a4429f33a2481f1de5e1c/href</a></iframe><p><strong>2. Transition Probabilities:</strong></p><p>Historical dataset shows the hurricanes after their genesis in the <a href="https://en.wikipedia.org/wiki/Tropics">tropics</a> propagate west. The clockwise rotation of North-Atlantic hurricanes, and the global trade winds, steer the hurricanes in the north-west direction along the subtropical ridge. In addition, factors like sea-surface temperature, <a href="https://en.wikipedia.org/wiki/Coriolis_force">Coriolis force</a>, and wind shear force hurricanes to make loops and hairpin turns, resulting in unpredictable trajectories. In order to capture these spatial patterns, we first calculate the transition probabilities by overlaying a 0.25*0.25 degree grid, on historical footprint, and calculate the transition probabilities from each grid to the other grid. Details on calculating the transition probabilities can be found <a href="https://towardsdatascience.com/hurricane-florence-building-a-simple-storm-track-prediction-model-1e1c404eb045">here</a>. These transition probabilities are then appended to each row of data and used as inputs to determine the next location of the hurricane.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*67o8uwucs7MGcUS6GidWfg.jpeg" /></figure><p><strong>3. Clustering:</strong></p><p>The climatology (genesis points, sea surface temperature, energy, etc) determine the trajectory of hurricanes and the probability of making the landfall. In order to account for the climatology, we will cluster the hurricanes into four groups.</p><p><strong>Group I:</strong> Hurricanes that originate in the East Atlantic near to the equator are categorized under Group I. These hurricanes have the time to gather energy over warm waters, and they usually curve up.</p><p><strong>Group II:</strong> Similar to the previous group, the genesis points of these hurricanes are near to the equator as well — but more towards the west. The trajectory of these hurricanes are typically straight paths towards Florida and Gulf.</p><p><strong>Group III:</strong> The genesis of these hurricanes are further from the Equator, and they are not very strong. Their trajectories typically curve up, and hardly make landfalls</p><p><strong>Group IV:</strong> The genesis of these hurricanes are near the Gulf-of-Mexico. Given the proximity of the genesis points to the land, these hurricanes do not have the time to gather energy, but have high probability of landfall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*0VtdR01tWIDGyQnmyV-yiw.jpeg" /><figcaption><strong>Clustering of Hurricanes based on Genesis Coordinate</strong></figcaption></figure><p><strong>4. Modular Network Vs. One-Hot Encoding:</strong></p><p>Now that we have clustered the hurricanes into four groups to account for climatological conditions, we could either (a) develop a modular neural network architecture by creating a series of four independent neural networks moderated by some intermediary, or (b) develop one model by treating cluster definitions as categorical data and performing a one-hot-encoding. In this study, we will be adopting one-hot-encoding of the cluster definition.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/20757ca9547a58dd56c5b7819d8a3ef2/href">https://medium.com/media/20757ca9547a58dd56c5b7819d8a3ef2/href</a></iframe><h3>Building the Model:</h3><p>Long Short-Term Memory (LSTM) models are extremely powerful time-series models. They can predict an arbitrary number of steps into the future. An LSTM module (or cell) contains the following components: (1) Forget Gate , (2) Candidate layer, (3) Input gate, (4) Output gate, (5) Hidden state, and (6) Memory state. Since there are many good resources available online (e.g. <a href="https://colah.github.io/posts/2015-08-Understanding-LSTMs/">https://colah.github.io/posts/2015-08-Understanding-LSTMs/</a>) to learn about LSTM’s, we will not get into the details of the inner workings of LSTM’s.</p><p>For this study we will develop a four layer LSTM model to predict the location of hurricane (x,y,z coordinates) one time-step at a time. The resulting prediction at time (t) is feedback as input to predict the hurricane location at next time step (t+1). The architecture of the model used in the study, along with its python implementation is shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*vDkakIdv1Opy7hdHb_BO5w.jpeg" /><figcaption><strong>Four Layer LSTM Architecture</strong></figcaption></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9c968d1aa51a80f1c801e2438754aec7/href">https://medium.com/media/9c968d1aa51a80f1c801e2438754aec7/href</a></iframe><h3><strong>Model Prediction</strong></h3><p>The trained model is now to ready to make prediction. To test the robustness of the model, lets use it to do an ensemble prediction of <a href="https://en.wikipedia.org/wiki/Hurricane_Ivan">Hurricane Ivan (2004)</a> and <a href="https://en.wikipedia.org/wiki/Hurricane_Wilma">Hurricane Wilma (2005)</a>. The plots below show the actual path (solid black lines) of these hurricanes, and the ensemble prediction of paths by the developed model. Considering we are making a long term forecast (days and weeks ahead) of the hurricane path with just the Genesis point of hurricanes, the model predictions are reasonably good.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/68aafdc06ea50e89a1bdd68a89b971f9/href">https://medium.com/media/68aafdc06ea50e89a1bdd68a89b971f9/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*cyeUh1U8WDjCfBJSxEL1Ag.jpeg" /><figcaption><strong>Hurricane Ivan (2004)</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*PncifkZbulcOdfTPvEfTkw.jpeg" /><figcaption><strong>Hurricane Wilma (2005)</strong></figcaption></figure><h3><strong>Data Driven Vs. Physically Based Models</strong></h3><p>The imperatives of developing good weather modeling systems is not new, but deriving actionable insights from the petabyte-sized weather datasets with mixed multi-dimensional variables is challenging (e.g. Global Circulation Models). Relying on the strength of data-driven models to identify the casual inter-dependencies in multi-dimensional data, in this study we explored the use of deep learning to model Hurricane paths just with the Genesis points, and the model predictions are reasonably good.</p><p>If you have any thoughts or comments, please leave it below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f9fbb390f18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hurricane Florence — Building a Simple Storm Track Prediction Model]]></title>
            <link>https://medium.com/data-science/hurricane-florence-building-a-simple-storm-track-prediction-model-1e1c404eb045?source=rss-1f3283294fdf------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e1c404eb045</guid>
            <category><![CDATA[risk-management]]></category>
            <category><![CDATA[insurance]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[insurtech]]></category>
            <category><![CDATA[climate-change]]></category>
            <dc:creator><![CDATA[Kamban Parasuraman]]></dc:creator>
            <pubDate>Mon, 24 Sep 2018 23:05:01 GMT</pubDate>
            <atom:updated>2020-04-11T15:41:40.799Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*EL9gU6OaRM8InVv79eOplw.jpeg" /><figcaption><strong>Hurricane Florence (2018) — As seen from International Space Station (Credit: NASA)</strong></figcaption></figure><p><strong>Hurricane Florence</strong> was the first major hurricane of the <a href="https://en.m.wikipedia.org/wiki/2018_Atlantic_hurricane_season">2018 Atlantic hurricane season</a>. From its genesis near <a href="https://en.wikipedia.org/wiki/Cape_Verde">Cape Verde</a> on August 30th, Florence traveled nearly 4,100 miles before making landfall near Wrightsville Beach, North Carolina, around 7:15 a.m. EST on September 14 morning. This slow moving storm was originally projected as a Category 4 hurricane with gusts of 140 mph, before making a landfall as a Category 1 storm. Despite weakening to a Category 1 storm, Florence still had enough wind speed to cause significant loss of life, disruption to homes and communities, property damage, and other economic losses along the North Carolina coastline. According to Moody’s analytics, Florence initial damage estimates is between $17-$22 billion USD. As the impact of historic rainfall and flooding from Florence is still unfolding, it is reasonable to expect Florence’s cost to be revised significantly higher.</p><p>From its genesis on August 30th, The <a href="https://www.nhc.noaa.gov/data/#tcr">National Hurricane Center</a> (NHC) has been tracking the path of Florence and issuing Reports and Advisories on the present and projected paths of the hurricane. Accurately forecasting the path of the hurricane allows us to develop mitigation strategies to minimize the economic impact of the hurricanes and save lives. NHC maintains a <a href="https://www.nhc.noaa.gov/modelsummary.shtml">list</a> of forecast models with varying complexity and structure that can be used to predict the path of hurricanes.</p><p>In this study we will be building a simple storm track prediction model using the Atlantic Hurricane Database (<a href="https://www.nhc.noaa.gov/data/#hurdat">HURDAT2</a>). We will then use the developed model to do an ensemble prediction of Hurricane Florence path, and compare the model results with the actual path traversed by Florence. Before we dive into the model, let us first load the data and do some exploratory data analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*ExPZLJS-89q5U3NeNrQy3A.jpeg" /><figcaption><strong>Snapshot of Processed HURDAT Dataset</strong></figcaption></figure><h3>Exploratory Data Analysis</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c38ab65e0f4100299788d2b599ab18fc/href">https://medium.com/media/c38ab65e0f4100299788d2b599ab18fc/href</a></iframe><p><strong>Low Frequency-High Severity Storms:</strong> The HURDAT dataset has 1792 named storms. Plotting the count of storms by category reveals the frequency distribution following an exponential / negative binomial distribution. While there were 1485 Category 1 Storms, only four storms had Category 5 wind speeds (&gt;155mph).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*6BwFnnhKxZ2pqNKmmE2bAw.jpeg" /><figcaption><strong>Count of Storms by Category</strong></figcaption></figure><p><strong>Seasonality: </strong>The North Atlantic season typically occurs between June 1 and November 30th. Plotting the seasonal distribution of hurricanes shows September being the most active month, and in some instances the hurricane season starting as early as January.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*sG-TZSfJTvsYhcFkLMDfMw.jpeg" /><figcaption><strong>Count of Storms by Month</strong></figcaption></figure><p><strong>Cyclicality: </strong>On average there are nearly 10 storms occurring each season, with 2005 being the most active season with 28 storms. The data shows there is a detectable increase in the frequency and severity of hurricanes in the past few decades. Is climate change the reason for observing increased severity, and clustering effects of hurricanes as we witnessed in 2017? Plotting a 10 and 25 year moving average shows a multi-decadal oscillation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*_lKH7KueDgNQr-VdZLzTJg.jpeg" /><figcaption><strong>Count &amp; Moving Averages on Storm Frequency by Year</strong></figcaption></figure><p><strong>Storm Genesis: </strong>The main factors contributing to the development of tropical storms are : (1) Warm sea surface temperature, (2) atmospheric instability, (3) high humidity, (4) <a href="https://en.wikipedia.org/wiki/Coriolis_force">Coriolis Force</a>, (5) low vertical wind shear, and (6) pre-existing disturbance. Inferring from the HURDAT data set, most of the storms have their genesis in the warmer waters of the Atlantic and above 10 degree latitude. Areas within ten degrees latitude of the equator does not experience significant Coriolis Force, a vital ingredient in tropical cyclone formation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*aqQsvj8p-0Eh9eXsMLkLdQ.jpeg" /></figure><p><strong>Historical Storm Tracks: </strong>Plotting the historical storm tracks in the HURDAT dataset shows the hurricanes after their genesis in the tropics propagate west. The clockwise rotation of North-Atlantic hurricanes, and the global trade winds, steer the hurricanes in the north-west direction along the subtropical ridge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*KI0nnx2YcFg4Gas3-wqjSQ.jpeg" /></figure><p><strong>Landfalling Storms: </strong>Only one-third of the storms formed in the Atlantic basin actually makes a landfall. Sometimes hurricanes can make multiple landfalls depending on the unpredictable trajectories (loops and hairpin turns) they might follow. For example — Hurricane Katrina (AL122005) made its first landfall at Hallandale Beach, Florida as a Category 1 storm, and made its second landfall over Gulfport, Mississippi as a Category 3 hurricane.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*R95ppQk98W8jqJrWjJXmww.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*-ON_08PkyzoCttCLA3y6cQ.jpeg" /><figcaption><strong>Path of Storms Named “Katrina” in the HURDAT dataset</strong></figcaption></figure><p><strong>Wind Speed Vs. Pressure: </strong>Wind speed and Pressure are the two additional attributes provided in the HURDAT database. The contour maps shows the wind speed and pressure to be inversely correlated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*0oaaDxktt1ciO7V2wIbt9g.jpeg" /><figcaption>Wind Speed (left) and Pressure (right) Contour Maps</figcaption></figure><h3>The Markov Transition Model</h3><p>Building a Markov transition model is a Five step process:</p><ol><li>Creating a grid network covering the modeling domain</li><li>Overlaying historical storm trajectories over the grid, and calculating transition probability matrix</li><li>Given the genesis point, using the transition probability matrix developed in Step 2, predict the next location of the storm</li><li>Use the predicted location in Step 3 to predict the location at next time step</li><li>Repeat Step 4 for a predetermined number of epochs</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cfe8f3a6cd48dd382462713042ce2f3a/href">https://medium.com/media/cfe8f3a6cd48dd382462713042ce2f3a/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*tuNB_qXwjb_frDbUmfUY5A.jpeg" /><figcaption><strong>2-D Histogram of Historical Location of Storms Overlaid on Computation Grid</strong></figcaption></figure><h3><strong>Validating the Model</strong></h3><p>Before using the model to generate storm trajectory for Hurricane Florence, let us validate the model on Hurricane Andrew (1992). The plot below show the actual path of Andrew (Black Line), and an ensemble (size=10) of paths generated by the Markov transition model. The envelope created by the simulated trajectories aligns well with the actual path traversed by Hurricane Andrew.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*BGk0XtARpv3w5qzlpNGcag.jpeg" /><figcaption><strong>Historical &amp; Simulated Storm Tracks for Andrew (1992)</strong></figcaption></figure><h3>Predicting the Path of Hurricane Florence</h3><p>Most of the storms with genesis in the Cape Verde, curve to the north and miss the US. Hurricane Florence (path shown below) took an unusual trajectory, and instead of curving north, moved slowly towards the west making landfall in North Carolina.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*RxXoEecq-LqVIZP7N14PUg.jpeg" /><figcaption><strong>Actual Path and Wind Speed of Hurricane Florence (2018)</strong></figcaption></figure><p>The Markov transition model developed in the study was used to predict the plausible paths Florence could take from its genesis point. An ensemble of ten simulations were run, and the resulting trajectories are shown in the plot below. Results from the eighth simulation mimicked the path and the landfall location of Florence reasonably well. In summary, the Markov transition model would be a simple (and fun) way to predict the path of hurricanes with the least amount of data (just the genesis points).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*AbkBzTV2_sBuyfh94yqBNg.jpeg" /><figcaption><strong>Historical &amp; Simulated Storm Tracks for Florence (2018)</strong></figcaption></figure><h3><strong>Simple is Better? — Occam’s Razor</strong></h3><p>This is of course a very bare-bones path prediction model. But is simple always better? In order to answer this question, for the reminder of the 2018 Atlantic Hurricane Season, I would be using this simple model to forecast the path of any new hurricanes, and compare the results with the published trajectories from complex global-circulation models.</p><p>To learn about how we can use Deep Learning for storm track prediction, please see my newest blog:</p><p><a href="https://medium.com/@kap923/hurricane-path-prediction-using-deep-learning-2f9fbb390f18">Hurricane Path Prediction using Deep Learning</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e1c404eb045" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/hurricane-florence-building-a-simple-storm-track-prediction-model-1e1c404eb045">Hurricane Florence — Building a Simple Storm Track Prediction Model</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>