Hongyi Luo: Information Extraction and Design of An Assisted QA system in Motor Design

Student: Hongyi Luo
Thesis: Information Extraction and Design of An Assisted QA system in Motor Design
University: KTH, School of Electrical Engineering and Computer Science (EECS)
Year: 2022
Now at: Huawei, Munich

Links

About the thesis

Published title: Information Extraction and Design of an Assisted QA System in Motor Design
Programme: ICT Innovation (Data Science), KTH (30 credits), 2022
Supervisor: Ian Marsh (RISE) · Examiner: Aristides Gionis (KTH)
Partner: Linz Center of Mechatronics (LCM), Austria

Designing an electric motor has traditionally depended on experienced engineers choosing each component by hand: stator topology, winding, magnets, rotor. Junior engineers learn by reading manuals and by asking senior colleagues. LCM's SyMSpace platform aims to make this more systematic, with a library of components, simulation and multi-parameter optimisation in one place.

SyMSpace overview
SyMSpace: component space, tool space, web interface, computing resources and storage around a central model configurator.

This thesis asked how natural language processing (NLP) could help, in three steps: learn from how engineers use the platform, summarise the design manuals for training, and build a question-answering (QA) assistant to support engineers while they design.

Method

1. Usage analysis. Each SyMSpace project is summarised in a Mobfile, a JSON description of the project and the components it uses. Analysing these showed which components are used most and which tend to appear together. Some, such as steel stacking, appear in over 90% of projects.

The 20 most frequently used SyMSpace components
The twenty most used components across SyMSpace projects.

2. Text summarisation. Two approaches were tried on LCM's motor-design manual:

  • Extractive: TextRank picks the most central sentences and keeps them unchanged.
  • Abstractive: PEGASUS, a Transformer model pre-trained by masking whole "gap sentences" and learning to regenerate them, writes new summary sentences.

3. Question answering. A pre-trained RoBERTa-base model fine-tuned on SQuAD 2.0 answered questions about passages of the manual. Questions were designed to test rephrasing, literal interpretation such as abbreviations, limited inference, generalisation, and extraction of numbers. For example, asked "What will limit the available rotor topologies?", the model answered "magnet material, bore diameter and number of poles" (confidence 0.79). Asked "How much are rare-earth magnets?", it answered "50 euro/kg".

Evaluation. Standard machine scores (ROUGE, BERTScore) suit news articles with lots of redundancy. Motor-design text is dense, precise and short, with little that can be cut. So the thesis evaluated the outputs with LCM's engineers, the intended users, against four criteria: correctness (no contradiction of facts or physics), consistency, readability and brevity.

Results

  • Extractive summaries failed for this domain. Deleting sentences breaks the logical chain of a technical text, and keeping enough sentences to preserve the information leaves a summary nearly as long as the original. They may still help where several engineers write overlapping reports on the same problem.
  • Abstractive summaries (PEGASUS) were shorter and more general, and generally captured the core numbers and facts, though they can lose details and occasionally copy the source.
  • The QA system gave logical answers to most questions, including numbers and specific facts, but struggled with yes/no questions (low confidence) and could not explain why an answer was right, a risk of misleading users.
  • Overall, expert feedback was positive: both directions are worth pursuing despite the problems of explanation, possible misleading answers and lost detail.

Conclusions and future work

The thesis closes with lessons on data (domain text is small and dense), preprocessing, models and evaluation, and proposes a prototype process for an assistant inside SyMSpace. Future work includes models that keep technical detail while abbreviating, better QA through causal inference, and a working prototype tested in real design sessions.

Since 2022, large language models with retrieval over company documents (retrieval-augmented generation) have made this kind of design assistant far more capable. The thesis's points about domain-specific evaluation, faithfulness to physics and explainability apply to them directly.

Thesis

Full text (DiVA)

Original entry

Hongyi Luo, Information Extraction and Design of An Assisted QA system in Motor Design, KTH, 2022, now at Huawei, Munich, thesis page.

Project

BibTeX

@mastersthesis{Luo1640895,
  author   = {Luo, Hongyi},
  title    = {Information Extraction and Design of An Assisted QA system in Motor Design},
  school   = {KTH, School of Electrical Engineering and Computer Science (EECS)},
  series   = {TRITA-EECS-EX},
  number   = {2022:20},
  pages    = {63},
  year     = {2022},
  url      = {http://www.diva-portal.org/smash/record.jsf?pid=diva2:1640895},
  keywords = {Motor Design, PEGASUS, Question and Answer System, Text Summarization, Natural Language Processing, Deep Learning, Motorkonstruktion, fråge- och svarssystem, sammanfattning av text, behandling av naturligt språk, djupinlärning}
}

Source: DiVA record diva2:1640895

More in Masters theses: ← Remo Scolati (2023)  |  Pei-Lun Hsu (2021) →

← All supervised theses