<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>International Journal of Human</journal-title>
      </journal-title-group>
      <issn pub-type="ppub">1613-0073</issn>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.1109/KSE.2016.7758045</article-id>
      <title-group>
        <article-title>Thermodynamics with Ontologies and Knowledge Graphs</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Luisa Vollmer</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Rébecca Loubet</string-name>
          <email>loubet@rptu.de</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Fabian Jirasek</string-name>
          <email>jirasek@rptu.de</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sophie Fellenz</string-name>
          <email>fellenz@cs.uni-kl.de</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Hans Hasse</string-name>
          <email>hasse@rptu.de</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Heike Leitte</string-name>
          <email>leitte@cs.uni-kl.de</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Visual Information Analysis Research Group (VIA)</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>RPTU Kaiserslautern</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Kaiserslautern</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Germany</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Knowledge Graphs</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ontology-Based Reasoning</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Explainable AI</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Symbolic Computation</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Thermodynamic Problem</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Solving</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Physics Education</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Intelligent Tutoring Systems</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Mathematical Reasoning</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Knowledge-aware AI</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Workshop</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Laboratory of Engineering Thermodynamics (LTD), RPTU Kaiserslautern</institution>
          ,
          <addr-line>67663 Kaiserslautern</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Machine Learning Research Group (ML), RPTU Kaiserslautern</institution>
          ,
          <addr-line>67663 Kaiserslautern</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2016</year>
      </pub-date>
      <volume>75</volume>
      <fpage>150</fpage>
      <lpage>155</lpage>
      <abstract>
        <p>Solving physics problems, particularly in thermodynamics, often requires navigating complex reasoning processes and selecting appropriate equations, making transparency and interpretability essential for ensuring correct solutions and clear explanations. This paper explores how domain-specific ontologies and knowledge graphs can address these challenges in the context of eXplainable AI (XAI). We introduce an ontology of thermodynamics that encodes essential concepts, attributes, and equations, forming the basis for a dynamic and transparent reasoning process. Based on the ontology and problem-specific user input, a knowledge graph is dynamically constructed which captures the dependencies between concepts and equations, enabling flexible problem-solving across diverse thermodynamic scenarios. The subsequent two-step reasoning process-first identifying computable variables through reachability analysis, and second, filtering the graph to obtain a solution-ensures that the problem-solving steps are traceable and verifiable. The resulting pruned reasoning graph not only holds the computed values, but also provides an interpretable, human-understandable path to the solution. By representing the solution process in a directed acyclic graph, we enable visualization that aids in understanding the model's decision-making and its underlying logic. Experimental results show that the proposed system, KnowTD, eficiently handles important classes of thermodynamic problems, providing accurate and interpretable solutions.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>CEUR</p>
      <p>ceur-ws.org</p>
      <p>Such an approach should not only compute solutions accurately but also provide transparent, traceable
explanations, a core requirement for explainable AI (XAI) in scientific applications.</p>
      <p>In response to these challenges, we present KnowTD, a knowledge-driven problem-solving system
that leverages ontologies and knowledge graphs (KGs) to solve thermodynamic problems in a flexible,
explainable, and traceable manner. At its core, KnowTD employs a newly developed ontology of
thermodynamics that encodes key concepts, relationships, and equations. This ontology allows KnowTD
to construct a problem-specific KG from structured, manually provided user input, representing a given
problem in a thermodynamically valid and machine-interpretable way. A key feature of KnowTD is its
ability to extract a structured reasoning graph from the instantiated KG. This directed graph encodes
the logical flow of computations, linking input variables, applied equations, and computed variables.
Unlike traditional tools that rely on predefined models or manually specified equations, KnowTD
provides a transparent, step-by-step explanation of the solution. By formalizing domain knowledge
in a machine-readable format and integrating symbolic reasoning, KnowTD enhances both accuracy
and interpretability, making it a robust framework for thermodynamic problem-solving and advancing
explainable AI in scientific domains. Our main contributions can be summarized as follows:
• Ontology-Driven Problem Solving and Dynamic Knowledge Graph Construction: We
present an ontology of thermodynamics that formalizes key concepts, equations, and relationships,
allowing the dynamic construction of a knowledge graph for solving thermodynamic problems.
• Automated and Verifiable Reasoning : KnowTD extracts a structured reasoning graph from
the knowledge graph, ofering step-by-step, explainable solutions.
• Generalizable and Adaptive Framework: KnowTD adapts to a broad range of thermodynamic
problems, demonstrating how a flexible knowledge graph framework can support various problem
types in scientific and engineering contexts.
• Advancing XAI in Scientific Problem-Solving : KnowTD demonstrates how combining
structured symbolic reasoning with machine-readable knowledge enhances XAI. By leveraging
knowledge graphs, it enables dynamic problem-solving while ensuring correctness and transparency in
scientific reasoning.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Preliminaries</title>
      <p>Thermodynamics is a fundamental discipline in science and engineering. It encompasses some of the
most fundamental physical laws and concepts (including energy and entropy), and it is therefore applied
in a very wide range of domains, from biology to astronomy. Despite its theoretical foundations being
well-established, solving thermodynamic problems often requires expert knowledge to correctly identify
relevant concepts, select appropriate equations, and ensure the solution aligns with physical constraints.
This complexity makes thermodynamic problem-solving a challenging task for automated systems,
especially those seeking to provide transparent and explainable solutions.</p>
      <p>Thermodynamics Fundamentals At the core of thermodynamic analysis is the concept of a
thermodynamic system (or short system), which serves as the fundamental framework for describing energy
transformations and interactions. A system is defined as the part of the universe under study, separated
from its surroundings by a boundary. Systems are characterized by state variables such as temperature,
pressure, volume, and internal energy. A system’s behavior is often analyzed by comparing its initial
state and final state after undergoing a thermodynamic process of diferent nature, e.g. isothermal
(constant temperature) or adiabatic (no heat exchange).</p>
      <p>Thermodynamic Problems Reasoning about such systems is framed in terms of thermodynamic
problems, often presented as word problems. These problems provide known values (e.g., initial
temperature or volume), unknowns to be calculated, and governing conditions such as the information
on the process (e.g. adiabatic, isobaric). A simple example from an introductory thermodynamics course
is given in Problem 1.</p>
      <p>Problem 1
kilogram of gas? The gas is ideal with  = 287</p>
      <p>and   = 1010   .</p>
      <p>A gas in a cylinder is compressed reversibly from  1 = 0.05 m3/kg to  2 = 0.02 m3/kg. The
initial temperature is  1 = 298 K. The process is adiabatic. What is the work supplied per
Such problems require both identifying the relevant knowledge embedded in the description and
deriving the correct solution strategy.</p>
      <sec id="sec-2-1">
        <title>Thermodynamic Problem Solving</title>
        <p>The first step in solving thermodynamic problems is to extract
structured knowledge from natural language text. This involves identifying key concepts such as the
system, its states, applicable conditions, and given variable values. Representing this information in
a structured format enables automated reasoning in subsequent steps. Once the data is structured,
thermodynamic principles are applied to identify appropriate equations for calculating unknown
variables. Guided by the system type and identified state variables, this process involves selecting
relevant equations such as the First Law of Thermodynamics for energy conservation or the Equation of
State for relating state variables. The resulting system of nonlinear equations can then be solved using
modern numerical solvers.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Related Work</title>
      <p>
        The integration of knowledge graphs (KGs) and symbolic reasoning with AI has been shown to
significantly enhance the interpretability and transparency of machine learning models [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. While KGs have
been successfully employed in various domains to support XAI, the application of such approaches
to complex technical fields like thermodynamics remains limited. Thermodynamic problem
solving requires not only domain-specific knowledge, but also the ability to reason mathematically and
semantically in a coherent manner. In this section, we explore existing work in the respective fields.
Providing knowledge for XAI Integrating KG with machine learning enhances AI transparency and
interpretability [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. While machine learning excels at extracting entities, features, and relationships, KGs
provide structured, semantic representations that support reasoning and explanation [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Unlike
datadriven XAI, which derives explanations from data and model behavior, knowledge-based XAI leverages
external domain knowledge and symbolic rules to improve explanations and user understanding [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
This knowledge can be integrated through human-in-the-loop methods or curated corpora.
Taskspecific KGs are widely applied: common sense KGs aid in classification, recommendation, and image
recognition; factual KGs support prediction tasks; and domain-specific KGs enhance rule-based systems
and natural language understanding [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>
        KGs and ontologies also explain complex processes by describing phenomena, their influences, and
potential efects. Jihen et al. [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] combine a plant disease ontology with concept explainability methods
to clarify deep learning decisions. Mäkelburg et al. [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] model invoice terminology in an ontology,
representing invoices as KGs and using SHACL constraints for data validation, reducing manual efort
while ensuring correctness. Violations of these constraints provide interpretable explanations for
validation issues. Tailhardat et al. [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] introduce an ontology for modeling infrastructure, events, and
diagnostics in ICT systems, helping to detect anomalies and analyze root causes.
      </p>
      <sec id="sec-3-1">
        <title>Ontology-based problem solving</title>
        <p>
          The Ontology Rela-Model [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ] is a knowledge model for
integrating knowledge-based systems using ontologies as the knowledge kernel. It enables reasoning
across multiple domains, such as linear algebra and graph theory, producing explainable solutions in
educational applications. Building on this foundation, the Rela-Funcs Model [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ] extends the approach
by incorporating functional knowledge. MathGraph [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ] focuses on analytical problems, while other
systems address discrete and geometric problems [
          <xref ref-type="bibr" rid="ref12 ref15">12, 15, 16</xref>
          ], with geometric solutions represented
graphically [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ]. This integration generates explainable solutions, tracking which knowledge was used
and how it contributed to the final solution, mirroring human problem-solving and enhancing
transparency [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ]. Existing ontologies, such as EngMath [17] and PhysSys2 [18], formalize mathematical
and engineering concepts, but do not address general thermodynamic problem solving, leaving a gap
for an ontology-based solution.
        </p>
        <p>
          Using LLMs for problem-solving LLMs like ChatGPT and Google Bard have been studied for
mathematical use cases [
          <xref ref-type="bibr" rid="ref3 ref4">4, 3, 19</xref>
          ]. Wardat et al. [19] find that ChatGPT struggles with geometry and
complex problems. Plevris et al. [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] show mixed results and note AI hallucinations, stressing the
need for more reliable responses. Frieder et al. [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ] conclude that ChatGPT and GPT-4 are good for
querying facts but fail with graduate-level math problems. Venkatasubramanian [20] critique LLMs’
limitations in understanding and reasoning, suggesting integrating geometric and algebraic knowledge
for better AI capabilities. In previous work, we examined the thermodynamic problem-solving skills of
state-of-the-art LLMs [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] and could confirm the general weakpoints of LLMs also for thermodynamics.
In addition we found that newer models are gaining more reasoning abilities but still fail to apply
thermodynamic laws reliably.
        </p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Methods</title>
      <p>In the following, we present the design and methodological innovations of our knowledge-driven
problem-solving system, KnowTD, which leverages a novel ontology and dynamic KGs (section 4.1) to
solve thermodynamic problems in a transparent and explainable manner. KnowTD follows a four-step
process, as illustrated in Fig. 1. The first step, problem specification (section 4.2), ensures the
userdefined problem aligns with the ontology. Based on this input, KnowTD constructs a KG that contains
relevant instances of concepts, attributes, variables, equations, and rules (section 4.2). This graph serves
as the foundation for the system’s reasoning process, ensuring KnowTD can dynamically adapt to
diverse problem contexts. In the mathematical reasoning step (section 4.3), KnowTD analyzes a subset
of the knowledge graph – specifically variables, equations, and rules – to compute additional variables.
Finally, the system visualizes the solution as a flow diagram, a directed subset of the knowledge graph
that outlines the steps required to compute the desired results (section 4.4).</p>
      <sec id="sec-4-1">
        <title>4.1. Ontology and Knowledge Graph Design</title>
        <p>In close collaboration with domain experts, we developed the KnowTD ontology following a
usercentered design methodology combined with ontology engineering methods. The KnowTD ontology is
not only a structured representation of domain knowledge but also a mechanism to guide reasoning,
validate input, and bridge semantic and mathematical problem-solving approaches. To enable its
application in the various steps of the KnowTD-pipeline, we made the following design choices:
Problem Specification</p>
        <p>Knowledge Graph Generation</p>
        <p>Mathematical Reasoning</p>
        <p>Visualization of Solution</p>
        <p>• Modularity: The ontology models thermodynamic concepts, variables, and equations as
independent entities, allowing flexible recombination to match diverse problem scenarios.
• Extensibility: KnowTD starts with a very limited scope of thermodynamics, namely problems
related to a change of state of a closed system containing an ideal gas, but is designed to be
extensible and cover additional knowledge areas as the scope grows.
• Separation of Declarative and Procedural Knowledge: By distinguishing between factual knowledge
(e.g., system definitions, thermodynamic laws) and procedural steps for deriving unknowns, the
ontology improves traceability and supports step-by-step explanations.
• Context-Driven Rule Definition: Thermodynamic principles are linked to specific conditions,
ensuring that KnowTD dynamically applies relevant equations based on the problem context.
• Alignment with Standards: The ontology integrates established thermodynamic standards such as</p>
        <p>SI units and aligns key concepts with Wikidata to ensure consistency and interoperability.
Components The KnowTD ontology is composed of several key components that represent both
factual and procedural thermodynamic knowledge:
• Concepts form the foundation of the ontology, representing the primary entities involved in
thermodynamics, such as system, state, and process. These concepts define the core structure of
the knowledge representation, dictating how diferent elements of a thermodynamic problem are
interconnected.
• Variables represent measurable properties that are associated with concepts, such as temperature,
pressure, and volume. Each variable is defined by its name, unit, symbol, and value, ensuring that
every element in a problem can be quantified appropriately.
• Attributes characterize non-numeric aspects of concepts, such as whether a system is in equilibrium
or whether a process is adiabatic. These attributes play a crucial role in determining the behavior
of the system and influencing the applicability of specific laws and equations.
• Equations describe the relationships between variables, linking concepts and defining how
properties of a system change under diferent conditions. For example, the ideal gas law links pressure,
volume, and temperature and is applied depending on whether the system is an ideal gas.
• Rules and Constraints are integral to the ontology, ensuring that thermodynamic laws are applied
correctly based on the context of the problem. These rules govern when specific equations can
be used and define conditions such as whether a process is isothermal, adiabatic, or isochoric.
Reuse and Adaptation of Ontologies and Design Patterns Following best practices in ontology
development [21, 22], we aim to reuse existing data models, vocabularies, and design patterns as a
foundation, adapting and extending them to represent domain-specific classes and properties. Drawing
from the Rela-Ops Model [23], we distinguish between relations and operations: relations link ontology
elements, while operations such as derive, apply, and transform are modeled through attributes, rules,
or dedicated concepts (e.g., concept transition). Inspired by OntoMath [24], we represent only classes
in the ontology; individuals such as specific values or occurrences in problem statements are treated
as instances during reasoning. Constant variables such as the absolute zero temperature ( 0), are
modeled as classes. Similar to OntoKin [25], we distinguish between data properties (e.g., variables
and attributes) and object properties (e.g., conceptual references). Where possible, we align elements
of our ontology with existing domain ontologies and thermodynamic standards such as SI units to
ensure interoperability and reuse. We reuse vocabulary and definitions from Wikidata1 by mapping the
concepts, attributes, and variables of our ontology to their related entry in Wikidata where possible.</p>
        <p>While several physics- and chemistry-related ontologies exist [26, 27, 28, 29, 30], they lack
thermodynamic theorems or equations and are not designed for thermodynamic reasoning. Other
ontologies [30, 25, 31] focus on adjacent fields, such as reaction mechanisms or material properties, which
exceed our current scope but may be considered in future extensions. We introduced this ontology to
the thermodynamics community in [32], where we focused on its ability to model the complex structure
of thermodynamics theory. In this paper, we detail its role in computing and explaining KG-based
solutions.</p>
        <p>Implementation The thermodynamics ontology is encoded using the LinkML schema language [33]
and can be converted to a variety of formats, including OWL [34], RDF [35], Python data classes, and
schemas for databases using the tools in the LinkML ecosystem. KnowTD is implemented in Python
and is available online2. LinkML ofers a native schemaviewer for Python which allows to parse the
ontology and use information on classes, inheritance, and relations.</p>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Ontology-based KG Building</title>
        <p>KnowTD utilizes the ontology as a schema (T-Box) to guide problem definition and the dynamic
generation of a problem-specific knowledge graph. This graph instantiates concrete individuals from
the given problem (A-Box) while adhering to the structural definitions provided by the T-Box.
Problem Definition and Validation The base class for problem definitions is
ThermodynamicProblem which defines the schema for valid problem formulations. To ease usability, we introduce three
specialized subclasses with preconfigured base processes: SteadyStateProcess (representing systems in
steady-state conditions), SequentialStepProcess (representing systems undergoing a sequence of one or
more state changes), and CyclicProcess (a SequentialStepProcess that returns to its initial state).</p>
        <p>Problems can be specified manually by the user in any format supported by LinkML (cf.
section 4.1), with YAML being the preferred format due to its machine readability and accessibility
for non-programmers. Additionally, an interactive user dialogue is available, as demonstrated in the
KnowTD system [32]. For input validation, we utilize the LinkML ecosystem’s built-in validator [33],
which provides comprehensive error feedback to ensure correctness. An LLM-supported input dialogue
is planned future work.</p>
        <p>Dynamic Knowledge Graph Building To populate the KG with instances for the specified problem,
we adopt a systematic instance generation process that ensures completeness, structural integrity,
and consistency across interlinked classes. The process creates instances for all mandatory classes
defined in the ontology, including those not explicitly specified in the input data to obtain a valid system
specification. This is achieved by traversing class dependencies and instantiating referenced entities to
satisfy cardinality constraints and maintain referential integrity. For each instantiated concept, available
variables and attributes are populated with provided values where specified. Otherwise, defaults from
the ontology schema, such as constants or derived attributes, are applied. Elements without defaults
are initialized as None and may be resolved during mathematical reasoning.</p>
        <p>A crucial step in the instance generation process is the concept-scoped indexing of variables, ensuring
alignment with thermodynamic conventions. In our model, variables are defined as distinct classes
linked to their associated concepts. Each concept is assigned an index, which is then inherited by its
related variables. For example, the temperature of the initial state is labeled  1, while the temperature of
the final state is labeled  2. To automate this process, we employ a concept-scoped indexing mechanism
2https://gitlab.rhrk.uni-kl.de/knowtd/knowtd/
identifies the relevant ancestor nodes. The resulting directed subgraph links known inputs to target
outputs through the necessary intermediate steps. We refer to this subgraph as the solution graph.</p>
      </sec>
      <sec id="sec-4-3">
        <title>4.4. Explaining the Solution</title>
        <p>The solution graph, generated in the previous step, contains both the computed values for new variables
and the instructions for reproducing the solution. This directed acyclic graph (DAG) has given attributes,
the satisfied rules and known variables as root nodes. Its bipartite structure alternates between equations
and variables, indicating dependencies and computable values. Equations are also linked to the rules
that justify their application. For visualization, we use the DOT layout algorithm [36], which arranges
the nodes in layers with edges flowing from top to bottom. As shown in Fig. 3, color-coded node types
help distinguish given, computed, and required elements. Each node displays relevant information from
the knowledge graph, including names, values, and units for variables, and ontology-defined names
and expressions for equations.</p>
        <p>change_of_state.transition.is_isentropic</p>
        <p>equals True
IsentropicHeatEquation1</p>
        <p>IsentropicEntropyEquation1
system.material.equation_of_state.model
equals perfect gas</p>
        <p>DelSPerfectGasVolumeEquation1</p>
        <p>DelTEquation1
DelUPerfectGasEquation1</p>
        <p>FirstLawSpecific1</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Evaluation</title>
      <sec id="sec-5-1">
        <title>5.1. Dataset</title>
        <p>In this chapter, we evaluate KnowTD’s performance in solving thermodynamic benchmark problems
and compare it with LLM-based approaches.</p>
        <p>In this study, we evaluate KnowTD and LLM-based approaches using a dataset of 13 thermodynamic
benchmark problems. These problems, carefully curated by domain experts, are representative of
introductory engineering thermodynamics courses, requiring the systematic application of multiple
thermodynamic principles to compute numerical values. While they are relatively simple for trained
individuals, they still demand structured reasoning and precise calculations, making them suitable for
assessing problem-solving capabilities.</p>
        <p>Each problem is defined by text with a well-specified solution and maintains a fixed structure,
unlike real-world problems that often vary in wording, numerical values, or context. Although infinite
variants could be generated by modifying numerical values or rewording descriptions using LLMs, the
underlying thermodynamic scope and required solution steps remain consistent. In this study, we focus
on the 13 prototypical questions without generating additional variants. For KnowTD, we provide
ontology-conformant YAML representations of the problem to ensure correct input for the reasoning
process which is the focus of this study. The YAML files are included in the source code ( 4.1).</p>
        <p>Key challenges in solving these problems include their multi-step nature, which requires combining
multiple thermodynamic laws and equations, and the need for numerical precision, where minor
computational errors can lead to incorrect results.</p>
      </sec>
      <sec id="sec-5-2">
        <title>5.2. Evaluation Metric</title>
        <p>To evaluate the performance of the KnowTD and LLM-based approaches, we used a structured evaluation
method conducted by experienced thermodynamics experts. Solutions were assessed in an exam-like
setting based on four key criteria: numerical accuracy, where correct numerical results were important;
solution graph correctness, which examined the logical progression of steps with partial credit for
correctly executed steps; thermodynamic validity, ensuring that the applied equations adhered to
established laws and principles; and appropriateness of equation application, which verified that selected
equations were correctly applied based on the problem’s constraints and conditions.</p>
      </sec>
      <sec id="sec-5-3">
        <title>5.3. Baseline: Problem Solving with LLMs</title>
        <p>
          We previously used this problem set and evaluation metric to evaluate the thermodynamic
problemsolving abilities of GPT-3.5, GPT-4, GPT-4o (OpenAI), LLaMA 3.1 (Meta), and Le Chat (MistralAI) [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ].
To date, no LLM system has been developed that is specifically tailored to this use case. While GPT-4
and GPT-4o achieved the highest scores (percentage of trials with full score: GPT-4: 74%, GPT-4o: 64%),
none of the models consistently produced correct results across multiple attempts. Frequent errors
included incorrect physical assumptions, the use of invalid equations, inconsistent signs, and numerical
errors. While the latter two may be mitigated with external solvers, the former highlight a lack of deep
domain understanding. Full evaluation details and prompts are provided in [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ].
        </p>
      </sec>
      <sec id="sec-5-4">
        <title>5.4. Problem Solving, Explanation, and Analysis Using KGs</title>
        <p>The problems were deliberately designed to align with the implemented scope of KnowTD and its
underlying thermodynamics ontology. Since all problems were correctly formulated and translated
into an ontology-compliant input format by domain experts, KnowTD successfully achieved full scores
across all problems.</p>
        <p>Beyond its problem-solving capabilities, KnowTD ofers detailed insight into the complexity of various
problems and the corresponding reasoning required for their solution, which can now be quantitatively
analyzed. Table 1 presents an overview of the sizes of diferent graph structures employed in KnowTD.
For each problem, we report the number of instances (i.e., nodes) in both the Knowledge Graph (KG)
and the Solution Graph (SG), with further breakdowns for each ontology base class.</p>
        <p>The initial KG comprises all node types (see Total / KG for overall node count), with individual counts
provided for each class. Additionally, for each class, we specify the number of given instances (giv)
that were provided as input. Our analysis reveals that users are required to identify between one and
four attributes and eight to eleven variables per problem. Each problem involves a fixed set of seven
concepts as part of a single-step process (not listed in the table), which is characterized by 27 attributes
distributed across relevant ontology classes (also not listed in the table). This results in an overall KG
size ranging between 205 and 216 nodes. The corresponding SG, identified by KnowTD, includes all
the attributes, variables, equations, and rules necessary to derive the correct solution. As reported
under Total / SG, the solution graphs are notably smaller, averaging 29 nodes. This demonstrates a
significant reduction in the reasoning space, shrinking from an average of 210 nodes in the KG to 29
nodes in the SG which highlights KnowTD’s efective reasoning capabilities, eficiently isolating the
critical elements required for correct thermodynamic problem-solving.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusion and Future Work</title>
      <p>This paper introduces and details the development of a novel ontology and dynamic knowledge graph
framework that enables KnowTD to ensure correctness, verifiability, and interpretability in
thermodynamic problem-solving. By combining structured domain knowledge with symbolic reasoning, KnowTD
efectively addresses complex scientific problem-solving while ensuring traceable and verifiable
solutions.</p>
      <p>Our evaluation shows that KnowTD accurately solves diverse thermodynamic problems while
consistently applying thermodynamic laws with domain fidelity. Compared to large language models,
KnowTD provides more reliable, context-aware solutions with clear, step-by-step reasoning paths.
The resulting structured reasoning graph enhances interpretability, ofering human-understandable
explanations that align with core Explainable AI (XAI) principles.</p>
      <p>KnowTD’s dynamic knowledge graph construction directly supports the creation of context-aware,
semantic explanations, improving user trust and understanding. The graph’s structure encodes causal
dependencies between thermodynamic concepts, enabling verifiable insights crucial for scientific
domains.</p>
      <p>To extend KnowTD’s capabilities, future work will expand its ontology to include advanced
thermodynamic concepts such as non-ideal systems, multi-phase processes, and transient phenomena. To
improve usability and automation, we plan to incorporate large language models for natural language
processing tasks such as extracting and structuring problem statements. This hybrid approach will
bridge symbolic and neural reasoning while ensuring adherence to valid thermodynamic knowledge,
reinforcing fairness and trustworthiness in AI systems. Additionally, we aim to evaluate the
intuitiveness and practical utility of the explanations generated by KnowTD, assessing how well they support
user understanding and transparency in problem-solving.</p>
      <p>KnowTD exemplifies how knowledge graphs, enriched with ontological reasoning and symbolic
logic, can advance transparent, context-aware, and human-centric explanations–contributing to best
practices in building interpretable AI models using knowledge graphs.</p>
    </sec>
    <sec id="sec-7">
      <title>Acknowledgments</title>
      <p>We gratefully acknowledge the funding by Deutsche Forschungsgemeinschaft DFG in the context of the
Priority Program 2331 “Machine Learning in Chemical Engineering” and Research Unit 5359 “KI-FOR:
Deep Learning on Sparse Chemical Process Data”.</p>
    </sec>
    <sec id="sec-8">
      <title>Declaration on Generative AI</title>
      <p>During the preparation of this work, the authors used ChatGPT 4.o and Grammarly in order to: Improve
writing style and Grammar and spelling check. After using this tools, the authors reviewed and edited
the content as needed and take full responsibility for the publication’s content.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>S. A.</given-names>
            <surname>Klein</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F. S.</given-names>
            <surname>Alvarado</surname>
          </string-name>
          , Engineering Equation Solver (EES),
          <string-name>
            <surname>F-Chart</surname>
            <given-names>Software</given-names>
          </string-name>
          , Middleton,
          <string-name>
            <surname>WI</surname>
          </string-name>
          , USA,
          <year>2025</year>
          . https://fchartsoftware.com/ees/.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Aspen</given-names>
            <surname>Technology</surname>
          </string-name>
          , Inc.,
          <string-name>
            <surname>Aspen</surname>
            <given-names>Plus</given-names>
          </string-name>
          , Aspen Technology, Inc., Bedford, MA, USA,
          <year>2025</year>
          . https: //www.aspentech.com/en/products/engineering/aspen-plus.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>V.</given-names>
            <surname>Plevris</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Papazafeiropoulos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Jiménez</surname>
          </string-name>
          <string-name>
            <surname>Rios</surname>
          </string-name>
          ,
          <article-title>Chatbots put to the test in math and logic problems: a comparison and assessment of chatgpt-3.5, chatgpt-4, and google bard</article-title>
          ,
          <source>AI</source>
          <volume>4</volume>
          (
          <year>2023</year>
          )
          <fpage>949</fpage>
          -
          <lpage>969</lpage>
          . doi:
          <volume>10</volume>
          .3390/ai4040048.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>S.</given-names>
            <surname>Frieder</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Pinchetti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Chevalier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Grifiths</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Salvatori</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Lukasiewicz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Petersen</surname>
          </string-name>
          , J. Berner, Mathematical capabilities of ChatGPT,
          <source>in: Advances in Neural Information Processing Systems</source>
          <volume>36</volume>
          , NeurIPS,
          <year>2023</year>
          . doi:
          <volume>10</volume>
          .5555/3666122.3667327.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>R.</given-names>
            <surname>Loubet</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Zittlau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Vollmer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Hofmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Fellenz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Jirasek</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Leitte</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Hasse</surname>
          </string-name>
          ,
          <article-title>Using large language models for solving thermodynamic problems</article-title>
          ,
          <year>2025</year>
          . arXiv:
          <volume>2502</volume>
          .
          <fpage>05195</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>I.</given-names>
            <surname>Tiddi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Schlobach</surname>
          </string-name>
          ,
          <article-title>Knowledge graphs as tools for explainable machine learning: A survey</article-title>
          ,
          <source>Artificial Intelligence</source>
          <volume>302</volume>
          (
          <year>2022</year>
          )
          <article-title>103627</article-title>
          . doi:
          <volume>10</volume>
          .1016/j.artint.
          <year>2021</year>
          .
          <volume>103627</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>E.</given-names>
            <surname>Rajabi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Etminani</surname>
          </string-name>
          ,
          <article-title>Knowledge-graph-based explainable AI: A systematic review</article-title>
          ,
          <source>Journal of Information Science</source>
          <volume>50</volume>
          (
          <year>2024</year>
          )
          <fpage>1019</fpage>
          -
          <lpage>1029</lpage>
          . doi:
          <volume>10</volume>
          .1177/01655515221112844.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>X.-H.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. C.</given-names>
            <surname>Cao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Shi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Bai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Gao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Qiu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Gao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Xue</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <article-title>A Survey of Data-Driven and Knowledge-Aware eXplainable AI</article-title>
          ,
          <source>IEEE Transactions on Knowledge and Data Engineering</source>
          <volume>34</volume>
          (
          <year>2022</year>
          )
          <fpage>29</fpage>
          -
          <lpage>49</lpage>
          . doi:
          <volume>10</volume>
          .1109/TKDE.
          <year>2020</year>
          .
          <volume>2983930</volume>
          , conference Name:
          <article-title>IEEE Transactions on Knowledge and Data Engineering</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>J.</given-names>
            <surname>Amara</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Samuel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>König-Ries</surname>
          </string-name>
          ,
          <article-title>Integrating domain knowledge for enhanced concept model explainability in plant disease classification</article-title>
          ,
          <source>in: The Semantic Web</source>
          , Springer Nature Switzerland, Cham,
          <year>2024</year>
          , pp.
          <fpage>289</fpage>
          -
          <lpage>306</lpage>
          . doi:
          <volume>10</volume>
          .1007/978-3-
          <fpage>031</fpage>
          -60626-7_
          <fpage>16</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>J.</given-names>
            <surname>Mäkelburg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>John</surname>
          </string-name>
          , M. Acosta,
          <article-title>Automation of electronic invoice validation using knowledge graph technologies</article-title>
          ,
          <source>in: The Semantic Web</source>
          , Springer Nature Switzerland,
          <year>2024</year>
          , pp.
          <fpage>253</fpage>
          -
          <lpage>269</lpage>
          . doi:
          <volume>10</volume>
          .1007/978-3-
          <fpage>031</fpage>
          -60626-7_
          <fpage>14</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>L.</given-names>
            <surname>Tailhardat</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Chabot</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Troncy</surname>
          </string-name>
          ,
          <article-title>Noria-o: An ontology for anomaly detection and incident management in ict systems</article-title>
          ,
          <source>in: The Semantic Web</source>
          , Springer Nature Switzerland, Cham,
          <year>2024</year>
          , pp.
          <fpage>21</fpage>
          -
          <lpage>39</lpage>
          . doi:
          <volume>10</volume>
          .1007/978-3-
          <fpage>031</fpage>
          -60635-
          <issue>9</issue>
          _
          <fpage>2</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>N. V.</given-names>
            <surname>Do</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. D.</given-names>
            <surname>Nguyen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T. T.</given-names>
            <surname>Mai</surname>
          </string-name>
          ,
          <article-title>A method of ontology integration for designing intelligent problem solvers</article-title>
          ,
          <source>Applied Sciences</source>
          <volume>9</volume>
          (
          <year>2019</year>
          ). doi:
          <volume>10</volume>
          .3390/app9183793.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>N. P.</given-names>
            <surname>Tran</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. D.</given-names>
            <surname>Nguyen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Nguyen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. A.</given-names>
            <surname>Tran</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. T.</given-names>
            <surname>Huynh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T. T.</given-names>
            <surname>Le</surname>
          </string-name>
          ,
          <article-title>A Method for Integrating of Knowledge Model and Functional Component and Application in Intelligent Problem Solver</article-title>
          ,
          <source>in: Advances and Trends in Artificial Intelligence. Theory and Applications</source>
          , Springer Nature, Singapore,
          <year>2024</year>
          , pp.
          <fpage>149</fpage>
          -
          <lpage>162</lpage>
          . doi:
          <volume>10</volume>
          .1007/
          <fpage>978</fpage>
          -981-97-4677-4_
          <fpage>13</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>T.</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Huang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Luo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Feng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Yuan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Pan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Zhu</surname>
          </string-name>
          ,
          <article-title>Mathgraph: A knowledge graph for automatically solving mathematical exercises</article-title>
          ,
          <source>in: Database Systems for Advanced Applications</source>
          , Springer International Publishing,
          <year>2019</year>
          , pp.
          <fpage>760</fpage>
          -
          <lpage>776</lpage>
          . doi:
          <volume>10</volume>
          . 1007/978-3-
          <fpage>030</fpage>
          -18576-3_
          <fpage>45</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>H. D.</given-names>
            <surname>Nguyen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Nguyen</surname>
          </string-name>
          , V. T. Pham,
          <article-title>Design an intelligent problem solver in solid geometry</article-title>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>