Tobias Karlsson

Tobias Karlsson

I take on consulting work in data-driven optimization and analysis, under the name Biberg Analytics. Other problems are also interesting.

tobias@biberganalytics.se · Sweden

Problems I like

  • Getting more out of a system that already runs: schedules, routes, capacity, time.
  • Measuring something from data that was collected for another purpose.
  • Working out how far a result can be trusted, and saying so.
  • Sparse or noisy sensor data: laser scans, positions, images.
  • Building the whole thing, from the model to something people use.

Examples are under Selected work.

Background

2023 – now

Deep learning engineer · automotive software

2026 – now

Consultant · Biberg Analytics

2024 – now

Beeboard · own product, app and hardware for climbing walls

2021 – 2023

Doctoral studies in machine learning · Chalmers University of Technology

Generative models for protein sequences, in the Data Science and AI division. Teaching assistant in data science and mathematical modelling.

2019 – 2021

MSc, Data Science and AI · Chalmers University of Technology

Thesis on reinforcement learning agents in a simulated predator–prey ecosystem.

2016 – 2019

Engineering Physics · Umeå University

Mathematics, physics and computational science.

Selected work

Each entry states the input, the output and how the result was validated.

Running times for regional bus traffic

Optimization of an existing timetable

A timetable gives each trip a fixed running time. Where that time is too short, buses run late all day; where it is too long, vehicles and drivers wait. This finds both, line by line and hour by hour.

In
The real-time vehicle data that Swedish regions publish openly.
Out
A proposed running time per line, direction and time period. A ranked list of the street sections where most buses lose most time. Punctuality per line and hour.
Scale
Eleven regions, autumn 2026. The pipeline runs unattended.

One line: the timetable gives 30 minutes, most trips take longer

Each bar is the number of trips that took that long. The black line is the 30 minutes the timetable gives. Drag the slider to choose how many trips should make it: the dashed line shows the timetable that would need, and orange shows the trips that would still be more than 3 minutes over. One regional line in a mid-sized Swedish region, not named here: 1,096 trips over 34 weekdays, 5 October to 27 November 2026, all leaving the first stop on time.

The same line: the delay grows stop by stop

Minutes behind the timetable at each of the 23 stops. The line is the median trip and the band covers the middle half of trips. Point at a stop for its numbers.

All eleven regions: buses leave on time, then lose it along the line

5060708090100Share of departures on time, %Region A92 / 79Region B94 / 73Region C92 / 72Region D91 / 68Region E91 / 67Region F88 / 66Region G86 / 64Region H83 / 61Region I91 / 60Region J87 / 58Region K82 / 56At the first stopAlong the line
Share of departures on time at the first stop and along the line. Each row is one region, not named here. Five regions rest on 33 to 35 weekdays and six on 9 to 14.

Validation: reports produced for eleven regions and shared with two transport authorities. Based on open data, at stop-to-stop resolution.

Analysis of a ski federation's training database

Independent analysis

Fifteen years of training diaries were linked to public race rankings, to see what the records say about training volume by age and the step from junior to senior.

Validation: headline numbers were re-estimated on restricted samples, and three of six sections were recomputed independently from the base data.

Power-line corridors: which trees can reach the line

Geometry from airborne laser data

Grid owners clear vegetation along thousands of kilometres of line. This turns a laser scan into a cut list.

In
An airborne laser scan of the corridor.
Out
Each conductor fitted as a catenary. For every tree: position, height, distance to the nearest phase, and how many metres to cut so it cannot reach the line if it falls.
Result
Two 2.4 km forest stretches gave 312 and 419 trees to top, in about 85 seconds each. Fitted curves lie within 4 cm of the wire points at 30 points per m².
Laser points of a forest corridor seen along a power line: tree crowns to be topped in orange, trees to be felled in red, other trees in green, with the conductors and a pylon in the middle.
One span of about 290 m as the laser sees it, looking along the line towards a pylon. Each dot is one laser return. Orange is the part of a crown above the cut height, red trees are felled because too little would remain, green is other forest, black lines are the conductors. This span has 80 trees to top and 20 to fell.

Validation: evaluated on open Dutch survey data at several point densities. Reliable as a work order from about 5 points per m².

Roof measurement from sparse national laser data

Measurement with a stated uncertainty

Sweden's national laser scan has one to two points per square metre, so a typical roof face gets 20 to 60 points. The question was whether that is enough to measure a roof, and how to know when it is not.

In
The open national laser scan and a building outline.
Out
Pitch and area per roof face, ridge and eave lengths, and a confidence score with a flag when someone should check on site.
Speed
Under a second per building on one core.
Four simulated houses, scanned at the density of the Swedish national laser scan, so the true roof is known. Each dot is one laser return, seen from above. The coloured areas are the roof faces the method found, with their pitch. The last house shows a case the method flags for a site check.
05101520Absolute error, degrees or percentRoof pitch, degrees0.59 / 2.03Area inside walls, %1.9 / 9Same, high-confidence roofs, %1.5 / 6.7Total area incl. overhang, %5.9 / 16.5Median90th percentile
Error against independent 3D roof models: 347 Dutch houses, with the laser data thinned to Swedish density.

Validation: evaluated against independent Dutch and Finnish reference models. On 347 houses the median error is 0.6 degrees in pitch and 1.9 % in area.

Finding unrecorded climbing rock from national laser data

A public web map · rockfinder-prod.web.app

Most climbable rock in Sweden is in no guidebook. This scans the national laser data for cliffs, steep walls and boulder fields, and ranks them on a map.

In
The open national laser scan: the 1 m ground model for the whole country, and the raw point cloud for about 167,000 km² so far.
Method
Cliffs are found where the ground stays steep along a line, with at least 5 m of drop. Boulders and walls come from the point cloud, where a trained classifier scores each block-shaped object.
Out
A map of candidates with height, length, orientation, distance to a road, protected-area flags and a ranking.
Scale
The whole country for cliffs, and about 167,000 km² of point cloud for boulders and walls so far. About 8.5 seconds per 6.25 km² tile on a four-core home server.
Screens from the live map: part of the west coast, boulder fields outlined in purple, and the card for one cliff candidate on a phone. Laser data: Laserdata Nedladdning, skog, ©Lantmäteriet, bearbetad, CC BY 4.0. Maps © Lantmäteriet.
Cliffs, from the 1 m ground model1. Ground height along a lineheightdistance2. Where it stays steepat least 5 m3. Followed sideways into a line23 m high · 234 m long · faces SBoulders and steep walls, from the laser point cloud1. Laser returns, seen from the side2. Objects above ground, scoredblock, score 0.9tree, 0.13. Blocks grouped into fields14 ha · 180 blocks
The method in two tracks. The numbers in the drawings are examples. Candidates from both tracks are then ranked and checked against aerial photos before they are shown.

Validation: checked from aerial photos and against known crags. The cliff detector was calibrated on 28 known crags, 686 sites were rated by hand, and 1,126 known boulder areas from a public crag database have a detected field. Candidates in protected areas are flagged on the map.

Beeboard

A finished product: app, firmware and hardware · beeboard.app

An app for climbing gyms and home walls. Climbers pick a problem on the phone and the wall lights its holds. To set a wall up, the owner takes a photo and a model finds the holds.

App
iPhone and Android, released on both stores.
Wall
My own controller firmware. One LED per hold, driven over Bluetooth.
Model
Hold detection that runs on the phone. F1 0.82 on three evaluation walls.
An overhanging climbing wall with a lit LED at every hold.
A wall with one LED per hold.
A photo of a climbing wall covered in holds. On one side of the slider each registered hold has a box around it.
Drag across the photo. The boxes are the 746 holds registered for this wall in the app. They are also what the detection model is scored against.
Screens from the app, with demo data: a problem on the wall, a circuit, the problem list, session statistics and the training log.

Validation: in use on a club wall since 2024, launching commercially in 2026. Designed, built and maintained by me.

Fulbeta

A phone app for planning a climb · fulbeta.web.app

A climber photographs a boulder and marks where each hand and foot goes, in order. Climbers call such a sequence beta. Fulbeta is Swedish climbers' word for beta that turns out to be wrong.

In
A photo, then one double-tap per hold and a choice of hand or foot.
Out
The photo with numbered markers, and a move list that can be reordered and described.
Design
Markers are stored as fractions of the photo, so they stay on the hold at any zoom. Photos are shrunk on the phone and stripped of location data before upload. Editing works offline and syncs later.
Screens from a demo account with invented climbs: markers on a photo, choosing a limb, and the move list.

Validation: 118 automated tests and a simulated end-to-end review.

Checking and converting Swedish accounting files

A free public tool · bokforingsverktyg.se

Swedish accounting programs exchange data as SIE files. When an import is rejected, the program rarely says why. This site finds the reason, and converts between SIE and Excel in both directions.

In
A SIE file, or a spreadsheet of bookkeeping rows.
Out
Every problem with its line and how to fix it, from 80 rules. An Excel workbook with ledger, trial balance and statements. An importable SIE file made from a spreadsheet.
Design
Everything runs in the browser. The page is not allowed to make network requests, and a browser test checks that no file leaves the computer.
5#SIETYP 46#FNAMN "Testbolaget Exempel AB"7#ORGNR 55999999998#RAR 0 20250101 202512319#VER A 1 20251031 "Swish oktober"10{11   #TRANS 1930 {} 1250,0012   #TRANS 3001 {} -1000.0013   #TRANS 2611 {} -250.0014}15#VER A 2 20251031 "Zettle oktober"16{17   #TRANS 1930 {} 999.9918   #TRANS 3001 {} -800.0019   #TRANS 2611 {} -200.0020}21#VER A 3 20260105 "Hyra januari"22{23   #TRANS 5010 {} 8000.0024   #TRANS 193 {} -8000.0025}26#VER A 4 20251115 "Kontorsmaterial \"special\"27{28   #TRANS 6110 {} 400.00
The site's own made-up example of a rejected file, and what the validator reports for it. Select a finding to see its line. The site is in Swedish; the messages are translated here.

Validation: 429 automated tests. The official SIE example file, with 295 vouchers, passes every balance check. Launched 2026.