LightUp MS
Language

How it works

What it does

LightUp MS shows your brain MRI in 3D on your own computer, scan by scan, with the spots that LST-AI marks as lesions.

Illustrative screenshot of LightUp MS, Lesions › Detail, on six scans made from one public research scan: the list of lesions on the left, the brain in 3D with the lesions in colour in the middle, the controls on the right.

How it works

  1. Download LightUp MS For Windows 11, 64-bit Linux or a Mac with an Apple chip. Download
  2. Unpack it and start LightUp MS Everything it needs is now on your computer. From here on, it works fully offline.
  3. Copy your scans into the folder Scans Getting your scans
  4. LightUp MS reads them by itself Or press Look again.
  5. Press Measure The open-source tools below run one after the other.
  6. Look at each scan In 3D, in slices and in simple charts.
Screenshot of LightUp MS, the Scans tab before any scans are added: the title Add your scans, three numbered steps (press Open the Scans folder, copy your scans into it, come back here: LightUp MS reads them by itself, or press Look again), and the buttons Back, Open the Scans folder and Look again.
Scans › Add your scans

Open-source tools inside

StepOpen-source toolWhat it does
Readdcm2niixReads the DICOM files; picks a T1 and a FLAIR of each scan.
Find the brainHD-BETSeparates the brain from the rest of the head.
Line upgreedyLines up the images of one scan, and scans of different dates.
Mark lesionsLST-AIMarks white-matter lesions on the FLAIR, helped by the T1.
Brain regionsFastSurferFinds the brain's regions (where each mark lies) and the brain volume on the T1.
Brain volumeSynthSegMeasures the brain again on the FLAIR (needs about 6 GB of free memory, else it is left out).
ShowNiiVueDraws the scan and the marks in 3D and in slices.

The makers of LST-AI write: "LST-AI is a research-only tool for MS Lesion Segmentation and has not been validated, licensed or approved for any clinical usage."

FastSurfer reads the T1 and divides the brain into regions; that is where a lesion's location comes from. SynthSeg reads the FLAIR and gives the brain volume and brain fraction the app shows; it is built for scans of any resolution. The two can give a slightly different brain volume for the same brain, so LightUp MS never mixes them in one chart.

What you see

For each scan:

  • The scan in 3D, and cuts through it
  • The spots LST-AI marks as lesions, coloured by place
  • Total lesion volume and the number of lesions. The number counts marks of 14 mm³ or more (about 3 mm across). Smaller marks are shown as small spots and are not counted.
  • Brain volume and brain fraction
  • Each lesion on its own, with its size on each scan

Lesion location

  • P Periventricular (next to the ventricles)
  • J Juxtacortical (touching the cortex)
  • S Subcortical (deeper inside)
  • I Infratentorial (brainstem or cerebellum)

Good to know

What is a lesion?

A small area where brain tissue looks different on MRI. In MS, it is where the immune system has damaged myelin, the coating around nerve fibres. On FLAIR, many show up as bright spots.

Not every bright spot is MS: spots also come with age, migraine, small blood vessels, or from the scan itself.

LST-AI marks what looks like an MS lesion to it, without knowing why a spot is there, and it can be wrong either way. Only your neurologist, with the radiologist, can say what a spot means for you.

Why numbers jump

Numbers can differ between scans of the same brain. That is normal for this kind of measuring:

  • Another scanner, or other settings
  • Thick slices, where small spots are missed
  • How the head lay in the scanner
  • Contrast agent (gadolinium)
  • Touching lesions counted as one, or one as two
  • A faint spot marked on one scan only

On public research scans read by experts, we looked at the spots LST-AI marked on a later scan but not on the earlier one. The experts had already drawn 4 in 10 of them on the earlier scan: LST-AI had missed them there.

Brain volume is measured one scan at a time, so small differences say little. There is no yearly figure and no comparison with other people.

The same scan gives the same numbers on the same computer (it all runs on the processor); a later version can give other numbers. A scan whose brain is not found gets no numbers, with the reason.

Numbers in a radiology report will often differ. LightUp MS describes what the software measures on the images. It does not say what that means. Only your neurologist can say what your scans mean.

What LightUp MS cannot see

LightUp MS looks only at the brain, for what LST-AI is made to find. It does not see:

  • The spinal cord, where MS lesions are common
  • The optic nerves
  • Lesions inside the cortex, the outer grey layer (LST-AI is not made for them)
  • Special signs, such as a small vein inside a lesion or a dark rim around it

Lesions low in the brain (brainstem, cerebellum) or touching the cortex are harder to find, more so on thick slices. LightUp MS shows only part of what your neurologist looks at.

LST-AI misses some lesions and sometimes marks a spot that is not one. Our own check on public research scans is in the documentation.

How many lesions it finds

Found: lesions of 14 mm³ or more, drawn by experts, that LST-AI also marked. False marks: its marks that touch no expert lesion.

ScanFoundFalse marksTested on
3D T1 + 3D FLAIRabout 7 in 10 (71 %)3 in 10030 public scans (3D-MR-MS)
T1 with slices up to 3.5 mm + 3D FLAIRabout 6 in 10 (61-65 %)3 in 10010 of those scans, T1 made coarser by us

A 2D FLAIR is not used: LST-AI is made for a 3D FLAIR, and on 2D FLAIR it missed many lesions or marked many spots experts did not draw in our tests.

  • With the coarser T1, the loss is almost all in the smallest lesions (14-50 mm³): 46 % found instead of 57 %.
  • With a T1 of 3.5 mm or coarser, one of the ten test scans was placed wrongly; up to 3.3 mm, all ten were placed correctly. The app checks the placement of every scan with a coarse T1 and marks it not reliable when it is wrong.
  • This is one test on these scans; other scans can differ. Details in the documentation
If someone shows you LightUp MS
  • What it is: free, open-source software that shows a person's brain MRI in 3D on their own computer, with the spots that LST-AI, an open research tool, marks on the FLAIR.
  • Mistakes: LST-AI misses some lesions and sometimes marks a spot that is not one. Our own check on public research scans is in the documentation.
  • Limits: it does not see the spinal cord, optic nerves, lesions inside the cortex or special signs; its numbers jump between scanners and settings.
  • What it does not do: it measures each scan on its own, does not judge or explain differences between scans, and gives no advice.
  • Version: test version 0.1.3; another version can give other numbers. Questions: feedback@lightupms.com.
Create a poster
Illustrative poster made by LightUp MS from the six-scan series, with numbers off: a glass-like 3D brain seen from the left with coloured lesion marks, labelled Scan 6; three cuts through the middle, seen from above, from the left and from the front; and the lines LightUp MS, Shine a light on your own scans, and Free, open source, nothing is uploaded, with the open tools it uses.

One poster of your scans, tall or 4:5. Numbers are off unless you switch them on. No name, date, scanner make or hospital on it. LightUp MS only saves it as a picture on your computer: it is not sent anywhere.

The code

The source code is public: codeberg.org/lightupms/lightupms. Licence: GPL-3.0-or-later.

The pictures show illustrative data. Credits