Flipkart is the largest e-commerce marketplace in India, launched in 2007. Earlier this year, Walmart acquired a 77% stake in Flipkart for ~16B USD . With a population of 1.3B people, Indian e-commerce market is expected to reach 200B USD by 2026 . Lower internet penetration, lower credit card and e-payment penetration and poor last-mile connectivity, have resulted in innovations such as Cash on Delivery, No Cost EMI and easy returns.
E-commerce is a thin margin business, and at scale, reliance on manual operations hurts the business’s bottom line. In this context, Flipkart has been using Machine Learning(ML) to gain insights into consumer shopping habits, optimize prices of products, based on customer demand, while also applying those insights in areas such as logistics to better manage supply chain. 
Leveraging ML to address the Indian problem of addresses
In the absence of a formal geo-spatial classification, addresses in India are organized by Postal Index Number (PIN codes). However, each PIN code may correspond to an area of 50 sq. km. Factors like lower literacy rates lead to customers entering incorrect PIN codes, or commit spelling errors while filling up addresses, magnifying the problem. A lot of Indian place names are translated from local languages into English phonetically, resulting in variable spelling patterns. Each city has different labels like “blocks”, “mains”, “sectors”, or “phases” to designate street addresses with/without house numbers, house names or street names. New suburbs added into the delivery network may not necessarily adhere to traditional naming conventions. 
These issues impact a business whose delivery model hinges on the speed and efficiency of last-mile logistics. Delayed delivery erodes customer satisfaction, and improper addresses cause inefficiencies in the routing of delivery, placing a high load on the logistics network. This results in higher cost of logistics, transport and customer support, impacting the profitability. 
Currently, personnel at Flipkart’s delivery hubs use tacit knowledge in the process, identifying addresses intended for each delivery hub based on PIN code and location information. Last-mile delivery staff has strong familiarity with the addresses on their routes. Data Science team at Flipkart had to understand how this unique knowledge could be converted into a ML model. The team started with approximating a mental model employed by the sorting personnel to classify addresses correctly, and then built a ML model that would attempt to learn incrementally from these labels. 
The team started to work with field executives and supervisors at the hub to collect and validate data sets, and then started to label these addresses. Then the team built graphical ML models churning customer address records using both supervised and unsupervised models to learn names of cities, localities, sub-localities and building names that exist in a given region, along with their hierarchical relations and alternate spellings. By doing this, the company has built a model consisting of different locality features that people commonly write in addresses, which is gaining accuracy with incremental deliveries. This model will help Flipkart reduce dependency on manual labor to sort packages in its hubs.  
Leveraging ML in other areas and Challenges
With the aim of using ML in other areas effectively, Flipkart last year unveiled its AI For India program to focus efforts on using AI and ML. With huge amounts of data already collected, and newer ones being added on a daily basis, Flipkart is experimenting use of ML in areas like catalog qualities, product size recommendations and preventing fraud orders. Its wholly owned subsidiary ‘Myntra’, a fashion only platform, is using ML to automatically select and create new designs based on analysis of sales trends. Flipkart has partnered with Microsoft Azure to leverage AI, machine learning and analytics capabilities in Azure, such as Cortana Intelligence Suite and Power BI, to optimize its data for innovative merchandising, advertising, marketing and customer service, and this will help the company over the years to come. 
One of the key challenges is the lack of talent in India. There are varying estimates around the number of data scientists and ML professionals in India, but the number is below 1000. In comparison, Amazon has 5000 people working on just the Alexa platform . Flipkart should look to partner with leading universities in India to improve the curriculum to include key ML courses. There is also the option to build data science centers in areas like the Silicon Valley where talent is in plenty, though this may not scale.
With regards to the specific problem around addresses, one key open question is the scalability of these algorithms. Currently, the tier 1 metro cities (likes of New Delhi and Mumbai) account for ~60% of e-commerce demand. How should Flipkart think about the problem of scaling its algorithms to address the problem of addresses when many newer cities start to contribute more to the sales?
(Word Count 795)
1. Walmart News, “Walmart and Flipkart Announce Completion of Walmart Investment in Flipkart, India’s Leading Marketplace eCommerce Platform”, https://news.walmart.com/2018/08/18/walmart-and-flipkart-announce-completion-of-walmart-investment-in-flipkart-indias-leading-marketplace-ecommerce-platform , accessed Nov 2018
2. LiveMint, “India’s e-commerce market to hit $200 billion by 2026: Morgan Stanley report”, https://www.livemint.com/Industry/9iUxlQZ4iHwPiXRKscx3LK/Indias-ecommerce-market-to-grow-30-to-200-billion-by-202.html , accessed Nov 2018
3. Flipkart Group, “FLIPKART WANTS DATA SCIENTISTS AND ENGINEERS TO BUILD AI FOR INDIA: SACHIN BANSAL” , https://stories.flipkart.com/flipkart-ai-india-sachin-bansal/ , accessed Nov 2018
4. Flipkart Group, “WITH AI & ML, FLIPKART IS ADDRESSING THE UNIQUELY INDIAN PROBLEM OF PROBLEM ADDRESSES”, https://stories.flipkart.com/ai-ml-flipkart-indian-address/ , accesses Nov 2018
5. Medium, “Learning to Decode Unstructured Indian Addresses”, https://medium.com/@kabirrustogi/learning-to-decode-unstructured-indian-addresses-c80ffcda2e84 , accessed Nov 2018
6. TechEmergence, “Artificial Intelligence at India’s Top eCommerce Firms – Use Cases from Flipkart, Myntra, and Amazon India”, https://www.techemergence.com/artificial-intelligence-at-indias-top-ecommerce-firms-use-caes-from-flipkart-myntra-and-amazon-india/ , accessed Nov 2018
7. FactorDaily, “How machine thinking is transforming Flipkart”, https://factordaily.com/flipkart-ai-for-india/ , accessed Nov 2018