Synthetic data only. Never enter patient information; nothing is sent or stored. For clinicians. Not FDA cleared.

CPE-005 · version 1.0.0

MASLD Pattern Engine: 2023 nomenclature, FIB-4 and fibrosis risk, step by step

Steatosis must be documented before MASLD is named. Fibrosis risk follows FIB-4, then elastography or ELF.

21 open rules25 reviewed scenariosDeterministicRuns in your browserReviewed by Dr. Vinicius Amaral, D.O.

MASLD is a diagnosis that needs imaging or biopsy evidence of steatosis plus a cardiometabolic risk factor. Metabolic labs and a raised ALT alone only justify looking: they open a fibrosis-screening prompt, never a label.

Once steatosis is documented, the question that changes management is fibrosis. The engine calculates FIB-4 with the age-adjusted cutoff, brings in liver stiffness or ELF for indeterminate or discordant results, and keeps cirrhosis surveillance, decompensation and other liver diseases in view.

Playground

Load a synthetic case or type your own values. The result recomputes as you type, and every rule links to its page.

Fibrosis risk by non-invasive tests

  1. ● Low

    FIB-4 <1.3 (<2.0 from 65), stiffness <8 kPa

  2. ○ Indeterminate

    Needs a second-line test

  3. ○ High

    FIB-4 >2.67, stiffness ≥12 kPa or ELF ≥9.8

Liver tests and imaging
Patient
Sex

A standard US drink is about 14 g.

Cardiometabolic criteria
Other liver disease and context
Cirrhosis, decompensation and trends

Live result · computed in your browser

Detected clinical pattern

Pattern Meeting the 2023 MASLD Criteria

Steatosis with 4 cardiometabolic criterion/criteria and alcohol in range. Fibrosis risk by non-invasive tests: low.

  • Alcohol: Alcohol 10 g/day · MASLD range
  • Fibrosis risk: Fibrosis risk · low

Why this pattern was identified

  • MASLD criteria. Steatosis is documented and 4 cardiometabolic criterion/criteria are met (BMI 31; fasting glucose 108; triglycerides 190; HDL 38).

Calculations

FIB-4
1.16

Lower cutoff 1.3; high above 2.67.

Recommended next steps

For physician consideration. Urgent review always comes first.

  1. 1Assess cardiovascular risk: it is the leading cause of death in MASLD.
Evidence and rule trace · 6 rules

LV-ALC-01Alcohol intake category

Inputs: alcohol 10 g/day (male)

Alcohol intake in the MASLD range.

LV-CALC-01Derived value

Inputs: age 52 · AST 38 · ALT 55 · platelets 230

FIB-4 = 1.16

LV-FIB-01FIB-4 and its stratum

Inputs: FIB-4 1.16 · cutoff 1.3

Low risk of advanced fibrosis.

LV-01MASLD criteria met

Inputs: steatosis documented · 4 cardiometabolic criterion/criteria: BMI 31; fasting glucose 108; triglycerides 190; HDL 38 · alcohol in MASLD range

Pattern meeting the 2023 MASLD criteria.

LV-CV-01Cardiovascular risk assessment

Inputs: MASLD criteria met

Formal cardiovascular risk assessment is part of the work-up.

LV-04ALT above the AASLD upper limit

Inputs: ALT 55 U/L (limit 33 for male)

ALT above the sex-specific upper limit.

Evidence

  • EV-AASLD-2023 · Rinella ME, Neuschwander-Tetri BA, Siddiqui MS, et al. AASLD Practice Guidance on the clinical assessment and management of nonalcoholic fatty liver disease. Hepatology. 2023;77(5):1797-1835.
  • EV-DELPHI-2023 · Rinella ME, Lazarus JV, Ratziu V, et al. A multisociety Delphi consensus statement on new fatty liver disease nomenclature. Hepatology. 2023;78(6):1966-1986.
  • EV-MCPHERSON-2017 · McPherson S, Hardy T, Dufour JF, et al. Age as a confounding factor for the accurate non-invasive diagnosis of advanced NAFLD fibrosis. Am J Gastroenterol. 2017;112(5):740-751.

Physician adjudication required. Clinical decision support for physician review. This output classifies steatotic liver disease under the 2023 nomenclature and stratifies fibrosis risk. It does not stage fibrosis by itself, diagnose a cause, or recommend a drug. Physician adjudication is required.

What it does

  • Applies the 2023 nomenclature: MASLD, MetALD and alcohol-related liver disease separated by intake.
  • Calculates FIB-4 with the lower cutoff of 2.0 from age 65, and stratifies liver stiffness and ELF.
  • Flags discordant non-invasive tests and the pattern of falling ALT with falling platelets.
  • Withholds the MASLD label when another liver disease (viral hepatitis, a hepatotoxic drug, an iron-overload pattern) is present.
  • Raises decompensation, marked-aminotransferase, impaired-function and cirrhosis-surveillance alerts.

What it never does

  • Name MASLD without documented steatosis.
  • Stage fibrosis from a single test.
  • Trigger cancer surveillance from FIB-4 alone.
  • Recommend a drug.

Safety gates

These gates run before the pattern is shown, and urgent findings are displayed first.

  • Jaundice, ascites, encephalopathy or portal-hypertensive bleeding raises an urgent alert.
  • ALT or AST of 1,000 U/L or more raises an urgent alert; 200 to 999 raises a priority review.
  • Bilirubin above 3 mg/dL, INR above 1.5 or albumin below 3.0 g/dL raises a priority review.
  • Known cirrhosis without an ultrasound in the last 6 months raises a surveillance-gap alert.

Inputs

  • AST, ALT, platelets, bilirubin, INR, albumin
  • Steatosis evidence, liver stiffness (kPa), ELF
  • BMI or waist, glucose or HbA1c, triglycerides, HDL, blood pressure
  • Alcohol intake in grams per day
  • Hepatitis B and C status, drugs, ferritin and saturation, cirrhosis and decompensation signs

Scope

In scope

  • Adults aged 18 and over

Routed out

  • Patients under 18

The full rule catalog

21 active rules and 1 sandbox or context entries. Each has its own page with conditions, outputs and evidence. 22 of 22 active rules are exercised by at least one synthetic case.

Download the catalog as JSON

Synthetic cases

Every case is synthetic. Open one to see the inputs, the full result and the rule trace; then change the values.

LIVER-FX-01

Steatosis with metabolic risk and a low FIB-4

A 52-year-old man with fatty liver on ultrasound, BMI 31 and triglycerides 190.

LIVER-FX-02

Type 2 diabetes, no imaging yet

A 58-year-old with diabetes and normal enzymes: the screening question.

LIVER-FX-03

Indeterminate FIB-4

FIB-4 of 2.0 in a 56-year-old with steatosis.

LIVER-FX-04

High FIB-4

FIB-4 above 5 in a 63-year-old man with low platelets.

LIVER-FX-05

FIB-4 of 1.65 at age 70

Low risk under the age-adjusted cutoff of 2.0.

LIVER-FX-06

Stiffness 14 kPa with a low FIB-4

Discordant tests: the elastography result prevails as a warning.

LIVER-FX-07

ELF 10.1

A high ELF with FIB-4 in the indeterminate range.

LIVER-FX-08

Alcohol in the MetALD range

A woman drinking about 35 g a day with steatosis and metabolic risk.

LIVER-FX-09

Alcohol-related liver disease predominant

About 90 g a day in a man with steatosis.

LIVER-FX-10

Hepatitis B surface antigen positive

Steatosis plus a second liver disease.

LIVER-FX-11

Amiodarone exposure

A hepatotoxic drug is on the medication list.

LIVER-FX-12

ALT falling while platelets fall

Known fatty liver, ALT now normal and platelets down to 140.

LIVER-FX-13

Cirrhosis with no ultrasound for nine months

A surveillance gap in known cirrhosis.

LIVER-FX-14

Cirrhosis with recent surveillance

Ultrasound four months ago.

LIVER-FX-15

Jaundice and ascites

Signs of decompensation.

LIVER-FX-16

ALT 1,350 U/L

Values far above anything MASLD explains.

LIVER-FX-17

ALT 260 U/L

Marked but not extreme elevation.

LIVER-FX-18

Bilirubin 4.2 and INR 1.7

Impaired liver function.

LIVER-FX-19

Transferrin saturation 62% with ferritin 780

An iron-overload pattern in a man with steatosis.

LIVER-FX-20

Raised ALT and no viral testing

ALT 78 with no hepatitis B or C results.

LIVER-FX-21

A teenager is outside the adult pathway

Fourteen years old.

LIVER-FX-22

No steatosis and no screening trigger

A healthy 32-year-old.

LIVER-FX-23

Steatosis but no platelet count

FIB-4 cannot be calculated.

LIVER-FX-24

Asian patient with BMI 24

The Asian BMI criterion (23) is met.

LIVER-FX-25

Steatosis in a lean patient with no metabolic risk

Fatty liver but no cardiometabolic criterion.

Evidence

Guidelines and references the rules cite. Each rule page lists the ones that support it.

  • EV-AASLD-2023Rinella ME, Neuschwander-Tetri BA, Siddiqui MS, et al. AASLD Practice Guidance on the clinical assessment and management of nonalcoholic fatty liver disease. Hepatology. 2023;77(5):1797-1835.

    Supports: FIB-4 first for risk stratification; thresholds <1.3 and >2.67; elastography 8 and 12 kPa; ELF 7.7 and 9.8 ALT upper limits near 29–33 U/L (men) and 19–25 U/L (women) Cardiovascular risk is the leading cause of death in MASLD

  • EV-DELPHI-2023Rinella ME, Lazarus JV, Ratziu V, et al. A multisociety Delphi consensus statement on new fatty liver disease nomenclature. Hepatology. 2023;78(6):1966-1986.

    Supports: MASLD criteria: steatosis plus at least one cardiometabolic risk factor and no other cause MetALD and alcohol-related liver disease separated by intake

  • EV-MCPHERSON-2017McPherson S, Hardy T, Dufour JF, et al. Age as a confounding factor for the accurate non-invasive diagnosis of advanced NAFLD fibrosis. Am J Gastroenterol. 2017;112(5):740-751.

    Supports: FIB-4 lower cutoff of 2.0 in patients aged 65 and over

  • EV-EASL-NIT-2021European Association for the Study of the Liver. EASL Clinical Practice Guidelines on non-invasive tests for evaluation of liver disease severity and prognosis, 2021 update. J Hepatol. 2021;75(3):659-689.

    Supports: Use of elastography and serum tests in sequence, and handling of discordant results

  • EV-AASLD-HCC-2023Singal AG, Llovet JM, Yarchoan M, et al. AASLD Practice Guidance on prevention, diagnosis, and treatment of hepatocellular carcinoma. Hepatology. 2023;78(6):1922-1965.

    Supports: Surveillance with ultrasound with or without AFP every 6 months in cirrhosis

  • EV-CDC-HEP-2020Schillie S, Wester C, Osborne M, et al. CDC Recommendations for Hepatitis C Screening Among Adults. MMWR Recomm Rep. 2020;69(2):1-17; and Conners EE, et al. Screening and Testing for Hepatitis B Virus Infection: CDC Recommendations. MMWR Recomm Rep. 2023;72(1):1-25.

    Supports: One-time universal screening for hepatitis C and hepatitis B in adults

  • EV-EASL-HFE-2022European Association for the Study of the Liver. EASL Clinical Practice Guidelines on haemochromatosis. J Hepatol. 2022;77(2):479-502.

    Supports: Transferrin saturation >45% with raised ferritin prompts HFE testing

Frequently asked questions

Can the engine call MASLD from labs alone?

No. MASLD needs hepatic steatosis documented by imaging or biopsy plus at least one cardiometabolic risk factor. With risk factors but no steatosis the engine opens a FIB-4 screening prompt, in line with AASLD 2023, and says plainly that it is not a diagnosis.

Which FIB-4 cutoffs does it use?

Below 1.3 is low risk, 1.3 to 2.67 indeterminate, above 2.67 high risk. From age 65 the lower cutoff is 2.0, because FIB-4 rises with age and the standard cutoff over-calls risk in older patients.

What happens when FIB-4 and elastography disagree?

The engine says so and does not reassure. FIB-4 low with stiffness at 12 kPa or above, or FIB-4 high with stiffness below 8 kPa, is flagged as discordant and prompts a repeat or a different test.

Does a high FIB-4 trigger hepatocellular carcinoma surveillance?

No. AASLD 2023 recommends surveillance in cirrhosis. A high FIB-4 raises the question of advanced fibrosis and a hepatology referral; surveillance is flagged only when cirrhosis is documented and no ultrasound has been done in six months.

Why does falling ALT with falling platelets get a warning?

In steatotic liver disease, ALT can fall as the liver scars. Together with falling platelets that pattern can mean advancing fibrosis rather than improvement, so the engine asks for FIB-4 to be recalculated.

Specification status: Executable specification v1.0.0, authored by Biod from the narrative CPE-005 specification and current guidance. Reviewed by Dr. Vinicius Amaral, D.O. Not for clinical production use.

Clinical review: Dr. Vinicius Amaral, D.O., Medical reviewer, 2026-10-03.

The Clinical Intelligence Layer — transforming fragmented clinical information into structured intelligence for clinician review and action.

Contact Biod