October 09, 2026
Capturing keywords in lessons learned from projects: Text Mining and NLP in strategic decision making
Capturing Keywords in Project Lessons Learned: Text Mining and Nlp in Strategic Decision Making
Luiz Felipe de Moura Mesquita; Gustavo Dantas Lobo
DOI: 10.22167/2675-6528-202603210
Article derived from a Course Conclusion Work (TCC), with content based on the student’s original work and adapted to the editorial format of the E&S Magazine with the support of the ResumeAI tool, an artificial intelligence solution developed by Instituto Pecege for textual synthesis and organization.
Summary
This study explored the potential of lessons learned from previous projects, often overlooked or filled out merely to comply with organizational processes. The underutilization of this information was identified as a central problem, contributing to the repetition of errors, increased risks, and a nebulous scenario in decision-making for project and sales areas. In this context, a solution based on a machine learning algorithm was developed, implemented in Python, with the objective of generating actionable insights for future project management and improving proposal creation in Request for Proposal (RFPs) processes. To this end, a methodology was adopted that collected, delimited, and processed the data using Text Mining techniques. The information was standardized to English, individual sentiment analysis was performed, and the data were grouped by project type. The interpretation was demonstrated through sentiment scatter plots, heat maps, and word clouds, highlighting recurring positive and negative terms by category. This approach provided a visual analysis that supported decision-making, facilitating the identification of patterns, risks, and areas for improvement. As a result, a future scenario of possible challenges for the management and prospecting of a certain type of project was created, and the methodology proved to be replicable for other areas of the organization and post-project review databases.
Keywords: Sentiment analysis; Project Management; Innovation; Artificial Intelligence; Post-project reviews.
1. Introduction
The lessons learned in previous projects are often neglected or filled out merely to comply with organizational processes. This underutilization of information contributes to the repetition of errors, increased risks, and the creation of an uncertain scenario for decision-making in the project and sales areas. As Santayana (1905) stated, individuals who cannot remember the past are condemned to repeat it.
In this context, documents such as post-project reviews, error reports, and satisfaction surveys represent a valuable source of data and knowledge for organizations. However, for them to be effective, these documents need to be read and analyzed efficiently, without demanding excessive resources and time. The application of machine learning algorithms, such as Text Mining and Natural Language Processing (NLP), makes this exploration fast and efficient, allowing the identification of patterns, errors, successes, and insights that can benefit future projects.
The evolution of Artificial Intelligence (AI) systems, combined with the increased availability of data and computational power, makes the adoption of tools like Text Mining not only viable but necessary for capturing important information in documents with large datasets, aiding in business decision-making (Silahtaroglu, 2019). Through the vectorization technique, Text Mining structures textual data, converting it into tabular formats using machine learning algorithms. This enables data treatment regarding word frequency, importance, similarities, categorization, sentiment analysis, translation, and summarization, among other functionalities (Silahtaroglu, 2019).
Sentiment analysis, a component of Text Mining, is performed through the area of AI study known as NLP. NLP is responsible for the interaction between humans and machines, enabling the understanding of natural language (Silahtaroglu, 2019). The relationship between NLP, machine learning, and linguistics makes it possible to perform tasks such as language translation, text generation, and sentiment analysis, following specific procedures (Seefeld, 2025).
Despite significant advances in Text Mining and NLP, driven by probabilistic introduction and machine learning models such as Support Vector Machines (SVMs) and Deep Learning (DL), including Transformer models (BERT, GPT), challenges still persist. These include ambiguity, understanding context and semantics, dialect diversity, bias, ethical concerns, and computational limitations (Seefeld, 2025). These gaps indicate the need for approaches that enhance the ability to extract value from complex textual data.
Given the problem of underutilization of lessons learned and the challenges inherent in natural language processing, this study is justified by the need to develop solutions that transform textual data into actionable information to improve project management. The present case study aims to explore the potential of lessons learned from previous projects, developing a solution based on a machine learning algorithm, implemented in the Python language, to produce actionable insights that help mitigate risks, reduce the repetition of errors, and improve decision-making in the organization’s project and sales areas.
2. Material and Methods
This case study adopted a quantitative and comparative methodological approach, aiming to explore the potential of lessons learned from previous projects. It sought to identify and monitor the reduction of errors or the increase in correct answers in Project Management, before and after the implementation of a machine learning algorithm in the organization’s lessons learned knowledge base. The research also had an exploratory nature to identify problems and build hypotheses.
The unit of analysis consisted of the lessons learned knowledge base, composed of records of errors, successes, and impediments documented at the closing of projects. The study was conducted in a multinational technology company, focusing on the Project Management Office (PMO) and Customized Services Sales departments of the Brazilian subsidiary, located in Barueri, São Paulo.
Data collection was performed manually, by exporting information from the Microsoft Sharepoint program to the Comma Separated Values (CSV) format. This database contained records of approximately 50 projects, covering the period from 2020 to 2025. Automated export via Python was not authorized due to internal security policies.
For the processing and analysis of the data, the methodologies of Text Mining and Natural Language Processing (NLP) were employed, structured in three implementation phases. The first phase focused on exploratory research and data delimitation, using the Python language for Text Mining routines.
In this initial phase, the lessons learned knowledge base was delimited to remove sensitive information, ensuring confidentiality and non-traceability. The variables “Project Type”, “review_positive”, and “review_negative” were selected, restructuring the original base. Null values were identified in 25% of the records and spelling inconsistencies, reducing the base to 35 valid records. The standardization of encoding to UTF-8 was adopted.
The second phase of the study applied the NLP methodology to classify and group the extracted data. Truncated records were removed and the text converted to lowercase. Then, the texts were standardized to the English language, via the Google Translator Application Programming Interface (API). To circumvent the 5000-character limitation per request, the script divided the texts into “chunks” of up to 4500 characters.
The individual sentiment analysis of project “feedbacks” was conducted using a pre-trained Transformers model, specifically XLM-ROBERTa, trained on social media messages. This model evaluated the semantic context of the sentences, generating a probability of belonging to the sentiment categories: positive, neutral, or negative (Silahtaroglu, 2019; Seefeld, 2025). The final sentiment value was calculated by multiplying the sentiment class (+1, 0, -1) by the confidence, and the aggregated polarity of each project by the sum of sentiments.
The calculated polarity was transformed into interpretable categories by a sensitivity threshold of 0.15: “More positive” (>0.15), “More negative” (<-0.15), and “Mixed/Neutral” (all other cases). In this phase, no cleaning or “stopwords” removal functions were applied to avoid semantic inversion.
The third and final phase deepened the sentiment analysis in a grouped manner, identifying the most recurrent positive and negative words within each project group. For this, a data cleaning function (removal of punctuation and numbers) and text preprocessing techniques (removal of “stopwords” and lemmatization) were applied. The n-grams technique (unigrams) was employed to analyze word polarity and generate word clouds.
After base treatment, sentiment analysis filtered and classified words according to their semantic load, adopting polarity criteria: greater than 0.1 (positive), equal to 0.0 (neutral), and less than 0.0 (negative). The routines were implemented in Python, using libraries such as Pandas, Numpy, Spacy, NLTK, deep_translator, Transformers, Pytorch, TextBlob, WordCloud, and Matplotlib. The developed source code is available in a public repository.
3. Results and Discussion
The application of the methodological steps outlined in the study allowed for the development and execution of a Python script, which processed a database of lessons learned provided by the organization. This process revealed the technical and operational feasibility of the proposed solution to transform textual data into actionable insights, in line with the central objective of the research. The libraries Pandas, Numpy, Spacy, NLTK, deep_translator, Transformers, Pytorch, TextBlob, WordCloud, and Matplotlib were fundamental for exploratory data analysis and data treatment, supporting the various phases of the algorithm.
Initially, the data collection and delimitation phase revealed that the original database consisted of 50 records and 16 variables, encompassing both categorical and numerical information. To ensure confidentiality and non-traceability, the database was restructured, extracting only three essential variables: “Project Type”, “review_positive”, and “review_negative”. This delimitation was crucial for focusing the intragroup sentiment analysis, without compromising the privacy of the projects, managers, and other stakeholders, according to the logic of the data processing.
During the delimitation, the presence of null values was identified in approximately 25% of the records, with 17% in the “review_positivo” variable and 34% in “review_negativo”. Additionally, data inconsistencies, such as spelling variations and the use of uppercase and lowercase letters, reduced the dataset to 35 valid records. The lack of standardization in the official language of data entry (Portuguese or English) was another significant challenge, requiring specific treatment in subsequent phases to ensure the uniformity and quality of the database.
The second phase of the study focused on applying the Natural Language Processing (NLP) methodology to classify and group the data. Records with truncated information were removed and all text was converted to lowercase, preparing the base for translation and standardization. The conversion from Portuguese to English was performed using the Google Translator API, overcoming the 5000-character limit per request by dividing the texts into “chunks” of up to 4500 characters, ensuring the safety of the process.
The individual sentiment classification of project “feedbacks” was performed through a Transformer-based Sentiment Analysis, using the pre-trained XLM-ROBERTa model. This model, trained on social media messages, evaluated the complete semantic context of the sentences, generating a probability of belonging for each of the three sentiment categories: positive (+1), neutral (0), or negative (-1). The final sentiment value was calculated by multiplying the class by the confidence, and the project’s aggregated polarity was obtained by summing the positive and negative sentiments.
The calculated polarity was then categorized as “More positive” (if polarity > 0.15), “More negative” (if polarity < -0.1), neutral (polarity = 0.0), and negative (polarity < 0.0). Although the n-gram technique (unigram, bigram, and trigram) was considered, the Unigram technique was established for generating more recurrent word clouds. However, the sentiment analysis via TextBlob, initially employed, proved ineffective for texts in Portuguese, eliminating most words and not adding significant value, especially negation and intensity terms.
The ineffectiveness of TextBlob for the Portuguese language context, as also observed by Liu (2012) in research with unsupervised lexical models, led to the decision to eliminate probabilistic sentiment analysis and focus on the frequency of the most recurrent words. This approach allowed for a more precise identification of the projects’ “pains” (negative words) and “gains” (positive words), providing more actionable insights for the project and sales areas.
In the “Move” category, recurring positive words such as “partner” and “customer engineer” (CE) indicated that the empowerment of these actors contributed to excellence in project delivery. On the other hand, negative terms like “change”, “integration”, and “planningmeeting” were interpreted as opportunities for improvement, pointing to challenges such as scope changes, difficulties in integrating employees into the client’s Data Center, and limitations in the equipment list during project planning.
For the “Migration” category, positive highlights included “partner”, “consultant”, and “firmware”, while pain points were represented by terms such as “delay”, “infrastructure”, and “period”. This distinction between positive and negative terms by project category provided a solid foundation for exploring specific areas that require attention or that can be replicated as best practices.
Monitoring the variation in word frequency, comparing the initial base (baseline) with new generated bases, allowed us to identify the evolution of terms. In the “migration” category, the inclusion of the word “service” as a new highlight, the increase in the frequency of “without”, and the elimination of “rollback” were observed, indicating a resolved pain point. Most of the other terms remained stable, suggesting that the word frequencies of the baseline did not change significantly.
In the “move” category, monitoring revealed that the terms “change” and “move” had an increase in their frequency, indicating that these “pains” persisted or intensified between the analyzed periods, requiring prioritization for in-depth qualitative analysis. The vast majority of other terms remained stable, which indicates that there was no repetition of errors that increased the frequency of these terms, reinforcing the importance of focusing on exceptions for strategic interventions.
The study demonstrated the technical and operational feasibility of using the Python script to analyze the lessons learned database, generating 6 recorded queries that reinforce the product’s utility. The qualification of the database and the identification of more challenging or promising project categories, through sentiment analysis, allowed for the creation of valuable insights. This data was used by the PMO and sales teams to assist in the development of risk maps and service proposals, especially in response to migration RFPs, providing crucial support for the definition of premises.
Despite the promising results, some limitations were identified. The adaptation of the script to divide texts into “chunks” of up to 4500 characters for translation, although it solved the 5000-character limit per request, may generate computational demand in larger databases. It is recommended to switch to a library that does not impose such a limit. Furthermore, the pre-trained Transformers model, not having been originally trained with specific project evaluation data, may present small losses in precision due to the differences between the training domains and the analyzed domain.
The generation of actionable insights, based on the frequency of the most recurrent words, can, in some cases, include terms that are not significant for risk management or decision qualification, even after cleaning and removing “stopwords”. This requires periodic evaluation of the results and manual updating of the “stopwords” list in the algorithm. The study, by demonstrating these results, reinforces the importance of applied data science for obtaining a competitive advantage, and the developed methodology is replicable for other areas of the organization and post-project review databases, such as satisfaction surveys and incident reports.
4. Conclusion
This study sought to explore the potential of lessons learned in previous projects, developing a solution based on a machine learning algorithm to generate actionable insights in project management and proposal creation. The technical and operational feasibility of implementing a Python script was verified, which, through Text Mining and Natural Language Processing techniques, collected, processed, and standardized textual data from post-project reviews for the English language. Sentiment analysis, using the XLM-ROBERTa model, allowed for project classification and identification of success patterns and challenges, such as the excellence of “Move” type projects and difficulties in “Hyperconvergence” and “Migration”. Recurring positive and negative terms were identified, such as “partner” and “customer engineer” for gains, and “change” and “delay” for pain points. This approach generated six registered queries, qualifying the database and providing subsidies for the elaboration of risk maps and service proposals, especially in migration Request for Proposals, demonstrating the replicability of the methodology for other organizational databases.
Despite the promising results, the study faced limitations, such as the computational demand generated by dividing texts into “chunks” for translation in larger databases, suggesting the adoption of libraries without such restrictions. It was also observed that the pre-trained Transformers model, not being specific for project evaluation, may present small accuracy losses. Additionally, the generation of actionable insights by word frequency may include non-significant terms, demanding periodic evaluation and manual updating of the “stopwords” list. For future studies, it is recommended to expand the methodology to other areas of the organization and post-project review databases, such as satisfaction surveys and incident reports. Implementation in production and integration with databases from other countries, including the translation of new languages and improvement of the algorithm to suggest action plans, represent the next technical challenges. Furthermore, the adaptation of organizational culture to data-driven decision-making and automation is a crucial human challenge for the full utilization of the potential of data science.
Bibliographic References
Liu, B. (2012). *Sentiment Analysis and Opinion Mining*. 1. ed. Morgan & Claypool Publishers, Chicago, Estados Unidos.
Santayana (1905) [Referência completa não encontrada no documento original]
Seefeld, K. Dr. (2025). *Concepts of NLP and Text Analytics*. 1. ed. Independent Publisher, Hampshire, Estados Unidos.
Silahtaroglu, G. (2019). *Concepts of text Mining*. 1. ed. Independent Publisher, Turquia.
Article originating from the Final Course Project of the Specialization in Data Science and Analytics of the MBA USP/Esalq
To learn more about the course, click here and access the MBX Academy platform