Stan: An LLM-based thermodynamics course assistant

This paper presents Stan, a locally deployed, privacy-preserving AI system for an undergraduate thermodynamics course that utilizes open-weight models to simultaneously provide grounded, reference-backed tutoring for students and generate actionable teaching insights for instructors from a shared corpus of lecture transcripts and textbook data.

Eric M. Furst, Vasudevan Venkateshwaran

Published 2026-03-06
📖 5 min read🧠 Deep dive

Imagine you are in a massive, high-speed lecture hall for a difficult subject like Thermodynamics. The professor talks fast, writes complex equations on the board, and uses words like "fugacity" and "entropy" that sound like alien languages.

Now, imagine two different people in that room: a student trying to keep up, and the professor trying to remember what actually happened in class.

This paper introduces Stan, a smart digital assistant built specifically to help both of them. Think of Stan not as a magic robot that knows everything, but as a super-organized librarian and a reflective mirror that lives entirely on the computer in your pocket, not in the cloud.

Here is how Stan works, broken down into simple concepts:

1. The "Local Library" (No Cloud, No Privacy Worries)

Most AI tools today are like renting a car from a big rental company. You have to drive to their office (the cloud), pay by the mile (API fees), and they can see your destination (your data).

Stan is different. It's like buying your own car and keeping it in your garage.

  • How it works: The authors built Stan to run entirely on local hardware (like a standard laptop or a powerful desktop).
  • Why it matters: It costs nothing per question, your class notes and recordings never leave your computer (total privacy), and it works even if the internet goes down. It uses open-source "brains" (AI models) that anyone can inspect and tweak.

2. For the Student: The "Smart Flashlight"

When a student asks, "What is fugacity?", a normal AI might guess an answer based on what it read on the internet. If it guesses wrong, that's dangerous in engineering.

Stan acts like a flashlight in a dark library.

  • The Process: Instead of guessing, Stan first looks at the student's question, finds the exact keywords (like "fugacity"), and then shines its light directly onto the textbook's index and the lecture recording.
  • The Result: It doesn't just give an answer; it gives the answer plus the page number and the specific moment in the lecture where the professor explained it. It says, "Here is the definition, and here is exactly where you can read more about it."
  • The Safety Net: It uses a "dual-path" system. One part is a fast, rigid rule-finder (like a spell-checker), and the other is a smart AI. If the smart AI gets confused, the rule-finder ensures the student still gets something useful.

3. For the Professor: The "Time-Traveling Mirror"

This is the most unique part of the paper. Usually, AI is just for students. But Stan also helps the teacher.

Imagine the professor could rewind the semester and watch a highlight reel of their own teaching.

  • The "Confusion Map": Stan listens to the recordings and spots moments where students sounded confused or asked the same question three times. It tells the professor: "Hey, on Tuesday, 15 minutes in, the class seemed lost on 'Entropy.' You might want to review that."
  • The "Story Collector": Professors often use funny stories or real-world analogies to explain hard concepts. Stan catalogs these. It creates a searchable list: "Show me every time I used a 'metal cube' analogy to explain heat." This helps the teacher remember their best teaching moments.
  • The "Gap Finder": It can tell the professor, "You talked about this concept verbally, but it never made it into the homework or slides." This helps them fix the course materials.

4. The "Brainy Librarian" vs. The "Hallucinating Artist"

The paper admits that AI can sometimes "hallucinate" (make things up confidently). To stop this, Stan uses a few clever tricks:

  • The "No-Imagination" Rule: The AI is strictly told, "You can only use the information I just gave you from the textbook. Do not make up new facts."
  • The "Two-Pass" System: When analyzing a long lecture, the AI first just grabs all the questions (like a net catching fish), and then a second pass sorts them to find the important ones. This prevents the AI from getting overwhelmed and making up fake answers.
  • The "Prompting" Trick: Because the AI is a general model, it might not know engineering terms. The professor gives it a "cheat sheet" of technical words (like "Peng-Robinson equation") before it starts listening. This is like giving the librarian a specific dictionary so they don't confuse "fugacity" with "GASB."

5. The Future: A "Glass Box"

The authors plan to make Stan even smarter. They want to add "glass box" tools—simple computer programs that solve thermodynamics problems step-by-step. Instead of just telling the student the answer, Stan will be able to say, "Here is the code that solves this, and here is how it works," allowing students to peek under the hood of the math.

The Big Picture

Stan is not trying to replace the teacher or the textbook.

  • It doesn't grade papers.
  • It doesn't write the lecture.

Instead, it acts as a bridge. It connects the messy, fast-paced reality of a live lecture to the structured, reliable world of the textbook. It gives students a way to find answers without getting lost, and it gives teachers a way to look back at their teaching, learn from it, and make it better for the next class.

It's a tool that says: "Let's use AI not to do the work for us, but to help us understand the work we are already doing."