Files

359 lines
39 KiB
TeX
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
% \section{Publication-Driven EU Call Matching}
% \section{Knowledge Clusters and Expertiese Matching}
\section{Motivation and Requirements}
In today's research-driven academic landscape, aligning external project calls with the right university departments is a critical process, especially since these grants serve as a key source of funding to pursue academic research, support staff and doctoral students, acquire equipment, and sustain long-term research agendas. Universities, particularly in Europe, rely heavily on external funding mechanisms such as those provided by the European Union through programs like Horizon Europe. To secure such funding, academic departments (e.g., affiliations) must identify and respond to relevant project calls in a timely and accurate manner.
Currently, this matching process is predominantly manual. Academic staff must manually search through various funding portals, or rely on science support centers to review incoming calls and forward them to potentially relevant departments. This manual procedure involves browsing numerous project descriptions and comparing them against the thematic focus of departments, requiring significant effort. Effective matching also depends on a deep understanding of each department's or researcher's publication history to accurately identify expertise aligned with the call. These human-centered limitations make the process not only labor-intensive and time-consuming but also highly subjective and dependent on institutional knowledge, introducing risks such as overlooked opportunities, mismatches in research focus and high degree of repetitiveness. These problems can lead to risks such as proposal resubmissions, which increase the time required to prepare proposals and ultimately result in greater time wastage \cite{herbert2013time}.
To address these issues, this thesis proposes a data-driven approach leveraging Natural Language Processing (NLP) techniques, particularly topic modelling. Topic modelling can uncover latent thematic structures in large text corpora, such as academic publications and funding calls. By aligning the extracted research themes from departmental publications with those described in project calls, it becomes possible to automate and objectify the matching process. This approach not only saves time but also ensures a more consistent and scalable way of assigning calls to the most relevant academic units.
Matching external research funding calls to appropriate university departments poses several technical and organizational challenges. Funding calls are heterogeneous in structure: while some contain detailed descriptions of objectives and priorities, others offer only minimal or abstract information. Their language and formatting may vary across different funding agencies or programs, further complicating parsing and interpretation.
On the other hand, academic publications offer a consistent and reliable representation of a department's or researcher's core expertise. Aggregating publication data enables the construction of thematic profiles for various organizational entities - be it faculties, institutes, chairs, or individual researchers. These profiles can serve as a reference framework for evaluating the relevance of external project calls.
However, existing approaches largely rely on manual review processes that suffer from a lack of objectivity and repeatability. Manual matching is also difficult to scale across large institutions and introduces delays in responding to funding opportunities. There is a clear need for an automated, transparent, and reproducible system that can perform this task efficiently and effectively.
We implement a web crawler capable of automatically retrieving current and upcoming project calls from publicly available funding portals.
We collect and process publication data from the university's internal bibliography to model departmental expertise.
We train a topic modelling algorithm solely on the publication data to uncover thematic structures that represent the research focus of different departments.
We develop an automated matching mechanism that infers topic distributions for project calls and compares them to department profiles to assign relevant calls.
We evaluate the system using historical project calls and a selection of university publications to assess its effectiveness in terms of accuracy and practical applicability.
Through these contributions, this thesis provides a scalable and objective method for research call allocation that reduces manual workload and enhances the alignment between external funding and institutional research priorities.
\section{Requirements}
This chapter outlines the requirements and constraints for the implementation of a publication-driven matching system that assigns research funding calls to academic departments. The system aims to automate a traditionally manual and subjective process by using Natural Language Processing and topic modelling techniques to align funding calls with departmental research interests.
The core functional and non-functional requirements of the system are as follows:
\begin{itemize}
\item \textbf{Web Crawler for Funding Calls:} There must be implemented a web crawler to automatically extract open and forthcoming project calls from the EU Funding \& Tenders Portal. This includes parsing project titles, submission deadlines, topic areas, URLs, and descriptions.
\item \textbf{Publications Data Collection:} The publication data from the university's internal bibliography must be collected and processed for further training. Author names must be mapped to their corresponding departments, which may include faculties, institutes, or chairs.
\item \textbf{Topic modelling on Publications:} An NLP pipeline must be implemented to perform topic modelling on the publication corpus. The model should identify key thematic structures that represent the research expertise of each department.
\item \textbf{Call Matching via Topic Similarity:} The system should infer the topic distribution of incoming project calls and match them to departmental topic profiles using a similarity metric (e.g., cosine similarity).
\item \textbf{Hierarchical Matching Capability:} The system should support matching at multiple organizational levels-from faculty down to individual researchers - based on the available publication data.
\item \textbf{Evaluation Framework:} The system must include a mechanism to evaluate its performance, using historical project calls with known departmental participation as ground truth where available.
\item \textbf{Interpretability:} The system should output interpretable results, including top-matching departments per call and, optionally, associated topic relevance scores.
\end{itemize}
\subsubsection{Constraints}
The development of the system is subject to several constraints, which affect both the design and implementation choices:
\begin{itemize}
\item \textbf{Data Inconsistency:} Funding calls published on the EU Funding Portal may vary significantly in structure and content. Some calls may lack detailed descriptions, making semantic analysis more difficult.
\item \textbf{Incomplete Metadata:} University publications may not include abstracts, which reduces the quality of topic modelling.
\item \textbf{Unlabeled Data:} There is no existing dataset of labeled matches between project calls and departments. As a result, the system must rely on unsupervised learning techniques, limiting the ability to directly optimize for accuracy.
\item \textbf{Affiliation Extraction Accuracy:} Organizational affiliations are inferred from publicly available web content rather than a curated internal registry. Name resolution and staff-page classification are not perfect, so a small share of researchers ($\sim$10\%, cf.\ Section~\ref{sec:researcher_extraction}) remain unlinked or ambiguous; the system tolerates this by targeting coarser organizational levels (chair/institute/faculty) rather than individual-researcher matching.
\item \textbf{Computational Resources:} Topic modelling on large corpora of publication texts can be computationally expensive, especially when applied at scale across an entire university.
\end{itemize}
\section{Approach}\label{approach}
Chairs and institutes are typically the entities that coordinate and submit funding proposals, and their expertise can be understood as the aggregated knowledge of their affiliated researchers. A funding call matching approach should therefore model both individual researchers and organizational entities to reflect how funding applications are actually prepared and managed in academic practice. We refer to the resulting system as \textit{MatchMaker}.
Achieving such a representation depends on accurate mappings between researchers, their publications, and their positions within the organizational hierarchy. However, institutional bibliographies do not always provide reliable and standardized affiliation metadata, making organizational assignments difficult to infer directly from publication records.
To address this limitation, we employ web mining to identify and extract researchers and their organizational affiliations directly from university webpages. We refer to this as the \textit{organization miner}.
We then match the researchers with the publication records of the university to generate an enriched publication dataset with chair, institute, and faculty labels. Ultimately, we use the enriched publications for topic modelling, which produces a ranked recipient list of organizational units prioritized by their relevance to any given funding call. Figure \ref{fig:pipeline} summarizes the overall process. The system takes three primary inputs, marked in grey: \textit{the university starting URL} for discovering the organizational structure, the university \textit{publication records} containing titles and authors but lacking consistent affiliations, and the \textit{funding calls} (title and description) to be distributed. The output of the system include the final ranked inferences. The inferences represent a \textit{sorted list of matched departments} from organization miner (institutes/chairs/faculties) relevant to the input funding call.
\begin{figure*}[!btp]
\centering
\includegraphics[width=0.75\textwidth]{figures/project-matcher/thesis/pipeline_v1.png}
\caption{Overview of the Approach (Inputs in grey, outputs in yellow and system components are marked in blue.).}
\label{fig:pipeline}
\end{figure*}
\subsection{Organization Miner}
The goal of the organization miner is to automatically reconstruct a university's organizational hierarchy from its public webpages, to identify faculties, institutes, and chairs and to provide the corresponding entry points needed for downstream extraction of staff and research information. To handle the heterogeneity of university web presences (different CMSs, layouts, languages, and naming conventions), it combines a rule-based crawler with LLM-based content classification. The miner takes the starting URL of a target university as input and automatically identifies the relevant faculty, institute, and chair webpages needed to instantiate the hierarchy.
A detailed description as well as a systematic evaluation of the organization miner can be found in \cite{arzhybrid}.
\subsection{LLM-based Preprocessing}
The LLM-based preprocessing stage builds on the organizational entity webpages identified in the previous step. First, it classifies the URLs associated with each entity and then extracts researcher profiles for the university's faculties, institutes, and chairs using the web content. In the following, we provide a detailed description of each step.
\subsubsection{URL Classification}
Here, we focus on identifying and labeling the staff or team pages associated with each faculty, chair, and institute. The web presence of each organizational entity within university websites consist of a collection of webpages in different categories. Therefore, an essential first step is to classify their URLs into functional categories such as \textit{staff pages}, \textit{project pages}, or \textit{news pages}. Typical examples of URLs encountered in the university domain include:
\begin{table}[ht]
\scriptsize
\centering
\caption{Examples of URLs and their classified categories.}
\label{tab:url_examples}
\renewcommand{\arraystretch}{1.3}
\begin{tabular}{@{}>{\raggedright\arraybackslash}p{0.83\linewidth} >{\raggedright\arraybackslash}p{0.11\linewidth}@{}}
\toprule
\textbf{URL} & \textbf{Category} \\
\midrule
\texttt{\seqsplit{https://cs.uni-example.edu/ai-chair/team/}} & staff \\
\texttt{\seqsplit{https://cs.uni-example.edu/software-systems/projects/secure-cloud/}} & project \\
\texttt{\seqsplit{https://cs.uni-example.edu/news/2024/new-professor-hired/}} & news \\
\texttt{\seqsplit{https://engineering.uni-example.edu/robotics-group/people/}} & staff \\
\texttt{\seqsplit{https://math.uni-example.edu/institute/research/optimization/}} & research \\
\bottomrule
\end{tabular}
\end{table}
This classification is feasible because university websites often encode semantic cues directly in URL paths. Directory names (e.g., \texttt{/team/}, \texttt{/people/}), research-related segments (e.g., \texttt{/projects/}, \texttt{/research/}), and communication prefixes (e.g., \texttt{/news/}) can serve as strong indicators of a page's function. Large language models are well suited to this setting because they capture common URL conventions and website patterns from pretraining \cite{10350067}. We therefore formulate URL categorization as a zero-shot prompting task, enabling classification based solely on the URL string (i.e., without fetching page content).
When applying this to 10,522 webpages of the computer science faculty of our university, the method achieves an F1 score of 97\%.
\label{zeroshot}
\begin{Verbatim}[fontsize=\scriptsize]
You are an expert in categorizing university website URLs.
Given the URL below, classify it into one of the following
categories:
- "staff page": lists people, team members, researchers, or administrative staff
- "project page": describes research projects, research areas, or project groups
- "news page": contains news articles, announcements, or event postings
### Respond only with the category name.
URL: {{URL}}
\end{Verbatim}
\subsubsection{Researcher Extraction}
\label{sec:researcher_extraction}
After identifying staff webpages, we extract researcher profiles from their content. We first isolate the main body text and remove layout and boilerplate elements such as navigation menus, footers, sidebars, and icons \cite{barbaresi-2021-trafilatura}. The remaining text typically contains recurring patterns found on university staff pages, including researcher names (often with academic titles), roles or affiliations, and contact details such as email addresses and phone numbers. We target the following fields: \textit{name}, \textit{academic title}, \textit{email address}, and \textit{phone number}.
Given this structure, we use a few-shot prompting strategy: the model is provided with a small set of examples that specify the desired fields, enabling prompt-based named entity recognition (NER) for profile extraction. The following exhibits a few-shot prompt that generates structured JSON for each found researcher profile based on the aforementioned attributes.
\label{few_shot}
\begin{Verbatim}[fontsize=\scriptsize]
Extract all researchers mentioned in the text.
For each researcher, return the following fields if present: - name - title - email - phone
###Use the following format for each researcher:
{Name: ..., Title: ..., Email: ..., Phone: ...}
### Examples
Prof. Dr. Jane Doe, Email: jane.doe@uni-example.edu, Phone: 024180-98765
David Goliath, Email: d.Goliath@k-domain-uni.de, Phone: 09920180235
...
### Now process the following input and generate a JSON output:
{{EXTRACTED_TEXT}}
\end{Verbatim}
Finally, we resolve name variants and deduplicate researcher entries given the JSON outputs in post-processing, since the same person may appear with or without titles (e.g., "Prof. Dr. Anna Keller" vs. "Anna Keller") or with minor formatting differences. We prompt the LLM to consider each JSON record and to emit a stable identifier, preferably the email address, otherwise a normalized name key (lowercased, diacritics removed, titles stripped). We then apply a second LLM pass only to likely duplicate candidates (same identifiers) to decide "same person" vs. "different person" using name and email address as main attributes. In an internal evaluation covering staff pages from all chairs in our university's Faculty of Computer Science, this approach achieved an F1 score above 90\% for researcher extraction; the remaining $\sim 10\%$ of missed/ambiguous cases has limited impact on downstream results because our call-matching evaluation targets higher organizational levels (chair/institute/faculty) rather than researcher-level matching.
This concludes the LLM-based preprocessing which delivers a list of researchers with the corresponding organizational affiliation. We store the discovered researchers and their metadata in an index for retrieval queries.
\subsection{Enriching the Publications with Organizational Data}
To support topic modeling on the publication corpus while preserving organizational context, we ingest the university's publication records and link each publication's author-name field to the corresponding researcher entity produced by the LLM-based preprocessing step. This association allows each publication to inherit the researcher's chair, institute, and faculty metadata.
We implement author-researcher linking using a full‑text retrieval setup over the stored researcher index. For each publication, we issue a full‑text query built from the author string (typically given name and surname) against this index. The index scores candidates using TF‑IDF/BM25 \cite{ghawi2019efficient} term weighting, so exact and rare name tokens contribute more strongly than frequent ones, and we take the top‑ranked hit(s) as potential matches. In ambiguity cases such as missing given names, initials-only authors ("M. Müller"), and common surnames that map to multiple researchers and organizational entities, we leave the author occurrence unlinked rather than attaching a potentially incorrect chair/institute/faculty label.
This step generates a multi-level enriched publication dataset where each publication record is linked to their corresponding faculty, institute/chair based on their linked authors.
\subsection{Dataset}
\label{sec:dataset}
We ground the approach in two concrete data sources: the funding calls to be distributed, and the publication corpus used to profile organizational expertise.
\subsubsection{Funding Calls}
\label{sec:funding_calls}
A \textbf{funding call} is an official invitation issued by a funding agency - such as the European Commission - for researchers, institutions, or organizations to submit project proposals for financial support. These calls are typically aligned with strategic research and innovation priorities and are designed to stimulate progress in specific scientific or societal domains. They are especially important for universities, as they provide essential financial resources to support academic research, attract top talent, build institutional capacity, and enhance the university's visibility and impact within the global research community.
Funding calls published on the EU Funding \& Tenders Portal~\cite{eufundingtenders2025} typically include key metadata such as the call title, topic identifier, status (e.g., open, closed, forthcoming), opening and closing dates, a brief description of the call's scope, and a link to a dedicated webpage with further information. For this case study, we consider data as of 22 July 2025, focusing exclusively on the Horizon Europe and Horizon 2020 Framework Programmes. At that time, a total of \textbf{6,822 EU calls} had been listed, of which \textbf{6,765} were closed, \textbf{57} were forthcoming, and none were open.
Figure~\ref{fig:call_example} shows an example of a call as displayed on the portal. While the structure is mostly consistent, it may vary slightly depending on the funding program.
\begin{figure}[h]
\centering
\includegraphics[scale=0.35]{figures/project-matcher/thesis/call.png}
\caption{Example of a funding call from the EU Funding \& Tenders Portal}
\label{fig:call_example}
\end{figure}
\subsubsection{University Publications}
\label{subsec:uni_pubs}
\label{sec:pub_data}
For this study, publication data from the \textbf{University of Duisburg-Essen} was selected to provide a comprehensive overview of the university's scholarly output. The university comprises \textbf{12 faculties} and approximately \textbf{500 chairs, institutes, and working groups}. Its internal bibliography records a total of \textbf{155,146 publications} \cite{uniduisburgessenbibliography} authored by a diverse community of researchers, including \textbf{512 professors} and \textbf{4,172 scientific employees} \cite{uniduisburgessenfacts2025}, and covers the years 2000 to 2024 in both German and English.
Each entry (Figure~\ref{fig:pub_example}) contains metadata such as the publication title, research area, authors, departmental affiliations (e.g., faculties, institutes, chairs), and abstracts; affiliation information and abstracts are, however, often \textit{incomplete}, which is exactly the gap the organization miner and the researcher-extraction step above close.
\begin{figure}[h]
\centering
\includegraphics[scale=0.35]{figures/project-matcher/thesis/pub.png}
\caption{Example of a publication item from the university's internal bibliography}
\label{fig:pub_example}
\end{figure}
\subsection{Call Crawler}
While the organization miner provides the university side of the matching, the call crawler acquires the funding calls to be distributed, which constitutes the other required input. The crawler periodically retrieves open and forthcoming calls, together with their title and description, from public funding portals. In our setting, calls are collected from the EU Funding \& Tenders Portal through the CORDIS REST API, focusing on the Horizon 2020 and Horizon Europe programmes. Each retrieved call is normalized into a title-description pair, indexed alongside the enriched publications for retrieval, and subsequently passed to the topic modelling and inference stage, where it is matched against the organizational units. The crawler is source-agnostic, so further portals or institutional call databases can be integrated without changes to the downstream matching.
\subsection{Topic Modelling and Inference}
\label{sec:topic_modelling}
Once we have gathered the enriched publication dataset and the funding calls, the final step is to identify which faculties, institutes, chairs, or individual researchers are most relevant for each call. We apply semantic topic modelling with BERTopic \cite{grootendorst2022bertopic}, which represents each publication title as a dense embedding using a pretrained multilingual Sentence-BERT model \cite{reimers-2019-sentence-bert}, optionally reduces its dimensionality with UMAP \cite{mcinnes2020umapuniformmanifoldapproximation}, and groups the resulting embeddings into topics that are labeled with class-based TF-IDF (c-TF-IDF) keywords. We compare three ways of assigning topics to publications: two unsupervised clustering strategies, HDBSCAN \cite{HDBSCAN2025} and K-Means \cite{K-means}, which discover topics without any departmental labels, and a supervised Random Forest classifier, trained on historical publication-department mappings, which predicts a department-aligned topic directly. Aggregating publication-level topic distributions per chair, institute, or faculty yields a topic profile for each organizational unit.
We represent each funding call in the same topic space by feeding its title and description into the trained model. Since call text tends to be dominated by broad, policy-oriented phrasing, we additionally use an LLM to extract a small set of focused keywords that better surface the underlying research theme before embedding. For the unsupervised variants, the call is assigned to its most probable topic(s) and ranked against organizational units by the cosine similarity between the call embedding and the embeddings of publications within that topic; for the supervised variant, the Random Forest classifier predicts department probabilities directly from the call embedding, which are used as the ranking score.
The output of this inference stage is, for each funding call, a ranked list of the most relevant researchers and/or organizational units that should be considered as potential recipients. In deployment, this ranked list is automatically compiled and sent by email to the RSO experts, who review the recommendations before distributing the call. Section~\ref{model_training} details the BERTopic pipeline and the three assignment strategies, and Section~\ref{subsec:scoring_ranking} gives the concrete ranking procedures, as implemented and evaluated in Chapter~\ref{chapter:eval_knowledge_clusters}.
\section{Implementation}\label{implementation}
The Approach section above describes the current, organization-miner-based pipeline (Figure~\ref{fig:pipeline}). This section documents the concrete implementation that was built and evaluated (Chapter~\ref{chapter:eval_knowledge_clusters}); its affiliation-linking step instead relied on the university's internal personnel database, which the organization miner has since generalized away. Figure~\ref{fig:pipeline_implementation} illustrates this implementation pipeline, specifying the technologies, models, and data structures used in practice: Selenium for data collection, Elasticsearch indices for storage and retrieval, and Random Forest, K-Means, and HDBSCAN for modelling, with cosine similarity applied in the unsupervised branch to rank publications and retrieve departments.
\begin{figure}[h]
\centering
\includegraphics[width=0.80\textwidth]{figures/project-matcher/thesis/pipe_implementation.png}
\caption{More detailed overview of the publication-driven matching system pipeline with implementation details}
\label{fig:pipeline_implementation}
\end{figure}
The implementation is organized into three parts: data acquisition (Section~\ref{web_crawling}), topic-model training (Section~\ref{model_training}), and department retrieval (Section~\ref{subsec:scoring_ranking}).
\subsection{Acquisition of Publications and Funding Calls}\label{web_crawling}
\subsubsection{Web Crawling of Publications and Funding Calls}
To handle the dynamic and interactive nature of the EU Funding \& Tenders Portal and the university bibliography, two crawlers were implemented using \texttt{Selenium} \cite{selenium2025python} Python library, a browser automation framework capable of rendering JavaScript content and simulating user interactions. Both crawlers operate as follows:
A headless browser instance (e.g., ChromeDriver) is launched to minimize resource usage.
Then, the crawler accesses the funding call or university publication listing pages, iteratively navigating through pagination controls to retrieve all available entries.
For each entity, Selenium locates relevant HTML elements using XPath and CSS selectors to extract metadata fields such as call title and topic ID for funding calls, and title and department for publications. This approach enables targeted content crawling of portals that make extensive use of JavaScript and dynamic content loading.
\subsubsection{Data Storage with Elasticsearch}
The extracted metadata is stored in an \texttt{Elasticsearch}~\cite{elastic2025elasticsearch} cluster, a distributed search and analytics engine optimized for fast retrieval and full-text search capabilities. Each funding call and publication is indexed as a JSON document, with fields corresponding to metadata attributes, enabling efficient querying and aggregation; Elasticsearch's distributed architecture allows scaling to accommodate increasing volumes of calls and publications, and indexed data can be searched and filtered using Elasticsearch's query DSL, enabling both full-text search and precise structured queries.
\textit{Note: Once the publications data was retrieved and indexed, it was parsed into a \texttt{pandas}\cite{pandas_2025} DataFrame for further processing.}
\subsubsection{Departments Completion}
In the evaluated system, incomplete affiliation data (briefly noted in Section~\ref{subsec:uni_pubs}) was addressed by crawling the university's personnel database (LSF) rather than by the organization miner described above. Author-specific identifiers (LSF ID) were extracted from publications lacking department mappings (Figure~\ref{fig:pub_empty}); Selenium then navigated to the corresponding researcher profile pages and extracted departmental or group affiliation information from the relevant HTML elements, which was integrated back into the publication dataset. First, the list of unique LSF IDs missing department data is retrieved from the publications database; next, the corresponding profile-page URLs are constructed and loaded; finally, the publication dataset is updated with the newly retrieved affiliation information for the corresponding records.
A typical staff record (Figure~\ref{fig:lsf_person}) includes a university ID (LSF ID), personal and contact information, functions, and department affiliations. However, this information is linked to the author's most recent affiliation rather than to the affiliation at the time of a given publication, which can introduce a temporal bias in the department assignment. Because it is tied to the author, not the publication, the affiliation chairs recorded this way may also refer not only to actual chair positions but also to broader units such as working groups or, in some cases, entire institutes.
\begin{figure}[h]
\centering
\includegraphics[scale=0.32]{figures/project-matcher/thesis/pub_empt2.png}
\caption{Example of a publication with missing abstract and department data}
\label{fig:pub_empty}
\end{figure}
\begin{figure}[h]
\centering
\includegraphics[scale=0.35]{figures/project-matcher/thesis/lsf_person.png}
\caption{Example of a person from the LSF Database}
\label{fig:lsf_person}
\end{figure}
\subsection{Topic Modelling of Publications}\label{model_training}
BERTopic~\cite{grootendorst2022bertopic} was selected as the primary framework for topic modelling. This section outlines the experimental setup, including the rationale for selecting BERTopic (Section~\ref{subsec:why_bertopic_not_lda}), the BERTopic pipeline and its internal structure (Section~\ref{subsec:bertopic_pipeline}), and the clustering and assignment strategies (Section~\ref{subsec:clustering_strategies}).
\subsubsection{Why BERTopic Rather Than Traditional Approaches (LDA)}
\label{subsec:why_bertopic_not_lda}
\paragraph{Short texts and multilingual data.}
LDA~\cite{blei2003latent} operates on discrete token counts and relies on word co-occurrence patterns across documents. For short texts (titles) and multilingual corpora, co-occurrence information becomes sparse, often resulting in less coherent topics unless extensive preprocessing is applied. Transformer-based embeddings, as used in BERTopic, capture semantic similarity beyond lexical overlap, improving clustering quality and topic coherence.
\subsubsection{BERTopic Pipeline and Internal Structure}
\label{subsec:bertopic_pipeline}
BERTopic \cite{grootendorst2022bertopic} treats topic modelling as a problem of clustering and representation. The process begins by \textit{generating document embeddings from the inputs using a pre-trained language model}, with an optional step to \textit{reduce the dimensionality} of these embeddings. These embeddings are then clustered through clustering algorithms, or topics are assigned through a supervised classifier. Finally, \textit{interpretable topic descriptors are extracted} using a class-based TF-IDF (c-TF-IDF) procedure.
The technologies employed for each part of the pipeline are described below and shown in Figure~\ref{fig:bertopic_structure}:
\begin{figure}
\centering
\includegraphics[scale=0.6]{figures/project-matcher/thesis/BERTopic_pipe.png}
\caption{Parallel BERTopic pipelines: unsupervised clustering and supervised topic assignment.}
\label{fig:bertopic_structure}
\end{figure}
Transformer-based \textbf{Sentence-BERT embeddings}~\cite{reimers-2019-sentence-bert} were employed to generate dense semantic representations using the \textit{SentenceTransformers} library. Specifically, the pretrained \texttt{paraphrase-multilingual-mpnet-base-v2} model was utilized, which encodes input text - such as titles or keywords - into 768-dimensional vector embeddings. This model offers a strong balance between semantic accuracy and computational efficiency, while its multilingual capabilities make it well-suited for handling diverse, cross-lingual datasets.
To optimize the embedding space for clustering, \textbf{dimensionality reduction} is optionally applied using \texttt{UMAP}~\cite{mcinnes2020umapuniformmanifoldapproximation}. UMAP preserves both local and global structures, enhancing the quality of downstream topic modelling. This reduction step is integrated by default in the BERTopic framework.
On the reduced embeddings, \textbf{unsupervised clustering} (HDBSCAN, K-Means) or \textbf{supervised assignment} (Random Forest) strategies are applied, which are discussed in detail in Section~\ref{subsec:clustering_strategies}.
After the embeddings are clustered, \textbf{topic representation} is achieved through \textit{class-based TF-IDF} (c-TF-IDF), which relies on a \texttt{CountVectorizer} to convert clustered documents into token counts. Combined with the \texttt{KeyBERTInspired} model, this method extracts semantically relevant keywords for each cluster, ensuring that the topics are represented by labels that reflect the core meaning of the grouped texts~\cite{grootendorst2022bertopic}.
\subsubsection{Clustering and Assignment Strategies}
\label{subsec:clustering_strategies}
Three parallel BERTopic pipelines were implemented to assign topics to publications, reflecting both \textbf{unsupervised} and \textbf{supervised} approaches:
\textbf{HDBSCAN (unsupervised, density-based):}
\textbf{HDBSCAN} \cite{HDBSCAN2025} automatically determines the number of clusters, handles varying density, and identifies outliers. It is particularly suitable for exploratory topic discovery when no labels are available. Publications are grouped into semantically coherent clusters, and representative keywords are extracted to provide insight into the thematic structure of the corpus. This approach allows identification of latent topics without prior knowledge of the departmental structure.
\textbf{K-Means (unsupervised, centroid-based):}
\textbf{K-Means} \cite{K-means} enforces a fixed number of clusters, which allows for consistent comparison across models with the same topic count. It is computationally efficient and works well when clusters are roughly spherical. Each publication is assigned to the nearest centroid in the embedding space, providing an alternative unsupervised perspective on topic organization.
\textbf{Random Forest (classifier-based):}
The supervised pipeline leverages historical publication–department mappings to assign publications to \textbf{predefined topics corresponding to departments}. A \textbf{Random Forest classifier} is trained on embeddings derived from publication text to predict these topic labels directly. This approach maintains semantic coherence while providing supervised predictions aligned with known departmental categories, complementing the unsupervised pipelines.
This design enables a comparison between unsupervised topic discovery and supervised topic assignment. The supervised pipeline uses labeled data to predict department relevance while still preserving the topic-informed structure of the publications.
\subsection{Departments Retrieval for Funding Calls}
\label{subsec:scoring_ranking}
Once topics are assigned to each funding call, department relevance is determined using two parallel approaches.
For \textbf{unsupervised} pipelines based on \textbf{clustering} (HDBSCAN, K-Means), \textbf{cosine similarity}~\cite{scikit_learn_cosine_similarity_2025} between the call and the publications within the assigned topics is computed. Departments are then aggregated and ranked based on this similarity results. In the \textbf{supervised} Random Forest pipeline, department probabilities are \textbf{predicted directly} from the funding call embeddings using the trained classifier, which produces a ranking of the most relevant departments.
\subsubsection{Unsupervised Pipeline (HDBSCAN, K-Means)}
The following procedure is used in the unsupervised pipelines for topic modelling. Initially, each call is mapped to one or more topics using BERTopic's \texttt{transform()} for hard assignment or \texttt{approximate\_distribution()} for soft assignment. In this process, only the most relevant topics per call are retained. The code for this is as follows:
\begin{verbatim}
# Hard assignment
topics, probs = topic_model.transform(call_representation)
# Soft assignment
topic_distr, _ = topic_model.approximate_distribution(call_representation)
\end{verbatim}
Once the topics are assigned, the next step is to retrieve candidate publications related to each retained topic. This is achieved by accessing BERTopic's document information, iterating through the topics, and selecting the relevant documents for each one. The relevant code snippet is:
\begin{verbatim}
for topic_id in topics:
document_info = topic_model.get_document_info(train_inputs, df=df)
topic_docs = document_info.loc[document_info['Topic'] == topic_id]
\end{verbatim}
After the candidate publications are retrieved, the semantic similarity between the call embedding and each publication embedding is computed using \textbf{cosine similarity}. This allows for a measure of how closely related each publication is to the original call.
Finally, the publications are ranked based on their similarity scores, and the associated departments are aggregated. This aggregation results in a \textit{top $k$} list of unique departments, reflecting those most relevant to the given call.
\subsubsection{Supervised Pipeline (Random Forest)}
As said before, in the supervised BERTopic pipeline, departmental assignments for funding calls are determined directly from their semantic embeddings using a trained Random Forest classifier.
The procedure begins with encoding, where the funding call's textual representation is transformed into a dense embedding using the same multilingual SentenceTransformer model as in the unsupervised pipelines:
\begin{verbatim}
# encode call
call_embeddings = embedding_model.encode(call_representation,
convert_to_numpy=True)
\end{verbatim}
Once the embedding is obtained, it is passed to the trained Random Forest classifier. This classifier outputs a probability score for each possible department, indicating how likely each department is to be the correct match for the funding call:
\begin{verbatim}
# predict probabilities
probs = classifier.predict_proba(call_embeddings)
class_labels = classifier.classes_
\end{verbatim}
The next step involves ranking the department–probability pairs in descending order. From this ranked list, the \textit{top $k$} departments with non-zero probability are returned as the predicted matches for the funding call:
\begin{verbatim}
# rank and select top predictions
class_probs = list(zip(class_labels, probs))
class_probs.sort(key=lambda x: x[1], reverse=True)
top_preds = []
for label, prob in class_probs:
if prob > 0:
top_preds.append((id_to_ent[label], prob))
return top_preds[:top_k]
\end{verbatim}