Cosine Proximity Codebooks for Short-Text Sentiment Clustering

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for analyzing user text input, such as customer reviews, are inefficient and rudimentary, particularly for freeform text requiring natural language processing, and do not effectively utilize advanced language processing techniques.

Innovation Solution

Utilizing BERT analysis and clustering algorithms to partition text into segments, generate numerical vectors, and classify them based on cosine proximity thresholds, enabling efficient categorization of sentiments in user comments through a graphical user interface.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If topic modeling is used to analyze user text input, then topics can be found within large subsets of text, but it performs poorly when user text input is short (fifty words or less)

Engineering Contradiction:
Improvevolume of text dataVSAvoidaccuracy of topic analysis
Core Design Contradiction:
Quantity of substanceVSMeasurement precision

Solution Approach 1:

The patent transforms the text analysis approach by converting short text segments into numerical vectors using BERT embeddings, changing the parameter representation from raw text to dense vector space where semantic similarity can be effectively measured through cosine proximity, enabling accurate analysis even with limited text volume

Inventive Principle:
Principle #35Parameter changes

2Ease of operation

If database text search is used to analyze customer reviews, then reviews containing searched words can be retrieved, but the search is rarely comprehensive due to variations in word forms and spelling errors

Engineering Contradiction:
Improvesimplicity of search methodVSAvoidcomprehensiveness of search results
Core Design Contradiction:
Ease of operationVSMeasurement precision

Solution Approach 1:

The patent replaces the mechanical keyword-matching search system with a semantic similarity-based system using BERT embeddings and cosine proximity calculation, substituting exact word matching with vector-based semantic comparison that captures meaning regardless of word form variations or spelling errors

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

3Ease of manufacture

If star-rating system is used to analyze customer reviews, then reviews can be categorized and sorted by star values, but the method is rudimentary and does not provide efficient natural language processing

Engineering Contradiction:
Improvesimplicity of implementationVSAvoidefficiency of text analysis
Core Design Contradiction:
Ease of manufactureVSProductivity

Solution Approach 1:

The patent introduces BERT embeddings as an intermediary layer between raw text input and analysis output, transforming text into numerical vectors that enable sophisticated semantic comparison and clustering, thereby enhancing the rudimentary star-rating system with advanced natural language processing capabilities

Inventive Principle:
Principle #24Intermediary (Mediator)

4Measurement precision

If advanced language processing methods are applied to topic modeling, then analysis accuracy may improve, but the complexity of the system increases

Engineering Contradiction:
Improveaccuracy of text analysisVSAvoidcomplexity of processing system
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent segments the text analysis process into distinct modular steps: text input segmentation, BERT embedding generation, cosine proximity calculation, and clustering algorithm application. This segmentation allows advanced language processing to be applied systematically while managing complexity through clear separation of functions

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS12608551B2Systems and methods for generating codes and code books using cosine proximity
Publication Date: 2026.04.21 LANGUAGE LOGIC LLC
  • US12608551B2 patent drawing
  • US12608551B2 patent drawing
  • US12608551B2 patent drawing

AI summary

Certain aspects of the disclosure provide a system and method for generating codes associated with clusters of sentiments, comprising receiving a text input, partitioning the text input into one or more segments, generating one or more numerical vectors associated with each of the one or more segments, comparing the one or more numerical vectors to generate a plurality of cosine proximity values associated with the one or more numerical vectors, applying a clustering algorithm to the one or more numerical vectors to generate clusters of segments within one or more cosine proximity ranges, generating one or more codes associated with each of the clusters of segments within the one or more cosine proximity ranges, wherein each cluster represents an overall sentiment, and netting the one or more codes into one or more categories by inputting the one or more codes into a large-language model.