From information to knowledge
Academic team project · Computer Engineering · Esslingen University of Applied Sciences
Data Engineering · Natural Language Processing · Applied AI · Business Intelligence
Thousands of news articles are published every day, covering technological developments, companies, investments and emerging industry trends. But how can we systematically extract meaningful information from such large volumes of unstructured text?
During our computer engineering studies, we approached this question by developing an analytical pipeline that combines automated data acquisition, natural language processing (NLP), locally executed large language models (LLMs) and business intelligence.
Our three-person team focused on automotive news as an initial application domain, transforming collected articles into an interactive analytical dashboard.
| Project overview | Implementation |
|---|---|
| Team | Three computer engineering students |
| Historical dataset | 5,740 database records |
| Primary language | Python |
| Storage | Xata / PostgreSQL |
| Language processing | spaCy, Transformers, TextBlob |
| Applied AI | LangChain, Ollama |
| Visualisation | Power BI, Power Query, DAX |
Building the data pipeline
Our workflow began with the automated collection of articles from a specialised automotive news website.
Using Python and the asynchronous API of Playwright, we collected article content, publication dates and associated metadata, storing the results in Xata.
Asynchronous programming was particularly useful because web requests involve waiting for external responses. Instead of blocking the entire program during these periods, independent tasks can continue executing.
Separating data acquisition from subsequent analysis also allowed us to experiment with different processing approaches without repeatedly retrieving the original articles.
The documented database snapshot contained 5,740 records.
Teaching machines to understand text
The central challenge was transforming natural language into structured information.
We used spaCy with its transformer-based English language model for Named Entity Recognition (NER), alongside TextBlob for sentiment and subjectivity analysis.
Consider the following fictional news excerpt:
Example Motors announced a €500 million investment in battery technology at its production facility in Germany.
An NLP and contextual analysis pipeline could transform this sentence into structured information:
{
"organisation": "Example Motors",
"location": "Germany",
"investment": {
"amount": 500000000,
"currency": "EUR"
},
"technology": "Battery technology"
}Traditional entity recognition can identify organisations, locations and monetary expressions. Contextual processing is then needed to associate these elements with the investment and its technological purpose.
This distinction is important: recognising individual entities is not the same as understanding the relationships between them.
Transformer architectures, introduced in Attention Is All You Need, provide a foundation for processing these contextual relationships.
Combining conventional NLP with local AI
We extended our NLP pipeline using LangChain and Ollama to explore additional information embedded within the articles.
Rather than replacing conventional NLP entirely, the language models complemented it.
| Conventional NLP | LLM-assisted processing |
|---|---|
| Entity recognition | Contextual interpretation |
| Linguistic classification | Semantic enrichment |
| Sentiment analysis | Relationship extraction |
| Predefined entity categories | Domain-specific information |
Structured prompts and JSON-formatted responses supported the integration of model-generated information into the processing workflow.
However, structured output does not guarantee correct information. An LLM can generate syntactically valid JSON containing an incorrect financial figure or an invented relationship.
One of the most valuable lessons was therefore that AI-generated information requires validation before becoming part of an analytical system.
From extracted entities to a relational data model
Extracting information is only useful if it can be organised consistently.
A company might appear under its full legal name, an abbreviation or a shortened commercial name. Treating every variation as a separate entity would distort the resulting analysis.
Our workflow used data transformations, unique identifiers and lookup tables to establish relationships between articles and extracted entities.
For example, one article can mention multiple organisations, while the same organisation can appear across hundreds of articles. Representing this many-to-many relationship correctly is essential for reliable aggregation and filtering.
This stage demonstrated why database design and data quality are just as important as the language models themselves.
Bringing the information together with Power BI
Using Power BI, Power Query and DAX, we transformed the processed information into an interactive reporting environment.
The dashboard supported the exploration of frequently mentioned entities, geographical distributions, publication timelines, sentiment indicators and financial information.
The complete workflow connected several engineering disciplines: acquisition with Python and Playwright, storage in Xata and PostgreSQL, entity recognition with spaCy, sentiment and subjectivity analysis with TextBlob, contextual enrichment with LangChain and Ollama, normalisation through lookup and mapping tables, and reporting with Power BI, Power Query and DAX.
The result was an experimental system that made a large collection of textual information easier to explore through structured analytical dimensions.
Beyond automotive news
Although automotive news was our initial application, the architecture could be extended to multiple information sources.
A future implementation could combine authorised news APIs, technology publications, scientific repositories or financial datasets through a common data interface.
For example, the New York Times Developer Portal provides APIs that could be evaluated for such an extension, subject to their usage conditions. It was not a source in our original project.
This would enable broader investigations into technology trends, company developments and differences in reporting across publications.
Such an extension would require source-specific adapters, duplicate detection and consistent metadata definitions, while respecting the applicable access and licensing conditions.
What I learned — and what I would improve
The project taught me that building an intelligent analytical system involves much more than integrating a powerful language model.
Reliable results depend on the quality of the input data, the consistency of the underlying data model and the validation of extracted information.
If I revisited the project today, I would focus on five improvements:
- Workflow orchestration and incremental processing: Use Prefect to coordinate processing stages, recover from failures and avoid repeatedly analysing unchanged articles.
- Structured output validation: Combine Ollama's schema-constrained responses with Pydantic and source-text verification to reject malformed or unsupported information.
- Entity resolution and deduplication: Improve the identification of equivalent company names and duplicate articles to prevent misleading analytical results.
- Quantitative model evaluation: Compare conventional NLP and LLM-assisted extraction against manually annotated reference data using precision, recall and F1 scores.
- Data lineage and reproducibility: Record source identifiers, model versions, prompt versions and processing history so analytical results can be traced back to their origin.
The original project demonstrated the integration of these technologies within an academic experimental workflow. It did not establish independently benchmarked model accuracy or production-scale reliability.
For me, its greatest value was understanding how software engineering, databases and artificial intelligence complement one another when transforming unstructured information into something useful.
This article documents an academic team project. Proposed improvements and additional data sources represent future possibilities rather than completed implementations.