Suppose smart speaker reviews often contain the complaint “the sound is too loud.” If you analyze the reviews by product attribute, it is easy to conclude that “volume” needs fixing. But the result does not tell you whether the complaint came from playing music before falling asleep or from asking about the weather in the morning. Different situations call for different features to be fixed.
So the question this post addresses is this: can we define customer needs more specifically by extracting, from online reviews, both the situation in which a product was used and the function used at that time?
We read one paper that answers this question.
- Title: Context-Aware Customer Needs Identification by Linguistic Pattern Mining Based on Online Product Reviews
- Journal: IEEE Access
- Year: 2023
- DOI: 10.1109/access.2023.3295452
The paper uses the grammatical structure of review sentences to extract “context” and “function” separately. It groups expressions with similar meanings into clusters, and treats a pair of a context cluster and a function cluster that appear together in the same review as a customer need. The paper’s example is the review “I want to play music quietly while I sleep but the sound is too loud.” From this sentence it extracts the function “play music” and the context “while I sleep,” and defines their combination as one customer need.
The terms used throughout this post are as follows.
- Context information: information that describes the situation in which a user meets a product. The paper’s definition is information that characterizes the situation of an entity, such as place, social situation, or object. The methods section gives time, place, and social environment as examples.
- Product function: a function that the product provides. The paper also includes the customer’s actions in using that function. “make calls,” “play video,” and “search the Internet” are examples.
- Linguistic pattern mining: a method of extracting information from text by using the grammatical structure of language.
- Customer needs: in this paper, the combination of a context information cluster and a product function cluster that appear together in the same review.
Motivation: Looking Only at Attributes Leaves Out the Situation Behind a Complaint
Why Usage Context Matters
The reasons the paper gives are as follows.
- Online reviews are an information source that strongly influences customers’ choices and product sales.
- Reviews contain information about the situations in which a product was used. Potential customers use this information to judge specific use cases.
- Even when the product function is the same, customer needs differ depending on the surrounding context. The paper bases this on the work of Green et al.
- Ignoring context information can make it hard to improve product functions. Therefore context information and product functions should be examined together.
The paper cites an earlier study of Bluetooth speaker reviews as an example. That study defined battery and sound as customer needs. However, it could not explain why the battery was a problem. Draining quickly in cold places is one example. For sound as well, specific reasons such as volume control were missing.
What Existing Research Has Not Addressed
Existing studies that find customer needs from reviews fall broadly into two types. The first is product-feature-centered research. It defines needs by the physical characteristics or specifications that customers mention. Rai extracted frequently mentioned nouns as attributes and ranked them, prioritizing attributes such as weight, price, and waterproofing. Zhan et al. proposed a method for extracting needs by summarizing multiple reviews.
The second is customer-sentiment-centered research. It defines needs by emotion words or sentiment scores about product features. Hu and Liu extracted opinion words such as “horrible,” “incredible,” and “easy” from digital camera reviews and classified them as positive or negative. Zhou et al. used sentiment analysis to find needs for product line planning.
The gaps the paper points out are as follows.
- Existing studies mainly extracted physical characteristics of products to define needs, and tended not to consider context information.
- The concept of “product function,” which expresses the state of a product feature, has also not been used in deriving needs.
- There is agreement that using context information improves understanding of customers. However, few studies in social media mining have addressed customer needs through context information.
- Linguistic patterns have been used for various kinds of information extraction. However, little attention has been paid to analyzing needs based on context information and reflecting them in product improvement strategies.
Method: Extract, Group, and Pair Situations and Functions from Negative Reviews
The paper describes the method in four steps. In step 1, reviews of the target product are collected and negative reviews are selected through sentiment analysis. In step 2, context expressions and product function expressions are extracted from the negative reviews. In step 3, similar expressions are grouped by word embedding and clustering, and in step 4, customer needs are defined by the combinations in which the two types of clusters appear together. This post explains the method in the same four steps.
Case and Data
The case product is the Amazon Echo series. Amazon Echo is a smart speaker connected to the virtual assistant service Alexa. It provides voice services such as playing music, setting alarms, and searching for information. The paper groups three products, Amazon Echo, Amazon Echo Show, and Amazon Echo Dot, and calls them “Amazon Echo.”
The paper chose this product because its range of functions keeps expanding. The paper explains that, as a result, customers’ motives for using this speaker have also become more varied, which increases the need to analyze hidden needs. The data are 11553 online reviews collected from the Amazon shopping site from January 1 to May 31, 2020.
Step 1: Review Collection and Negative Review Selection
- Input: online reviews of the target product
- Processing: web scraping, splitting into paragraphs, computing sentiment scores
- Output: negative reviews with a sentiment score below 0
The processing order is as follows.
- Collect reviews using web scraping techniques such as the Selenium library.
- Split each review into paragraphs and store them. From here on, “review” refers to one paragraph within a review.
- For each paragraph, compute a sentiment score with the Google Cloud Natural Language Processing (NLP) Application Programming Interface (API).
- Mark paragraphs with a score below 0 as negative reviews.
There is a reason for using paragraphs rather than sentences as the unit of analysis. A paragraph has a storyline in which several related sentences connect, and it explains a topic in more detail. In the paper’s example, the first, second, and third paragraphs of one review cover the reason for purchase, the intended use, and the specific use, respectively. Even for a review written by one customer, the experience differs from paragraph to paragraph, and so do the sentiment scores.
The sentiment score is a value between −1 (most negative) and 1 (most positive). A negative value means dissatisfaction with the product. There are two reasons for using only negative reviews. Negative reviews tend to describe attributes needing improvement in more detail than positive reviews. Also, negative reviews are considered more credible and more influential.
In the case, single-paragraph reviews were kept as they were. Reviews with two or more paragraphs were split by paragraph. Reviews consisting of one sentence or one word were excluded. Of the 11553 reviews, 2105 had a sentiment score below 0, and the remaining 9448 were positive. The proportion of negative reviews is 2105÷11553≈18.2%. The later steps were carried out with these 2105 reviews.
Step 2: Extracting Context Expressions and Product Function Expressions
- Input: 2105 negative reviews
- Processing: dependency parsing, phrase extraction by specified dependency relationships, stopword removal
- Output: a list of context expressions and a list of product function expressions
This step starts from the observation that “verb + object” expresses a function, and that prepositions and conjunctions express the place and time of that action. In the paper’s example “Amazon echo show can find recipes in my kitchen,” the function appears as the verb “find” and the object “recipes.” The place appears as the preposition “in” and the noun phrase “my kitchen.” In “this is perfect when I’m cooking,” the clause “I’m cooking,” which depends on the conjunction “when,” indicates the time of use.
The paper therefore defines the expressions as follows.
- Context expression: “preposition + phrase,” “conjunction + clause”
- Product function expression: “verb + phrase/clause”
Both expressions are extracted by dependency relationships. A dependency relationship is a grammatical relation between a governing word and a dependent word in a sentence. The paper uses the Stanford typed dependencies (SDs), which were created to express English grammar practically. The reason given is that, because the reviews are written in English, they are more effective than other dependency schemes. SDs have 50 predefined relationships.
The processing order is as follows.
- Check the Stanford dependency relationships for each sentence.
- If a word has a mark, pcomp, or pobj relationship, store that word together with its dependent words as a context expression.
- mark: attached to a word that connects a subordinate clause to another clause. The head of the clause that depends on a conjunction such as “while,” “as,” or “when” is extracted.
- pcomp, pobj: attached to a word that follows a preposition. The head of the phrase that depends on a preposition such as “on,” “in,” or “at” is extracted.
- If a word has a ccomp, dobj, or xcomp relationship, store that word together with the word that governs it as a product function expression.
- ccomp, xcomp: attached to a verb that governs a subordinate clause. The verb of the subordinate clause and its object are extracted.
- dobj: attached to a verb that takes a noun phrase as its object. The verb and its direct object are extracted.
- When the sentence changes, reset the expressions and move on to the next sentence.
The dependency relationships for functions extend the types proposed by an earlier patent study. Dependent words are brought in together to make the expressions specific. Thus the mark relationship yields “while taking a shower” in full. The ccomp relationship yields “recognizes my voice,” with “my” attached to “recognizes voice.”
In the case, Stanza, the Python package of the Stanford parser, was used. The extraction produced 32709 context expressions and 32346 product function expressions. Among these, expressions that are ambiguous and are neither a situation nor a function, such as “to this,” “loves it,” and “got this,” were removed by stopword processing.
After removing stopwords, 6747 context expressions and 4679 product function expressions remained. The proportions remaining are 6747÷32709≈20.6% for context expressions and 4679÷32346≈14.5% for function expressions. Depending on the review, only one side appeared. In review ID 1, only function expressions such as “hear the music,” “control the lights,” and “ask prompts” appeared. In review ID 2, only the context expression “as a speaker” appeared.
Step 3: Defining Context Information Clusters and Product Function Clusters
- Input: 6747 context expressions, 4679 product function expressions
- Processing: vectorization with sentence embeddings, k-means clustering, deciding the number of clusters with the gap statistic, naming clusters
- Output: context information clusters and product function clusters
“in the home” and “in the house” have the same meaning but different letters. So do “hear the music” and “playing music.” If such expressions are not grouped into one, the same situation is scattered across several. This step groups expressions by meaning.
The processing order is as follows.
- Convert each expression into a 768-dimensional vector. The methods section explains that Bidirectional Encoder Representations from Transformers (BERT), developed by Google, is used. In the case, because the expressions consist of several words, sentence BERT was used instead of standard BERT.
- Group nearby expressions with k-means clustering.
- Decide the number of clusters k with the gap statistic.
- Name each cluster by looking at the five expressions closest to its center.
The reasons for choosing BERT are as follows. BERT was pretrained on 3.3 billion words. These consist of 800 million words from BookCorpus and 2.5 billion words from English Wikipedia. Because it learns at the word-piece level, it can handle words not in a dictionary, so it can be applied to other reviews without additional training. The paper explains that its high performance and independence from any specific domain make it suitable for grouping similar expressions.
K-means clustering runs in the following order.
- Randomly pick k points from the data as the initial cluster centers.
- Assign each expression to the cluster of the nearest center by distance (for example, Euclidean distance).
- Recompute each center as the mean of the expressions in the cluster, and repeat this process.
The paper also noted strengths and weaknesses. It is easy to implement, assigns every point to a cluster, and handles large data efficiently. On the other hand, it is sensitive to the positions of the initial centers. The number of clusters must be set in advance, and it is also sensitive to outliers.
The problem of having to set the number of clusters in advance is solved with the gap statistic. The gap statistic is the difference between the clustering of the observed data and that of reference data. The better the data group, the larger the value. The paper chooses the k with the largest gap statistic.
In the case, the gap statistic was largest at k=37 for context expressions and at k=47 for function expressions. As a result, 37 context information clusters and 47 product function clusters were created. Examples of cluster names are as follows.
| Cluster type | Expressions closest to the center | Cluster name |
|---|---|---|
| Context information | in kitchen, in the kitchen, for the kitchen | in_the_kitchen |
| Product function | play music, playing music, plays music | play_music |
Source: Figure 7 and Section 4.C of the paper
Step 4: Defining Customer Needs by Co-occurrence
- Input: 37 context information clusters, 47 product function clusters, cluster membership of each review
- Processing: find pairs of clusters that appear together in the same review and count co-occurrence frequency
- Output: a list of customer needs with frequencies
The processing order is as follows.
- For each review, identify the context information clusters and product function clusters that appear in it.
- Treat a pair of two clusters that appear together in the same review as one customer need.
- Count how many times each pair appears together and use it as the connection weight.
- Give improvement priority starting from the needs with the highest frequency.
Consider the paper’s interpretation example. If the context cluster “on_the_bed” and the function cluster “play_a_game” appear together in one review, this pair becomes a need. It means “a customer who has a problem while playing a game on the bed.” The rationale for using frequency as priority is simple. The more often they appear together, the more important the need is considered to be for product improvement decisions.
The number of possible combinations is 37×47=1739. However, two expressions do not always appear together in the same review. So after counting co-occurrence frequencies, the remaining customer needs numbered 1430. Of the possible combinations, 1430÷1739≈82.2% actually appeared in reviews. To reduce complexity, the paper examined in detail the top 10 most frequently mentioned.
Results: 1430 Customer Needs Found in 2105 Negative Reviews
How the Data Shrank at Each Step
The paper has no experiment comparing performance metrics. The results are presented as the amount of data remaining at each step and the interpretation of the top needs. First, we summarize the numbers produced at each step.
| Step | Output | Count |
|---|---|---|
| Collection | Reviews (paragraphs) | 11553 |
| Sentiment analysis | Negative reviews | 2105 |
| Extraction | Context / function expressions | 32709 / 32346 |
| Stopword removal | Context / function expressions | 6747 / 4679 |
| Clustering | Context / function clusters | 37 / 47 |
| Co-occurrence | Customer needs | 1430 |
Source: Sections 4.A to 4.D of the paper
The paper interprets the 1430 as latent needs that require improvement. There are 37 context clusters, fewer than the 47 function clusters. But right after extraction, there were more context expressions than function expressions.
Situations and Functions in the Top Needs
The context clusters in the top 10 needs include situations the customer is in. “while_cooking,” “with_tv,” and “as_an_intercom_system” are examples. There is also “in_the_kitchen,” which indicates a place of use. The function clusters that appeared with them include “find_recipes,” “connect_doorbell,” and “play_music.”
The representative case the paper interprets is the combination of “with_ring_doorbell” and “connect_doorbell.” ring_doorbell refers to a wired doorbell device. The paper reads this combination as a signal that the product has problems connecting with other companies’ devices. It therefore proposes that the improved version should support compatibility with other devices.
Improvement Directions by Context
The paper organized the needs as a bipartite network. Context clusters are on the left and function clusters on the right, and the more often two appear together, the thicker the connection is drawn. Here we interpret two contexts in detail.
| Context cluster | Function clusters frequently appearing together | Direction proposed by the paper |
|---|---|---|
| in_the_morning | play_music, ask_question, control_thermostat | Wake-up confirmation, automatic playback of frequently asked answers such as weather, automatic control of temperature and curtains |
| for_sleep_sound | play_music, control_light, playing_books, set_alarm | Lighting control matched to sleep patterns, automatic alarm setting |
Source: Section 5.B of the paper
Start with the morning context. “in_the_morning” often appeared together with “play_music.” The paper interprets this to mean that many customers feel dissatisfied when listening to music in the morning. It also often appeared with “ask_question” and “control_thermostat.” The interpretation is that customers expressed dissatisfaction when asking about the weather and news in the morning, and when adjusting the indoor environment with the thermostat.
The sleep context is read in the same way. “play_music” appeared most often together with “for_sleep_sound.” The paper therefore names the music playback function in the morning and at bedtime as a direction for improvement. “for_sleep_sound” also appeared often with “control_light,” “playing_books,” and “set_alarm.” The paper interprets this to mean that customers want to use Amazon Echo as a sleep aid device.
In sum, the paper points out that “play_music” appeared often in both the morning and sleep contexts, and proposes improving the music playback function for both times of day. The other suggestions for the morning context, wake-up confirmation, automatic playback of frequently asked answers, and temperature and curtain control, came from combinations with “ask_question” and “control_thermostat.” The paper concludes that improvement directions can thus be identified specifically for each context.
Theoretical Grounds Instead of Quantitative Comparison
The paper states that because this is research that combines linguistic pattern mining, word embedding, and sentiment analysis into one framework, there is no standard baseline method to compare against. It therefore did not evaluate superiority quantitatively. Instead, it cites Jobs-To-Be-Done (JTBD) theory as grounds for the importance of context information.
In JTBD, the “job” is what the customer actually tries to accomplish in a given situation. A job depends not on the product function but on the context the customer is in. Take a customer who uses Amazon Echo in the kitchen: that customer’s job is preparing a meal. It is not looking at a screen to find a recipe. The paper claims that the proposed method can infer what customers are trying to accomplish in a specific context.
Significance and Limitations
What Changes
- Customer needs were defined by considering context information and product functions together. The paper cites this as the main difference from existing studies.
- It proposed types of dependency relationships (mark, pcomp, pobj) for extracting context information from reviews.
- It combined linguistic pattern mining, natural language processing, and clustering into one analytical framework.
- By using paragraphs instead of sentences as the unit of analysis, it separated the different experiences within one review.
- The paper states that this study is one of the first attempts to integrate context information into customer needs identification.
Usefulness for Practitioners
The paper summarizes three practical implications.
- Manufacturers can learn how, when, and where their products are used. They can see which functions customers find inconvenient and in what environments they have difficulty.
- Identifying product usage scenarios, which has so far been done through surveys or expert scenario planning, can be done with reviews. The scale of analysis can be easily expanded, and automation can greatly reduce analysis time.
- Product designers can use specific use cases at the idea generation stage.
Usefulness for Researchers
The paper cites as its theoretical contribution the extension of the concept of context information to the field of customer understanding. Existing studies defined needs by keywords of product problems and features, and did not extract context information with linguistic patterns. The paper hopes to be a starting point for follow-up studies that mine context information from reviews. According to the authors, it can serve as a reference for studies that aim to analyze context and function together.
Limitations Stated by the Paper
The paper states three limitations itself.
- Because there are no prior studies that understand customers through context information, it could not compare with existing research or evaluate with common performance metrics. More studies are needed that check the results against customers’ actual voices, such as surveys or product log data.
- It can be applied to other user-generated content such as social media, blogs, and online communities, but this applicability was not tested.
- The linguistic patterns used are based on English grammar and cannot be applied to other languages. Needs may differ across cultures, so research should be extended with models for other languages.
Conditions for Application from the Author’s Viewpoint
What follows is not content from the paper but conditions that the author adds with practical application in mind.
- Reviews must contain enough prepositional phrases and conjunction clauses that describe situations. In product categories with many short reviews such as “not great,” fewer context expressions appear.
- The stopword list must be adjusted for each product category. In the case too, only about 20% (6747÷32709≈20.6%) of the extracted context expressions remained, so the criteria at this step can change the results greatly.
- Because k-means is sensitive to the initial centers, it is better to run it several times with different random starting points and check whether the clusters are stable.
- Because clusters are named from the five expressions closest to the center, a person should read the original text to confirm that the name represents the whole cluster.
- Co-occurrence frequency means many mentions, not great dissatisfaction. Frequency rankings are safer when viewed together with other data such as the magnitude of sentiment scores or return records.
- Because only negative reviews are used, contexts in which customers are satisfied do not appear in the results. To use this for planning new features, one option is to run positive reviews separately through the same procedure and compare.
- When the same function cluster appears with several context clusters, the author sees room to read by context a complaint that attribute-centered analysis would have merged into one item. The paper did not directly compare the two approaches, so whether a difference actually arises should be checked with your own data.
What to Try Right Away
- Collect English reviews of your own product, split them into paragraphs, and select only paragraphs with a sentiment score below 0. First check how many negative paragraphs there are out of the total.
- Run a dependency parser on some of the negative paragraphs and extract context expressions with mark, pcomp, and pobj, and function expressions with ccomp, dobj, and xcomp. Read the extracted phrases yourself and add useless expressions such as “to this” to the stopword list.
- After grouping the expressions into clusters, build a co-occurrence table with context clusters as rows and function clusters as columns, and read the top 10 cells by frequency. Checking whether the same function ranks high in different contexts shows right away how this differs from attribute-centered analysis.
Business Intelligence Lab studies methods for finding product planning and technology opportunities in text such as reviews and patents. You can continue with similar paper explainers in other posts on this blog.