Digital Humanities, University of Bern Digital Humanities, University of Bern Introduction to Digital Humanities
  • Course
  • Syllabus
  • Assignment
  • GitHub
  • Resources
  • Student Projects
  • About
  • DH Lab ↗
  1. Syllabus
  2. Session 11
  • Course
  • Syllabus
    • Session 1
    • Session 2
    • Session 3
    • Session 4
    • Session 5
    • Session 6
    • Session 7
    • Session 8
    • Session 9
    • Session 10
    • Session 11
    • Session 12
    • Session 13
    • Session 14
  • Assignment
  • Working with Git and GitHub
  • Resources
  • Student Projects
    • How to add your project here
  • About

  • DH Lab (companion course)

On this page

  • In this session
  • From algorithms to machine learning
  • Where bias comes from
  • For the humanities
  • Reading for Session 12
  • Edit this page
  • Report an issue
  1. Syllabus
  2. Session 11

Session 11

From algorithms to machine learning

Author
Affiliation

Tobias Hodel

Walter Benjamin Kolleg / Digital Humanities, University of Bern

Published

24 November 2026

Modified

2 September 2026

Hodel Taught by Tobias Hodel.

In this session

  • From algorithm to model: what changes when rules are learned rather than written
  • A non-mathematical introduction to machine learning
  • Bias: where it enters, and why “removing” it is not a technical operation

From algorithms to machine learning

  • An algorithm is a procedure someone wrote. A model is a procedure fitted to data.
  • Supervised, unsupervised, self-supervised — what each needs and what each produces
  • Training, validation, test: why the split matters and how it gets violated
  • Features and representations; embeddings as learned features
  • Overfitting, and the humanities’ version of it

Where bias comes from

Not one place, but a chain — and every link is a decision someone made:

  1. Problem formulation — what was turned into a prediction task, and what was not
  2. Data collection — who is in the sample, who is absent, and why
  3. Labelling — who labelled it, under what conditions, to what guidelines
  4. Model and objective — what the loss function rewards
  5. Evaluation — aggregate accuracy hiding failure for a subgroup
  6. Deployment — the gap between the benchmark and the situation

For each link: what would it take to notice the problem, and who is in a position to notice it?

For the humanities

  • ML applied to historical sources: OCR/HTR, entity recognition, classification, clustering
  • Ground truth as an editorial decision, not a fact
  • What error rates mean when your material is heterogeneous by nature
  • The recurring question: is the model a tool for your research, or an object of it?
TipIn parallel in the Lab

The DH Lab puts this to work with eScriptorium and handwritten text recognition — where you produce the ground truth yourself.

Reading for Session 12

Lang, Sarah, and Elena Suárez Cronauer. 2026. “Beyond Data Feminism. Towards Ethical Data Work in the (Digital) Humanities.” Zeitschrift für digitale Geisteswissenschaften, advance online publication, 19 February. https://doi.org/10.17175/wp_2026

Back to top
Session 10
Session 12
  • Edit this page
  • Report an issue