Demand forecasting for fresh produce and groceries with ML and RNN

By
Muthanna P M
November 22, 2023
4
min read
Share this post

Consumers’ expectations when shopping for groceries and produce are straightforward; they demand the freshest of stocks at competitive prices.

Traditional local sellers know their neighborhood and have been catering to it for decades, they are driven by their wisdom and experience.

But today we live in a world of conveniences where everything is home delivered at the click of a button.

Conventional wisdom of a local grocery is not scalable for online grocery platforms since consumer preferences and demand-supply vary across regions in a city.

When applied scientifically, Cloud and ML can help not just optimize demand-supply at a hyperlocal level, but also help businesses achieve better top line and bottom line through reducing shrinkage (wastage of perishable goods)

At Divum, we developed a custom algorithm for a leading groceries, fresh fruits & vegetables e-commerce platform to meet the following business objectives:

  • Forecast demand
  • Enable optimal procurement quantity
  • Maintain healthy inventory lines
  • Reduce shrinkage

The challenges were multifold:

Forecasting demand for perishable goods like fruits and vegetables is challenging due to their low shelf life.

Meaning, inaccuracies in forecasting can cripple the platform’s promise to deliver the freshest produce direct from farm or the platform running out of stock which prompts customers to churn out, or abandon their shopping carts.

Second, there are hundreds of SKUs and demand-supply variables for each product at a hyper local level, further amplified by external factors like festivals and long weekends.

Crunching this intelligence alongside devising dynamic promotions and offers requires multidimensional forecasting, where conventional statistical models are grossly inefficient.

Divum’s Approach:

We started with first principles by understanding all the drivers of demand including: social and macro economic factors of the micro markets the platform was servicing, alongside additional factors like seasonality (1st week of the month, regional festivals.)

Stock-outs, planned promotions, discounts, assortment range and variety of SKUs were other considerations to be kept in mind.

This model was further strengthened by combining it with data points such as a customer’s past buying history, impact of promotions, relevance of buying cycles and more.

We then built a scalable demand forecasting ML model on Google Cloud Platform (GCP) using the TensorFlow ML package.

Our proprietary ML algorithm is built on principles of Time Series Forecasting using state of the art Deep Learning Recurrent Neural Network (RNN).

SSidenote: Ever wondered how Gmail gives you smart suggestions to complete your sentence when composing a new mail? They use RNN!

We further sharpened the prediction algorithm by factoring in additional regressors such as pin code-SKU preferences, weather and also corrected for outliers and missing values.

Tech Stack deployed:

The entire framework was built on Google Cloud Platform for scale and elasticity. ML was built on TensorFlow, codebase deployed on App Engine while data was handled by Firebase, Datastore and Big Query.

Deployment and Measurable Outcomes:Deployment and Measurable Outcomes:

We deployed the forecast algorithm in an iterative and incremental manner so as to create a self improving feedback loop. Post deployment of our algorithm, usual 12% perishable inventory wastage was reduced to 6% in the initial iterations.

The impact was measured across matrices, we observed 5% increase in farmers’ margins, 2X reduction in wastage, 15% savings on last mile costs, and 5X reduction in acquisition costs.

Share this post
Muthanna P M

Similar articles

Articles

Smart Preventive Healthcare Platform

Since 2014, customer platform is empowering consumers globally to lead healthier and better lives. The smart tech-enabled healthcare platform brings together the entire preventive healthcare ecosystem. It's Smart Health Ecosystem integrates tools for real-time personalized coaching, an explosive high-growth Health e-commerce store, scheduling health check-ups, a health locker, a unique ‘GOQii Cash’ program where healthy behavior is rewarded with cash discounts and insurance discounts based on health management data and live coaching by experts on GOQii Play, the health OTT platform. Given the state of ‘Sickcare’ delivery infrastructure in India, the company strongly believes that preventive healthcare is the only viable, long-term, mass-market solution. GOQii counts marquee investors like Mitsui, NEA, Megadelta, DSG Consumer Partners, Galaxy Digital, Denlow Investment Trust, Edelweiss, Cheetah Mobile, GWC, Mr Ratan Tata and Mr. Vijay Shekhar Sharma. The company is headquartered in Menlo Park, CA with offices in Mumbai, India. User Acquisition: Targeted Marketing Campaigns: Launch digital marketing campaigns across platforms like social media, Google Ads, and health-related websites targeting individuals interested in fitness and wellness. Highlight Goqii's unique features such as personalized coaching and health tracking to attract potential users. Influencer Partnerships: Collaborate with fitness influencers, nutritionists, and wellness experts to promote Goqii to their followers. Leverage their credibility and audience reach to increase brand visibility and attract new users. Referral Program: Implement a referral program where existing users are incentivized to refer friends and family to Goqii in exchange for rewards such as discounts or premium features. Encourage word-of-mouth marketing to expand the user base. App Store Optimization (ASO): Optimize Goqii's presence on app stores by using relevant keywords, compelling app descriptions, and high-quality visuals to improve visibility and attract organic downloads. Regularly update the app to maintain a high rating and positive reviews. Content Marketing: Develop informative and engaging content, including blog posts, videos, and infographics, that resonate with Goqii's target audience. Focus on topics like fitness tips, nutrition advice, and wellness trends to attract users seeking valuable information. Partnerships and Collaborations: Forge partnerships with gyms, fitness studios, corporate wellness programs and health-related brands to reach new audiences and offer joint promotions. Collaborate with complementary businesses to expand platform's reach and attract potential users.mer
Saibal Gosh
April 30, 2024
5
min read
Articles

eCommerce via Retail Network

Revolutionizing E-commerce: Journey to Empower Offline Retail Introduction: In the ever-evolving landscape of technology and commerce, initiatives like Project Udaan stand out as pioneers of innovation. Spearheaded by a multinational technology and e-commerce conglomerate, Project Udaan aimed to bridge the gap between online and offline retail experiences, especially in rural India. This article delves into the inception, challenges, solutions, and outcomes of this groundbreaking venture, showcasing how it transformed the way people shop and empowered local businesses. The Genesis of Project Udaan: Project Udaan emerged from the vision of leveraging technology to democratize shopping access. The conglomerate's goal was clear: extend its reach beyond urban hubs and tap into the vast potential of rural markets. With this in mind, the project was designed to empower offline associates, primarily located in kirana stores, medical outlets, and mobile shopping centers. These associates would act as facilitators, aided by Android Tablet-based kiosks, to assist customers in discovering and purchasing products from the conglomerate's vast inventory. Challenges Faced: The journey towards realizing Project Udaan was not without hurdles. The primary challenge revolved around operating in offline environments prevalent in rural areas. Creating an end-to-end order management system without relying on continuous internet connectivity posed a significant obstacle. Moreover, navigating through a staggering 50 million products demanded a robust local search engine solution within the Android Tablet app. Innovative Solutions: To address the offline operation challenge, a bespoke Android app was developed and installed on tablets deployed as kiosks in every village. The app ingeniously sideloaded the conglomerate's extensive product database via USB drives, ensuring offline accessibility without compromising on product variety. Notably, the database remained encrypted, accessible only to the authorized conglomerate app. The pivotal aspect of enabling offline product browsing was the integration of Apache Lucene, a Java-based search engine library. Through meticulous adaptation, Lucene's powerful search algorithms were made compatible with the Android client, facilitating seamless local search functionality. This breakthrough empowered users to explore the vast product catalog effortlessly, enhancing their shopping experience. Another critical component was the implementation of an SMS-based order management system. Leveraging an SMS gateway, orders placed at the kiosks were securely encrypted and transmitted to a backend server. This server, hosted by Divum, decrypted the orders and seamlessly processed them on the conglomerate's e-commerce platform, ensuring smooth order fulfillment even in areas with network connectivity challenges. The Impact and Success of Project Udaan: The implementation of Project Udaan heralded a new era in e-commerce, especially in rural India. Some of the notable outcomes and achievements include: India’s First SMS-Based Assisted Shopping E-commerce Solution: Project Udaan pioneered a novel approach to assisted shopping, blending SMS technology with offline accessibility to redefine the e-commerce landscape. Successful Deployment Across 11 States: With strategic deployment strategies, Project Udaan made significant inroads into 11 states across India, tapping into previously underserved markets. Omni-Channel Excellence: Project Udaan emerged as a shining example of omni-channel retailing, seamlessly integrating online and offline experiences to offer customers a holistic shopping journey. SMS-Based Order Fulfillment Mechanism: The ingenious use of SMS for order processing ensured that even in areas with network challenges, orders were fulfilled promptly, enhancing customer satisfaction. Offline Catalogue Management: By sideloading the product database onto tablets, Project Udaan empowered offline associates to showcase a diverse range of products, expanding customer choices and driving sales. Lucene Algorithm Implementation: The incorporation of Lucene algorithms for local search not only simplified product discovery but also showcased the project's commitment to leveraging cutting-edge technology for user benefit. Conclusion: Project Udaan stands as a testament to the transformative power of technology when harnessed for social and economic empowerment. By bringing e-commerce to the doorsteps of rural India, this initiative not only facilitated convenient shopping but also fostered skill development and employment opportunities. As we look towards the future, legacy serves as inspiration for further innovations that bridge digital divides and empower communities.
Vivek B S
April 30, 2024
5
min read
Articles

Omni-channel POS Solution

Bridging the Gap: How POS Systems Can Unlock Omni-channel Data Sync The retail landscape is undergoing a dramatic shift. Today's consumers expect a seamless shopping experience, whether they're browsing online, visiting a physical store, or using a self-service kiosk. This omni-channel approach requires retailers to unify their data across all touch-points. Here's where Point-of-Sale (POS) systems emerge as the hero, acting as the central nervous system for achieving omni-channel data sync. What is Omni-channel Data Sync? Imagine a customer researching a product online, then visiting your store to make a purchase. Omni-channel data sync ensures this customer journey is frictionless. Inventory levels displayed online reflect what's in stock at the store. The salesperson assisting the customer has access to their purchase history, allowing for personalised recommendations. How POS Systems Facilitate Omni-channel Data Sync NameXXX, an innovative cloud-based POS provider in India, exemplifies the power of POS systems in achieving omnichannel data sync. Let's see how their XXXPoS system accomplishes this: Inventory Management: XXXPoS offers real-time inventory visibility across all channels, online, physical stores, and even kiosks. This eliminates stock discrepancies and ensures customers can see accurate product availability. Unified Customer Data: Customer information captured at any touchpoint - online store, physical checkout, or kiosk - is consolidated into a central database. This empowers sales staff to provide a more personalized experience and recommend products based on past purchases. Data-Driven Analytics: XXXPoS provides retailers with rich customer insights, including demographics and purchase patterns. This data helps businesses understand their customer base better, optimize product offerings, and tailor marketing campaigns for maximum impact. The Benefits of Omnichannel Data Sync Powered by POS Systems By enabling omnichannel data sync, POS systems offer a multitude of benefits for retailers: Enhanced Customer Experience: Customers can seamlessly switch between channels without encountering data silos. This creates a more convenient and satisfying shopping journey. Improved Inventory Management: Real-time inventory tracking across all channels reduces overstocking and stockouts, leading to better cash flow management. Data-Driven Decision Making: POS data empowers retailers to make informed decisions about product selection, marketing strategies, and store operations. Increased Sales and Revenue: A unified omnichannel experience fosters customer loyalty and encourages repeat business, ultimately boosting sales and revenue. In conclusion The Future of Retail is Connected. POS systems are transforming the retail landscape by facilitating omnichannel data sync. By providing a central platform to unify data across online, offline, and kiosk channels, POS systems empower retailers to deliver a seamless customer experience, optimize inventory management, and make data-driven decisions for long-term success. As NameXXX's expansion plans demonstrate, the future of retail is undeniably connected, and POS systems are the key to unlocking its true potential.
Amar Naik
April 30, 2024
5
min read
Articles

Digital Platform for Lifestyle Brand

Enhancing User Acquisition and Retention: A Case Study with Hindustan Unilever's 'Lakme MakeUp Pro' App Introduction: In today's digital age, mobile applications have become indispensable tools for businesses looking to engage with their customers. However, success in the mobile app space isn't just about acquiring users; it's also about retaining them and fostering brand loyalty. This article delves into a case study involving Hindustan Unilever's collaboration with a tech partner to revamp their 'Lakme MakeUp Pro' app, focusing on user acquisition and retention strategies. Understanding the Challenge: Hindustan Unilever's 'Lakme MakeUp Pro' app had a substantial initial user base, but it faced a common industry challenge: high download numbers with low returning user rates. Despite attracting over 3 million downloads and maintaining an active user base, the app struggled to retain users over time. This situation called for a strategic approach to not only acquire new users but also to ensure their continued engagement. Collaborative Solutions: To address the user retention challenge, Hindustan Unilever partnered with a technology solutions provider to implement several key strategies: Custom Analytics and Retargeting SDK: A bespoke SDK was developed and integrated into the app, enabling comprehensive analytics and retargeting capabilities. This allowed for precise user segmentation and targeted messaging to encourage returning users. Lakme Studio Custom Feature: A new feature called 'Lakme Studio' was introduced, leveraging app analytics to deliver personalized content experiences. This adaptive content approach ensured that users received relevant and engaging content, enhancing their overall app experience. Deep-link Notifications and Virtual Try-On: Deep-linking capabilities were utilized to direct users to specific app features, such as virtual try-on experiences and informative articles. This seamless integration encouraged users to explore the app further and interact with its various functionalities. Data Analysis and Adaptive Profiling: Continuous data analysis was conducted to refine user profiles and preferences. By understanding user behavior and preferences, the app could dynamically adjust its content and offerings, increasing user satisfaction and retention. Retargeting with Adaptive Content: Retargeting strategies were employed, leveraging user data to deliver personalized notifications and content. This approach aimed to re-engage inactive users and encourage them to revisit the app, thereby boosting retention rates. Drive Cart Addition via Auto Adjusting Product Listing: The app's shopping experience was optimized with auto-adjusting product listings, simplifying the path to purchase and increasing cart additions. Measurable Outcomes: Following the implementation of these strategies, Hindustan Unilever's 'Lakme MakeUp Pro' app witnessed significant improvements in user acquisition and retention: Download Base: The app's download base surged to over 5 million post-release, indicating a substantial increase in user acquisition and market penetration. Active User Base: The active user base expanded to 300,000 to 400,000 users per month, showcasing sustained user engagement and retention. Returning User Rate: There was a noticeable increase in the returning user rate, indicating enhanced brand loyalty and a more focused customer reach. SDK Development: The custom Analytics and Retargeting SDK received positive feedback for its user experience, contributing to improved app performance and user satisfaction. Monthly Product Analytics Consulting: Ongoing product analytics consulting further refined the app's performance, ensuring continuous optimization and alignment with user expectations. Conclusion: The success story of Hindustan Unilever's 'Lakme MakeUp Pro' app highlights the importance of a holistic approach to user acquisition and retention. By leveraging custom analytics, personalized content features, and targeted retargeting strategies, the app not only expanded its user base but also fostered long-term user engagement and brand loyalty. This case study serves as a testament to the effectiveness of data-driven, user-centric strategies in the competitive mobile app landscape.
Vivek B S
April 30, 2024
5
min read
Hire us to build a website using this template. Get unlimited design & dev.
Buy this Template
All Templates