<?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 Nikhil Malhotra on Medium]]></title>
        <description><![CDATA[Stories by Nikhil Malhotra on Medium]]></description>
        <link>https://medium.com/@nickmalhotra?source=rss-6ede1e82425e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3yz6bftSUy4nVW3v_vnZAw.jpeg</url>
            <title>Stories by Nikhil Malhotra on Medium</title>
            <link>https://medium.com/@nickmalhotra?source=rss-6ede1e82425e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 22:33:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nickmalhotra/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[A PLANET’s APPEAL TO THE DUMBEST SPECIES THAT INHABIT IT]]></title>
            <link>https://medium.com/@nickmalhotra/a-planets-appeal-to-the-dumbest-species-that-inhabit-it-fed950853c15?source=rss-6ede1e82425e------2</link>
            <guid isPermaLink="false">https://medium.com/p/fed950853c15</guid>
            <category><![CDATA[planets]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[earth]]></category>
            <dc:creator><![CDATA[Nikhil Malhotra]]></dc:creator>
            <pubDate>Sun, 30 Aug 2020 07:49:51 GMT</pubDate>
            <atom:updated>2020-08-30T07:49:51.594Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*rRoD_10e62efZLc4FIWvvQ.png" /></figure><p><strong>Log Date: 30th August 2020</strong>, as I sit in my study and see the globe in front of me, I can’t help but think how we have let our home down. Planet Earth is under a duress, not because the dominant species is under a virus attack, but because this species has turned out to be the dumbest that could ever inhabit it, and is on its way to destroy its own home willingly and with all its consciousness. Countless indications, churnings, data and evolution have failed to predict for this species the state that we stare at and the future that is becoming more of a possibility than a probability. Yes, I am talking about the human species, ladies and gentlemen which has always prided itself being different from the rest of the flora and fauna by the dint of a 1.5 Kg of mass of tissue that they possess in their skulls, the neo-cortex , which in lay-man’s parlance we call the “brain”.</p><p>And this is not the first time this has happened!! We have had numerous warnings and indications in the past, but as they say the <em>intelligent learn from the past,</em> when the dumb reject it, has been proven unequivocally right this time around. As I sit and now count, it has been almost 6 months since the lockdown started. The world and its intellectuals have no clue what the future holds despite numerous data speculations.</p><p><strong>A QUIET HISTORY</strong></p><p>· 31st December 2019: WHO’s Country Office in the People’s Republic of China picked up a media statement by the Wuhan Municipal Health Commission from their website on cases of ‘viral pneumonia’ in Wuhan, People’s Republic of China.</p><p>· 4th January 2020: WHO <a href="https://twitter.com/WHO/status/1213523866703814656?s=20">tweets </a>that there was a cluster of pneumonia cases — with no deaths — in Wuhan, Hubei province, People’s Republic of China, and that investigations to identify the cause were underway.</p><p>· 12th February 202: WHO prepares an operational planning guideline to support country preparedness and response</p><p>· 2nd April 2020: The world is no longer the same and is now under an influence of a virus.</p><p>This history has repeated itself. In fact inspired by similar events a century ago, numerous writers , scientists and environmentalist have predicted such an event. To my mind this is also not the last of the events to ravage the planet unless we learn from the past. The Spanish Flu was a similar incident that happened exactly a century ago and ravaged the planet from 1918–1920</p><p>An estimated 500 million people from the South Seas to the North Pole fell victim to <a href="https://www.livescience.com/spanish-flu.html">Spanish Flu</a>. One-fifth of those died, with some indigenous communities were pushed to the brink of extinction. The flu’s spread and lethality was enhanced by the cramped conditions of soldiers and poor wartime nutrition.</p><p>With all our advances in communication and travel, we are no better off. We have managed to disseminate information faster but the virus has also travelled faster owing to our connectivity and proximity. The world has still not gathered pieces where we understand the impact of this virus on a large sector of indigenous population and its impact on the future generations to come.</p><p><strong>WHY DO WE BEHAVE THE WAY WE BEHAVE</strong></p><p>The humans have been a dominant species on this planet and ruled this planet for centuries now, pushing the ecological life and balance into remotest corners. Throughout the evolutionary chain and books written by various scientists, historians, paleontologists, humans have been attributed with three senses that have helped them shape this world and their home with it. Claims to the ability to use the cranium, the ability to communicate using a well-defined language and the ability to see (The binocular vision) have dominated these books.</p><p>Little have we as a species realized that the origins may be far different and the effects more pulverizing than we have imagined. An anatomical check on the human species does showcase where we originate from and why we behave the way we do , but before we go there, I just wanted to tell a little about myself and what got me interested and why I believe so…</p><p>My stint with understanding the facet of human cognition and relaying it to AI started subconsciously around 1985, when I first saw the very popular TV series, “Star Trek”. I even went on to make a replica of the starship’s model from household objects. The other factor forcing me was my Mother who always wanted me to be a nuero-surgeon as she had read in one of the famous magazines during those times, the reader’s digest about a neuro-surgeon by the name of Dr. Ben Carson who had done something wonderful. Dr. Carson had managed to recover two Siamese twins joined at their cranium and he had performed this surgery in record times</p><p>Well, I didn’t become a neuro-surgeon but my tryst with AI led me to understand neuroscience and why humans behave the way they do, and when I left university my search led me to Alan Turing, to AI and to the brain.</p><p>Shown below is the picture of a reptilian brain , the spinal cord providing the reflex behavior , the brain stem for autonomous behaviors in reptiles, the mid brain for emotions and basic learned behavior and the Pallum or Hippocampus for spatial and fast learning memory. Let us now compare it to the human brain on the other side…You would see the human brain has 75% of its constituents the same as the reptilian brain (don’t tell anyone) … the spinal cord for the reflex behavior (it is this one that tells you to take your hand back when you touch something hot) along with brain stem, mid brain and the hippocampus. However what makes us “us” is the portion that is 25% of the brain but covers 75% of the brain by volume and provides us the sensory motor neuron model of the world</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*dv9_4k8ebKnBYm7uIiRBJw.png" /></figure><p>A completely different way of saying this is that we act like our reptilian ancestors about 3/4ths of our lifetime and our response to the world has always been “flight” or “fight”, with very little semblance of Persistent Predictive Intelligent (PPI) behavior. The intelligent behavior is normally shown when we are rested enough and we think hard enough.</p><p>This has been aptly shown during our response and our after-response to covid-19 pandemic. Nations and leaders have gone in either the fight mode or the flight mode. The instances are bared for all to see, from state heads rejecting to wear masks to some huddling in bunkers to prevent themselves from getting infected and some others taking a mid-path based on their information processing capacities.</p><p><strong>TIME FOR PPI (Persistent Predictive Intelligence)</strong></p><p>Time has come for a persistent predictive intelligence now, and as I state this, my appeal is not just to the leaders but the entire human race. We are being slowly obliterated out of our homes, this planet by microbes, climate and mother earth turning its tide against us. As I sit, I can also feel the planet squealing and crying out loud, asking us to change, asking us to see the reality and also the future, asking us to once not think like a reptile and begging us to use the 25% cranial mass that makes us, us.</p><h3>THE PLANET IS ASKING US TO BE SHUT DOWN AND LEFT ALONE FOR 2 MONTHS</h3><p>Yes, it is. It is asking us to revive itself. It’s asking us to stay back at home, stay back with families and asking us to give it an opportunity to heal itself, to heal the ecosystem before we regain our activities. In a way the planet is also asking us to go back to old ways of living, of balancing our technological evolution with utilization of planetary resources. It is begging us to use our neocortex.</p><p>The planet is also foretelling our future. It is indicating what might be the state if we continue to take this as a one-off event. We have already seen the world resigned to its fate and nations opening up with the belligerent excuse of opening up the economy. Well, for an economy, we need people and we need the planet. What use would be the economy if there is no one to reap benefits from?</p><p><strong>THIS IS WHAT I HEAR FROM MOTHER EARTH</strong></p><p>In the corner of the study where I sit, I hear this from the planet. My urge is to take time off, close yourself in a room, meditate and listen to what the planet is squealing about and let me know. I wonder if the squeals you hear are somewhat similar to what I hear below:</p><p>· <em>Shut me down, yes shut the whole planet down for 2 months. Please stop any industrial activity there might be going on.</em></p><p>· <em>Ask people to follow rules and stay at home. This is no time for pleasantries and visits to your friend’s house. This is time to sit back and relax</em></p><p>· <em>Ask national leaders to stop worrying about economy and support every citizen of their country with basics needed for survival.</em></p><p>· <em>Please ask banks and other financial institutions to only work as storehouses of money and not running loans, interest rates and other valuations till I get better</em></p><p>· <em>Please ask the governments to support their agricultural resource and keepers of agricultural resource, the farmers with money, tools and techniques and ask them to till my land as much as they can so that they have enough food</em></p><p>· <em>Please ask the government to provide whatever assistance is necessary to people of the land, be it food, money or medical assistance</em></p><p>· <em>Please ask urban citizens to stop plying cars, stop worrying about work and stop worrying about deadlines, money, profit and loss statements and sit back and enjoy with your families.</em></p><p>· <em>Please also ask urbanites to stop meeting friends and follow laws of the land to prevent the virus from spreading.</em></p><p>· <em>Ask industry leaders to stop worrying about work. It would continue the way it is and the economy would subsequently grow. Please stop selling your services, products and wares at this time.</em></p><h3>I WOULD HEAL. I CAN SUSTAIN YOU, BUT NOW, I NEED PEACE IN MY CORE.</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fed950853c15" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Towards an improved man and machine connect using Sanskrit]]></title>
            <link>https://medium.com/@nickmalhotra/towards-an-improved-man-and-machine-connect-using-sanskrit-dd6878e20655?source=rss-6ede1e82425e------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd6878e20655</guid>
            <category><![CDATA[sanskrit]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[machine-intelligence]]></category>
            <category><![CDATA[maker-lab]]></category>
            <dc:creator><![CDATA[Nikhil Malhotra]]></dc:creator>
            <pubDate>Tue, 12 Mar 2019 03:04:05 GMT</pubDate>
            <atom:updated>2019-03-12T03:04:05.611Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*gyyEk0OTVMRgEIY3WgQDNw.jpeg" /><figcaption>Contemporary Sanskrit</figcaption></figure><p><em>{Driving towards natural language and its possibilities in the real world using Sanskrit}</em></p><p><strong>Introduction</strong></p><p>An era of rapidly changing technology, virtualization, SDN/NFV, advent of 4G LTE technology and in the near future, 5G is redefining businesses across the globe. The digitization wave has brought artificial intelligence and machine learning, and with it a wave of organizations trying to understand natural language and intent of customers or visual clues using deep neural network techniques. We are still far away from understanding “<strong>understanding</strong>” via machines but the steps towards those have started.</p><p>While these steps have moved the needle towards realization, a large population in India seems to be unaffected by this change. The “Siris”, “Cortanas” and the “Alexas” of the world have captured a global market by their limited natural language capabilities and building huge datasets of languages in their cloud, about 85% of Indian population seems unaffected by this change. The reason is the language used “English”.</p><p>While we move towards the mid of 21st century , it is imperative that about 1/8th of the world population can converse with machines the way the rest of the world does, in its own dialect and in its own way, and this is the reason for me researching upon one of the first communication languages spoken by man , “Sanskrit”</p><p>The author’s intent here is to not to belittle any language but showcase how communications with machines can improve if alternative techniques and idioms are utilized</p><p><strong>Objective</strong></p><p>Objective of this whitepaper is to apprise the user of a research in motion which we do at Tech-Mahindra’s Makers Lab. The vision of this research is to ensure that 26 mother tongues and 1645 dialects spoken in India are also available to every Indian so that they can seamlessly communicate with the machines of the future.</p><p>The objective is also to look through the lens of AI (artificial intelligence) and algorithms and see which one of them apply in the world of Sanskrit for NLP(natural language processing)</p><p>Definition Natural language processing (NLP) is used for communication between computers and human (natural) languages in the field of artificial intelligence, and linguistics. Being concerned with human-computer interaction, NLP works to enable computers to make sense of human language to make interactions with machinery and electronics as user friendly as possible.</p><p><strong>Sanskrit</strong></p><p>I would not try and explain Sanskrit with my limited knowledge here, but for the reader, I would supplant what Wikipedia says about Sanskrit in brevity</p><p>Sanskrit (<a href="https://en.wikipedia.org/wiki/Help:IPA/English">/ˈsænskrɪt/</a>; <a href="https://en.wikipedia.org/wiki/Sanskrit_language">Sanskrit</a>: संस्कृतम्, <a href="https://en.wikipedia.org/wiki/Romanization_of_Sanskrit">translit.</a> saṃskṛtam, pronounced <a href="https://en.wikipedia.org/wiki/Help:IPA/Sanskrit">[sə̃skr̩təm]</a> (</p><p><a href="https://upload.wikimedia.org/wikipedia/commons/b/bb/Sanskrit1.ogg">listen</a>)) is a language of <a href="https://en.wikipedia.org/wiki/History_of_India">ancient India</a> with a history going back about 3,500 years.<a href="https://en.wikipedia.org/wiki/Sanskrit#cite_note-britsanskrit-5">[5]</a><a href="https://en.wikipedia.org/wiki/Sanskrit#cite_note-FOOTNOTETim_Murray2007v-vi,_1-18,_31-32,_115%E2%80%93116-6">[6]</a><a href="https://en.wikipedia.org/wiki/Sanskrit#cite_note-FOOTNOTEHarold_G._Coward19903-12,_36-47,_111-112,_Note:_Sanskrit_was_both_a_literary_and_spoken_language_in_ancient_India.-7">[7]</a> It is the primary <a href="https://en.wikipedia.org/wiki/Sacred_language">liturgical language</a> of <a href="https://en.wikipedia.org/wiki/Hinduism">Hinduism</a> and the predominant language of most works of <a href="https://en.wikipedia.org/wiki/Hindu_philosophy">Hindu philosophy</a> as well as some of the principal texts of <a href="https://en.wikipedia.org/wiki/Buddhism">Buddhism</a> and <a href="https://en.wikipedia.org/wiki/Jainism">Jainism</a>. Sanskrit, in its variants and numerous dialects, was the <a href="https://en.wikipedia.org/wiki/Lingua_franca">lingua franca</a> of <a href="https://en.wikipedia.org/wiki/Historical_India">ancient and medieval India</a>.<a href="https://en.wikipedia.org/wiki/Sanskrit#cite_note-FOOTNOTEDamien_KeownCharles_S._Prebish201315,_Quote:_%22Sanskrit_served_as_the_lingua_franca_of_ancient_India,_just_as_Latin_did_in_medieval_Europe%22-8">[8]</a><a href="https://en.wikipedia.org/wiki/Sanskrit#cite_note-FOOTNOTEDeshpande2011218-220-9">[9]</a><a href="https://en.wikipedia.org/wiki/Sanskrit#cite_note-FOOTNOTEA._M._Ruppel20171%E2%80%932,_102%E2%80%93104-10">[10]</a> In the early 1st millennium CE, along with <a href="https://en.wikipedia.org/wiki/Buddhism">Buddhism</a> and <a href="https://en.wikipedia.org/wiki/Hinduism">Hinduism</a>, Sanskrit migrated to <a href="https://en.wikipedia.org/wiki/Southeast_Asia">Southeast Asia</a>,<a href="https://en.wikipedia.org/wiki/Sanskrit#cite_note-FOOTNOTERamesh_Chandra_Majumdar19741%E2%80%934-11">[11]</a> parts of <a href="https://en.wikipedia.org/wiki/East_Asia">East Asia</a><a href="https://en.wikipedia.org/wiki/Sanskrit#cite_note-OrzechS%C3%B8rensen2011-12">[12]</a> and <a href="https://en.wikipedia.org/wiki/Central_Asia">Central Asia</a>,<a href="https://en.wikipedia.org/wiki/Sanskrit#cite_note-FOOTNOTEBanerji1989595%E2%80%93596-13">[13]</a> emerging as a language of <a href="https://en.wikipedia.org/wiki/High_culture">high culture</a> and of local ruling elites in these regions.<a href="https://en.wikipedia.org/wiki/Sanskrit#cite_note-FOOTNOTEMichael_C._Howard201221,_&#39;&#39;&#39;Quote&#39;&#39;&#39;:_%22Sanskrit_was_another_important_lingua_franca_in_the_ancient_world_that_was_widely_used_in_South_Asia_and_in_the_context_of_Hindu_and_Buddhist_religions_in_neighboring_areas_as_well._(...)_The_spre">[14]</a><a href="https://en.wikipedia.org/wiki/Sanskrit#cite_note-FOOTNOTESheldon_Pollock200914,_&#39;&#39;&#39;Quote&#39;&#39;&#39;:_%22Once_Sanskrit_emerged_from_the_sacerdotal_environment_..._it_became_the_sole_medium_by_which_ruling_elites_expressed_their_power_..._Sanskrit_probably_never_functioned_as_an_everyday_medium_of_commu">[15]</a></p><p>Sanskrit is an <a href="https://en.wikipedia.org/wiki/Indo-Aryan_languages#Old_Indo-Aryan">Old Indo-Aryan</a> language.<a href="https://en.wikipedia.org/wiki/Sanskrit#cite_note-britsanskrit-5">[5]</a> As one of the oldest documented members of the Indo-European family of languages,<a href="https://en.wikipedia.org/wiki/Sanskrit#cite_note-FOOTNOTEPhilipp_Strazny2013500-16">[16]</a><a href="https://en.wikipedia.org/wiki/Sanskrit#cite_note-19">[note 1]</a><a href="https://en.wikipedia.org/wiki/Sanskrit#cite_note-20">[note 2]</a> Sanskrit holds a prominent position in <a href="https://en.wikipedia.org/wiki/Indo-European_studies">Indo-European studies</a>.<a href="https://en.wikipedia.org/wiki/Sanskrit#cite_note-FOOTNOTEBenware197425%E2%80%9327-21">[19]</a> It is related to Greek and Latin,<a href="https://en.wikipedia.org/wiki/Sanskrit#cite_note-britsanskrit-5">[5]</a> as well as <a href="https://en.wikipedia.org/wiki/Hittite_language">Hittite</a>, <a href="https://en.wikipedia.org/wiki/Luwian_language">Luwian</a>, <a href="https://en.wikipedia.org/wiki/Avestan_language">Old Avestan</a>, and many other extinct languages with historical significance to Europe, West Asia, and Central Asia. It traces its linguistic ancestry to the <a href="https://en.wikipedia.org/wiki/Proto-Indo-Aryan_language">Proto-Indo-Aryan language</a>, <a href="https://en.wikipedia.org/wiki/Proto-Indo-Iranian_language">Proto-Indo-Iranian</a>, and the <a href="https://en.wikipedia.org/wiki/Proto-Indo-European_language">Proto-Indo-European</a> languages.<a href="https://en.wikipedia.org/wiki/Sanskrit#cite_note-FOOTNOTEThomas_Burrow2001v_&amp;_ch._1-22">[20]</a></p><p>What makes Sanskrit unique is the rule set that it formulates and the grammar that was formulated much before the language became widely accepted and spoken in the Indian sub-continent</p><p><strong>Research Evidence</strong></p><p>Most of my approach in writing this paper has been to understand languages from grounds up (alphabets) and then compare them. In my attempt at this research, it took me days to realize a path which would take us to have an empirical evidence of our objectives natural language processing in Sanskrit and also recreating that evidence via software</p><p>Since this is a comparison between two languages it seems logical to start with how languages were earlier used to speak and communicate rather than write, and so let us start with some phonetics discussion</p><p><strong>Phonetics</strong></p><p>The phonetic sounds of alphabets in English and their counterparts in Sanskrit Varnamala is different. Varnamala is the Sanskrit corpus of alphabets. In English the sounds of the alphabets clash with their counterparts in quite a few occasions. Let us take the alphabets of English and the Varnamala in Sanskrit for example</p><p>In Sanskrit, the alphabets are called Varnamalas .Every word in Sanskrit is formed because of the combination of two elements Swara (“स्वर”) and a Vyanjana (व्यंजन). In sanskrit, there are 13 Swaras, 33 Vyanjanas and about 2 Swarakrashit(स्वराश्रित ) {Special words} . All in all Sanskrit has a total of 49 Varnas of the Varnamala. By its definition itself, Sanskrit has more alphabets, characters and building blocks than any other language.</p><p>Out of these Swaras 5 are pure: अ, इ, उ, ऋ, लृ</p><p>Remaining 9 are: आ, ई, ऊ, ऋ, लृ, ए, ऐ, ओ, औ</p><p>Well for any observer, the difference is quite apparent. The way we these are arranged is primarily because how air can be modeled within the mouth itself. When you open a mouth and take a sound from the glottis, the word sound has अ there whereas when the mouth opens up wider it is a आ sound. English or any other language in comparison has only A equivalent to ए, which completely misses the way the glottis performs when open the mouth wide</p><p>Let’s now compare the alphabets to these varnas</p><p>Pure Swaras अ, इ, उ, ऋ, लृ</p><p>Others: आ, ई, ऊ, ऋ, लृ, ए, ऐ, ओ, औ</p><p>कंठव्य / ‘क’ वर्ग — क् ख् ग् घ् ङ् A B C D E<br> तालव्य / ‘च’ वर्ग — च् छ् ज् झ् ञ् F G H I J<br> मूर्धन्य / ‘ट’ वर्ग — ट् ठ् ड् ढ् ण् K L M N O<br> दंतव्य / ‘त’ वर्ग — त् थ् द् ध् न् P Q R S T<br> ओष्ठव्य / ‘प’ वर्ग — प् फ् ब् भ् म् U V W X Y Z<br> विशिष्ट व्यंजन — य् व् र् ल् श् ष् स् ह्</p><p>From just observing the tables above, one this which is visible is that number of alphabets do not compare to the number of varnas in Sanskrit . In fact they are much lesser in number, but on close examination, something interesting appears. The range of English vocabulary also becomes lesser because the phonetics of a lot of alphabets do not map to individual phonetics of the Sanskrit varnas …</p><p>A map is shown below purely how phonetics is used</p><p>Pure Swaras: अ, इ, उ, ऋ, लृ</p><p>Others: आ, ई, ऊ, ऋ, लृ, ए, ऐ, ओ, औ</p><p>कंठव्य / ‘क’ वर्ग — क् ख् ग् घ् ङ् A(ए) B(ब्) C(क्) D(ड्) E(इ)<br> तालव्य / ‘च’ वर्ग — च् छ् ज् झ् ञ् F(फ्) G(ग्) H(ह्) I(इ) J(ज्)<br> मूर्धन्य / ‘ट’ वर्ग — ट् ठ् ड् ढ् ण् K(क्) L(ल्) M(म्) N(न्) O(ओ)<br> दंतव्य / ‘त’ वर्ग — त् थ् द् ध् न् P(प्) Q(क्) R(र्) S(स्) T(ट्)<br> ओष्ठव्य / ‘प’ वर्ग — प् फ् ब् भ् म् U(अ) V(व्) W(व्) X((क्)(ज्))</p><p>विशिष्ट व्यंजन — य् व् र् ल् श् ष् स् ह् Y(य्) Z(ज्)</p><p>Some glaring realities emerge:</p><ol><li>क् is the sound of two alphabets in the language both C and K</li></ol><p>2. Only 18 varnas are used to describe all 26 English alphabets</p><p><em>3. X((क्)(ज्)): by its nature is a compound word and not an alphabet as phonetically the air does not blow in the mouth like this to make one alphabet sound</em></p><p><em>4. Z(ज्) : It is a compound word of ज् and a period</em></p><p><strong>Dual Case</strong></p><p>Most of the languages ignore the dual Case which leads to confusion while processing dual VS Plural case; however the unique feature of Sanskrit is that its rich grammar removes this ambiguity.</p><p>Taking some examples:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*Ooi_-CauFhvy2P2Rux9YZg.png" /></figure><p>English :</p><p>Both of you are reading.</p><p>Sanskrit: युवां पठथः</p><p>Categorical Classification of words</p><p>Also in Sanskrit, words are classified into similar categories. Following is a representation of the important classifications. We can see the classification is almost same as all the other languages.</p><p>| — — — — — — — — Noun Root (शब्द / shabda)</p><p>| |</p><p>| — — — — — — — — — — — — — — —</p><p>| | |</p><p>| सुवन्तपद तद्धितपद</p><p>| suvantapada taddhitapada</p><p>| |</p><p>| | | |</p><p>Word (पद / pada) — — | Masculine Feminine Neuter</p><p>| पुलिङ्ग स्त्रीलिङ्ग नपुङ्सकलिन्ग</p><p>| pulinga strIlinga napunsakalinga</p><p>| — — — — — — — — Verb Root (धातु / dhAtu)</p><p>तिङतपद कृदन्तपद</p><p>tintapada krudantapada</p><p>|</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>| | |</p><p>परस्मैपदी आत्मनेपदी उभयपदी</p><p>parasmaipadI AtmanepadI ubhayapadI</p><p><strong>Algorithmic structure of the language :</strong></p><p>Each word in Sanskrit can be divided into sub words and this process would continue and the division would stop when we reach a dhatu . This is similar to algorithmic structure. Ambiguity aroused while combining or dividing words could be eliminated by Fuzzy logic or Fuzzy reasoning techniques.</p><p><strong>Solving Distributional Similarity as the first use case</strong></p><p>Distributional similarity is an idea that is very common in NLP in particular. This idea has emerged out of a large number of statistical techniques used in 60s and is now accepted as the best way to finding out word meaning in a given corpus of English. The idea comes from base of linguistics which says that “words are recognized by the company they keep” by J.R. Firth</p><p>The idea is based on a technique in software called Word2Vec. Word2Vec essentially is software that typically is used for NLP in English which means converting each word to its vector representation so that the meaning of the word is clear. There are two techniques which are utilized namely the “Skip Gram Modelling” or “Continuous Bag of Words(CBOW)”. The idea is very simple; Given a piece of large text in a language, Word2Vec finds out the distributional probability of a context word in relation to a centre word.</p><p>Let us explain it via an example: Let us assume there is a single paragraph as shown below</p><p>“An era of rapidly changing technology, virtualisation, SDN/NFV, advent of 4G LTE technology is redefining businesses across the globe. The digitalisation wave has brought artificial intelligence, natural language processing, analytics, and big data into the foray making it more possible for the machines to emulate humans.”</p><p>In the word2vec technique, the software runs through an unsupervised fashion where each word is chosen and a window is chosen around the word(m) and probability of the words around the center word is found. The net resultant is a vector representation called “embedding” that emerge</p><p>An era of rapidly changing technology, virtualization]</p><p>{m-2} {centre word} {m+2}</p><p>If you notice, the window size (m) is what we decide and this window size decides based on a sliding window principle that if “technology” is the centre word, two words before it and two words after it would model the distribution of technology in the corpus.</p><p>This idea is very powerful as a magic happens when this is run. Words and their vectors get formatted in a space which has a meaning as shown below. This meaning is provided via the vectors. So a man vector — the king vector + woman vector yields a “queen” automatically</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*ssS3BTjw447v03tJ2410fQ.png" /></figure><p>One has to ask why was this technique used ? It is very simple… However on deep diving, in English similar words represent different contexts .let us take an example of glasses.</p><p>Let us take some sentences to represent this</p><p>“I have glasses. “</p><p>The stress on this sentence is on the object which is “glasses”. The most obvious question here is what glasses are we talking about , pair of glasses used as a pair of lenses to correct vision or the glass tumblers …. ? Now in Sanskrit, these two words by their construction are different</p><p>Glass : दर्पण { noun masculine } which means A smooth surface, usually made of glass with</p><p>Reflective material painted on the underside, that reflects light so as to give an image of</p><p>what is in front of it.</p><p>Spectacles : उपनेत्र { neuter } A pair of lenses in a frame that are worn in front of the eyes and</p><p>are used to correct faulty vision or protect the eyes.</p><p>By their construction words are different to represent different meaning. So the ideology that words are island and do not convey any meaning on their own is not really valid for Sanskrit based NLP. Words by themselves represent the meaning clearly. This is useful from a commercial standpoint to a large variety of FAQ based chatbots which are being used today. This is however just the beginning phase of the research</p><p><strong>More research down the line</strong></p><p>With our initial research at Maker’s Lab Tech Mahindra, the results obtained are positive. With Sanskrit’s algorithmic base, the word2vec layer of converting words to vectors can be eliminated. We plan to extend the research (not part of this paper) to the following areas which the team is actively involved in</p><ol><li>Sequence learning by finding an alternative route other than recurrent neural networks in Sanskrit. Sequences in a language are formed based on grammatical rules and from a machine’s perspective, a model of RNN is utilized to train the machine with a large corpus on how the words have been used in the language</li><li>Auto-Finding Paninis’ rule: Panini’s (the grammarian who developed the grammar for Sanskrit) gave a set of ~ 4000 rules so that the language is well formed. However, construction of these rules is very difficult and very few in the world know about these rules. Our approach is to use a deep reinforcement learning technique to enable a machine auto-discover those rules. This would enable us to provide intelligence at the core to the machine about formation of languages and tasks like natural language understanding and generation would become trivial for the machine in the environment the machine is placed in</li></ol><p><strong>Conclusion</strong></p><p>Human beings evolved at a rapid pace because of the way they could communicate with each other and pass on ideas and messages. One of the oldest well-formed language is now being relegated to scriptures. Our intent is to ensure this language becomes the core of understanding machines and also relaying information not just for a wide variety of native population but for the world</p><p><strong>About the Author(s)</strong></p><p><em>“We are reminded of the limitless-ness of Human curiosity, when we see man and machine create marvels for the future together” is the quote Nikhil Malhotra lives by</em></p><p>Nikhil Malhotra is the head of Maker’s Lab, a unique Thin-q-bator space within TechMahindra with over 17+ years of experience in a variety of technology domains.</p><p>In his present avatar he is the head of Tech Mahindra’s R&amp;D space called the Makers Lab which he created in 2014. The lab focuses on artificial intelligence, robotics and, mixed reality. Nikhil’s area of personal research has been natural language processing, enabling machines to talk the way humans do. Nikhil has also designed an indigenous robot in his lab, as a personal assistant.</p><p>He lives by a dream of creating smart machines that would wed human emotions with artificial intelligence to make lives better.</p><p>He is also a leading speaker on digital transformation, practical use of AI and the future AI. He holds a Masters degree in computing with specialization in distributed computing from Royal Melbourne Institute of Technology, Melbourne. Nikhil currently resides in Pune with his wife Shalini and sons Angad and Rudra.</p><p>Ipsita Nanda is a Solutions architect with TechMahindra with Over 13 + years of experience of working on different technologies and different domains. Ipsita Is currently working on designing solutions in Big Data, Data Science, AI, Search Applications Like Solr and Publish Subscribe Applications on Kafka.Ipsita Is based in California with Her Husband Srihari. She is currenly in India playing the role of a care giver to her Father.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd6878e20655" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Imitation Game]]></title>
            <link>https://medium.com/@nickmalhotra/the-imitation-game-f369e2501e72?source=rss-6ede1e82425e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f369e2501e72</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[imitation]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Nikhil Malhotra]]></dc:creator>
            <pubDate>Mon, 03 Jul 2017 07:36:46 GMT</pubDate>
            <atom:updated>2017-07-03T07:37:32.719Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*M3_cy5pGFj8bkS0YevK1ig.png" /><figcaption>Image Credit : Google Images of movie “Imitation Game”</figcaption></figure><p>A.I. or artificial intelligence is here and it is here to stay. Defying the doomsdayers’ “<em>the famous skynet representation</em>”, enterprises far and wide are today in a race to prove that they can create A.I. based platforms or solutions that generate revenues and attract the best of talents. Despite some of the popular belief being propounded by some of the best minds of our generation like Elon Musk and Bill Gates of an impending A.I. doom, the doom is far far away and the doom may not be over the horizon itself.</p><p>What then is the future may someone ask ? A.I. or artificial intelligence as we see today, is greatly influenced by algorithms , some of which were written and conceived as far back as 1930s. Majority of these algorithms have been statistical in nature, which saw an upscale during 1990s. Algorithms like<em> Naive Bayes</em> using probability and algorithms of linear regression , SVD (single value decomposition) which made machines look intelligent by giving them an ability to predict based on a given set of data.</p><p>Little do people realize that these algorithms exploit the basic nature of machines, an ability to compute faster , on hundreds and millions of linear algebraic elements, typically matrices and vectors which essentially meant allowing the machine to look at the data, form patterns in the form of <strong>“y =Wx+b”</strong> (<em>where y is the output,W is the weight assigned to an input , x and b is the bias</em>) . The machine had to observe features x, learn the best match for W and b and predict y, intelligence right ??</p><p>A.I. transcended this statistical scene with the advent of today’s coolest bit , the neural network (<em>which presumably had been proposed quite a while back but the machines lacked the computing power to draw any inference from data</em>). Today’s neural networks are hugely responsible for the hype around A.I. and also responsible for the doomsdayer’s prophecies.</p><p>The situation is further propounded by some of the coolest techniques applied in neural networks, namely recursive neural networks (RNN), LSTMs and reinforcement learning (<em>a new aspect where Google’s deep mind team trained a machine to play simple Atari games and even the difficult game like Alpha Go , defeating the best human players in technique and tactics</em>). The reason for the hype ?? and you would laugh when I say this that we still don’t understand how these networks work internally. We know how to build a network, how to train it but how does the network vibrate to adjust itself is unknown</p><p>Question we have to ask is whether this is true A.I. or A.G.I (artificial general intelligence) and the answer is still “No” . Pow !! take that doomsdayers !!! we are still not there which begs the question as to what is A.G.I and how would we achieve this in the real world .</p><p>Now, with these thoughts let’s seg-way to the theory I am proposing hitherto and the story has it’s roots in the famous movie “Imitation game”</p><h3>The Principle of O.R.T (Observe , Refine and Fine Tune)</h3><p>For those of you who have watched the Imitation Game know this and for those you who haven’t , my recommendation is to go and watch this. The movie doesn’t o justice to the true brilliance of Alan Turing but nonetheless leaves the watcher with this impending thought of what was Turing envisioning. The story abstract from Wikipedia is as follows</p><p><em>“In 1939, newly created British intelligence agency MI6 recruits Cambridge mathematics alumnus Alan Turing to crack Nazi codes, including Enigma — which crypt-analysts had thought unbreakable. Turing’s team, including Joan Clarke , analyze Enigma messages while he builds a machine to decipher them. Turing and team finally succeed and become heroes”</em></p><p>Taking Turing’s thought forward and applying it to a scale we have with software today: True A.I. can only be achieved via imitation , imitation of human life, imitation of the myriads of sensory motor inputs and outputs which the machines called homo sapiens do day in and day out</p><p>Someone said “Imitation is the best form of flattery” and I truly subscribe to that idea . For AI to succeed in the enterprise world , it has to imitate the human as humans have done all their lives . We are born with no knowledge of the world but we imitate by looking at people . The next generation AI has to follow the same principle.</p><p>The premonition is also based on how I viewed my own toddler . Little ones are born with no knowledge of the world but they try and imitate it like a sponge . I had always believed that if a machine grew with a toddler and observed the patterns he/she did, a machine would attain intelligence as a toddler gains. I found this evidence with my little one when I observed him follow sounds and comprehensions. he not only did started recognizing objects but also imitating me and my wife. The comprehension extended to people around him with chuckles and click of tongue as and when he observed people and behavior</p><p>Voila, I had my answer and I have been contemplating on this aspect and have been researching on a theory to be applied in practical enterprise world.</p><p>The theory is playing the “Imitation game” . By applying techniques like reinforcement learning or deep neural nets, machines need to <strong>observe</strong> and <strong>replicate </strong>and then fine <strong>tune </strong>or what I like to call as the <strong>ORT </strong>principle .</p><p>Once a certain pattern of behavior is learnt , the machine becomes a personalized cookie cutter for a job “<strong>I</strong>” do . This achieves hyper personalization of machine in the “me” space. Post this learning, machines need to observe other machines and then get apply the same principle of ORT in a cyclic fashion….. till infinity . These become generalized thinking and observing machines the way a child does.</p><p>The ORT principle would have neural networks playing the part of Observe, Refine and Fine Tune. Observation would allow neural networks to collect as much data from different inputs of the machine, its vision, sounds and even touch. Refining would include refining it’s own hyper personalized knowledge and fine tuning would include optimization of this applied technique to the data learnt so far. You might be thinking this would need super computers , isn’t it ?? The answer is both yes and no .With the advent of cloud and distributed infrastructures, these can be different elements of the same machine in a distributed approach.</p><p>Applying O.R.T. would become true AI or AGI as we call it .</p><p>These are random thoughts. Please feel free to comment and provide your comments and suggestions as well</p><p><a href="https://www.linkedin.com/in/marieouttier/"><em>I</em></a><em>’m the head of Maker’s Lab , Tech Mahindra. If you think this article is interesting, please don’t hesitate to recommend it by clicking the heart button below. Please share so that more folks can see it as well :-)</em></p><p><em>Thanks for reading!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f369e2501e72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing Entellio]]></title>
            <link>https://blog.chatbotslife.com/entellio-ce2f7c75213d?source=rss-6ede1e82425e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce2f7c75213d</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[chatbot-design]]></category>
            <dc:creator><![CDATA[Nikhil Malhotra]]></dc:creator>
            <pubDate>Sat, 01 Jul 2017 02:48:12 GMT</pubDate>
            <atom:updated>2017-07-03T02:47:55.077Z</atom:updated>
            <content:encoded><![CDATA[<h4>(How we are harnessing the power of natural language ?)</h4><h3>1. INTRODUCTION</h3><p>An era of rapidly changing technology, virtualisation, SDN/NFV, advent of 4G LTE technology is redefining businesses across the globe. The digitalisation wave has brought artificial intelligence, natural language processing, analytics, and big data into the foray making it more possible for the machines to emulate humans.</p><p>This is making most of the ways of doing things exceptionally well in the past invalid in this new environment. At its peak we expect the traditional operations replaced with operations driven by speech recognition, natural language processing, artificial intelligence, analytics and machine learning.</p><p>There will be new key roles emerging in facilitating machine learning (helping machines become intelligent) and analytics. Sometimes, I like to all the next bandwagon as “Neuro-Linguistic” programmers, programmers whose role would be to train machines that process natural languages and function as a connected synergised near human neural unit.</p><p><a href="https://www.eventbrite.com/e/the-chatbot-conference-tickets-34868758395?aff=CBL">The Chatbot Conference</a></p><p>It is today that is sowing the seeds of that future, or should I say they are now tiny little saplings. The era of the customer reaching out to the product is gone. Now it is the service that must seek out the customer and that too through peer influence and not the conventional media.</p><p>The word ‘<strong>convenience</strong>’ has assumed an all important role in not just discovering a service but also in delivering and managing. Product life-cycles have become short placing a very high demand on the traditional ways of creating and delivering products. More often than not, the very nature of time required to release a product makes it obsolete or it is unable to deliver the ROI</p><h3>2. OUR INSPIRATION</h3><p>‘<strong>Convenience</strong>’ is closely associated with the word ‘<strong>Conversation</strong>’ which we human beings are so good at. Conversation and ability to have a diverse language set to communicate is one of those traits that distinguished the humans from the rest of the animal world. This was the inspiration which also drove <strong>Maker’s lab</strong> at <strong>Tech Mahindra </strong>towards building our own conversational framework.</p><p>The idea of chat bots has been around since long time. Taking a leap from the first dial tone landlines which allowed us to ring dial a number to get our account information was the earliest most primitive format of a chatbot. Being primitive, it was also not cognitive and worked on simple command sets (or number dialling sets) to provide information. As software took shape, IVR and other techniques allowed enterprises to serve customers across the world. Slightly better than a ring dial(<em>some might say complicated as well</em>) were IVR decision trees which were the first stage intelligent chatbots with an ability to define a decision tree based on what the user dialled at the other end of the line.</p><p>As mobility progressed and mobile phones became omni-present, the IVRs were replaced by Visual IVRs and myriads of applications on phones took away the need for humans to call up call centres and engage with primitive chatbots. We are at the dusk of this age where enterprises reached a stage where apps galore and an enterprise finds it difficult to manage the myriads of them for customers and employees alike. This brings us to current state when we are seeing a shift towards natural language UI and the need for conversation to replace these many apps using chatbots. Before we go ahead and explain as to how we built our own proprietary framework, <strong>Entellio</strong> , it is worthwhile to get some of the basics out of the way.</p><h3>3. WHAT ARE CHATBOTS ?</h3><p>Chatbots are also called Conversational Agents or Dialog Systems. Microsoft is making big bets on chatbots, and so are companies like Facebook (M), Apple (Siri), Google, WeChat, and Slack. There is a new wave of startups trying to change how consumers interact with services by building consumer apps like Operator or x.ai, bot platforms like Chatfuel, and bot libraries like Howdy’s Botkit. Microsoft recently released their own bot developer framework.</p><p>Many companies are hoping to develop bots to have natural conversations indistinguishable from human ones, and many are claiming to be using NLP and Deep Learning techniques to make this possible. But with all the hype around AI it’s sometimes difficult to tell fact from fiction.</p><h3>4. TAXONOMY OF CHATBOT MODELS</h3><p>Taxonomy of chatbot models have been well explained in the past. I am picking up an article e published by WildML to explain the same and what taxonomic models did we use to build our own internal framework</p><p><strong>Reference for more reading</strong> : <a href="http://www.wildml.com/2016/04/deep-learning-for-chatbots-part-1-introduction/">http://www.wildml.com/2016/04/deep-learning-for-chatbots-part-1-introduction/</a></p><p><strong>A.</strong> <strong>Retrieval-Based vs. Generative Models</strong></p><p><strong>Retrieval-based models (easier)</strong> use a repository of predefined responses and some kind of heuristic to pick an appropriate response based on the input and context. The heuristic could be as simple as a rule-based expression match, or as complex as an ensemble of Machine Learning classifiers. These systems don’t generate any new text; they just pick a response from a fixed set.</p><p><strong>Generative models (harder)</strong> don’t rely on pre-defined responses. They generate new responses from scratch. Generative models are typically based on Machine Translation techniques, but instead of translating from one language to another, we “translate” from an input to an output (response).</p><p><strong>B.</strong> <strong>Long vs. Short Conversations</strong></p><p>The longer the conversation are, the more difficult it is to automate them. On one side of the spectrum are Short-Text Conversations (easier) where the goal is to create a single response to a single input. For example, you may receive a specific question from a user and reply with an appropriate answer. Then there are long conversations (harder) where you go through multiple turns and need to keep track of what has been said. Customer support conversations are typically long conversational threads with multiple questions.</p><p><strong>C.</strong> <strong>Open Domain vs. Closed Domain</strong></p><p>In an open domain (harder) setting the user can take the conversation anywhere. There isn’t necessarily have a well-defined goal or intention. Conversations on social media sites like Twitter and Reddit are typically open domain — they can go into all kinds of directions. The infinite number of topics and the fact that a certain amount of world knowledge is required to create reasonable responses makes this a hard problem.</p><p>In a closed domain (easier) setting the space of possible inputs and outputs is somewhat limited because the system is trying to achieve a very specific goal. Technical Customer Support or Shopping Assistants are examples of closed domain problems. These systems don’t need to be able to talk about politics; they just need to fulfill their specific task as efficiently as possible. Sure, users can still take the conversation anywhere they want, but the system isn’t required to handle all these cases — and the users don’t expect it to.</p><p>So while constructing “Entellio , we chose the combination of the following</p><p>a) Retrieval based taxonomy based on word vector semantics (an unsupervised technique of word vector model)</p><p>b) A hybrid of both long and short conversation in the mix</p><p>c) Closed domain : Our major focus is to ensure conversations were centred around the enterprise context , so for e.g. let’s take an example of a telecom like a Vodafone serving it’s customers in India. Vodafone provides a plan called “red” which is available in Rs. 699. Now “red” is a colour but is a plan as well, so when a customer is talking to the Vodafone chatbot , the premise of red should not be an erstwhile colour but a plan, an example of semantic context mapping within a specific enterprise</p><h3>5. DEEP DIVE INTO ENTELLIO</h3><p>As mentioned above, Entellio was constructed with the following three taxonomic designs in mind</p><p>a) Retrieval based</p><p>b) Long Short Hybrid conversations</p><p>c) Closed Domain</p><p>Entellio also uses the following architectural design techniques</p><p>a) Extreme <strong>Simplicity </strong>to kick start conversations: Conversations should start instantaneously within the framework. It should be as simple as dropping a CSV /EXCEL file of a given FAQ (which enterprises have as standard operating procedures) to enable users to have semantically meaningful conversations.</p><p>b) <strong>YAGNI</strong> (You ain’t gonna need it principle) : If a certain component has no value , it’s not needed and need not be forced into design of the framework.</p><p>c) <strong>Separation of concerns</strong>: A very well demarcated separation of concerns between the front end, middle ware (machine learning server) and database is maintained to ensure none of the components get intertwined in glue like pattern. Coupling is avoided and cohesion is maintained between various modules. This cohesion is maintained by a REST based services model.</p><p>A deep dive into Entellio would not be complete unless we can visually explain what we mean by the same, so I would try and explain the entire framework with visual sections explaining technology wherever needed for better understanding</p><h3>6. USER ON-BOARDING</h3><p>Entellio on-boarding starts with the landing page highlighting what Entellio represents and some of the features that it offers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*IRTkR01dkcZOzOXDm0iBrw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/1*mOMM6TDwdWwKDiCFqNPV3g.png" /><figcaption>Entellio Main site</figcaption></figure><p>Since Entellio is a cognitive bot framework and not just a single bot, it allows easy onboarding by clicking the “<strong>Create a Bot</strong>” button. On clicking this, Entellio opens up a new page to enable a user to create a bot of his/her own as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*CPlTCy7SfG0QXS8K-2J2pQ.png" /></figure><p>A user has the ability to register as a new user by clicking on “<strong>Register here</strong>” button or sign in with an already available username and password</p><h3>7. BOT ONBOARDING</h3><p>Once a user signs in with a given username and password, a bot registration dashboard is shown. This bot registration dashboard provides ability for a bot admin to register three different bots on a cloud based environment. In an enterprise version, this is unlimited.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*5sk_E9QdYh9oDK_3g_N7Ng.png" /></figure><p>The bot registration is as simple as clicking the register bot button, providing information like the bot name, domain and a description as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*7oouHm8oCTblyVJltUNkOA.png" /></figure><p>A cool thing to notice is the <strong>APPID</strong> which is a system generated GUID, and is the token to allow different clients to connect to this particular bot. This GUID is unique for each bot within the framework. By default, the bot within the framework is accessible via the url &lt;http/https:&gt;//&lt;YOUR_DOMAIN&gt;/bot/APPID/chat</p><h3>8. CREATING THE BOT BRAIN</h3><p>Until now, the options explained have been basic CRUD (create, read, update and delete) operations for the framework to enable user to register himself/herself and also register bots. The real manifestation of cognition or machine learning happens from here on. On the bot registration screen, when a user clicks on “<strong>create a bot brain map</strong>”, the next screen is shown as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*qlcWOniOkRoRYxNGfgZQmA.png" /></figure><p>The bot brain map as shown above has “<strong>root</strong>” which is the root of the brain of the bot. All entities and intents would be placed in the hierarchy of the root for this bot.Some other elements like learning, report etc. and a test chat system to ensure that the bot is running. Even without any corpus of information put inside the bot, the bot by default gets its greetings underway and a user can chat with the bot using usual “<strong>Hi</strong>”, “<strong>Ola</strong>”, “<strong>Hello</strong>” or a “<strong>Namaste</strong>”</p><p>This is the point where we differentiate with the rest of the world. Now, typically bot frameworks and APIs assume that users of the system who are normally technical would be able to create a bot for their customers. We make no such assumption; the entellio framework allows a non-technical person the same adeptness as a technical user.</p><p>Another assumption we make is that bots in a corporate environment could be just a single bot or a multitudes of bots for various departments. All these departments should have some format of general FAQs (frequently asked questions . This is where the framework beings its simplicity magic</p><p>All the user has to do is click on upload an FAQ file (the file has four columns viz. “Question” “Answer”, ”Topic” and a “Domain”) to kick start the conversation as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*41cmLQZbGBfXWKYMcInBEQ.png" /></figure><p>As soon as the user does this, behind the scenes the machine learning and NLP kicks into action. In order to explain what happens behind the screens. I would take a slight diversion from the screen shots and get into some technical/mathematical details here.</p><h3>Creating the word vector model — A technical explanation</h3><p>While the FAQ gets implanted the bot does the following behind the scenes</p><p>a) It detects the language of the corpus(excel sheet) . By language we understand the natural language used like “English”, “Spanish” etc.</p><p>b) We convert each question and answer into a sentence vector space</p><p>c) We then make a model and store it for creating entities for our bot</p><p><strong>A Wikipedia definition of a Word2vec</strong> is a group of related models that are used to produce <strong>word Embeddings</strong>. These models are shallow, two-layered neural networks that are trained to reconstruct linguistic contexts of words. Word2vec takes as its input a large corpus of text and produces a vector space, typically of several hundred dimensions, with each unique word in the corpus being assigned a corresponding vector in the space. Word vectors are positioned in the vector space such that words that share common contexts in the corpus are located in close proximity to one another in the space.</p><p>The conceptualization that happens within the code happens as following. From a given sentence, we apply simple text processing like tokenizing sentences to words, removing common stop words from the language and lemmatizing it.</p><p><em>tokenized_words = nltk.word_tokenize(sentence.lower())</em></p><p><em>if(not no_stop_word_check):</em></p><p><em>#Remove special characters</em></p><p><em>tokens = remove_SpecialCharacters(tokenized_words)</em></p><p><em>#From the tokenized list, take the stopwords out</em></p><p><em>tokens = remove_stopwords(tokens,language)</em></p><p><em>#Lemmatize tokens</em></p><p><em>tokens = lemmatize_words(tokens)</em></p><p><em>else:</em></p><p>We then create a word vector model out of these sentences to find 64 bit vectors of each word as found in the corpus. The vectors also help us play with language words because only a numerical value can help us perform mathematical functions on it.</p><p>A typical word vector of a corpuslooks like the following</p><p>[</p><p>[0.01, -.02, 0.4, 0l67……………………………………….0.45],</p><p>[0.11, -.03, 0.4, 0l67……………………………………….0.45],</p><p>[0.01, -.02, 0.4, 0l67……………………………………….0.45],</p><p>.</p><p>.</p><p>.</p><p>[0.01, -.02, 0.4, 0l67……………………………………….0.45],</p><p>]</p><p>What the above table shows is a matrix ( or an array of arrays) , which gets formatted for all the questions in the system. Now, what this vector space indicates is how each word in a sentence given in the FAQ is positioned w.r.t the entire corpus .</p><p>A 64 bit vector is made for each sentence. It looks like an array of points distributed in a space of dimensions which are measured as the number of unique tokens of words we have.</p><p>The technique for Word2Vec we use is the <strong>skip gram modeling</strong> technique which states that given a window size “m” and a word in a sentence, we would try and predict words in the window on left and right sides</p><p>The model used in Noise contrastive scaling using Maximum likelihood model as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*ZPjmGl05sJUdUmRaeMP0dQ.png" /></figure><p>Where score (wt,h) computes the compatibility of word wt with the context h (a dot product is commonly used). We train this model by maximizing its <a href="https://en.wikipedia.org/wiki/Likelihood_function">log-likelihood</a> on the training set, i.e. by maximizing</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*cevv-Eyn294vBgGaMHQ2EA.png" /></figure><p>Once these word vectors and sentence vectors are made, it is very easy for the system to do an analogical reasoning of a question like “King is to queen as father is to ?” and the answer is a “mother” because the vectors closely match the space of mother</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*zVcfqV_MdbMhNsgAGKzq5Q.png" /></figure><p>An example picked up to demonstrate this from tensor flow tutorials is shown above. The vectors once formatted enable us to do a lot of mathematical analysis on them. For our scenario, we use these vectors to determine semantic closeness of a question asked by a user and provide answers to the user.</p><p>Coming back on the Entellio UI, the resultant of all of this is the formation of entities on the Entellio screen as shown below. The entity creation itself was something we refer to in the team as the “entity crisis” and it applies a hitherto unknown technique</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*CI8FJ_sC7yqdCogy0vV7Fg.png" /></figure><p>The above figure is a fantastic representation of a machine understanding entities and applying them to the questions put in.</p><p>This is the beauty of the system. While the user sees it as porting of an excel file of a give Q&amp;A, the system translates it into word vectors which can be analyzed using mathematical formulae. So now asking a question enables us to get the requisite response</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*CJVpu4KSoH4oMcaMinySJg.png" /></figure><p>An example is shown in the figure above, where a question asked for not clearly intended but the systems still manages to reply back and gives the user options of other thing that he may wish to ask. This is possible by taking a <strong>spatial cosine distance</strong> of the question asked as a vector and comparing it to the already present within a model. The feedback buttons enable us to get enforcement from the user</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*VIaZqLEcpJNmmIum8yuROw.png" /></figure><p>The above figure indicates a question answered where the bot was very sure of the answer , not showing any options to be asked beyond this.</p><p>This is called as understanding the intentions of the user. More and more people talking to the bot system, allows this bot to retrain and learn better and get more conversant.</p><h3>9. REPORTING</h3><p>How does one determine whether answers posted by the bot are the correct answers or not? The machine in this scenario is left to act on its own and it is an arduous job for a human being to determine how it performed. While creating Entellio , we were acutely aware of this issue, so we also made the framework to produce meaningful reports to indicate the performance metric of the bot that someone makes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*UGSnsapog75j506Uf0lv9w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*dTDSdoLDVi9FCcpY1S6Spw.png" /></figure><p>The two figures above indicate the reports as seen by the administrator from within the bot framework. It shows a line graph and a bar graph to determine and classify the ranks of answers the bot provides. While rank 1 indicates that the bot completely understood the intention of the user, rank 5 indicates that the bot had no knowledge of this question and this needs to be entered for retraining of the bot.</p><h3>10. MOVING ON TO LONG-SHORT CONVERSATIONS</h3><p>While the system shown above indicates how the bot performs and the algorithm it utilize behind the scene, the bot is still very “short conversational” based. In order to turn itself into a “long conversation” based system, the Entellio framework provides the ability to extend any Q&amp;A into a conversation as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*WTzdchZWb40smWGWlhL4Cg.png" /></figure><p>The above figure shows the intention expanded which allows a user to add more intentions and also modify the answer, which can be a simple statement, a connect call to an API , a CMD connect (command connect) to send responses to an IOT system or a web redirect to enable the Entellio system to allow conversational browsing on a website (more on this later) . The figure slaos shows the conversation as a button enabling users to extend this simple Q&amp;A into a long drawn conversation as well</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*mgkBEdGPmDAfl6639XtF9w.png" /></figure><p>The figure above shows the conversation being edited to enable an administrator to add a long drawn conversation behind Entellio as a framework</p><h3>11. MANIFESTATIONS OF ENTELLIO</h3><p>It is important to understand what the framework enables . As a natural UI, this is how the framework can be utilised</p><ol><li><strong>Natural UI with mobile phones</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*dA73nQuZYMx0GlSsDTDgHA.png" /></figure><p><strong>2.</strong> <strong>Conversational Browsing Agent</strong></p><p>The idea of a conversational browsing agent is to enable the same Entellio natural language UI to be a conversational browsing agent on a website. We believe that a lot of people still use corporate websites.</p><p>These websites have entropy associated with links in them, not allowing new or old customers to reach specific information seamlessly. Entellio can become a natural language agent on the website where it can understand queries but the web redirect mechanism described earlier can enable movement of pages on the website, a technique called conversational browsing and it is unique to Entellio as it gets packaged as part of the entire suite</p><h3>12. Our Belief</h3><p>Why do we at Maker’s lab believe in this despite the deluge of so many framework available, one might ask , and the reasons are primarily the following:</p><p>a) Connects with customers seamlessly faster: Within a couple of minutes, the system trains the word vector model and is ready to be utilised within an enterprise. All it needs is an FAQ or an excel sheet to get started</p><p>b) Learns its way through as more and more intents gets added and more chatting happens.</p><p>c) Does not do an NLG(natural language generation): Shouldn’t that be a con ??!!! well we do not think so. Natural language generation has found bots to become narcissistic and attain a scary personality, and since our domain was solely enterprise, we did not want this to happen. We wanted humans to contribute and tell as to what their customers would see.</p><p>d) Departments within an enterprise can onboard new bots quicker and faster , solving myriads of L1, L2 and even L3 support issues thereby saving on OPEX(operational expenditure).</p><p>e) Works seamlessly in-premise and in the cloud.</p><p>f) Is probably one of the few frameworks, that come with the ability of supporting transactions on the mobile, as a conversational browsing agent <em>(with ability to turn pages) </em>and an ability to send a command to any connected/IoT device.</p><p>g) Self ranking of answers provided gives easy dashboards to its users.</p><p>h) Seamlessly connects with other systems if a well define restful or a JSON based API is available.</p><p>i) Easily customisable and configurable</p><h3>13. Conclusion</h3><p>A change is on the horizon, and that change looks ominous. We are looking at working together with machines in solving out a lot of our tasks, but we need to imbibe that change in our psyche and work towards a more AI+iA future where iA is us doing the intelligent augmentation of machines .</p><p>Entellio is a Maker’s Lab, Tech Mahindra attempt towards the same.</p><p><a href="https://www.linkedin.com/in/marieouttier/"><em>I</em></a><em>’m the head of Maker’s Lab , Tech Mahindra. If you think this article is interesting, please don’t hesitate to recommend it by clicking the heart button below. Please share so that more folks can see it as well :-)</em></p><p><em>Thanks for reading!</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F3e59ef%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F3e59ef&amp;image=http%3A%2F%2Fapi.screenshotlayer.com%2Fapi%2Fcapture%3Faccess_key%3Dfe59908dad3baab69ffab249a2224b03%26viewport%3D1024x612%26width%3D1000%26url%3Dhttps%253A%252F%252Fupscri.be%252F3e59ef%253Fscreenshot&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/7078d8ad19192c4c53d3bf199468e4ab/href">https://medium.com/media/7078d8ad19192c4c53d3bf199468e4ab/href</a></iframe><figure><a href="https://chatbotslife.com/bot-communities-mastermind-group-d2dae9876709#.53x0py6ou"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*6XUspT9JOSq0w0Fi35HIaA.png" /></a></figure><figure><a href="https://m.me/ChatbotsLife"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*c1LDMH5vbnIz9rmAka8Hwg.png" /></a></figure><figure><a href="https://chatbotslife.com/how-to-get-a-free-chatbot-b1fb9dfe109#.z9dtp2sy0"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*D0Jf3dI6ZThtqcfwDYY7mg.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce2f7c75213d" width="1" height="1" alt=""><hr><p><a href="https://blog.chatbotslife.com/entellio-ce2f7c75213d">Introducing Entellio</a> was originally published in <a href="https://blog.chatbotslife.com/">Chatbots Life</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can a bot really understand?]]></title>
            <link>https://blog.chatbotslife.com/can-a-bot-really-understand-3fec0cbeded8?source=rss-6ede1e82425e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fec0cbeded8</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[understanding]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Nikhil Malhotra]]></dc:creator>
            <pubDate>Wed, 15 Mar 2017 14:27:47 GMT</pubDate>
            <atom:updated>2017-07-01T09:38:24.151Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/138/1*M2nXwfl1ySBNEGM228DyVA@2x.jpeg" /></figure><p>Well, its become a race today with every company trying to push the mantle towards bots and claiming their bot understands it better than the neighbor&#39;s, but the pivotal question is, Do they understand ?? Do they understand the context ?? Do they understand the premise and do they infer the intent correctly ?</p><p>Sadly, the answer to these questions is a big “NO”. Any one claiming that their bot is AI and that it understands also has to be taken with a pinch of salt. The reason is natural language processing (i.e. NLP) has not progressed to a state where meanings can be derived by a sillicon. The sillicon chip still understands “0s” and “1s” and it is a long way before bots are made which try and understand and mimic human behavior , which brings me to the next question.</p><p><a href="https://www.eventbrite.com/e/the-chatbot-conference-tickets-34868758395?aff=CBL">The Chatbot Conference</a></p><h3><strong>What do the bots understand then ?</strong></h3><p>The bots of today, do two things</p><p>a) <strong>Understand Partial Intents</strong>: Understand words and their embedding in the sentences to understand at a very primary level as to what is the <em>semantics. </em>What it really means is that the bot programs compare few given words in a sentence being asked with some of the known words about that topic. Now, they apply machine learning and techniques like LSI (Latent Semantic Indexing) in some form or another to understand a user’s intention. What is the user trying to ask? Is he talking about his bill? Is he talking about his usage on the phone? Does he need to go to a restaurant close by ? The technique applied unsupervised word vector formation but the philosophy behind the technique is based on an old thought process . Similar words in a text represent similar meanings. A book on Harry Potter and Wizard of Oz tends to be somewhat similar as it talks about Wizardry and locales which are eclectic</p><p><strong>Understand Entities</strong>: Entities are components on which the intent needs to be applied. The state of Natural Language processing has crossed a barrier where POS(parts-of-speech) tags and their relevance can be found out with relative ease. Libraries like NLTK(open source natural language toolkit from Python) or POS taggers from Stanford do the job relatively easily and accurately as well. The Named entity recognizer do a a better job in breaking a sentence into named entities like a person, location etc.</p><p>So essentially, if you say your bot understands me, what it understands is noun and the different verbs in a sentence that you used while asking a question or making a statement. There are of course techniques applied on top of it to understand some non contextual semantics like the weather, location etc.</p><p><strong>What is Self Learning then ?</strong></p><p>A bot in today’s world is said to self learn if it understands a new context of a question being asked as “new” or something which matches and “old” pattern. For a completely “new” context, the bot still needs a human guiding hand to validate but if the bot understands the old context, puts it in it’s repertoire, then it is said to self learn.</p><p><strong>Is the story of bots that bleak ?</strong></p><p>Not at all, We have taken baby steps as a community to understand bots and building them. The bots would change the way messaging would be done in the future and there is a lot to do, from understanding intents and entities to understanding the world in which the bot operates, to understand the vagaries of the world, to even understand the personality types of people asking the questions, Efforts have started on those lines and 2017 should see more of these bots emerging as self learning bots.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F3e59ef%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F3e59ef&amp;image=http%3A%2F%2Fapi.screenshotlayer.com%2Fapi%2Fcapture%3Faccess_key%3Dfe59908dad3baab69ffab249a2224b03%26viewport%3D1024x612%26width%3D1000%26url%3Dhttps%253A%252F%252Fupscri.be%252F3e59ef%253Fscreenshot&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/7078d8ad19192c4c53d3bf199468e4ab/href">https://medium.com/media/7078d8ad19192c4c53d3bf199468e4ab/href</a></iframe><figure><a href="https://chatbotslife.com/bot-communities-mastermind-group-d2dae9876709#.53x0py6ou"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*6XUspT9JOSq0w0Fi35HIaA.png" /></a></figure><figure><a href="https://m.me/ChatbotsLife"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*c1LDMH5vbnIz9rmAka8Hwg.png" /></a></figure><figure><a href="https://chatbotslife.com/how-to-get-a-free-chatbot-b1fb9dfe109#.z9dtp2sy0"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*D0Jf3dI6ZThtqcfwDYY7mg.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fec0cbeded8" width="1" height="1" alt=""><hr><p><a href="https://blog.chatbotslife.com/can-a-bot-really-understand-3fec0cbeded8">Can a bot really understand?</a> was originally published in <a href="https://blog.chatbotslife.com/">Chatbots Life</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>