# Using neural networks to predict customers' needs

DevFeed: [Using neural networks to predict customers' needs](<https://devfeed.tech/articles/using-neural-networks-to-predict-customers-needs-15942.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/using-neural-networks-to-predict-customers-needs>)

Author: Ik-Hwan Kim

Published: 2017-10-05T18:09:46Z

Content type: article

Language: en

Sources: [Square Corner](<https://devfeed.tech/sources/square-corner-blog-medium.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Deep learning](<https://devfeed.tech/topics/deep-learning.md>), [Neural Network](<https://devfeed.tech/topics/neural-network.md>), [Predictive AI](<https://devfeed.tech/topics/predictive-ai.md>)

Tags: [about](<https://devfeed.tech/tags/about.md>), [all](<https://devfeed.tech/tags/all.md>), [also](<https://devfeed.tech/tags/also.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [analyze](<https://devfeed.tech/tags/analyze.md>), [artificial-neural-networks](<https://devfeed.tech/tags/artificial-neural-networks.md>), [automation](<https://devfeed.tech/tags/automation.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [behaviors](<https://devfeed.tech/tags/behaviors.md>), [browsing](<https://devfeed.tech/tags/browsing.md>), [customers](<https://devfeed.tech/tags/customers.md>), [data-science](<https://devfeed.tech/tags/data-science.md>), [deep](<https://devfeed.tech/tags/deep.md>), [deep-learning](<https://devfeed.tech/tags/deep-learning.md>), [learning](<https://devfeed.tech/tags/learning.md>), [needs](<https://devfeed.tech/tags/needs.md>), [networks](<https://devfeed.tech/tags/networks.md>), [neural](<https://devfeed.tech/tags/neural.md>), [neural-networks](<https://devfeed.tech/tags/neural-networks.md>), [using](<https://devfeed.tech/tags/using.md>)

## AI overview

Square used Seller Dashboard page flows to identify sellers who might need help. Traditional n-gram and Markov chain analyses revealed popular and connected pages, while a recurrent neural network using LSTM was more effective at detecting problem-related patterns in browsing sequences. Because only a small share of sellers needed help, the team explored undersampling the majority class and oversampling the minority class before training a binary classifier. The model achieved 66% recall with about 24% fallout, compared with 5% recall from random guesses, and outperformed the Markov chain and heuristic approaches. The article notes that varied ways of seeking or resolving help make behavior difficult to predict; it suggests the method could support faster assistance and further customer experience automation.

## Source excerpt

Deep learning for browsing and path analysis.