# Brain Atrophy & Parenchymal Fraction Calculator AI Agent Connect

> Brain Atrophy & Parenchymal Fraction Calculator provides your AI agent with specialized tools for neuroimaging quantification. It handles the math for brain parenchymal fraction (BPF) and calculates annualized atrophy rates to track tissue loss over time. You can use it to validate scan quality or pull volume metadata to ensure your analysis stays consistent.

## Overview
- **Category:** data-science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_mhlZesjaILbaTmOKGgcdd8mWGe6Ynn0Ct55BwNhK/ai-agent-connect
- **Tags:** neuroscience, atrophy, brain-volume, medical-imaging, longitudinal-analysis

## Description

You can use this MCP to automate the heavy lifting involved in neuroimaging quantification. Instead of manually calculating ratios or tracking volume changes across multiple scans, you can hand those tasks to your AI client. It calculates the brain parenchymal fraction (BPF) to determine the ratio of brain tissue to intracranial volume. For longitudinal studies, it computes both absolute and percentage yearly volume changes to track how tissue loss progresses over time. To keep your data clean, the MCP includes a validation tool that checks if a pair of scans meets the clinical thresholds required for reliable longitudinal analysis. It also handles volume metadata, making it easy to manage measurements in units like mm3 or ml without manual conversion errors.

## Tools

### calculate_annualized_atrophy
This tool calculates the rate of tissue loss between two specific time points. It provides both absolute and percentage yearly volume changes.

### calculate_parenchymal_fraction
This tool determines the current brain parenchymal fraction for a single scan. It finds the ratio of brain tissue to intracranial volume.

### get_volume_metadata
This tool summarizes volume components and units for a specific analysis. It helps you keep track of mm3 or ml measurements.

### validate_scan_pair_quality
This tool evaluates whether a pair of scans is suitable for longitudinal analysis. It checks for things like registration errors and sufficient time intervals.

## Prompt Examples

**Prompt:** 
```
Calculate the parenchymal fraction for a scan with 1100 mm3 of brain tissue and 1400 mm3 of intracranial volume where segmentation is complete.
```

**Response:** 
```
The calculated brain parenchymal fraction is 0.7857.
```

**Prompt:** 
```
What is the annualized atrophy rate if the initial volume was 1200 mm3, the subsequent volume is 1150 mm3, the initial intracranial volume was 1400 mm3, the subsequent was 1410 mm3, there were 365 days between scans, and the registration correction factor is 1.0?
```

**Response:** 
```
The absolute annualized change is -50.0 mm3 and the percentage annualized change is -4.17%.
```

**Prompt:** 
```
Check if a scan pair is valid with 100 days between scans, a registration error of 0.05, and complete segmentation.
```

**Response:** 
```
The scan pair is invalid due to insufficient_interval.
```

## Capabilities

### Tissue Loss Tracking
Your agent uses this to compute annualized atrophy rates from longitudinal scan data.

### BPF Calculation
The AI calculates the ratio of brain tissue to intracranial volume for single scans.

### Scan Quality Validation
Your agent checks if scan pairs meet the necessary clinical thresholds for analysis.

### Volume Metadata Management
The MCP formats and summarizes volume measurements into standard units like mm3 or ml.

## Use Cases

### Longitudinal Atrophy Studies
Track how brain tissue changes over months or years by calculating annualized rates.

### Clinical Research Quantification
Determine the brain parenchymal fraction for individual patients to support research findings.

### Data Quality Control
Ensure your longitudinal analysis is reliable by checking scan registration and intervals.

### Volume Standardization
Convert and summarize volume components into consistent units for large datasets.

## Benefits

- Automates the math for annualized atrophy rates.
- Reduces errors by validating scan pair quality before analysis.
- Standardizes volume measurements using metadata tools.
- Speeds up longitudinal study workflows by calculating BPF automatically.

## How It Works

Connect your AI client to Vinkius to start running neuroimaging calculations immediately.

1. Connect your preferred MCP-compatible client like Claude or Cursor to Vinkius.
2. Provide your neuroimaging data or volume measurements to your AI agent.
3. The agent calls the specific tool needed, such as calculate_parenchymal_fraction.
4. The MCP performs the calculation and returns the result to your agent.
5. Your agent presents the final quantified data or validation status to you.

## Frequently Asked Questions

**What can this MCP calculate?**
It calculates brain parenchymal fraction (BPF) and annualized atrophy rates for longitudinal tissue loss.

**How does it handle different volume units?**
The get_volume_metadata tool helps format and summarize volume measurements into standard units like mm3 or ml.

**Can it check if my scans are good enough for analysis?**
Yes, the validate_scan_pair_quality tool checks if scan pairs meet clinical thresholds for longitudinal work.

**Which AI clients can use this MCP?**
You can use this with any MCP-compatible client, including Claude, Cursor, Windsurf, and VS Code.

**Does it provide absolute or percentage changes?**
The annualized atrophy tool provides both absolute and percentage yearly volume changes.

**How do I calculate the brain parenchymal fraction?**
You can use the `calculate_parenchymal_fraction` tool by providing the parenchymal volume, the intracranial volume, and the segmentation completeness status.

**Can this tool help with longitudinal studies?**
Yes, the `calculate_annualized_atrophy` tool is specifically designed to calculate the rate of tissue loss between two distinct time points in a longitudinal study.

**How does the tool ensure data quality?**
The `validate_scan_pair_quality` tool evaluates scan pairs based on the time interval between scans, registration error metrics, and segmentation completeness to ensure the data is suitable for analysis.
