> For the complete documentation index, see [llms.txt](https://4heal.gitbook.io/4heal-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://4heal.gitbook.io/4heal-1/introduction/overall-architecture.md).

# Overall Architecture

Six Layers of Health Intelligence

From a system perspective, 4Heal is a six-layer health intelligence architecture:

#### 1. Sensing Layer

Inputs from various wearables and health data sources, including:

* Heart rate / HRV
* Sleep structure
* Stress trends
* Temperature trends
* Activity behavior
* Diet records
* Medical check-up / lab results

**Mission:**&#x54;o make the body **continuously visible**.

***

#### 2. Data Fusion Layer

4Heal standardizes all heterogeneous data into a unified structure:

* Time-series modeling;
* Multi-modal fusion (physiological trends + behaviors + reports);
* Data cleaning & anomaly detection;
* Baseline modeling for each individual.

This is the **“data semantics layer”** for the AI.

***

#### 3. Cognitive & Inference Layer

This layer is formed by the **AI Health Agent** and **Digital Twin**, and acts as the **brain** of the entire health intelligence system.

Its functions include:

* Health status reasoning;
* Risk prediction;
* Trend analysis;
* Long-term rhythm recognition;
* Personality–health pattern mapping (Personality Health Mapping).

This layer determines:

> **Whether the system can truly understand the user.**

***

#### 4. Action Layer

The AI converts reasoning results into executable actions:

* 7-day health plans;
* 30-day strategies;
* Daily tasks;
* Intervention experiments;
* Behavior completion tracking;
* Bodily response detection → automatic strategy adjustment.

This layer is the **engine** for user health improvement.

***

#### 5. Network & Depin Layer

The 4Heal Depin Network uses incentives to drive:

* Data contribution;
* Behavior contribution;
* Health improvement contribution;
* Digital Twin model contribution.

It is a **value network based on real health actions and physiological data contribution.**

This layer enables:

> Individual health efforts → become network contribution → which returns value back to the individual.

***

#### 6. Privacy & Sovereignty Layer

This includes:

* AES256 encryption;
* User rights to export/delete their data;
* Visibility controls;
* Local-first computing (Local-first AI) where possible.

This layer ensures:

> **Health data belongs to the user, not the system.**

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://4heal.gitbook.io/4heal-1/introduction/overall-architecture.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
