<?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 Nipun Batra on Medium]]></title>
        <description><![CDATA[Stories by Nipun Batra on Medium]]></description>
        <link>https://medium.com/@nipun_batra?source=rss-5d0395a64c5a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7cjkRzCp7OxtNU31ryU5jg.jpeg</url>
            <title>Stories by Nipun Batra on Medium</title>
            <link>https://medium.com/@nipun_batra?source=rss-5d0395a64c5a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 08:35:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nipun_batra/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[Hello World!]]></title>
            <link>https://medium.com/sustainability-lab/hello-world-ddc337caeefc?source=rss-5d0395a64c5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddc337caeefc</guid>
            <category><![CDATA[sustainability]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[environment]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Nipun Batra]]></dc:creator>
            <pubDate>Fri, 22 Mar 2019 03:50:08 GMT</pubDate>
            <atom:updated>2019-03-22T03:52:17.441Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uG49uOPVYZBbZt5DY3mvng.jpeg" /></figure><p>Hi everyone! We are a group of researchers based out of IIT Gandhinagar. We have been doing some cool stuff in the CS + sustainability space and are starting this blog to share our updates.</p><p>We are passionate about sustainability and are working on projects related to air quality, energy and water consumption.</p><p>This blog has several purposes, including, but not limited to:</p><ol><li>Reduce the entry barrier to research: To explain our work in “layman” language.</li><li>Make science more open: We plan to talk about code, models, and everything to ensure our work is easy to replicate.</li><li>HowTos: Oftentimes in our research we end up hitting a wall. We plan to talk about how to circumvent those walls!</li><li>News and updates</li></ol><p>We hope to engage with all of you.</p><p>Nipun Batra (PI of Sustainability Lab)</p><p><a href="https://nipunbatra.github.io/">https://nipunbatra.github.io/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddc337caeefc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sustainability-lab/hello-world-ddc337caeefc">Hello World!</a> was originally published in <a href="https://medium.com/sustainability-lab">sustainability-lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Defended my Ph.D. thesis]]></title>
            <link>https://medium.com/@nipun_batra/defended-my-ph-d-thesis-c53afec714e7?source=rss-5d0395a64c5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c53afec714e7</guid>
            <category><![CDATA[nilm]]></category>
            <category><![CDATA[energy]]></category>
            <category><![CDATA[energy-disaggregation]]></category>
            <category><![CDATA[thesis]]></category>
            <category><![CDATA[phd]]></category>
            <dc:creator><![CDATA[Nipun Batra]]></dc:creator>
            <pubDate>Tue, 14 Mar 2017 05:16:36 GMT</pubDate>
            <atom:updated>2017-03-14T05:20:09.868Z</atom:updated>
            <content:encoded><![CDATA[<p>Last week, on the 7th of March, 2017, I successfully defended my thesis. I started my PhD journey in January 2012! So, it’s been a very long journey.</p><p>My thesis can be found online <a href="https://www.iiitd.edu.in/~nipunb/papers/batra_thesis.pdf">here</a>. My committee consisted of Dr. Rahul Mangharam (UPenn), Dr. Prashant Shenoy (UMass) and Dr. Krithi Ramamritham (IIT Bombay). You can find the recording of my thesis talk below.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FHvoUrtM4-qw%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DHvoUrtM4-qw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FHvoUrtM4-qw%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9b17b6cf46f2d1d64f0c3f316f9ba5fc/href">https://medium.com/media/9b17b6cf46f2d1d64f0c3f316f9ba5fc/href</a></iframe><p>I am very thankful to a lot of people. Please find below the contents of the acknowledgement section from my thesis.</p><h3>Acknowledgements</h3><p>“The journey of a thousand miles begins with a single step”, so says the ancient Chinese proverb. While my PhD has spanned only the last 5 years of my life, a good amount of steps had been taken a long while before my PhD started. In this writeup, I’d like to acknowledge people who’ve shaped me as a person and without whose intervention, I could not have been what I am. Of course, I realise my limitations and my ungratefulness. Thus, I may not be able to thank many people.</p><p>I remember as a grade two kid, my class teacher Ms. Marina praising me in front of the whole class that I’d done really well in exams. That little act of appreciation is so very firmly impressed in my mind even now. Maybe, if she had not been generous in her appreciation, I may not have taken my studies the way I did. I also remember becoming so happy with her appreciation and getting casual that I didn’t study at all for the final exam. I fared poorly in that particular exam. I heard that my percentage dropped from 95 to 89. Sure, I really messed the exam. It was a lesson that has stayed with me all through the years- not to get overconfident! This particular lesson helped<br>me to form better habits that would eventually help me in my PhD.</p><p>I remember changing my school in grade fourth. If it were not for the motherly care that my then class teacher Mrs. Abnash Kaur gave, I may never have taken my studies seriously. In grade fifth, my class teacher Mr. Andrew Hoffland impressed upon us the need to be all round good, rather than just being good in academics. He wanted us all to read more. That little push in those pre 2000 days went a long way. A lot of my skills that I would use in my PhD were getting honed.</p><p>By this time, I started to realise that my favourite subjects were the ones where I had my favourite teachers. My mathematics teacher, Mr. KP Joy holds a special place for me. If not for him, I may have never taken an active interest in mathematics. I may thus never have been able to do my computer science PhD. I studied not just for myself, but for Mr. Joy would be happy to see me ace an 100/100. I particularly remember him asking for my answer sheet when he wanted to discuss the exam answers. Needless to say, I had a 100/100 on that exam. That particular incident greatly encouraged me! A lot of other teachers, Mrs. Anita Bisht, Mrs. Shobha Sharma, Mrs. Meenu Sharma, Mrs. P. Singh, encouraged me constantly and thus honed me to becoming a better person. They showed faith in me, when I had little faith on myself.</p><p>My computer science teachers deserve a very special mention. I was once discussing with Mrs. Lata Nandkumar about changing to a higher ranked school. She remarked that it is the students who make the school and not vice versa. This particular statement has stuck with me through all these years. It would later help me to focus on what I can do, rather than constantly complain about what I don’t. This particular incident also helped me to choose IIIT-Delhi to do my PhD. Mr. Geo Matthew taught us C++ programming. While, I used to miss classes due to engineering entrance preparation, his lessons helped me get stronger at programming. The programming base that was set by Mrs. Sojan in grade sixth through eight just got stronger. It convinced me all the more that computer engineering is the field for me! Mr. Avadesh and Mr. Manish Sharma helped maintain and develop my interest in the sciences. My chess coach was always very inspiring. He once told me that I was almost as good as the national youth champion in those early 2000s. I once asked my grade twelfth mathematics teacher about my chances in the engineering exams. She told me like another school senior of ours who topped the engineering exams, I had the ingredients. Looking back, I realise how all these small encouragement have helped me.</p><p>My school time was a great learning experience. Many deep friendships, without which I may not have developed the character or the skills that greatly helped me in my PhD. I remember that I didn’t have a personal computer till class ninth. My school buddy, Raunaq Suri and his parents kindly allowed me to work at their home. I didn’t even know what Windows was and was greatly helped by Raunaq. The powerpoint that I learnt in those days, went a great deal in me learning the art of selling my work. I particularly feel very thankful to Raunaq’s parents who treated me like their own son.</p><p>I was mostly a shy and studious kid. It was only my good friend Shashank Popli’s intervention that helped me grow. He constantly encouraged me to participate in debates, quizzes, symposiums. Our team participated in many inter-school competitions (we got free sandwiches there!). The confidence gained there went a long way!</p><p>My good friend Ritwik Manan formed with me what was a very intense Federer-Nadal battle. He was one of the smartest guys I have ever seen. Our “friendly” battles for the top academic position, helped me to become much better. Many of my other school friends- Shevaal, Shekhar, Arjun, Sharad formed great friendships that I savour!</p><p>Moving on to college was a difficult phase. Some of my new friends Dheeraj, Mohit, Mayank helped me significantly. I had started to lose faith in the system and interest in computer science. My friends Sidharth and Nikhil greatly helped me regain that interest. At the end of the first year, I was inducted into the university Unmanned Aerial Vehicle (UAV) team. I learnt a lot as a part of the UAV team. My stint there also helped me a great deal in shaping my interests in research. I understood that my liking lied in systems and applications. The international exposure that we got while working on the UAV helped develop a lot of confidence. I also gained a lot of skills that played a key role in my PhD. Particularly, I learnt from Suraj Joseph- “if it ain’t broke, don’t fix it. From Rohit Arora I learnt how sincere determination can help one learn a completely new field (computer vision) in his case. Sahil and Raghvendra taught me how to be patient while working with hardware. I played with a lot of hardware in my PhD and I was already prepared in my stint with the UAV team. Rochak Chadha was the team captain. I learnt from him how much ownership is needed to successfully complete research projects. I particularly value this lesson a lot. Abhay and Arjit taught me how rigour, deep interest can help overcome any shortcomings in coursework.</p><p>Rochak Talwar always believed in me and his encouragement helped me a great deal.</p><p>My short stints at Goldman Sachs and RBS were helpful in choosing research. Working in these banks showed me that I valued intellectual independence and thus research would be the right move. Encouraged by my friends, Anirvana, Sidharth, I chose to pursue my interest in research and I chose to join IIIT Delhi. My BTech project mentor, Dr. Divyashikha deserves a very special mention for being my first formal research mentor. Her honest attempts at setting up laboratories and improving the standard of education, and her encouragements have helped me a lot.</p><p>The past five years at IIIT Delhi have been filled with a lot of learning and a lot of experiences that will always stay with me. I feel very grateful towards my advisor, Dr. Amarjeet Singh. I realise that I am a very pushy researcher and thus can be very hard to handle for an advisor. The role of an advisor is very strange. They pick you up when you know nothing about research. They spend blood and sweat in training you and when you are well-trained, you are ready to leave. Like teaching, advising is a tough job! Dr. Amarjeet Singh very nicely balanced the line between being very hands-on versus being very hands-off. In the initial years, he was hands-on and that allowed me to get bootstrapped into research. Wherever needed, he allowed me my independence. He is probably one of the most energetic and passionate person I have ever seen. I remember how hopelessly poor I was in research when I came to him. I was an engineer when I came to him, I leave as a researcher. The difference between the two is very wide! Dr. Amarjeet pushed me a lot. When he started to get more hands-off, I started feeling odd and thought why he’s doing so. Looking back, I realise how perfectly he timed getting more hands-off. I might have published more papers with him being hands-on, but, I may have never learnt how to do independent research. Dr. Amarjeet also always showed a lot of faith in me. Having advisor’s backing makes the PhD easier. Over the years, his role in my life has changed from Dr. Amarjeet the advisor to Amarjeet the mentor and friend. I admire many of his qualities and seek to learn from him. Not only has he made me a better researcher, I also feel he’s inspired me to become a better person.</p><p>I started working with my co-advisor Dr. Kamin Whitehouse around my mid-PhD crisis time. I was on the verge of quitting my PhD as I felt I could no longer get any success in my PhD. Everything I touched, turned to dust. During such times of failure, Dr. Whitehouse always stood with me and encouraged me. He gradually trained me to become a better researcher. I admired and looked up to him for his conduct, his mannerisms, his attitude towards work and life. I owe a lot of my PhD success to Dr. Whitehouse- from the scientific method, to writing papers, to reviewing papers, making presentations. I have learnt immensely from him. I also believe that Dr. Whitehouse has that rare quality of giving quality constructive feedback. He is also one of his kind in terms of the clarity of thought process and eye for detail.</p><p>I have been working with Dr. Hongning Wang for about an year now. His substantial inputs helped us ace AAAI 2017. Dr. Wang is one of the most hard working faculty I have ever seen. He is very well organised and has been an excellent mentor.</p><p>During this tough mid-PhD crisis period (which happened when I was interning with Dr. Whitehouse at University of Virginia), I was fortunate to have good lab friends with me. I am especially thankful to Avinash Kalyanaraman for his daily discussion and pep talk. Delhi, Juhi, Elahe, and Erin helped me a great deal in my work and I learnt a lot from them. From Dezhi, I learnt how to keep working on a problem even when all hope seems gone. From Juhi, I learnt how research can be fun and how to take risks. From Erin, I learnt how to articulate my research. Elahe changed her subject of PhD and it was inspiring to see how hard work can help overcome lack of training in a particular subject. Christine Palazzolo, who is the computer science admin at UVa, treated me like her own son and made the otherwise impossibly hard time spent at UVa, manageable.</p><p>I feel very thankful to faculty and administration at IIIT Delhi. Prof. Jalote took the bold step and invested heavily in the formation of IIIT Delhi. While he being the director is very busy, he never denied me time when I wanted to discuss my PhD, career, etc. with him. I could see that every single person in the IIIT Delhi system would look up to him. The administration at IIIT Delhi has made the lives of us PhDs and students much easier. No amount of credit would be enough for them. They have ensured that we can focus on our research and everything else is handled by them. In particular, I would like to thank Mr. Prosenjit, Mr. Vinod, Ms. Sheetu, Ms. Priti, Mr. Vivek Tiwari.</p><p>I learnt a lot from the coursework. In particular, I was very inspired by Prof.<br>Ashwin and his style of thinking. I has the chance to meet him several times and discuss my PhD work. His seemingly high-level inputs eventually turned out to be an integral component of my thesis. I remember him telling me-“In your PhD, you need to be like Sherlock Holmes. It should be that kind of an investigation. I have felt inspired by a few other faculties with whom I have had interactions. Dr. Pushpendra’s organisation (both external and internal) was immaculate. Dr. Pushpendra also co-supervised me during the early part of my PhD. Dr. PK’s positivity, enthusiasm and endeavours (like trying new things such as NPTEL courses) was very inspiring. Dr. Vinayak’s deep interest in everything systems related was always inspiring. I would always aspire to develop strong fundamentals such as Dr. Shobha. Dr. Sanjit’s thoroughness in his research always inspired me.</p><p>During my PhD, I have been very lucky to have worked with some really smart and good human beings. In particular, I have maintained a good relationship with (soon to be Dr.) Jack Kelly and Dr. Oliver Parson. From Jack, I learnt how to do things with a tone of perfection. Everything that Jack did was impeccable- from charts, to code, to writing paper. I have always admired Jack’s honest approach towards research. Oliver is one of the most clear thinking persons I have ever met. During my collaboration with him, I learnt a lot about writing good papers, and getting to the point. Prof. Mani Srivastava mentored me during the initial 2–3 years of my PhD. His clear thinking and hard work despite not having anything to prove to anyone was very inspiring. It was heartening to see him code even when he’s a full Professor. Prof. Mani’s inputs helped me a great deal in my initial projects and without him, I may not have had the confidence to approach Dr. Whitehouse for my internship. I’ve also been very lucky to have received inputs from a lot of people, such as Dr. Venkatesh Sarangan and Dr. Arun Vasan. While they’ve always been very helpful, both of them were particularly helpful and encouraging when I was going through the mid-PhD crisis.</p><p>I have also been very fortunate to receive high quality feedback from several<br>members of the academic community. Dr. Yuvraj Agarwal and Mario Berges hosted my talk at CMU and have given valuable feedback. Dr. Rahul Mangharam hosted me at UPenn. He was particularly encouraging during my mid-PhD crisis. Dr. Prashant Shenoy, Dr. Krithi, Dr. Ram have at various times provided useful feedback.</p><p>I would also like to thank my thesis evaluation committee-Dr. Krithi, Dr. Prashant Shenoy and Dr. Rahul Mangharam. Their detailed inputs have certainly made this thesis clearer and better in quality.</p><p>I have made some deep friendships during my PhD at IIIT Delhi. I feel grateful to my lab seniors- (Dr.) Kuldeep, Siddhartha and Samy. Samy helped me a great deal taking my first steps into research. Kuldeep and Siddhartha were there for discussion and advise. In particular, Kuldeep’s systems building skills and initiative taking have had an impact on me. Among other seniors, I have had multiple helpful discussions with Dr. Denzil Correa, Dr. Samarth, Anush and Tejas. Dr. Denzil reviewed what turned out to be my most impactful paper. His suggestions were very useful.<br>I have learnt a lot from my lab and PhD peers. The positive and happy work<br>environment they created was an important factor in me completing my thesis. With Manoj Gulati I formed a very deep friendship. His constant pursuance of becoming better was very inspiring. His journey to an internship at UW is remarkable. He was the always reliable brother! I have had uncountable discussions with him on research and life. I’ll state a few qualities of my other peers that I looked up to and the efforts towards those directions greatly helped me in my PhD. Haroon Rashid is one of the most sincere person I have ever seen. I would always look up to his sincerity and regularity in work. I often used to think that I had so much to do, until I saw how much Dheryta had on her plate- a two year old child. Her dedication towards research often pepped me up. I was always inspired by the community oriented work that Deepika did. I would often always look up to Sonia’s work and found it to be really cool. Garvita’s bouncing back after project failures was very inspiring. Anupriya’s positive attitude-“let’s try, what’s the worst that could happen, was infectious and very helpful. Sneihil’s and Anil’s consistent and hard work, especially with those long mathematics always kept me grounded. Parikshit’s sticking to theory and believing in himself was inspiring. When Alvika would continue working despite repeated hardware failures, I would often find my PhD situation less taxing (due to less hardware) and work with a renewed motivation. While Milan is younger to me, at times he played the role of an elder brother. His continued pep talk, motivation and support helped me a great deal. I was always inspired by his hard working nature. Vandana’s attitude of always trying to improve was inspiring. Tanya’s shifting to another area (which in my opinion was harder!), and sticking with it, was inspiring. Akanksha’s sticking to honest results despite deadlines was inspiring and was a value that I also tried to stand by.</p><p>During my PhD, I was also very lucky to be a teaching assistant in a few courses. In particular, I remember the course on Introduction to Programming very fondly. Since I was the head teaching assistant, I had a lot of interactions with the 170 students of the 2012–2016 batch. Teaching them gave me great joy. I formed great friendships with all these 170 students. Teaching them taught me a lot and helped me a great deal in my PhD.</p><p>If you’re wondering why I haven’t mentioned my family, the reason is that I know that they’ll anyway read to the bottom of this section. So, might as well put them in the last! I feel very lucky to be born in the family that I am. I was (somehow) the most loved child in both my paternal and maternal families. The deep care and affection during the formative years helped me become a better person. There are a lot of unsung heroes in my PhD. While I have mentioned some of them above, I feel that no one would deserve more credit than my parents. It’s extremely sad that only I will be called as Dr. Nipun Batra and they would not be conferred the title. I can never thank them enough. I remember watching my first birthday video where I was eating anything that would come my way- wallet, balloons, etc. From such an ignorant state to being called, Dr. Nipun Batra, my family deserves all the credit. Their love and affection is unparalleled and since words can’t do justice to them, I’d befriend brevity towards the fag end of this section. My grandparents (paternal and maternal) are not the most well educated if you go by their degrees. However, their unconditional love for me shows that selfless love is far beyond degrees. My grandparents were probably the first teachers outside the books, when they inculcated in me a deep interest in automobiles, at an age when I had not started speaking. Their thoughtful presents- like my maternal grandmother bringing me “lucky” pens to be used for exams, my paternal grandfather (late) bringing me cookies for my small act of honesty. All these are firmly embedded in my heart and provided a strong cultural training. It is said that a PhD degree makes you thorough in your research and analysis. However, when I compare even the most trivial thing that my mother would do for me, I can see an order of magnitude of difference. For instance, the way my mother would seal the pickle bottle on my overseas trips is far more thorough than any of the scholarly work I have produced. More recently, I was participating in a video<br>competition where the winners would be decided by the number of views. My mother knew little about smartphone usage till that point. But, for my sake, she learnt smartphone really quickly. Needless to say that she promoted my research video to an extent that I was one of the finalist. Of course, this is a case of selfless love trumping scholarly wisdom. My mother has made countless sacrifices for me. I can almost state it like an axiom that I would be insignificant without all that my mother has done for me. Of course, there’s only a small (tip of the iceberg) amount of my mother’s love and care that I can ever understand and appreciate. No matter how I would do professionally, she would only have her care and affection for me. My<br>father despite his not so good health has always stood by my side. He practised what he preached. I learnt a lot from observing him in his day to day dealings. The presentations skills that are so vital in research, I learnt from observing him, when he would with a genuine good wishing heart carry his business. His consistency in his inputs despite the ups and downs of the market was an important lesson I tried to imbibe. My sister is the first PhD in our family. She’s also the first ever person to study science in college. Needless to say I was very heavily influenced by her. She was (probably) my first teacher. My brother-in-law has been more of an elder brother than a brother-in-law and has been the goto person given my extremely busy PhD life!</p><p>To end, I’d like to say that this PhD was a very humbling experience. In the<br>revered scripture, Bhagavad Gita, knowledge is defined as the presence of qualities, the first of which is humility. I’d like to say that I’ve been very fortunate that the past few years have provided me a chance to inculcate the same. While I have worked hard, I’ve been fortunate to have such a good set of people around. I’m indeed humbled that I’d be conferred the doctorate, when in reality, this is the effort of so many people.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c53afec714e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interfacing NILM algorithms written in Matlab with NILMTK]]></title>
            <link>https://medium.com/@nipun_batra/interfacing-nilm-algorithms-written-in-matlab-with-nilmtk-31afbf60ed1e?source=rss-5d0395a64c5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/31afbf60ed1e</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[energy]]></category>
            <category><![CDATA[disaggregation]]></category>
            <category><![CDATA[nilm]]></category>
            <dc:creator><![CDATA[Nipun Batra]]></dc:creator>
            <pubDate>Mon, 13 Feb 2017 14:58:17 GMT</pubDate>
            <atom:updated>2017-02-13T14:58:17.785Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c943a4ccadf71ba81b9fbfc648f4e6eb/href">https://medium.com/media/c943a4ccadf71ba81b9fbfc648f4e6eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31afbf60ed1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing NILMTK: an open source toolkit for non-intrusive load monitoring]]></title>
            <link>https://medium.com/@nipun_batra/introducing-nilmtk-an-open-source-toolkit-for-non-intrusive-load-monitoring-d9b1d0541420?source=rss-5d0395a64c5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9b1d0541420</guid>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[energy]]></category>
            <category><![CDATA[numpy]]></category>
            <category><![CDATA[nilmtk]]></category>
            <category><![CDATA[nilm]]></category>
            <dc:creator><![CDATA[Nipun Batra]]></dc:creator>
            <pubDate>Wed, 16 Apr 2014 01:42:47 GMT</pubDate>
            <atom:updated>2017-01-20T08:20:53.784Z</atom:updated>
            <content:encoded><![CDATA[<p>Today, Nipun Batra, Jack Kelly and Oliver Parson are really pleased to announce the release of <a href="http://nilmtk.github.io/">NILMTK: an open source toolkit for non-intrusive load monitoring</a>. The toolkit will allow researchers to easily develop algorithms which disaggregate a household’s total electricity consumption into individual appliances.</p><p>Specifically, the toolkit includes:</p><ul><li>a number of parsers to read public data sets into a common format</li><li>a suite of statistical functions to analyse such data sets and identify potential problems</li><li>two benchmark energy disaggregation algorithms</li><li>a suite of evaluation metrics to compare disaggregation algorithms</li></ul><p>Further details can be found in the accompanying paper recently accepted at e-Energy 2014 available via <a href="http://arxiv.org/abs/1404.3878">arXiv</a>and <a href="http://eprints.soton.ac.uk/364293/">Soton ePrints</a>:</p><ul><li>Batra, N., Kelly, J., Parson, O., Dutta, H., Knottenbelt, W., Rogers, A., Singh, A., Srivastava, M. (2014). NILMTK: An Open Source Toolkit for Non-intrusive Load Monitoring. In Fifth International Conference on Future Energy Systems (ACM e-Energy). Cambridge, UK.</li></ul><p>This release is hopefully just the beginning of the toolkit’s contribution to energy disaggregation, and as such we welcome feedback and contributions to all aspects of the project.</p><p>This has been cross posted via <a href="http://nipunbatra.wordpress.com/blog/">Nipun Batra’s blog</a>, <a href="http://jack-kelly.com/">Jack Kelly’s blog</a>, <a href="http://blog.oliverparson.co.uk/">Oliver Parson’s blog</a> and the <a href="http://intranet.orchid.ac.uk/blog">ORCHID project blog</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9b1d0541420" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Courses on computational sustainability, green computing, buildings]]></title>
            <link>https://medium.com/@nipun_batra/courses-on-computational-sustainability-green-computing-buildings-ffdcfc266656?source=rss-5d0395a64c5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffdcfc266656</guid>
            <category><![CDATA[building]]></category>
            <category><![CDATA[energy]]></category>
            <category><![CDATA[course]]></category>
            <category><![CDATA[phd-updates]]></category>
            <dc:creator><![CDATA[Nipun Batra]]></dc:creator>
            <pubDate>Sat, 08 Mar 2014 10:41:09 GMT</pubDate>
            <atom:updated>2017-01-20T08:23:14.335Z</atom:updated>
            <content:encoded><![CDATA[<p>In this post I mention about some recent courses on computational sustainability, green computing and related topics. I will update this list periodically. In case you have a suggestion, please drop a comment. Many of these courses are reading oriented and the readings cover some of the most relevant work in the field.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b97c08eab1842c300632ecdca895fd17/href">https://medium.com/media/b97c08eab1842c300632ecdca895fd17/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffdcfc266656" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Different standard deviation formulae used in R and Python]]></title>
            <link>https://medium.com/@nipun_batra/different-standard-deviation-formulae-used-in-r-and-python-afdd1f6385b4?source=rss-5d0395a64c5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/afdd1f6385b4</guid>
            <category><![CDATA[formula]]></category>
            <category><![CDATA[sd]]></category>
            <category><![CDATA[r]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Nipun Batra]]></dc:creator>
            <pubDate>Thu, 06 Mar 2014 12:41:02 GMT</pubDate>
            <atom:updated>2017-01-20T08:26:23.502Z</atom:updated>
            <content:encoded><![CDATA[<p>Let us create the same arrays in both the languages and calculate their standard deviations.</p><p><strong>Python</strong></p><pre><br>In [78]: a = np.array(range(10))</pre><pre>In [79]: a<br>Out[79]: array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])</pre><pre>In [80]: np.std(a)<br>Out[80]: 2.8722813232690143</pre><p><strong>R</strong></p><pre>&gt; a&lt;-c(0:9)<br>&gt; a<br> [1] 0 1 2 3 4 5 6 7 8 9<br>&gt; sd(a)<br>[1] 3.02765</pre><p>Wondering why the different results? This is due to the difference in formulae being used in the different implementation.<br>The following <a href="http://www.mathsisfun.com/data/standard-deviation-formulas.html">link</a> contains more information explaining the differences between the two formulae (which differ ever so slightly)</p><p>The <strong>Population</strong> Standard Deviation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/189/0*2meOC3GmBtG2oTfR.gif" /></figure><p>The <strong>Sample</strong> Standard Deviation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/0*tLPii15gzm4NIj2I.gif" /></figure><p>In R the latter formula is used, whereas in the NumPy implementation, the former is used.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=afdd1f6385b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Electricity transmission losses across the world]]></title>
            <link>https://medium.com/@nipun_batra/electricity-transmission-losses-across-the-world-b7cc11b1d3a1?source=rss-5d0395a64c5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7cc11b1d3a1</guid>
            <category><![CDATA[energy]]></category>
            <category><![CDATA[phd-updates]]></category>
            <category><![CDATA[transmission]]></category>
            <category><![CDATA[loss]]></category>
            <category><![CDATA[nilmtk]]></category>
            <dc:creator><![CDATA[Nipun Batra]]></dc:creator>
            <pubDate>Sun, 23 Feb 2014 08:58:25 GMT</pubDate>
            <atom:updated>2017-01-20T08:30:45.800Z</atom:updated>
            <content:encoded><![CDATA[<p>The following <a href="http://data.worldbank.org/indicator/EG.ELC.LOSS.ZS">webpage</a> contains information for electricity transmission losses around the world. I obtained the data and plot it on a world map. The resultant plot is shown below.</p><p>The redder the country encoding, the more the losses. I am working on the legend for the same. As expected, North America, Europe and Australia have low transmission losses. Some parts of Asia and Africa have high transmission losses. The script used to generate the plot (inspired from the <a href="https://github.com/matplotlib/basemap/blob/master/examples/fillstates.py">following</a>) is available below. The shapefile data was downloaded from <a href="http://geocommons.com/overlays/33578">here</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c01d4617c2336fb67e441088f21df494/href">https://medium.com/media/c01d4617c2336fb67e441088f21df494/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7cc11b1d3a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Avoiding thrashing by memory hungry Python programs]]></title>
            <link>https://medium.com/@nipun_batra/avoiding-thrashing-by-memory-hungry-python-programs-b3554ffcd11b?source=rss-5d0395a64c5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3554ffcd11b</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[memories]]></category>
            <category><![CDATA[nilmtk]]></category>
            <dc:creator><![CDATA[Nipun Batra]]></dc:creator>
            <pubDate>Wed, 01 Jan 2014 06:05:27 GMT</pubDate>
            <atom:updated>2017-01-20T09:27:56.376Z</atom:updated>
            <content:encoded><![CDATA[<p>While I was developing NILM algorithms for <a href="https://github.com/nilmtk/nilmtk">NILM toolkit</a>, I encountered OS thrashing and I had to restart my OS several times. Thrashing occurs when your program runs out of RAM and the OS starts allocating disk for the process’s memory requirement. For the curious, the algorithm which I was working on is called Factorial Hidden Markov Model. <a href="https://github.com/nilmtk/nilmtk/issues/67">Here</a> is the corresponding issue on Github.</p><p>I read a bit on setting memory limits for programs. Some relevant links include:</p><ol><li><a href="http://docs.python.org/2/library/resource.html">http://docs.python.org/2/library/resource.html</a></li><li><a href="http://stackoverflow.com/questions/1760025/limit-python-vm-memory">http://stackoverflow.com/questions/1760025/limit-python-vm-memory</a></li><li><a href="http://stackoverflow.com/questions/4285185/python-memory-limit">http://stackoverflow.com/questions/4285185/python-memory-limit</a></li></ol><p>Following is a tiny snippet illustrating the concept:</p><pre>import resource<br>megs=5<br>resource.setrlimit(resource.RLIMIT_AS, (megs * 1048576L, -1L))<br>for i in range(10000):<br> pass</pre><p>This program has a limit of 5 MB. Does it take more than that? Lets try!</p><pre>nipun@nipun-Satellite-L850:~/Desktop$ python test_limit.py <br>Traceback (most recent call last):<br> File “test_limit.py”, line 4, in &lt;module&gt;<br> for i in range(10000):<br>MemoryError<br>Error in sys.excepthook:<br>Traceback (most recent call last):<br> File “/usr/lib/python2.7/dist-packages/apport_python_hook.py”, line 64, in apport_excepthook<br> from apport.fileutils import likely_packaged, get_recent_crashes<br> File “/usr/lib/python2.7/dist-packages/apport/__init__.py”, line 5, in &lt;module&gt;<br> from apport.report import Report<br> File “/usr/lib/python2.7/dist-packages/apport/report.py”, line 12, in &lt;module&gt;<br> import subprocess, tempfile, os.path, re, pwd, grp, os<br>MemoryError</pre><pre>Original exception was:<br>Traceback (most recent call last):<br> File “test_limit.py”, line 4, in &lt;module&gt;<br> for i in range(10000):<br>MemoryError<br></pre><p>So a list of 10000 takes more than 5 MB in the Address Space and hence the program throws an exception.</p><p>Aside, this may be a good time to test xrange() vs range() in terms of memory requirement. I just modified the range() call to xrange() call in the program and the program ran fine!</p><p>Clearly, when we just need to iterate, use xrange() over range() as the latter creates a list in the Address space. <br>Hopefully, no more restarts due to thrashing now!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3554ffcd11b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Obtaining weather information and establishing relationship between temperature and humidity]]></title>
            <link>https://medium.com/@nipun_batra/obtaining-weather-information-and-establishing-relationship-between-temperature-and-humidity-4260f366519d?source=rss-5d0395a64c5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4260f366519d</guid>
            <category><![CDATA[matplotlib]]></category>
            <category><![CDATA[pearson-correlation]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[openweathermap]]></category>
            <category><![CDATA[request]]></category>
            <dc:creator><![CDATA[Nipun Batra]]></dc:creator>
            <pubDate>Fri, 14 Jun 2013 06:59:35 GMT</pubDate>
            <atom:updated>2017-01-20T09:29:50.055Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="http://openweathermap.org/">OpenWeatherMap</a> provides an excellent API to get near realtime weather information, such as temperature, humidity etc. In this post i shall get some historical information regarding temperature, humidity and pressure using this API and do a Pearson correlation test between temperature and pressure. From the geography books we remember that higher the temperature lower the pressure and vice versa. Thus, the correlation amongst these two should be tending towards -1.<br>The following are the three things plotted on the same x-axis.</p><p>Here is the code used.</p><pre>#Plotting historical weather data from OPEN Weather API</pre><pre>#Importing the APP ID<br>from weather_password import APPID</pre><pre>#City ID for Delhi<br>CITY_ID=1273294<br>#How much history (Currently could get only 78 records)<br>COUNT_RECORDS=100<br>#Base URL<br>BASE_URL=&quot;http://openweathermap.org/data/2.1/history/city/&quot;<br>#Custom HTTP request URL<br>REQUEST_URL=BASE_URL+&quot;?id=%d&amp;cnt=%d&amp;APPID=%s&quot; %(CITY_ID,COUNT_RECORDS,APPID)</pre><pre>import requests<br>import matplotlib.pyplot as plt<br>import matplotlib.dates as mdates<br>import datetime<br>import scipy.stats as st</pre><pre>#Getting historical data<br>json_data=requests.get(REQUEST_URL).json()<br>num_records=json_data[&quot;cnt&quot;]<br>print &quot;Response received from server containing %d records&quot; %(num_records)</pre><pre>list_of_records=json_data[&quot;list&quot;]</pre><pre>#Pushing humidity, pressure, temperature and timestamp<br>humidity=[None]*num_records<br>pressure=[None]*num_records<br>temperature=[None]*num_records<br>timestamp=[None]*num_records<br>dates=[None]*num_records</pre><pre>for i in range(num_records):<br>	humidity[i]=list_of_records[i][&quot;main&quot;][&quot;humidity&quot;]<br>	pressure[i]=list_of_records[i][&quot;main&quot;][&quot;pressure&quot;]<br>	temperature[i]=list_of_records[i][&quot;main&quot;][&quot;temp&quot;]-273.15<br>	timestamp[i]=list_of_records[i][&quot;dt&quot;]<br>	dates[i]=datetime.datetime.fromtimestamp(timestamp[i])</pre><pre>#Pearson correlation between temperature and pressure<br>r_correlation=st.pearsonr(pressure,temperature)<br>print &quot;Correlation b/w temperature and pressure is &quot;,r_correlation</pre><pre>#Plotting on 3 subplots and sharing the same x axis to ensure we can equally zoom into all<br>fig=plt.figure()<br>ax1 = fig.add_subplot(311)<br>ax2 = fig.add_subplot(312, sharex=ax1)<br>ax3 = fig.add_subplot(313, sharex=ax1)</pre><pre>ax1.plot(dates,humidity,&#39;g+-&#39;)<br>ax1.xaxis.set_major_formatter(mdates.DateFormatter(&#39;%H hrs \n%d-%m&#39;))<br>ax1.set_title(&#39;Humidity (%)&#39;)</pre><pre>ax2.plot(dates,pressure,&#39;ro-&#39;)<br>ax2.xaxis.set_major_formatter(mdates.DateFormatter(&#39;%H hrs \n%d-%m&#39;))<br>ax2.set_title(&#39;Pressure (hPa)&#39;)</pre><pre>ax3.plot(dates,temperature,&#39;b*-&#39;)<br>ax3.xaxis.set_major_formatter(mdates.DateFormatter(&#39;%H hrs \n%d-%m&#39;))<br>ax3.set_title(&#39;Temperature (Cel)&#39;)</pre><pre>plt.tight_layout()<br>plt.show()<br>The correlation results obtained are as follows:</pre><pre>Correlation variables (X,Y)<br><br>Correlation (r)<br><br>Pressure, Temperature<br><br>-0.75<br><br>Humidity, Temperature<br><br>-0.85</pre><pre>Thus, from the table we can see that temperature and humidity and temperature and pressure are inversely correlated to a high degree.</pre><pre>Caveats:</pre><ul><li>It is my first test with Pearson correlation and I may be wrong in my understanding.</li><li>Scipy.Stats states that for a good test, the variables must be normally distributed and sample size should be 500 plus, which is not a case in our analysis.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4260f366519d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Resources for Scientific Computing in Python]]></title>
            <link>https://medium.com/@nipun_batra/resources-for-scientific-computing-in-python-58393acb8ea4?source=rss-5d0395a64c5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/58393acb8ea4</guid>
            <category><![CDATA[matplotlib]]></category>
            <category><![CDATA[numpy]]></category>
            <category><![CDATA[scikit-learn]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[pandas]]></category>
            <dc:creator><![CDATA[Nipun Batra]]></dc:creator>
            <pubDate>Fri, 10 May 2013 11:08:21 GMT</pubDate>
            <atom:updated>2017-01-20T08:22:34.431Z</atom:updated>
            <content:encoded><![CDATA[<p>A tweet regarding suggested tutorials for Matplotlib made me wonder if i should create a post regarding resources for scientific research in the Python ecosystem. I have tried to put down some stuff beyond the official documentation.</p><p><strong>Books</strong></p><ol><li><a href="http://www.packtpub.com/matplotlib-python-development/book">http://www.packtpub.com/matplotlib-python-development/book</a></li><li><a href="http://www.packtpub.com/learning-scipy-for-numerical-and-scientific-computing/book">http://www.packtpub.com/learning-scipy-for-numerical-and-scientific-computing/book</a></li><li><a href="http://www.packtpub.com/numpy-for-python-cookbook/book">http://www.packtpub.com/numpy-for-python-cookbook/book</a></li><li><a href="http://www.packtpub.com/numpy-mathematical-2e-beginners-guide/book">http://www.packtpub.com/numpy-mathematical-2e-beginners-guide/book</a></li><li><a href="http://www.packtpub.com/learning-ipython-for-interactive-computing-and-data-visualization/book">http://www.packtpub.com/learning-ipython-for-interactive-computing-and-data-visualization/book</a></li><li><a href="http://www.amazon.com/SciPy-NumPy-An-Overview-Developers/dp/1449305466">http://www.amazon.com/SciPy-NumPy-An-Overview-Developers/dp/1449305466</a></li><li><a href="http://shop.oreilly.com/product/0636920023784.do">http://shop.oreilly.com/product/0636920023784.do</a></li></ol><p>Here is a Work in Progress regarding the same.</p><p><strong>Matplotlib</strong></p><p>Articles:</p><ol><li><a href="http://www.loria.fr/~rougier/teaching/matplotlib/">http://www.loria.fr/~rougier/teaching/matplotlib/</a></li><li><a href="http://nbviewer.ipython.org/urls/raw.github.com/jrjohansson/scientific-python-lectures/master/Lecture-4-Matplotlib.ipynb">http://nbviewer.ipython.org/urls/raw.github.com/jrjohansson/scientific-python-lectures/master/Lecture-4-Matplotlib.ipynb</a></li></ol><p>Videos</p><ol><li><a href="http://pyvideo.org/video/617/plotting-with-matplotlib">http://pyvideo.org/video/617/plotting-with-matplotlib</a></li><li><a href="http://pyvideo.org/video/1344/advanced-matplotlib">http://pyvideo.org/video/1344/advanced-matplotlib</a></li><li><a href="http://pyvideo.org/video/971/advanced-matplotlib-tutorial-library-author-john-h">http://pyvideo.org/video/971/advanced-matplotlib-tutorial-library-author-john-h</a> (Advanced)</li></ol><p><strong>Numpy</strong></p><p>Articles</p><ol><li><a href="http://www.scipy.org/NumPy_for_Matlab_Users">http://www.scipy.org/NumPy_for_Matlab_Users</a> (The article which i refer the most)</li></ol><p>Videos</p><ol><li><a href="http://pyvideo.org/video/620/high-performance-python-ii">http://pyvideo.org/video/620/high-performance-python-ii</a></li><li><a href="http://pyvideo.org/video/1190/introduction-to-numpy-and-matplotlib">http://pyvideo.org/video/1190/introduction-to-numpy-and-matplotlib</a></li></ol><p>I will keep on updating this list and would to be happy to add stuff based on comments.</p><p>Also i personally follow <a href="http://glowingpython.blogspot.in/">http://glowingpython.blogspot.in/</a> for learning some cool tricks.</p><p><strong>TODO</strong></p><p>Add resources for Scipy, Pandas, Scikit Learn</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58393acb8ea4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>