<?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 Prasad Ostwal on Medium]]></title>
        <description><![CDATA[Stories by Prasad Ostwal on Medium]]></description>
        <link>https://medium.com/@prasadostwal?source=rss-64067139910f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SjmsF5Vi5rvjmCa61gkt5A.jpeg</url>
            <title>Stories by Prasad Ostwal on Medium</title>
            <link>https://medium.com/@prasadostwal?source=rss-64067139910f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 12:50:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prasadostwal/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[Inside Our Strategy for Zero-Downtime PostgreSQL Upgrades on AWS RDS]]></title>
            <link>https://medium.com/tise-product-tech/inside-our-strategy-for-zero-downtime-postgresql-upgrades-on-aws-rds-fd5a77b7da1d?source=rss-64067139910f------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd5a77b7da1d</guid>
            <category><![CDATA[aws-rds]]></category>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[postgresql]]></category>
            <dc:creator><![CDATA[Prasad Ostwal]]></dc:creator>
            <pubDate>Fri, 10 Oct 2025 07:02:05 GMT</pubDate>
            <atom:updated>2025-10-10T07:02:05.539Z</atom:updated>
            <content:encoded><![CDATA[<p>👋 We’re <a href="http://tise.com/">Tise.com</a>, a leading fashion marketplace in the Nordics. In this post, we’ll share how we upgraded our three production PostgreSQL databases.</p><blockquote><em>✅ </em><strong><em>TL;DR:</em></strong><em> We upgraded three production PostgreSQL databases on AWS RDS from v13 to v17 using RDS Blue/Green Deployments — and we did it with no downtime. It took weeks of preparation, dry runs, and careful planning, but the final switch was smooth and repeatable. In this post, we share how we approached it, what worked, and what we learned from the process. The notes that we captured in Notion during the process became the backbone for both this article and our final runbook.</em></blockquote><h3>Why we had to upgrade</h3><p>Running on PostgreSQL 13 had served us well, but it was reaching the end of its support lifecycle, and earlier upgrades would have been risky and time-consuming. AWS RDS encourages timely upgrades, and with Postgres 17 available, skipping directly to 17 made sense from a support and performance perspective.</p><p>This wasn’t just a regular quick and easy routine bump. Our setup today looks like this:</p><ul><li>Three production databases with different workloads</li><li>Zero downtime tolerance and millions of users who rely on us</li><li>High stakes for data safety, so even small inconsistencies can cascade into major user-facing issues</li></ul><p>We wanted to perform this upgrade in a way that was safe, repeatable, and stress-tested, so that we can ensure that future major version jumps will be low-risk and seamless as well.</p><p>We evaluated the following options for the upgrade:</p><ul><li><strong>Simple Dump/Restore</strong> — Too much downtime for hundreds of gigabytes of data.</li><li><strong>In‑place major version upgrade</strong> — RDS does support a direct 13 to17 jump, but the maintenance window and potential hours of unavailability didn’t fit our no downtime policy.</li><li><strong>AWS DMS</strong> — We felt it’s too black‑box for our use case.</li><li><strong>Manual blue-green upgrade with replication</strong> — More control and visibility, but also more prone to errors.</li><li><strong>RDS Blue/Green</strong> — <em>chosen</em>. It allows us to provision a Green cluster on PG 17, replicate from Blue (PG 13), then swap endpoints when we’re satisfied. Under the hood this is logical replication, with RDS managing slots and the cutover. It struck the balance between visibility, safety, and minimal downtime.</li></ul><h3>Preparing for the upgrades</h3><p>Before we touched a single production database for migration, we invested significant time in preparation. The goals were simple: minimize risk, avoid downtime, and surface potential surprises early. Here’s how we approached the migration, step by step:</p><ol><li><strong>Read release notes</strong>: Reviewed Postgres 14–17 changelogs to spot breaking changes and query behavior shifts.</li><li><strong>Schema dump &amp; AI check</strong>: Took schema-only dumps and even ran them through an LLM against changelogs to highlight potential incompatibilities.</li><li><strong>Extension compatibility</strong>: Verified installed extensions (e.g. PostGIS) against supported versions with compatibility matrix and planned upgrades where needed.</li><li><strong>Replication requirements</strong>: Ensured every table had a primary key, and checked WAL/replication slot settings for Blue/Green.</li><li><strong>Table &amp; index analysis</strong>: Measured table sizes, stats freshness, and index usage; trimmed unused indexes ahead of replication.</li><li><strong>Analyze strategy</strong>: Planned to run ANALYZE immediately on green (stats aren’t transferred to the green database)</li><li><strong>PgBouncer validation</strong>: Confirmed PgBouncer compatibility with PG17 and tested connection handling. On our very first cutover we discovered some of our older PgBouncers didn’t actually support PG17, more about that later.</li><li><strong>Parameter groups</strong>: Created new PG17 parameter groups and carried over observability settings. Verified if the newer version needs any special parameters.</li><li><strong>Dry runs</strong>: Practiced a lot with restored snapshots in development environment with Blue/Green to watch replication lag and test monitoring queries.</li><li><strong>Preflight checklist</strong>: Final “go/no-go” included: fresh snapshots, freeze schema changes, verify extensions/params, and record baseline query timings.</li><li><strong>Keep handy queries:</strong> We used pg_stat_statements to identify the heaviest queries on our existing databases. These queries were noted down so we could benchmark them later on both blue and green, ensuring performance was not degraded after cutover.</li></ol><p>For us, this phase was about turning unknowns into knowns. Every risk we could discover in practice was one less surprise waiting on production day.</p><h3>How we de-risked the upgrade</h3><p>Running a zero-downtime upgrade on three production databases meant assuming failure modes upfront, and asking ourselves the following questions: “<em>What if replication lags? What if ANALYZE isn’t done in time? What if Pgbouncers fail? What if an extension breaks?”</em> By playing out each of these scenarios beforehand, we built guardrails for safety. Also, rather than going directly into production, we began by testing with the following:</p><ul><li>Practiced on snapshots to break things safely.</li><li>Repeated the process in development to validate app behavior.</li><li>Rehearsed again on production snapshots for all possible scenarios.</li></ul><p>Only after three full dry runs did we attempt the real cutover. Each rehearsal gave us new insights, so by D-day, little was unknown.</p><p>We also prepared for the worst-case scenario — a failure right after cutover. That could have meant data loss and a scramble to restore writes on the old cluster. To ensure we were fully prepared, we had a rollback plan ready:</p><ol><li>Stop traffic to green immediately.</li><li>Re-enable writes on blue</li><li>Redirect applications back.</li></ol><p>Fortunately, this scenario never occurred, but knowing the fallback existed reduced pressure and made the cutover far less stressful.</p><h3>The practical runbook</h3><p>This runbook was the heart of our upgrade process. It distilled preparation, dry runs, and live note-taking into a sequence of repeatable steps we could trust. Each database followed the same playbook, and the consistency gave us confidence when it was time to flip the switch.</p><h3>1. Preflight</h3><p>We began by taking a fresh manual snapshot of the source (blue) database. At the same time, we double-checked parameter groups, extension compatibility, and logical replication requirements. To establish a baseline for performance comparisons, we also ran a set of heavy queries and recorded their timings.</p><h3>2. Create the Blue/Green deployment</h3><p>The next step was to create the Blue/Green deployment in the AWS console. During this process, RDS automatically adjusted some parameters, such as max_wal_senders, which occasionally triggered a reboot of the green cluster. We also made sure that networking, security groups, and IAM roles were consistent between blue and green to avoid surprises later.</p><h3>3. While replication catches up</h3><p>Once the deployment was running, we closely monitored replication progress. The AWS console often showed misleading values, so instead we relied on SQL queries like pg_wal_lsn_diff and CloudWatch metrics such as OldestLogicalReplicationSlotLag to measure lag accurately. This reassured us that green was staying in sync.</p><h3>4. Analyze statistics on green</h3><p>As soon as green was available, we ran ANALYZE across all tables. Since optimizer statistics do not transfer across major versions, this step was essential to avoid poor query plans. Using pg_stat_progress_analyze, we monitored its progress and confirmed completion before moving forward.</p><h3>5. Validate queries and plans</h3><p>With fresh statistics in place, we replayed the heaviest queries gathered from pg_stat_statements on both blue and green. We compared execution plans with EXPLAIN ANALYZE to check for regressions and verified that extensions such as PostGIS continued to behave correctly under the new version.</p><h3>6. Sanity-check replication health and data</h3><p>Next, we validated replication health. We confirmed that replication slots were advancing normally and that WAL files were not piling up. Spot checks of row counts between the two clusters gave us further reassurance that the data matched.</p><h3>7. Point replicas to green for read traffic</h3><p>Before the final switch, we redirected our read replicas to the green cluster. This step allowed us to test real production read traffic on green while blue was still handling writes. It gave us valuable insight into how query performance held up under actual workload patterns and connection pooling, not just synthetic benchmarks. The results showed stable performance, which reinforced our readiness for the cutover.</p><h3>8. Cutover</h3><p>When replication lag reached zero and all checks passed, we triggered the switchover, making green the new writer. The cutover itself took only seconds, but we kept a close eye on application logs, connection pools, and error dashboards to catch any anomalies.</p><h3>9. Post-cutover cleanup</h3><p>After the switch, we verified that all read and write traffic was flowing to green correctly. We then removed the Blue/Green deployment object from AWS to prevent accidental writes to the old cluster and ran a series of business-level health checks to confirm everything was working end-to-end.</p><h3>10. Post-cutover monitoring</h3><p>The final phase was ongoing monitoring. We kept dashboards open for CPU usage, WAL growth, connection counts, and slow query logs, and we tailed the Postgres logs for unexpected behavior. We also re-ran the validation queries we had benchmarked earlier, ensuring that performance remained consistent after the transition.</p><p><em>Runbook summarised:</em></p><figure><img alt="runbook summary" src="https://cdn-images-1.medium.com/max/999/1*09lPuqcyr4wNvMxZ-UTs1A.png" /></figure><h3>Unexpected hiccups we faced</h3><p>Despite weeks of preparation and several dry runs, production still had a couple of surprises for us. We ran into two main issues — one with PgBouncer versions and another involving Blue/Green WAL receiver behavior.</p><p><strong>PgBouncer version mismatch</strong></p><p>For the very first database we cut over, connections suddenly failed. It turned out our PgBouncer instances were still running on old EC2 hosts that didn’t support Postgres 17, since we hadn’t upgraded them in years. We had to scramble and upgrade PgBouncer before traffic could flow again. Luckily, the fix was quick. We eventually scrapped those EC2-based PgBouncers entirely and migrated to a proper ECS service with the latest version.</p><p><strong>Blue/Green quirks with WAL receiver</strong></p><p>On one of the larger databases, our first Blue/Green deployment failed when the WAL receiver on the green side unexpectedly stopped. We had to recreate the deployment three times before replication worked as expected. While we had anticipated these RDS Blue/Green quirks, there wasn’t much we could do since most of the underlying process is hidden behind a black box.</p><p>These hiccups reinforced our belief that rehearsals and rollback plans aren’t optional. Because we had already imagined failure scenarios, both incidents were handled smoothly and minimal downtime.</p><h3>Lessons from upgrade</h3><p>What started as a daunting project turned into a repeatable process we now trust. The success didn’t come from a clever shortcut, but from careful preparation, rehearsals, and documentation. Along the way, we learned:</p><ul><li>Preparation pays off more than execution. The actual switchover took seconds and it was mostly uneventful; the weeks of planning, testing, and rehearsals were what made it smooth. If you feel bored of your checklist, that’s a good sign.</li><li>Replication metrics are subtle. Cloud consoles often present a simplified picture. To really know if replication was safe to cut over, we had to use SQL queries and cross-check multiple metrics.</li><li>Operational surprises are normal. Even managed services like RDS have quirks — parameters get auto-tuned, nodes reboot at inconvenient times. And sometimes, the issue isn’t RDS at all — our old PgBouncers didn’t support Postgres 17 and blocked connections right after cutover.</li><li>Incremental validation beats a big bang test. We didn’t wait until the final cutover to test the new cluster. Exercising it with read traffic, replaying heavy queries, and checking extensions gave us incremental confidence along the way.</li></ul><p>If you’re planning your own upgrade, we hope this playbook gives you a solid starting point — and makes your next major version upgrade smoother and less intimidating.</p><p>We’re always excited to chat about tech, engineering, and the stuff we’re passionate about. Get in touch!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd5a77b7da1d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tise-product-tech/inside-our-strategy-for-zero-downtime-postgresql-upgrades-on-aws-rds-fd5a77b7da1d">Inside Our Strategy for Zero-Downtime PostgreSQL Upgrades on AWS RDS</a> was originally published in <a href="https://medium.com/tise-product-tech">Tise Product &amp; Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multi-dimension plots in Python — From 2D to 6D.]]></title>
            <link>https://medium.com/@prasadostwal/multi-dimension-plots-in-python-from-2d-to-6d-9a2bf7b8cc74?source=rss-64067139910f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a2bf7b8cc74</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[plotly]]></category>
            <category><![CDATA[exploratory-data-analysis]]></category>
            <dc:creator><![CDATA[Prasad Ostwal]]></dc:creator>
            <pubDate>Tue, 28 May 2019 11:47:37 GMT</pubDate>
            <atom:updated>2019-05-28T11:47:37.593Z</atom:updated>
            <content:encoded><![CDATA[<h3>Multi-dimension plots in Python — From 3D to 6D.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HZjMfkYRjuVhpEdRc2iFug.png" /><figcaption>Image: Multi-dimension plots (Illustration purpose only)</figcaption></figure><h4>Introduction</h4><p>Visualization is most important for getting intuition about data and ability to visualize multiple dimensions at same time makes it easy. In this tutorial we will draw plots upto 6-dimensions.</p><p>Plotly python is an open source module for rich visualizations and it offers loads of customization over standard matplotlib and seaborn modules. Plotly can be installed directly using pip install plotly. We will use plotly to draw plots.</p><h4>Let’s import data</h4><p>For visualization, we will use simple <a href="https://archive.ics.uci.edu/ml/datasets/automobile">Automobile data</a> from <a href="https://archive.ics.uci.edu/ml/index.php">UCI</a> which contains 26 different features for 205 cars(26 columns x 205 rows). We will use following six features out of 26 to visualize six dimensions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*4v3g5mFUgL4KSxz-sw0Q4A.png" /><figcaption>Only first 4 rows shown out of 205</figcaption></figure><p>Import CSV data using pandas.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/25ce3ac4d1bb05b58b9ba7894129bb34/href">https://medium.com/media/25ce3ac4d1bb05b58b9ba7894129bb34/href</a></iframe><p>Now that we have our data ready, let’s start with 2 Dimensions first.</p><h3><strong>2-D Scatter Plot</strong></h3><p>Scatter plot is the simplest and most common plot. Out of 6 features, price and curb-weight are used here as y and x respectively.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/03d7c23c3faad95674fab7154ef88b5d/href">https://medium.com/media/03d7c23c3faad95674fab7154ef88b5d/href</a></iframe><p>Unlike Matplotlib, process is little bit different in plotly. We have to make ‘layout’ and ‘figure’ first before passing them to a offline.plot function and then output is saved in html format in current working directory. Here’s the screenshot of html plot. You can find interactive HTML plots in GitHub repository link given at the bottom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*UzD_-yPqxjG_dTJZ3SX3xQ.png" /><figcaption>2-D Scatter Plot</figcaption></figure><h4>3-D Scatter plot:</h4><p>We can add third feature horsepower on Z axis to visualize 3D plot. Plotly provides function Scatter3Dto plot interactive 3D plots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*62e337HHWFP-AKY_ccIwhw.png" /><figcaption>3-D Plot</figcaption></figure><p>Instead of embedding codes for each plot in this blog itself, I’ve added all codes in repository given at the bottom. Do check out.</p><h4>Adding 4<strong>th Dimension:</strong></h4><p>We know we cannot visualize higher dimensions directly, but here’s the trick: We can use fake depth to visualize higher dimensions by using variations such as color, size and shapes.</p><p>Here, along with earlier 3 features, we will use city mileage feature- city-mpg as fourth dimension, which is varied using marker colors by parameter markercolor of Scatter3D. Here lighter blue color represents lower mileage.</p><p>Observations: It’s pretty evident from the 4D plot that higher the price, horsepower and curb weight, lower the mileage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*ovPP2cjFR-at5GbPWy-gnw.png" /><figcaption>4-D Plot with marker color as 4th Dimension (color represents ’city-mpg’ feature)</figcaption></figure><h4>Adding 5th Dimension:</h4><p>Size of the marker can be used to visualize 5th dimension. Here we will use engine-size feature to vary size of marker using markersize parameter of Scatter3D.</p><p>Observations: Engine size variations can be clearly observed with respect to other four features here. Higher the price, higher the engine size. Also lower the mileage, higher the engine-size.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*tBAjodZL9EkI7pnje0UDsQ.png" /><figcaption>5-D Plot with marker size as 5th Dimension (size represents ‘engine-size’ feature)</figcaption></figure><h4>Adding 6th Dimension:</h4><p>Using shape of marker, categorical values can be visualized. Plotly provides about 10 different shapes for 3D Scatter plot( like Diamond, circle, square etc). So 10 at most 10 distinct values can be used as shape.</p><p>We have num-of-doors feature which contains integers for number of doors( 2and 4) These values can be converted into shapes string by defining shape of square for 4 doors and circle for 2 doors, which will be passed to markersymbol parameter of Scatter3D.</p><p>Observations: In this 6D plot, lower priced cars seem to have 4 doors(circles). We will get more insights into data if observed closely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*-neVtPfYLkjO1xUWbCitPA.png" /><figcaption>6-D Plot with marker shape as 6th Dimension (shape represents ‘num-of-doors’ feature)</figcaption></figure><h4><strong>Can we add more dimensions?</strong></h4><p>Certainly we can! Marker has more properties such as opacity and gradients which can be utilized. But if we add more dimensions, it makes it difficult to appreciate marker points.</p><h4>Source Code:</h4><p>Python code and interactive plot for all figures is hosted on <a href="https://github.com/ostwalprasad/PythonMultiDimensionalPlots">GitHub here.</a></p><p>Thanks for reading! Suggestions are welcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a2bf7b8cc74" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[All-in-one word list for GRE vocabulary]]></title>
            <link>https://medium.com/@prasadostwal/all-in-one-word-list-for-gre-vocabulary-8b6f24a9cdc8?source=rss-64067139910f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b6f24a9cdc8</guid>
            <category><![CDATA[vocabulary]]></category>
            <category><![CDATA[wordlist]]></category>
            <category><![CDATA[gre]]></category>
            <category><![CDATA[toefl]]></category>
            <dc:creator><![CDATA[Prasad Ostwal]]></dc:creator>
            <pubDate>Fri, 29 Mar 2019 06:44:30 GMT</pubDate>
            <atom:updated>2019-03-29T06:47:47.327Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rNI0HkB0Ie5Dk4R1ajj6_Q.png" /></figure><p>If you are struggling to remember words and not sure which wordlist to prepare, you are not alone!. When I was preparing for GRE verbal, I was bombarded with multiple word lists like Magoosh, Barrons-333, Manhattan and so on!! Everyone endorsed their choice of list because every list has its own advantages, so I was confused which list to choose. So came up with an idea — Let’s combine all of them and extract most frequent words from each list.</p><p>First I collected following famous lists you might’ve heard of:</p><ol><li>Barrons 1100 Words</li><li>Magoosh 1000 Words</li><li>Majortest Essential 1500 Words</li><li>Princeton 500 Words</li><li>Kaplan 500 Words</li><li>Manhattan Basic+Essential 1000 Words</li></ol><p>After combining all above words into a text file, I wrote a python script to rank words according to their frequency of appearance in lists. So suppose word ‘assuage’ is present in 5 of above lists then it’s frequency is 5. After calculating frequencies for all words in above lists, I sorted them according to frequency number.</p><p>Now, words with frequency 3 and above are must do, because they are present in at least 3 lists! You can even go for 2 frequency words if you have time. But make sure you <em>never </em>miss a word from the best-of-the-best words from frequency 5 &amp; 6.</p><p>I was myself struggling with words. Using this approach along with other techniques such as mnemonics, I could improve 10 points in verbal section(146 to 156)</p><p><strong>Some stats:</strong></p><p>Total words : 5600<br>Total unique words : 2959<br>Words with Frequency 6 : 41<br>Words with Frequency 5 : 110<br>Words with Frequency 4 : 185<br>Words with Frequency 3 : 286<br>Words with Frequency 2 : 588<br>Words with Frequency 1 : 1735</p><p>Sorted list and code is hosted on Github: <a href="https://github.com/ostwalprasad/WordFrequencyPython">https://github.com/ostwalprasad/WordFrequencyPython</a></p><p>If you liked it, please<em> start/fork/follow</em> me on Github. Suggestions and improvements welcomed.</p><p>Tweet me at <a href="https://twitter.com/ostwalprasad">https://twitter.com/ostwalprasad</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b6f24a9cdc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IoT and Artificial Intelligence for connected living]]></title>
            <link>https://medium.com/@prasadostwal/iot-and-artificial-intelligence-for-connected-living-e109ec3cf0ae?source=rss-64067139910f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e109ec3cf0ae</guid>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[smart-home]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Prasad Ostwal]]></dc:creator>
            <pubDate>Sun, 18 Feb 2018 05:30:43 GMT</pubDate>
            <atom:updated>2018-02-18T05:30:43.915Z</atom:updated>
            <content:encoded><![CDATA[<p>“Adam, make me a good coffee”</p><p>Yes you heard right! Pretty soon this is what you will be saying to your coffee maker machine.Or some other time, you are entering your home at 7 P.M and your home lighting automatically switches to your favorite colors and player starts playing your favorite track.</p><p>We’ve been able to ask a question to Siri or Google. Why not do the same with each and every device? Gone are the days, when you used to manually control your home appliances. It’s time for artificial intelligence based IoT smart homes. You might feel that IoT and artificial intelligence are too cliche topics,but the real fun lies in exploring them together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OP-LvRDYzli2FZCEvtKhhg.jpeg" /></figure><p>At the heart of IoT is networking of devices and connecting them to the internet. Just controlling the devices is not the main purpose of IoT as it seems,rather they generate vast amount of data. Gartner predicted that 21 billion IoT nodes(devices) will be connected to Internet by 2020,though there is no limit on number of devices. So ..in the future, data coming from the sensors will multiply manifold. Hence, there will be an ecosystem of all kinds of data. It’s simply impossible for humans to review such deluge of data. Here, AI comes into the picture! As more and more devices will be connected, more data will be generated. AI can be used to make inference out of this data, predicting upcoming events based on complex analysis algorithms.This will hold extremely valuable insight into what’s working well or what’s not. With the recurring control(IoT) and analyse(AI) process,devices become smarter over the time.</p><p>London based startup, AI-build is developing the Smart home-hub prototype on the similar grounds.The startup wants to make home automation more natural and intuitive.It plans to build its systems by ‘teachable’ and ‘adaptive’ programming to instruct its home. Current trends of home automation model rely on apps for merely controlling various devices such as AC,player, fridge etc..and mobile apps take multiple steps to activate the devices.You unlock your phone, open the app, tell it to turn on a specific light. But, in AI, instead of using a phone or remote control,you can use your natural language to control the things. To felicitate this it will use algorithms for self learning. Means over the time you use the system,it will adapt to your natural gestures and behave according to your idiosyncrasies.</p><p>Home automation segment is rapidly moving towards open source.Most home automation systems run on Linux hubs and have fairly open API’s for development. Mycroft is an example of open source smart linux based hub,which was crowdfunded on kickstarter a year ago. Mycroft also offers voice control based on Raspberry Pi and Ubuntu core. Along with entire source code Mycroft also provides API’s and development boards so that developers can add new capabilities integrating more and more smart products as well as services. Development boards are also open source and expandable. In coming years, the open source movement will lead to an integration of millions of home devices into IoT ecosystem which are currently isolated from the internet. More the devices and data in the stock, more powerful the AI would be….! So, Mycroft,Google home,Amazon Echo and several other AI based automation companies are moving towards AI analytics,where system will be more autonomous and self learning. The devices can operate without needing any smartphone app. Everything is becoming open source in home automation,so there’s plenty of opportunities for the innovators.</p><p>In spite of fast paced development, IoT is still immature to be embraced by people.Lot of real life experiments and pilot projects are required to achieve its full potential. Also in the period of burgeoning market,IoT and AI are prone to security threats. As every device will be networked to internet,they are vulnerable to malware and hackers across the world. But developers are aware of such threats and developing countermeasures for full proof technology.</p><p>In future, developing more natural language capabilities will help to unleash the full potential of IoT homes, allowing humans to communicate directly with devices. IoT and AI enthusiast should look forward to a future where both the technologies are evolving hand in hand. As one technology flourishes, more opportunities will arise for other. So, be the part of upcoming era and contribute your intelligence for innovating the ‘Smart Homes’.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e109ec3cf0ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>