Digital Medicine Ecosystem ยท v1.0

FlowLeap

An integrated platform combining AI-powered medical imaging analysis with high-performance CFD simulation for clinical and engineering applications.

What is FlowLeap?

FlowLeap bridges the gap between medical imaging and engineering simulation. It provides an integrated environment where clinicians can analyze patient anatomy and engineers can simulate fluid dynamics โ€” all from the same interface.

FlowLeap main interface
FlowLeap main interface โ€” dark theme with left left sidebar and central 3D viewport (3D viewer)

Two workflows, one platform

M
๐Ÿฅ
Medical Workflow
DICOM โ†’ Segmentation โ†’ 3D Reconstruction โ†’ Virtual Spirometry โ†’ Reinflation
โ†”
E
โš™๏ธ
Engineering Workflow
CAD Import โ†’ Materials โ†’ Zones โ†’ Boundary Conditions โ†’ CFD โ†’ Results

Navigating the Interface

FlowLeap's interface consists of three main areas: the left sidebar on the left, the 3D viewport (3D viewer) in the center, and the top toolbar. A chatbot widget provides contextual help throughout.

FlowLeap navigation โ€” chest CT volume rendering with Segment and Reconstruct panel open
Navigation view โ€” chest CT volume rendering (green/yellow) with the "Segment and Reconstruct" panel open on the left

The left sidebar (left sidebar)

The left sidebar is your data navigator. It organises patients and projects in a hierarchical tree:

ModeLevel 1Level 2Level 3Level 4
MedicalPatientEvent (EID)Acquisition (AID)Series โ†’ Anatomy, Spirometries, Reinflations
EngineeringProjectDevice (EID)Version (AID)Geometry, Materials, Zones, BCs, Simulations

The 3D viewport (3D viewer)

The central canvas is powered by the rendering engine and supports real-time interaction:

  • Rotate: left-click + drag
  • Pan: middle-click + drag (or Shift + left-click)
  • Zoom: scroll wheel
  • Quad View / MPR: switch to three orthogonal planes + 3D in the top toolbar

Tip: Use the DivLayoutLens toggle at the bottom-center of the viewport to enable lens/focus view for inspecting small regions.

Switching between modes

Click the mode selector in the top-left toolbar to switch between Patient mode (medical) and Project mode (engineering). Data persists across mode switches.

Medical Workflow Overview Medical

The Medical Workflow enables clinicians and researchers to move from raw imaging data to quantitative clinical insights in five stages:

1
๐Ÿ“‚
DICOM Upload
Import CT or MRI scans for a patient record
โ†’
2
โœ‚๏ธ
Segmentation
AI or manual isolation of anatomical structures
โ†’
3
๐Ÿ—๏ธ
3D Reconstruction
Convert masks into watertight surface meshes
โ†’
4
๐Ÿซ
Virtual Spirometry
Non-invasive respiratory function analysis
โ†’
5
๐Ÿ”ฌ
Reinflation
Predict post-surgical lung volume recovery

Data hierarchy

FlowLeap organises all medical data in a four-level tree stored in the database:

Patient (ID)
โ””โ”€โ”€ Event (EID)  โ€” e.g. "2024-01-15_CT"
    โ””โ”€โ”€ Acquisition (AID)  โ€” e.g. "CTscan"
        โ””โ”€โ”€ Series (SID)  โ€” e.g. "scan001"
            โ”œโ”€โ”€ Image Data
            โ”œโ”€โ”€ Anatomy  โ† segmentations & 3D meshes
            โ”œโ”€โ”€ Virtual Spirometries
            โ””โ”€โ”€ Reinflations

Clinical applications

๐Ÿ”ช

Preoperative Planning

Visualise anatomy and predict post-resection function before surgery.

๐Ÿ“ˆ

Respiratory Assessment

Evaluate lung function without invasive breathing tests.

๐Ÿ”ฎ

Surgical Outcome Prediction

Predict lobar reinflation after lobectomy with the SURGELUNG module.

๐Ÿ”ฌ

Research

Correlate anatomy with function across patient populations.

Step 1 ยท Uploading DICOM Data Medical

Import CT or MRI scan data into FlowLeap by creating a patient record and uploading DICOM files. FlowLeap accepts DICOM folders, ZIP archives, and VTI volumes.

Radiology Import panel
Radiology Import panel โ€” drag-and-drop zone accepting .zip, .vti, .nii, .nrrd, .dicom, .dcm and image formats

Step-by-step

1

Create or select a patient

In the left sidebar, find the Patients section. Click + New Patient and fill in the patient ID, name, date of birth and gender. Or click an existing patient to load their record.

2

Create an Event

Click + Add Event on the patient node. Use a descriptive ID such as 2024-01-15_CT (date + modality). Events group imaging sessions chronologically.

3

Open the Radiology Import panel

Select the event and click Upload Data in the toolbar, or right-click โ†’ Upload DICOM. The Radiology Import panel opens (shown above).

4

Drop or browse your files

Drag a DICOM folder, ZIP archive, or VTI file onto the dotted drop zone. Supported formats: .zip .vtl .nii .nrrd .mhd .dicom .png .jpg. A progress bar confirms the upload.

5

Verify the scan in the viewer

Click the uploaded series in the left sidebar to open it. The viewer shows three orthogonal planes (axial, coronal, sagittal) + a 3D volume. Use the Window/Level dropdown presets (Lung, Soft Tissue, Bone) to optimise contrast.

Tip: For large datasets (>1 GB), compress to ZIP before uploading to reduce transfer time and ensure all files arrive as a single bundle.

Step 2 ยท Organ Segmentation Medical

Segmentation isolates anatomical structures within the 3D volume. Navigate to Modules โ†’ Patient Mode โ†’ Segment and Reconstruct to open the segmentation panel.

Segmentation panel with lung lobes overlaid
Segment and Reconstruct panel โ€” lung lobes selected as target, with individual lobe segments listed and colour-coded overlays in the viewport

the AI segmentation engine โ€” AI-powered segmentation

the AI segmentation engine uses deep-learning models to automatically identify multiple organs in one pass. It is the recommended starting point for all segmentation tasks.

1

Select a target

In the Segmentation section, open the Target dropdown. Available targets include lungs, cardiac, and many vascular structures. Select the anatomy you need.

2

Run the AI segmentation engine

Click the circular run button below the target selector. Processing takes 10 seconds to 3 minutes depending on target complexity. A progress indicator shows status.

3

Review the segment list

When complete, all detected structures appear in the Merge segments list (e.g. lung_upper_lobe_left, lung_lower_lobe_right, trachea, pulmonary_vein). Use the eye icons to toggle visibility per structure.

Segmentation result showing cardiac and vascular structures
Segmentation result (cardiac target) โ€” arteries in red, veins in blue/cyan, heart in pink/purple, aorta labelled. Each structure has a white text label in the 3D viewport.

Manual tools

Use manual tools to refine the AI segmentation engine results or segment structures the AI model misses:

ToolUseKey parameter
Region GrowingExpand from a seed point within intensity rangeLower/Upper threshold (HU)
ThresholdingSelect all voxels within an HU rangeMin/Max HU values
BrushPaint mask manually slice-by-sliceBrush size (px), 3D mode
EraserRemove painted regionsEraser size
Scissors/ContourDraw precise boundariesContour closure

Saving segmentation

Click Save Segmentation โ†’ enter a name โ†’ choose Anatomy Database (stores in patient record) or export as NIfTI / NRRD. Saved segmentations appear under the series node in the left sidebar.

Before proceeding: verify in the 3D preview that segmentation covers the full organ, has no large holes, and has no significant overlap with adjacent structures. Use Mask Refinement tools (island removal, hole filling, smoothing) to clean up.

Step 3 ยท 3D Reconstruction Medical

3D reconstruction converts the voxel mask into a continuous, watertight surface mesh. Open the Reconstruction tab inside the Segment and Reconstruct panel.

3D reconstruction โ€” segmented lobes in the viewport
3D reconstruction view โ€” segmented lung lobes rendered with stacked-contour surfaces, each lobe in a distinct colour, overlaid on the background CT volume

Reconstruction pipeline

1

Marching Cubes

Extracts the initial surface from the binary mask. Key settings: Iso-Value (default 0.5 for binary masks) and Decimate Target โ€” the percentage of triangles to retain (default 25%, range 5โ€“100%).

2

Smoothing

Eliminates staircase artefacts from voxel-to-surface conversion. Three methods available: Laplacian (fast, may shrink slightly), Taubin (no shrinkage), Sinc (highest quality, recommended). Set Iterations (15โ€“20 is a good default).

3

Hole Filling

Set a maximum hole diameter (mm) and click Fill Holes. Check Validate Mesh afterwards โ€” the mesh should report as Watertight and Manifold before proceeding.

4

Save or Export

Click Save Reconstruction to store in the database (accessible via left sidebar โ†’ Series โ†’ Anatomy). Or export as VTP, STL, or OBJ for external tools.

Mesh quality targets

ParameterTarget rangeNote
Triangle count50 K โ€“ 200 KBalances quality and performance
Min quality> 0.7Shown in the Mesh Info panel
Watertightโœ“Required for volume calculation and simulation
Manifoldโœ“No edge shared by more than 2 triangles

Step 4 ยท Virtual Spirometry Medical

Virtual spirometry computes standard respiratory function metrics (FEV1, FVC, FEV1/FVC) from reconstructed lung geometry โ€” no patient effort or spirometer required. Navigate to Modules โ†’ Patient Mode โ†’ Virtual Spirometry.

Virtual Spirometry setup panel
Virtual Spirometry panel โ€” patient parameters (Age 70, Height 186 cm, Weight 80 kg, BMI 23, Male), compliance 80 ml/cmHโ‚‚O, damping 0.08, with trachea and pulmonary vessels visible in the 3D viewport

Setup

1

Load lung geometry

Click Load Anatomy โ€” the system searches for reconstructed lungs in the current acquisition. Select left, right, or both. Optionally load airway geometry (improves accuracy of flow predictions).

2

Enter patient parameters

Fill in Age, Height, Weight, and Gender in the Patient Parameters section. These are used to normalise results against population predicted values. The BMI field auto-calculates.

3

Set mechanical parameters

The key settings are Compliance (default 80 ml/cmHโ‚‚O for healthy lung) and Damping (default 0.08 m/sยฒ). Enable Fibrosis (Expt.) to model stiffer tissue. Choose the breathing manoeuvre: Forced expiration or Slow VC.

4

Run the analysis

Click the run button. Processing takes 10โ€“60 minutes depending on quality. Results populate in the Virtual Spirometries node in the left sidebar when complete.

Interpreting results

MetricNormal rangePattern
FEV1 % predictedโ‰ฅ 80%<80% = reduced
FVC % predictedโ‰ฅ 80%<80% = restricted
FEV1/FVCโ‰ฅ 70%<70% = obstructive

Important: Virtual spirometry is a clinical decision support tool. All diagnostic decisions must be made by qualified healthcare professionals and validated against actual spirometry where available.

Step 5 ยท Reinflation Analysis Medical

The SURGELUNG module predicts how remaining lung lobes will expand to fill the pleural space after lobectomy. Navigate to Modules โ†’ Patient Mode โ†’ Reinflation Analysis.

Reinflation result โ€” lobes labelled Right Upper, Right Middle, Right Lower (Reinflated) and Left Upper (Reinflated)
Reinflation result โ€” remaining lobes after left-lower lobectomy, colour-coded and labelled "Right Upper (Reinflated)", "Right Middle (Reinflated)", "Right Lower (Reinflated)", "Left Upper (Reinflated)"

Workflow

1

Load preoperative anatomy

Click Load Preoperative Lungs. Lobar segmentation is required โ€” if not done, use the fissure detection tool or segment lobes manually first.

2

Define the surgical resection

Select Resection Type (single lobectomy, bilobectomy, segmentectomy) and choose which lobe to remove. Click Preview Resection to visualise the surgical boundary in the viewport.

3

Set biomechanical parameters

Use a preset (Healthy Adult, COPD/Emphysema, Pulmonary Fibrosis, Elderly) or set tissue elasticity (Young's modulus), pleural pressure, and boundary conditions manually.

4

Run the simulation

Select quality (Fast 10โ€“20 min / Standard 20โ€“40 min / High 40โ€“90 min) and click Run Reinflation Analysis. Results are saved under the Reinflations node in the left sidebar.

5

Review and export

The results panel shows volume changes per lobe, predicted postoperative FEV1 and FVC, a before/after 3D comparison, and an expansion colour map. Export as PDF report or CSV for clinical documentation.

Risk thresholds

Risk levelPredicted postop FEV1Net volume loss
โœ… Low> 60% predicted< 20%
โš ๏ธ Moderate40โ€“60% predicted20โ€“30%
๐Ÿ”ด High< 40% predicted (<800 mL)> 30%

Engineering Workflow Overview Engineering

The Engineering Workflow is designed for biomedical engineers and device manufacturers who need to simulate fluid dynamics inside anatomical or device geometries using the the simulation solver CFD/DEM engine.

1
๐Ÿ“
Import Geometry
Load STL/VTP from file or OnShape CAD integration
โ†’
2
๐Ÿงช
Materials
Assign blood, air, or custom fluid properties
โ†’
3
๐Ÿ—บ๏ธ
Zones & BCs
Define regions and set inlet/outlet conditions
โ†’
4
๐ŸŒŠ
CFD Simulation
Run the simulation solver solver โ€” fluid, thermal, particles
โ†’
5
๐Ÿ“Š
Results
Velocity fields, pressure maps, streamlines

Geometry Import Engineering

Import your device or anatomical geometry into an Engineering project. FlowLeap supports STL and VTP files, as well as direct import from OnShape via the CAD integration.

Engineering project list with AORTA model and 3D thumbnails
Engineering project list โ€” AORTA project selected, showing two completed simulation jobs (job_1, job_2 at 100%) and three 3D preview thumbnails of the aorta geometry

Material assignment

After importing geometry, assign physical fluid properties to the internal volume:

Material properties panel with Blood fluid and green 3D aorta model
Material Properties panel โ€” Blood fluid selected (density 700 kg/mยณ, viscosity 2.e-6 Paยทs, thermal conductivity 5.1e-6 W/mK). Green 3D aorta model with cyan outlet marker visible in the viewport. Geometry info: 14,932 triangles, volume 225,652 mmยณ.
PropertyBlood (default)Unit
Density700kg/mยณ
Viscosity2.e-6Paยทs
Thermal conductivity5.1e-6W/mK
Specific heat5.2e-7J/kgK

CFD Simulation Engineering

Configure and launch a the simulation solver CFD simulation job. FlowLeap provides a Slow โ†” Rapidity slider to trade off accuracy vs. compute time, with an automatic workload estimate before you commit.

Simulation configuration โ€” CFD-based approach, workload estimate, boundary conditions
Simulation setup โ€” CFD-based approach selected, Slow setting at 1 XPU, estimated wait 0.001 h and 0.0001 credits. Two boundary conditions: Pressure Outlet 1 (green) and Pressure Outlet 2 (yellow). Jobs job_1 and job_2 both at 100% completion.

Zone definition

Zone definition panel
Zone definition โ€” Taxonomy tree showing AORTA project with Materials (1 โ€” Blood) and Zones (4 โ€” Zone with 129 elements assigned)

Boundary conditions

Set inlet/outlet conditions for each face of the geometry. FlowLeap supports:

  • Velocity Inlet โ€” specify flow rate or velocity profile
  • Pressure Outlet โ€” specify static pressure at outflow
  • Wall โ€” no-slip or slip boundary
  • Symmetry โ€” for half-model simulations

Results Visualization Engineering

Once a simulation job completes (status: 100% green), open the Results section in the simulation panel to visualise scalar fields and animations.

Results viewer โ€” velocity field on aorta model with blue-to-red colorbar
Results viewer โ€” velocity field rendered on the aorta model using a blue-to-red colormap (0โ€“0.8 m/s). Frame: 1/1 (0.32 s). Colourbar labelled "velocity [m/s]" visible at the bottom of the viewport.

Available scalars

ScalarDescription
Velocity [m/s]Flow speed at each point; blue = slow, red = fast
Pressure [Pa]Static pressure distribution
Wall Shear StressTangential stress on vessel/device walls
Temperature [K]For thermal simulations
Particle densityFor DEM particle tracking

Export

Use the Clipping sub-panel for cross-sectional views, the Animation sub-panel to step through transient results, and the download button (โ†“ icon near outlet markers) to export results as VTP files for post-processing in ParaView or similar tools.

Simulation running progress
Simulation in progress โ€” boundary conditions and solver progress visible in the left panel