> For the complete documentation index, see [llms.txt](https://dev.pointr.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.pointr.tech/features/indoor-maps/create-a-map/mapscale-r-ai/how-the-mapscale-r-ai-model-works.md).

# How the MapScale® AI Model Works

How the MapScale® AI models are built, trained and validated, what data they use, and what to expect for processing time and releases.

MapScale® converts raw CAD and PDF floor plans into interactive 2D/3D digital maps, removing the need for manual mapping and site surveys. This page describes the AI behind that process. For how to use MapScale®, see [MapScale® AI](https://dev.pointr.tech/features/indoor-maps/create-a-map/mapscale-r-ai.md).

## Model architecture

MapScale® replicates the process a human mapping expert follows:

1. **Visual survey** – Transformer-based visual detection models analyze each floor plan and identify spatial structures such as walls, units and furniture.
2. **Geometry refinement** – Patented post-processing algorithms refine the detection results into precise map geometries.
3. **Classification and metadata** – The MapScale® LLM classifies each map item and assigns its metadata, such as name, category and ID.
4. **Validation** – Validation algorithms check every model output against expected results before it is included in the final map.

Because the task is quantitative (detecting and classifying map units), model parameters are fine-tuned with strict constraints so that outputs always conform to the [Pointr taxonomy](https://dev.pointr.tech/features/indoor-maps/taxonomy-table.md).

## AI models and third-party services

MapScale® uses Pointr's own proprietary models for map creation. Training may start from a publicly available base model, and all further training is done in Pointr's own environment.

Alongside these models, MapScale® may use enterprise-grade, cloud-based AI services for specific steps of map creation, such as classifying map units and normalizing their names. Each step receives only the data it needs: rendered images of the floor plan or parts of it, and related text such as room names and numbers. The CAD files themselves are never shared. These services are used under enterprise terms that do not allow the provider to use this data to train its models, and every output is checked against the Pointr taxonomy and validated by the MapScale® process before it is included in the final map.

## Data used by the model

The model works only with the spatial and textual content of floor plans:

* Vector lines and polygon information
* Text in DWG, DXF and PDF files, including space names and room labels
* Space types
* Space structures such as walls, desks, chairs and other furniture

## Model training

Training data is validated by Pointr mapping experts and reviewed by the R\&D team, manually and automatically, so that it is valid, balanced and free from bias such as repeated data. See [MapScale® AI Quality & Governance](https://dev.pointr.tech/features/indoor-maps/create-a-map/mapscale-r-ai/mapscale-r-ai-quality-and-governance.md) for these controls.

Once the data is ready, the models are trained and fine-tuned. For each detected map unit, the model outputs a calibrated confidence score between 0 and 1. These scores are evaluated against ground-truth labels from validation sets to measure detection and classification performance. Several configurations and parameters are tested to choose the best model structure, and the selected model is then evaluated on a held-out test set and compared with previous versions to confirm it improves on them.

## Model validation and metrics

Venue data from many sites worldwide is split into training, validation and test sets using stratified sampling. Each model is tested against a comprehensive test set and evaluated on:

* Precision
* Recall
* F1-score
* Taxonomy conformity
* Error reduction compared to previous versions

The final performance score is the percentage of map units that are correctly detected and classified.

{% hint style="info" %}
For more on how Pointr benchmarks mapping accuracy, read the blog post [*Measuring AI Mapping Performance*](https://www.pointr.tech/blog/measuring-ai-mapping-performance).
{% endhint %}

## Processing time

The MapScale® endpoint typically processes a single floor plan file in **5–10 minutes**.

| Percentile | Processing time |
| ---------- | --------------- |
| Typical    | 5–10 minutes    |
| P90        | \~20 minutes    |
| P95        | \~30 minutes    |

There is no public batch endpoint. Concurrent uploads are queued and handled internally.

## Release cadence

New versions of the MapScale® models are released **quarterly**. If you need to stay on a specific model version, version locking is available on request through your Pointr contact.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://dev.pointr.tech/features/indoor-maps/create-a-map/mapscale-r-ai/how-the-mapscale-r-ai-model-works.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
