<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3-mathml3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" article-type="research-article" dtd-version="1.3" xml:lang="EN">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Signal Process.</journal-id>
<journal-title-group>
<journal-title>Frontiers in Signal Processing</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Signal Process.</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub">2673-8198</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">1884243</article-id>
<article-id pub-id-type="doi">10.3389/frsip.2026.1884243</article-id>
<article-version article-version-type="Version of Record" vocab="NISO-RP-8-2008"/>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Original Research</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>IndoorCART: a spatially-aware transformer framework for Wi-Fi fingerprinting indoor localization</article-title>
<alt-title alt-title-type="left-running-head">Singh et al.</alt-title>
<alt-title alt-title-type="right-running-head">
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3389/frsip.2026.1884243">10.3389/frsip.2026.1884243</ext-link>
</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name>
<surname>Singh</surname>
<given-names>Balaram</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/3524374"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Conceptualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Data curation" vocab-term-identifier="https://credit.niso.org/contributor-roles/data-curation/">Data curation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Formal analysis" vocab-term-identifier="https://credit.niso.org/contributor-roles/formal-analysis/">Formal Analysis</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Methodology" vocab-term-identifier="https://credit.niso.org/contributor-roles/methodology/">Methodology</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Validation" vocab-term-identifier="https://credit.niso.org/contributor-roles/validation/">Validation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Visualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/visualization/">Visualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; original draft" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-original-draft/">Writing - original draft</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Chatterjee</surname>
<given-names>Rajdeep</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/3295570"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Conceptualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Formal analysis" vocab-term-identifier="https://credit.niso.org/contributor-roles/formal-analysis/">Formal Analysis</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Methodology" vocab-term-identifier="https://credit.niso.org/contributor-roles/methodology/">Methodology</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Project administration" vocab-term-identifier="https://credit.niso.org/contributor-roles/project-administration/">Project administration</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Supervision" vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/">Supervision</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Gourisaria</surname>
<given-names>Mahendra Kumar</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/3219677"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Methodology" vocab-term-identifier="https://credit.niso.org/contributor-roles/methodology/">Methodology</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Project administration" vocab-term-identifier="https://credit.niso.org/contributor-roles/project-administration/">Project administration</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Supervision" vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/">Supervision</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Sahni</surname>
<given-names>Manoj</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/2780006"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Formal analysis" vocab-term-identifier="https://credit.niso.org/contributor-roles/formal-analysis/">Formal Analysis</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Methodology" vocab-term-identifier="https://credit.niso.org/contributor-roles/methodology/">Methodology</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Project administration" vocab-term-identifier="https://credit.niso.org/contributor-roles/project-administration/">Project administration</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Visualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/visualization/">Visualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Le&#xf3;n-Castro</surname>
<given-names>Ernesto</given-names>
</name>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/2907889"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Funding acquisition" vocab-term-identifier="https://credit.niso.org/contributor-roles/funding-acquisition/">Funding acquisition</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &#x26; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/">Writing - review and editing</role>
</contrib>
</contrib-group>
<aff id="aff1">
<label>1</label>
<institution>School of Computer Science and Engineering, KIIT Deemed to be University</institution>, <city>Bhubaneswar</city>, <country country="IN">India</country>
</aff>
<aff id="aff2">
<label>2</label>
<institution>Department of Mathematics, School of Technology, Pandit Deendayal Energy University</institution>, <city>Gandhinagar</city>, <state>Gujarat</state>, <country country="IN">India</country>
</aff>
<aff id="aff3">
<label>3</label>
<institution>Faculty of Economics and Administrative Sciences, Universidad Cat&#xf3;lica de la Sant&#xed;sima Concepci&#xf3;n</institution>, <city>Concepci&#xf3;n</city>, <country country="CL">Chile</country>
</aff>
<author-notes>
<corresp id="c001">
<label>&#x2a;</label>Correspondence: Rajdeep Chatterjee, <email xlink:href="mailto:cse.rajdeep@gmail.com">cse.rajdeep@gmail.com</email>; Mahendra Kumar Gourisaria, <email xlink:href="mailto:mkgourisaria2010@gmail.com">mkgourisaria2010@gmail.com</email>
</corresp>
</author-notes>
<pub-date publication-format="electronic" date-type="pub" iso-8601-date="2026-09-18">
<day>18</day>
<month>09</month>
<year>2026</year>
</pub-date>
<pub-date publication-format="electronic" date-type="collection">
<year>2026</year>
</pub-date>
<volume>6</volume>
<elocation-id>1884243</elocation-id>
<history>
<date date-type="received">
<day>18</day>
<month>05</month>
<year>2026</year>
</date>
<date date-type="rev-recd">
<day>05</day>
<month>08</month>
<year>2026</year>
</date>
<date date-type="accepted">
<day>10</day>
<month>08</month>
<year>2026</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2026 Singh, Chatterjee, Gourisaria, Sahni and Le&#xf3;n-Castro.</copyright-statement>
<copyright-year>2026</copyright-year>
<copyright-holder>Singh, Chatterjee, Gourisaria, Sahni and Le&#xf3;n-Castro</copyright-holder>
<license>
<ali:license_ref start_date="2026-09-18">https://creativecommons.org/licenses/by/4.0/</ali:license_ref>
<license-p>This is an open-access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution License (CC BY)</ext-link>. The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</license-p>
</license>
</permissions>
<abstract>
<p>Accurate indoor localization remains difficult in GPS-denied environments because Wi-Fi received signal strength indicator (RSSI) fingerprints are sparse, noisy, device-dependent, and strongly affected by multipath propagation, non-line-of-sight conditions, and environmental dynamics. To address these challenges, we present IndoorCART (Indoor Context-Aware RSSI Transformer), an encoder-only transformer framework designed specifically for coordinate-regression-based Wi-Fi fingerprinting. IndoorCART represents access-point measurements as RSSI tokens, incorporates learnable access-point identity information, applies missing-signal-aware Adaptive Attention to model contextual dependencies among observed and unobserved signals, and combines CLS-token and global-average representations for robust coordinate prediction. The model is evaluated on three public indoor-localization benchmarks, namely, UJIIndoorLoc, TUJI1, and SODIndoorLoc, using a controlled comparison with nine reproducible regression baselines. IndoorCART achieves mean absolute errors of 4.79 m, 0.18 m, and 1.33&#xa0;m on UJIIndoorLoc, TUJI1, and SODIndoorLoc, respectively, with corresponding <inline-formula id="inf1">
<mml:math id="m1">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mtext>R</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> scores of 0.99, 0.98, and 0.99. These results show that the proposed context-aware transformer consistently provides the lowest localization error among the implemented baselines and is particularly beneficial in sparse or structurally complex fingerprinting scenarios. We further position the proposed method against recent transformer-based indoor-localization studies through a literature-level comparison, while explicitly distinguishing reported external results from controlled reimplementations. Overall, IndoorCART offers an accurate and reliable framework for Wi-Fi-based indoor positioning; however, practical deployment should further consider model size, inference latency, energy consumption, device heterogeneity, and the modest performance gain observed on densely sampled datasets such as UJIIndoorLoc.</p>
</abstract>
<kwd-group>
<kwd>coordinate regression</kwd>
<kwd>indoor localization</kwd>
<kwd>received signal strength indicator</kwd>
<kwd>transformer</kwd>
<kwd>Wi-Fi fingerprinting</kwd>
</kwd-group>
<funding-group>
<funding-statement>The author(s) declared that financial support was received for this work and/or its publication. The research and publication costs of this work were supported by Mr. Balaram Singh.</funding-statement>
</funding-group>
<counts>
<fig-count count="11"/>
<table-count count="28"/>
<equation-count count="23"/>
<ref-count count="22"/>
<page-count count="32"/>
</counts>
<custom-meta-group>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Statistical Signal Processing</meta-value>
</custom-meta>
</custom-meta-group>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<label>1</label>
<title>Introduction</title>
<p>The rapid deployment of 5G and the transition toward 6G are increasing demand for accurate indoor positioning in GPS-denied environments such as factories, hospitals, campuses, and transport hubs (<xref ref-type="bibr" rid="B19">Vishwakarma et al., 2023</xref>). Among available signal modalities, received signal strength indicator (RSSI)-based localization remains attractive because it leverages existing wireless infrastructure while balancing scalability, cost, and coverage. Yet RSSI-based positioning remains difficult: attenuation, multipath propagation, non-line-of-sight conditions, hardware heterogeneity, interference, and environmental dynamics make the mapping from fingerprints to physical coordinates highly nonlinear and unstable, limiting conventional geometric and fingerprint-matching methods (<xref ref-type="bibr" rid="B6">Lezama et al., 2021</xref>).</p>
<p>Wi-Fi fingerprinting can be formulated as either classification or regression. Although classification is convenient in discretized settings, it introduces quantization effects and limited spatial resolution. Regression is better aligned with continuous physical space, but it requires models that can capture complex global dependencies among access point measurements. Transformers are therefore a natural fit: unlike recurrent models, they impose no artificial ordering on RSSI features, and self-attention can emphasize informative long-range interactions across the full fingerprint space (<xref ref-type="bibr" rid="B7">Mallik et al., 2023</xref>).</p>
<p>Motivated by these considerations, we propose IndoorCART, a domain-adapted spatial-context transformer for Wi-Fi RSSI indoor positioning. IndoorCART uses bidirectional spatial self-attention to learn a robust mapping from fingerprint space to continuous coordinates without sequential assumptions. We evaluate the model using predictive accuracy, performance variability, and statistical significance and hypothesize that IndoorCART will achieve lower localization error and more consistent regression performance than competing approaches.</p>
<sec id="s1-1">
<label>1.1</label>
<title>Contributions</title>
<p>The main contributions of this work are summarized as follows:<list list-type="bullet">
<list-item>
<p>We propose &#x201c;IndoorCART: A Context-Aware RSSI Transformer&#x201d;, an encoder-only transformer architecture for RSSI-based indoor localization that leverages bidirectional self-attention to capture rich contextual dependencies across the full set of access point signals simultaneously.</p>
</list-item>
<list-item>
<p>We propose Adaptive Attention, an RSSI-aware attention mechanism that incorporates custom masking and absent-signal embeddings to improve representation quality under incomplete or irregular signal observations.</p>
</list-item>
<list-item>
<p>We introduce a hybrid pooling strategy that combines a CLS token representation with global average pooling for improved feature aggregation.</p>
</list-item>
<list-item>
<p>We provide a unified framework that supports both classification and regression tasks within a single modeling pipeline.</p>
</list-item>
<list-item>
<p>We demonstrate state-of-the-art localization accuracy, achieving MAE/<inline-formula id="inf2">
<mml:math id="m2">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>values of 4.79&#xa0;m/0.99 on UJIIndoorLoc, 0.18&#xa0;m/0.98 on TUJI1, and 1.33&#xa0;m/0.99 on SODIndoorLoc, thereby highlighting robust and adaptive performance across diverse indoor environments.</p>
</list-item>
</list>
</p>
<p>IndoorCART is formulated as a representation-learning framework in which a shared transformer encoder maps RSSI fingerprints to a latent feature space, although the present study focuses on coordinate regression because indoor localization is inherently continuous. This formulation avoids the quantization error and boundary effects introduced by label-based discretization and enables performance to be assessed directly in metric space. The main contribution of this work is a context-aware transformer for RSSI-based localization that captures global dependencies among access point measurements without relying on local feature interactions or sequential assumptions. Implemented in PyTorch and evaluated on SODIndoorLoc, TUJI1, and UJIIndoorLoc, IndoorCART achieves MAE/<inline-formula id="inf3">
<mml:math id="m3">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>values of 1.33&#xa0;m/0.99, 0.18&#xa0;m/0.98, and 4.79&#xa0;m/0.99, respectively, consistently outperforming nine established regression baselines across heterogeneous indoor environments.</p>
</sec>
<sec id="s1-2">
<label>1.2</label>
<title>Organization</title>
<p>The paper contains seven sections. The remainder of this paper is organized as follows. <xref ref-type="sec" rid="s2">Section 2</xref> reviews prior work on Wi-Fi fingerprinting, deep learning-based indoor localization, and transformer-based modeling strategies. Section3 describes the datasets, preprocessing pipeline, IndoorCART architecture, baseline models, training procedure, evaluation metrics, and statistical analysis. Section <xref ref-type="disp-formula" rid="e4">Equation 4</xref> presents the experimental results and comparative performance across the benchmark datasets. Section5 discusses the implications of the findings, the strengths of the proposed transformer-based approach, and the main limitations of the study. Finally, Section6 concludes the paper and outlines directions for future research.</p>
</sec>
</sec>
<sec id="s2">
<label>2</label>
<title>Related work</title>
<sec id="s2-1">
<label>2.1</label>
<title>Indoor localization</title>
<p>Indoor localization estimates the position of a person, device, or asset in environments where GPS is unreliable or unavailable. It supports navigation, tracking, emergency response, smart manufacturing, and other context-aware services, but is more challenging than outdoor positioning because enclosed spaces create complex propagation conditions and limited line of sight (<xref ref-type="bibr" rid="B14">Rathnayake et al., 2023</xref>).</p>
<p>In RSSI-based systems, walls, furniture, human movement, floor transitions, multipath reflections, shadowing, and non-line-of-sight effects distort the mapping between measured signals and physical position. Device heterogeneity, access-point density, temporal interference, calibration inconsistency, and environmental change further increase this variability, making indoor localization noisy, high-dimensional, and strongly context dependent (<xref ref-type="bibr" rid="B13">Obeidat et al., 2021</xref>).</p>
<p>These challenges are compounded by deployment constraints. Fingerprinting systems often require labor-intensive, environment-specific calibration, while many learning-based models remain costly for real-time inference on resource-constrained devices. Practical indoor localization therefore depends not only on accuracy but also on robustness, scalability, deployment cost, and cross-environment adaptability.</p>
</sec>
<sec id="s2-2">
<label>2.2</label>
<title>Classical Wi-Fi fingerprinting</title>
<p>Indoor positioning methods can be broadly grouped into geometric, fingerprinting, and learning-based approaches. Among these, Wi-Fi fingerprinting remains especially practical because it leverages existing wireless infrastructure and does not require specialized ranging hardware. In classical fingerprinting, RSSI measurements collected at reference points are stored in a radio map, and positions are estimated using nearest-neighbor, probabilistic, or kernel-based matching (<xref ref-type="bibr" rid="B5">Kunhoth et al., 2020</xref>).</p>
<p>However, performance often degrades in large-scale or dynamic environments because RSSI measurements are highly sensitive to multipath propagation, device heterogeneity, temporal interference, and environmental change. In addition, accuracy depends heavily on the density and quality of the fingerprint database, which is costly to build and maintain. These limitations have motivated a shift toward data-driven models that learn more flexible mappings between RSSI fingerprints and spatial location (<xref ref-type="bibr" rid="B15">Sadowski and Spachos, 2018</xref>).</p>
</sec>
<sec id="s2-3">
<label>2.3</label>
<title>Deep learning-based indoor localization</title>
<p>To address these limitations, supervised and deep learning methods have been widely adopted for indoor positioning. Models such as support vector machines, random forests, gradient-boosted trees, multilayer perceptrons, convolutional neural networks, and recurrent networks improve performance by learning nonlinear mappings from RSSI fingerprints to location (<xref ref-type="bibr" rid="B10">Nessa et al., 2020</xref>; <xref ref-type="bibr" rid="B16">Singh et al., 2021</xref>).</p>
<p>Addressing the related challenge of data scarcity, <xref ref-type="bibr" rid="B12">Njima et al. (2022)</xref> propose a GAN-based semi-supervised approach for indoor localization with limited and incomplete training data. Their method uses generative augmentation to compensate for sparse fingerprint coverage rather than applying an attention-based treatment of missing signals. This approach complements Adaptive Attention: generative augmentation mitigates dataset-level scarcity, whereas Adaptive Attention handles per-sample signal absence during representation learning.</p>
<p>However, many of these models remain constrained by assumptions that do not match the structure of Wi-Fi fingerprints, which are sparse, noisy, partially observed, and not naturally ordered. Consequently, architectures based on locality or sequence may fail to capture long-range interactions among access points, motivating models that represent global feature dependencies more directly.</p>
</sec>
<sec id="s2-4">
<label>2.4</label>
<title>Transformer-based positioning</title>
<p>Recent work has increasingly focused on transformer-based models for indoor localization. Their appeal lies in self-attention, which captures global interactions among RSSI features without relying on recurrence or handcrafted neighborhood structure. This is well suited to Wi-Fi fingerprinting, where informative patterns are often distributed across multiple access points and vary across environments. Existing methods, however, differ substantially in input representation, modeling strategy, and evaluation practice (<xref ref-type="bibr" rid="B21">Wu et al., 2025</xref>).</p>
<p>Representative studies illustrate this diversity. The All-Embracing Transformer (AATS) (<xref ref-type="bibr" rid="B11">Nguyen et al., 2024</xref>) uses attention to identify informative anchors in noisy RSSI sequences, although its quantitative reporting is limited. The L-SwiGLU Transformer and L-SwiGLU ViT (<xref ref-type="bibr" rid="B8">Masrur et al., 2025</xref>) introduce Sensor Snapshot Tokenization to improve multivariate feature modeling with lower computational cost and report an MAE of about 0.355&#xa0;m. HyTra and HyTra-HF (<xref ref-type="bibr" rid="B9">Nasir et al., 2024</xref>) combine transformer encoding, multiple embeddings, and hierarchical classification, with HyTra-HF reporting 96.70% floor-classification accuracy and an estimated MAE of about 0.39&#xa0;m on UJIIndoorLoc.</p>
<p>Other studies modify the input formulation or adopt hybrid designs. VTIL (<xref ref-type="bibr" rid="B22">Zhou et al., 2024</xref>) converts RSSI fingerprints into grayscale images and applies a Vision Transformer, reporting an MAE of about 0.45&#xa0;m. VITAL (<xref ref-type="bibr" rid="B3">Gufran et al., 2023</xref>) builds a one-dimensional three-channel RSSI representation with augmentation to improve robustness to device heterogeneity and reports an MAE of about 0.47&#xa0;m. Hybrid models combine transformers with similarity learning or generative augmentation: the Siamese Neural Encoder &#x2b; Transformer (<xref ref-type="bibr" rid="B18">Tiku and Pasricha, 2022</xref>) reports an estimated MAE of about 0.43 m, and the Deep Generation &#x2b; Transformer model (<xref ref-type="bibr" rid="B17">Suroso et al., 2022</xref>) reports about 0.48&#xa0;m. CHISEL (<xref ref-type="bibr" rid="B20">Wang et al., 2021</xref>) emphasizes compression-aware deployment efficiency, although explicit localization metrics are not fully reported.</p>
<p>Overall, these studies show that transformer-based methods can improve wireless localization, often outperforming conventional baselines. Yet important limitations remain: many treat localization as classification over discrete reference points, rely on generic backbones, or adapt poorly to sparse and incomplete RSSI observations. Performance also remains sensitive to multipath fading, non-line-of-sight conditions, and device heterogeneity, while evaluation protocols are often inconsistent. These gaps motivate transformer-based regression frameworks that enable direct metric-space prediction and more robust cross-dataset evaluation. IndoorCART is developed in this context as a context-aware transformer designed to exploit global RSSI dependencies under noisy, incomplete, and heterogeneous conditions.</p>
<p>Beyond RSSI-only fingerprinting, emerging 6G integrated sensing and communication (ISAC) systems aim to localize targets using the radio infrastructure itself. For example, <xref ref-type="bibr" rid="B1">Bazzi and Chafii (2025)</xref> investigate passive radar target localization using reconfigurable intelligent surfaces (RIS) within an ISAC framework. This infrastructure-level sensing paradigm differs fundamentally from device-side Wi-Fi fingerprinting and therefore cannot be compared directly with IndoorCART under the present evaluation protocol. Nevertheless, it offers a relevant direction for the future convergence of fingerprint-based and ISAC-based indoor positioning, as discussed in <xref ref-type="sec" rid="s5">Section 5</xref>.</p>
<sec id="s2-4-1">
<label>2.4.1</label>
<title>Positioning IndoorCART&#x2019;s novelty among existing transformer-based localization models</title>
<p>At a methodological level, IndoorCART differs from AATS (<xref ref-type="bibr" rid="B11">Nguyen et al., 2024</xref>), the L-SwiGLU Transformer (<xref ref-type="bibr" rid="B8">Masrur et al., 2025</xref>), HyTra/HyTra-HF (<xref ref-type="bibr" rid="B9">Nasir et al., 2024</xref>), VTIL (<xref ref-type="bibr" rid="B22">Zhou et al., 2024</xref>), VITAL (<xref ref-type="bibr" rid="B3">Gufran et al., 2023</xref>), and the Siamese-Encoder Transformer (<xref ref-type="bibr" rid="B18">Tiku and Pasricha, 2022</xref>) in three concrete ways rather than in scale or dataset choice alone. First, none of the cited methods condition either the input token representation <italic>or</italic> the attention logits on a per-sample observation mask; missing access points are either imputed as ordinary numerical inputs (AATS, HyTra) or absorbed implicitly through image-style tokenization (VTIL, VITAL). IndoorCART instead treats the missingness pattern as a first-class input via the joint (embedding, masking, dropout) formulation in <xref ref-type="disp-formula" rid="e10">Equations 10</xref>&#x2013;<xref ref-type="disp-formula" rid="e13">13</xref>, so the encoder receives an explicit signal of <italic>which</italic> access points were absent, not only their imputed values. Second, IndoorCART&#x2019;s token construction preserves the native tabular RSSI representation (one token per access point) rather than converting the fingerprint into an image (VTIL, VITAL) or a similarity-embedding pair (Siamese), which avoids the spatial-neighborhood assumptions that image-based tokenization implicitly imposes on an unordered feature set. Third, IndoorCART unifies classification and regression under one encoder while directly optimizing metric-space coordinates, rather than reporting reference-point classification accuracy as a proxy for localization quality. <xref ref-type="table" rid="T3">Table 3</xref> summarizes these differences at the attention-mechanism level, and <xref ref-type="table" rid="T1">Table 1</xref> summarizes them at the system level.</p>
<table-wrap id="T1" position="float">
<label>TABLE 1</label>
<caption>
<p>Summary of recent transformer-based indoor localization approaches with emphasis on regression performance.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Model/Study</th>
<th align="left">Input modalities</th>
<th align="left">Model type</th>
<th align="left">MAE (m)</th>
<th align="left">Key contributions</th>
<th align="left">Limitations</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">All-embracing transformer (AATS) <xref ref-type="bibr" rid="B11">Nguyen et al. (2024)</xref>
</td>
<td align="left">RSSI sequences</td>
<td align="left">Custom transformer</td>
<td align="left">
<inline-formula id="inf4">
<mml:math id="m4">
<mml:mrow>
<mml:mo>&#x2248;</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> 0.5</td>
<td align="left">Comprehensive attention mechanism suppressing noise and extracting relevant RSSI anchors</td>
<td align="left">No reported accuracy; unclear dataset use; high computational complexity</td>
</tr>
<tr>
<td align="left">L-SwiGLU and L-SwiGLU ViT <xref ref-type="bibr" rid="B8">Masrur et al. (2025)</xref>
</td>
<td align="left">RSSI</td>
<td align="left">Vision transformer (ViT)</td>
<td align="left">0.355</td>
<td align="left">First L-SwiGLU transformer adapting SST tokenization with enhanced accuracy</td>
<td align="left">Limited generalization; lacks real-time evaluation</td>
</tr>
<tr>
<td align="left">HyTra/HyTra-HF <xref ref-type="bibr" rid="B9">Nasir et al. (2024)</xref>
</td>
<td align="left">Wi-Fi RSSI</td>
<td align="left">Hierarchical transformer encoder</td>
<td align="left">0.39</td>
<td align="left">Hierarchical transformer with SAO initialization; robust under <inline-formula id="inf5">
<mml:math id="m5">
<mml:mrow>
<mml:mn>10</mml:mn>
<mml:mo>&#xd7;</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> compression</td>
<td align="left">Evaluated on a single dataset; no multi-task metrics reported; hierarchical labeling complexity</td>
</tr>
<tr>
<td align="left">VTIL framework <xref ref-type="bibr" rid="B22">Zhou et al. (2024)</xref>
</td>
<td align="left">RSSI</td>
<td align="left">Vision transformer (ViT)</td>
<td align="left">1.5</td>
<td align="left">Vision transformer for multi-floor localization with noise reduction</td>
<td align="left">No dataset details; limited real-world evidence; high computation</td>
</tr>
<tr>
<td align="left">VITAL framework <xref ref-type="bibr" rid="B3">Gufran et al. (2023)</xref>
</td>
<td align="left">RSSI</td>
<td align="left">Vision transformer (ViT)</td>
<td align="left">0.47</td>
<td align="left">Device-heterogeneity resilience and data-augmentation module</td>
<td align="left">High complexity; intensive data collection; environment-sensitive</td>
</tr>
<tr>
<td align="left">Siamese neural encoder &#x2b; transformer <xref ref-type="bibr" rid="B18">Tiku and Pasricha (2022)</xref>
</td>
<td align="left">RSSI</td>
<td align="left">Vision transformer (ViT)</td>
<td align="left">0.43</td>
<td align="left">Temporal robustness and calibration-free siamese architecture</td>
<td align="left">Dataset transparency lacking</td>
</tr>
<tr>
<td align="left">Deep generation &#x2b; transformer <xref ref-type="bibr" rid="B17">Suroso et al. (2022)</xref>
</td>
<td align="left">RSSI</td>
<td align="left">Hybrid</td>
<td align="left">0.48</td>
<td align="left">Synthetic data generation and augmentation for better localization</td>
<td align="left">Limited generalization; resource-intensive; initial-data dependent</td>
</tr>
<tr>
<td align="left">CHISEL framework <xref ref-type="bibr" rid="B20">Wang et al. (2021)</xref>
</td>
<td align="left">RSSI</td>
<td align="left">Custom transformer</td>
<td align="left">NA</td>
<td align="left">Compression-aware design using CNNs and autoencoders</td>
<td align="left">Generalization limitations; Wi-Fi dependency; lacks metric details</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>
<xref ref-type="table" rid="T1">Table 1</xref> summarizes the key characteristics of recent transformer-based methods for indoor localization.</p>
<p>Existing transformer-based studies differ substantially in their evaluation protocols. Although many report low MAE values (e.g., 0.355&#xa0;m [13] and 0.39&#xa0;m [14]), these results typically come from classification-based formulations in which the network predicts discrete reference-point labels rather than continuous coordinates. Direct coordinate regression, which we argue is more practically relevant, is a fundamentally more challenging problem because of the continuous nature of the prediction space. This distinction is essential for interpreting reported performance values and comparing methods across studies.</p>
<p>A critical factor in interpreting reported localization errors is whether the problem is formulated as classification over discrete reference points or as continuous coordinate regression. Classification-based methods avoid the challenge of predicting continuous coordinates but introduce quantization effects and spatial-resolution limitations. In contrast, regression-based methods directly predict metric coordinates, enabling practical localization accuracy to be assessed, but they typically yield larger reported errors because of the continuous nature of the prediction task. This distinction is essential when comparing results across studies, as methods that optimize classification accuracy in discretized spaces are not directly comparable with those that perform metric-space coordinate regression.</p>
<p>These gaps motivate transformer-based regression frameworks that support direct metric-space prediction and robust cross-dataset evaluation. In this context, IndoorCART is developed as a context-aware transformer designed to exploit global RSSI dependencies under noisy, incomplete, and heterogeneous conditions.</p>
</sec>
</sec>
</sec>
<sec id="s3">
<label>3</label>
<title>Methodology and experimental design</title>
<p>This study adopts a supervised regression framework for indoor localization in which Wi-Fi RSSI fingerprints are used to predict continuous spatial coordinates. The workflow includes benchmark datasets, preprocessing, feature preparation, model development, baseline comparison, and statistical evaluation. All models directly estimate the target position from the observed RSSI vector.</p>
<sec id="s3-1">
<label>3.1</label>
<title>Datasets</title>
<p>Experiments are conducted on three public Wi-Fi fingerprinting benchmarks: UJIIndoorLoc (UJI) (<xref ref-type="bibr" rid="B19">Vishwakarma et al., 2023</xref>), TUJI1 (TUJ) (<xref ref-type="bibr" rid="B4">Klus et al., 2024</xref>), and SODIndoorLoc (SOD) (<xref ref-type="bibr" rid="B2">Bi et al., 2022</xref>). These datasets span distinct indoor environments with different layouts, sampling densities, device characteristics, and propagation conditions. Each contains multi-access-point RSSI fingerprints with ground-truth spatial coordinates, enabling a compact but rigorous evaluation of predictive performance and cross-environment generalizability.</p>
<sec id="s3-1-1">
<label>3.1.1</label>
<title>UJIIndoorLoc</title>
<p>UJIIndoorLoc is a standard Wi-Fi indoor localization benchmark collected across three campus buildings at Universitat Jaume I. It contains 19,937 training samples and 1,111 test samples, with 520 RSSI features among 529 attributes overall. RSSI values range from <inline-formula id="inf6">
<mml:math id="m6">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>104</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> dBm to 0dBm, and undetected access points are encoded as 100. Its multi-building, multi-floor structure makes it a demanding benchmark for large-scale generalization.<xref ref-type="fn" rid="fn2">
<sup>1</sup>
</xref>
</p>
</sec>
<sec id="s3-1-2">
<label>3.1.2</label>
<title>TUJI1</title>
<p>TUJI1 (<xref ref-type="bibr" rid="B4">Klus et al., 2024</xref>) contains anonymized IEEE 802.11 Wi-Fi fingerprints collected in the ESPAITEC two research building at Universitat Jaume I, Spain. It includes 8,899 samples from 310 access points, with RSSI values from <inline-formula id="inf7">
<mml:math id="m7">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>100</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> dBm to 0dBm and undetected points encoded as 0.0. Its dense, modern fingerprint collection complements UJIIndoorLoc with a different signal profile.<xref ref-type="fn" rid="fn3">
<sup>2</sup>
</xref>
</p>
<p>Because TUJI1 is a high-density multi-device dataset, the very low MAE reported on this benchmark must be interpreted with caution. In this study, we follow the dataset partition summarized in <xref ref-type="table" rid="T2">Table 2</xref> and do not additionally enforce a leave-location-out, leave-reference-point-out, or leave-device-out split. Therefore, the reported TUJI1 result should be understood as performance under the fixed split used in this work, not as evidence that the model has been validated under strict spatially disjoint or device-disjoint generalization. Dense sampling can place test fingerprints very close to training fingerprints in coordinate space, and measurements from the same or similar devices may share device-specific RSSI characteristics across partitions if the original split does not explicitly separate them. This can make sub-meter errors more achievable than in a leave-location-out or leave-device-out protocol. We therefore report TUJI1 as a dense-split benchmark result and identify grouped evaluation by physical reference location and device identity as necessary future validation.</p>
<table-wrap id="T2" position="float">
<label>TABLE 2</label>
<caption>
<p>Summary of the datasets used in this study.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Attribute</th>
<th align="left">UJI</th>
<th align="left">TUJI1</th>
<th align="left">SOD</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Total data points</td>
<td align="left">21,048</td>
<td align="left">8,899</td>
<td align="left">23,925</td>
</tr>
<tr>
<td align="left">Training points</td>
<td align="left">19,937</td>
<td align="left">6,752</td>
<td align="left">21,205</td>
</tr>
<tr>
<td align="left">Test points</td>
<td align="left">1,111</td>
<td align="left">2,147</td>
<td align="left">2,720</td>
</tr>
<tr>
<td align="left">Detected APs</td>
<td align="left">520</td>
<td align="left">310</td>
<td align="left">364</td>
</tr>
<tr>
<td align="left">Labels</td>
<td align="left">13</td>
<td align="left">6</td>
<td align="left">13</td>
</tr>
<tr>
<td align="left">RSSI signal range</td>
<td align="left">
<inline-formula id="inf8">
<mml:math id="m8">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>104</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> dBm to 0dBm</td>
<td align="left">
<inline-formula id="inf9">
<mml:math id="m9">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>100</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> dBm to 0dBm</td>
<td align="left">
<inline-formula id="inf10">
<mml:math id="m10">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>104</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> dBm to 0dBm</td>
</tr>
<tr>
<td align="left">Features</td>
<td align="left">Floor, BuildingID, coordinates, RSSI</td>
<td align="left">Floor, BuildingID, coordinates, RSSI</td>
<td align="left">Floor, BuildingID, coordinates, RSSI</td>
</tr>
<tr>
<td align="left">Dataset availability</td>
<td align="left">UCI</td>
<td align="left">Zenodo</td>
<td align="left">Research paper</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s3-1-3">
<label>3.1.3</label>
<title>SODIndoorLoc</title>
<p>SODIndoorLoc <xref ref-type="bibr" rid="B2">Bi et al. (2022)</xref> is a large-scale benchmark collected at Shandong Jianzhu University, China, across three multi-floor buildings covering about <inline-formula id="inf11">
<mml:math id="m11">
<mml:mrow>
<mml:mn>8,000</mml:mn>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msup>
<mml:mrow>
<mml:mtext>m</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>. It contains 23,925 Wi-Fi scans from 1,802 survey locations, split into 21,205 training and 2,720 test samples. Its heterogeneous building topology and nonuniform sampling density make it useful for evaluating robustness under varying spatial granularity.<xref ref-type="fn" rid="fn4">
<sup>3</sup>
</xref>
</p>
<p>
<xref ref-type="table" rid="T2">Table 2</xref> summarizes the key characteristics of the datasets.</p>
</sec>
</sec>
<sec id="s3-2">
<label>3.2</label>
<title>Data preprocessing</title>
<p>Before training, all datasets are passed through a unified preprocessing pipeline that preserves regression-relevant signal variability while making UJIIndoorLoc, TUJI1, and SODIndoorLoc comparable. Dataset-specific placeholders for missing access points, including 100, <inline-formula id="inf12">
<mml:math id="m12">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>110</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>, and 0dBm, are mapped to a common missing-value representation rather than treated as valid RSSI measurements. Missing entries are then imputed column-wise, with a fallback of <inline-formula id="inf13">
<mml:math id="m13">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>100</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>dBm for entirely unobserved features, and the cleaned fingerprints are aligned into fixed-length vectors. Target coordinates are retained in their original metric space to preserve the interpretability of localization error in meters.</p>
<sec id="s3-2-1">
<label>3.2.1</label>
<title>Distribution-aware cleaning</title>
<p>
<xref ref-type="fig" rid="F1">Figure 1</xref> supports the preprocessing design. Before cleaning, all three datasets show sharp modes at dataset-specific placeholder values, indicating distortion from missing-value encodings rather than from physical RSSI measurements. After preprocessing, these artificial modes disappear and the distributions shift to plausible negative RSSI ranges, yielding cleaner and more comparable signal profiles. UJIIndoorLoc and TUJI1 retain broader spreads, whereas SODIndoorLoc remains concentrated at stronger RSSI levels, indicating a more stable input space for regression.</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption>
<p>Effect of distribution-aware RSSI cleaning. The schematic bars summarize the intended preprocessing behavior: dataset-specific missing-signal placeholder modes are suppressed, while physically plausible weak, moderate, and strong RSSI regions are retained for coordinate regression.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsip-06-1884243-g001.tif">
<alt-text content-type="machine-generated">Grouped bar chart with three panels labeled UJIIndoorLoc, TUJI1, and SODIndoorLoc, comparing relative density distributions across RSSI categories: Placeholder, Weak, Moderate, and Strong. Each panel shows two bars per category: lighter for before cleaning, darker for after cleaning. Relative density values are printed above the bars, showing a general decrease in Weak and increases in Moderate and Strong after cleaning for all datasets.</alt-text>
</graphic>
</fig>
</sec>
<sec id="s3-2-2">
<label>3.2.2</label>
<title>Feature scaling</title>
<p>To reconcile residual scale differences across datasets, Min&#x2013;Max normalization is applied to the cleaned RSSI features. This transformation maps each measurement to the interval [0, 1] according to <xref ref-type="disp-formula" rid="e1">Equation 1</xref>, ensuring that no individual feature dominates optimization solely because of its numerical magnitude. This scaling is appropriate for RSSI fingerprints because their empirical distributions are typically non-Gaussian and may differ substantially across environments. Together with the cleaning step, normalization improves numerical stability during training and supports more consistent optimization across heterogeneous datasets.<disp-formula id="e1">
<mml:math id="m14">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>min</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>max</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>min</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(1)</label>
</disp-formula>
</p>
<p>where <inline-formula id="inf14">
<mml:math id="m15">
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> denotes the original RSSI feature vector and <inline-formula id="inf15">
<mml:math id="m16">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> its normalized representation.</p>
</sec>
<sec id="s3-2-3">
<label>3.2.3</label>
<title>Partitioning and generalization control</title>
<p>The original train&#x2013;test partitions of UJIIndoorLoc, TUJI1, and SODIndoorLoc are preserved to maintain comparability with prior work. All metrics are reported only on the designated test sets, while regularization and early stopping are used during development to improve generalization and reduce overfitting to dataset-specific artifacts.</p>
</sec>
</sec>
<sec id="s3-3">
<label>3.3</label>
<title>Problem formulation</title>
<p>Let <inline-formula id="inf16">
<mml:math id="m17">
<mml:mrow>
<mml:mi mathvariant="script">D</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">{</mml:mo>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">}</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> denote an indoor localization dataset, where <inline-formula id="inf17">
<mml:math id="m18">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> is a preprocessed static RSSI fingerprint and <inline-formula id="inf18">
<mml:math id="m19">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> is the corresponding planar coordinate. Each fingerprint is represented as <inline-formula id="inf19">
<mml:math id="m20">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mo>&#x2026;</mml:mo>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22a4;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>, where <inline-formula id="inf20">
<mml:math id="m21">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the RSSI from the <inline-formula id="inf21">
<mml:math id="m22">
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>th access point in a common aligned feature space. The problem is therefore defined over fixed-dimensional static RSSI vectors, whose predictive content lies in joint cross-access-point structure rather than in any single measurement.</p>
<p>Indoor localization is formulated as supervised vector-valued regression using the mapping defined in <xref ref-type="disp-formula" rid="e2">Equation 2</xref>:<disp-formula id="e2">
<mml:math id="m23">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>:</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2192;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(2)</label>
</disp-formula>such that <inline-formula id="inf22">
<mml:math id="m24">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold">y</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>. Parameters are estimated by empirical risk minimization, as expressed in <xref ref-type="disp-formula" rid="e3">Equation 3</xref>:<disp-formula id="e3">
<mml:math id="m25">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2a;</mml:mo>
</mml:mrow>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>arg</mml:mi>
<mml:munder>
<mml:mrow>
<mml:mi>min</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:munder>
<mml:mtext>&#x2003;</mml:mtext>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:munderover>
</mml:mstyle>
<mml:mi mathvariant="script">L</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(3)</label>
</disp-formula>where <inline-formula id="inf23">
<mml:math id="m26">
<mml:mrow>
<mml:mi mathvariant="script">L</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
<mml:mo>,</mml:mo>
<mml:mo>&#x22c5;</mml:mo>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> is a regression loss in coordinate space. This formulation is appropriate because static RSSI features have no canonical temporal order but exhibit strong cross-feature dependence induced by propagation effects, device heterogeneity, and spatial layout.</p>
<p>Direct coordinate regression avoids the discretization error, class-boundary artifacts, and spatial-resolution loss of classification-based localization, providing a principled basis for learning nonlinear mappings from static RSSI fingerprints to indoor coordinates.</p>
</sec>
<sec id="s3-4">
<label>3.4</label>
<title>IndoorCART architecture</title>
<p>IndoorCART is an encoder-only transformer for direct coordinate regression from static tabular RSSI fingerprints. It is distinguished by its Adaptive Attention mechanism for handling incomplete RSSI observations, its hybrid aggregation strategy combining CLS and global average pooling, its unified classification&#x2013;regression framework, and its robust cross-dataset validation across three heterogeneous benchmarks. <xref ref-type="fig" rid="F2">Figure 2</xref> illustrates the block architecture of the proposed IndoorCART model in relation to a standard transformer.</p>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption>
<p>IndoorCART block architecture.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsip-06-1884243-g002.tif">
<alt-text content-type="machine-generated">Diagram of the IndoorCART transformer block showing input sequences processed through self-attention, layer normalization, multilayer perceptrons (MLP), and another layer normalization, resulting in output sequences with altered segment order and values.</alt-text>
</graphic>
</fig>
<p>IndoorCART&#x2019;s primary technical novelty comprises three tightly integrated methodological contributions designed specifically to address the distinctive challenges of Wi-Fi RSSI fingerprinting:<list list-type="order">
<list-item>
<p>Adaptive Attention Mechanism: Unlike standard transformers, which treat all input tokens uniformly regardless of signal availability, Adaptive Attention explicitly models missing RSSI observations through three coordinated components: (i) learnable absent-signal embeddings that preserve access-point identity when signals are unavailable; (ii) observation-aware attention masking that prevents spurious interactions involving absent access points; and (iii) density-adaptive dropout that adjusts the regularization strength according to the number of observed signals. This design constitutes a domain-specific adaptation of self-attention rather than a generic application of a transformer.</p>
</list-item>
<list-item>
<p>Hybrid CLS &#x2b; GAP Pooling Strategy: We introduce an aggregation approach that combines a learnable CLS token, which captures the global fingerprint context, with global average pooling over all access-point tokens, which preserves distributed spatial information. This dual representation produces more robust fingerprint-level features than either strategy alone and is particularly beneficial when RSSI patterns are distributed across multiple access points.</p>
</list-item>
<list-item>
<p>Direct Coordinate Regression Framework: Unlike existing transformer-based approaches, which predominantly formulate localization as classification over discrete reference points, IndoorCART directly regresses continuous coordinates. This formulation avoids quantization errors and enables performance to be evaluated in metric space, making it more relevant to real-world deployment.</p>
</list-item>
</list>
</p>
<p>This design choice is motivated by three considerations:<list list-type="order">
<list-item>
<p>Nonlinear Modeling within the Transformer Architecture: The multi-head self-attention and position-wise feed-forward networks within the transformer encoder provide the representational capacity to model complex nonlinear relationships. The linear projection primarily maps scalar RSSI values to a higher-dimensional latent embedding space, whereas the subsequent attention and feed-forward layers learn nonlinear contextual interactions among access points.</p>
</list-item>
<list-item>
<p>Feature Normalization: As described in <xref ref-type="sec" rid="s3-2-2">Section 3.2.2</xref>, Min&#x2013;Max normalization maps the RSSI features to [0, 1]. This scaling standardizes their dynamic range, improves the numerical stability of the linear projections, and preserves relative signal variations that are informative for localization.</p>
</list-item>
<list-item>
<p>Empirical Performance: The ablation study in <xref ref-type="table" rid="T16">Table 16</xref> shows that the proposed projection strategy, together with the transformer encoder, achieves consistently strong performance across all three benchmark datasets. Because the study does not directly compare nonlinear or physics-informed projection alternatives, evaluating such variants remains an important direction for future work.</p>
</list-item>
</list>
</p>
<p>Methodologically, these contributions distinguish IndoorCART from existing approaches, as summarized in <xref ref-type="table" rid="T1">Table 1</xref>. Whereas prior transformer-based methods (e.g., AATS, L-SwiGLU, and HyTra) use general-purpose transformer backbones, IndoorCART explicitly adapts its attention mechanism, tokenization, and pooling strategy to the physical characteristics of Wi-Fi fingerprinting, particularly the pervasive problem of missing and irregular signal observations.</p>
<sec id="s3-4-1">
<label>3.4.1</label>
<title>Linking the regression objective with Adaptive Attention</title>
<p>IndoorCART is designed as the architectural realization of the coordinate-regression problem defined in <xref ref-type="sec" rid="s3-3">Section 3.3</xref>. The objective is to learn a mapping <inline-formula id="inf24">
<mml:math id="m27">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>:</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2192;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> from a fixed-dimensional RSSI fingerprint to a metric indoor coordinate. In practice, however, an RSSI vector is not a fully observed tabular signal; each sample contains both measured access-point strengths and an informative pattern of absent access points. Accordingly, IndoorCART treats localization as a masked representation-learning problem before applying the final coordinate-regression head. This design connects the mathematical formulation to the executable pipeline in <xref ref-type="statement" rid="Algorithm_1">Algorithm 1</xref>: preprocessing produces the cleaned fingerprint <inline-formula id="inf25">
<mml:math id="m28">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> and observation mask <inline-formula id="inf26">
<mml:math id="m29">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, tokenization converts them into access-point representations, Adaptive Attention contextualizes the resulting tokens, and hybrid pooling forms the fingerprint-level vector used for coordinate prediction.</p>
<p>Within this flow, Adaptive Attention aligns the encoder with the physical structure of Wi-Fi fingerprinting. Instead of allowing an imputed placeholder to behave like a genuine weak RSSI value, IndoorCART assigns absent access points a learnable missing-signal state and uses the sample-specific mask to reduce attention to unavailable evidence. The transformer therefore remains a standard non-causal encoder at its core, while its input representations and attention logits are conditioned on the observation pattern of each fingerprint. This creates a direct bridge between the problem formulation, which defines <inline-formula id="inf27">
<mml:math id="m30">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> as a supervised regression function, and the algorithmic workflow, which constructs <inline-formula id="inf28">
<mml:math id="m31">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> through preprocessing, masked token encoding, hybrid aggregation, and regression. <xref ref-type="fig" rid="F3">Figure 3</xref> summarizes this architecture and highlights where the missing-signal-aware components enter the model.</p>
<fig id="F3" position="float">
<label>FIGURE 3</label>
<caption>
<p>IndoorCART architecture with Adaptive Attention. The diagram separates the data stream from the missing-signal-aware attention components, showing how RSSI fingerprints and observation masks are embedded, processed by stacked transformer encoder blocks, aggregated through hybrid pooling, and mapped to continuous indoor coordinates.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsip-06-1884243-g003.tif">
<alt-text content-type="machine-generated">Flowchart depicting a transformer-based neural network for RSSI fingerprint localization, including input blocks for RSSI fingerprint, observation mask, and AP identity embedding, followed by adaptive embedding, an adaptive attention detail note, a transformer encoder block, hybrid pooling, and a regression head outputting coordinates.</alt-text>
</graphic>
</fig>
<p>IndoorCART is an encoder-only transformer for direct coordinate regression from static RSSI fingerprints. Let <inline-formula id="inf29">
<mml:math id="m32">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> denote the aligned RSSI vector of the <inline-formula id="inf30">
<mml:math id="m33">
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>th sample across <inline-formula id="inf31">
<mml:math id="m34">
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> access points. As shown in <xref ref-type="fig" rid="F3">Figure 3</xref>, each access-point measurement is projected into a latent token space and combined with learnable access-point identity embeddings that preserve feature identity without imposing an artificial order.Because the access-point identity embeddings <inline-formula id="inf32">
<mml:math id="m35">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> are learned per access-point index, IndoorCART currently assumes a closed, fixed access-point vocabulary that matches the one observed during training and dataset alignment, consistent with the fixed feature space used by UJIIndoorLoc, TUJI1, and SODIndoorLoc and with the baseline models evaluated in <xref ref-type="sec" rid="s3-6">Section 3.6</xref>. The resulting token sequence is processed by stacked transformer encoder blocks consisting of multi-head self-attention, residual connections, layer normalization, and position-wise feed-forward layers.</p>
<p>IndoorCART adapts this encoder design to RSSI fingerprint regression by applying full-token self-attention to the complete fingerprint in a single forward pass. This allows the model to capture global cross-feature dependencies induced by propagation effects and indoor spatial layout. The term &#x201c;full-token&#x201d; refers to standard non-causal transformer attention over all access-point tokens, not to a separate bidirectional attention module. After contextual encoding, a hybrid aggregation module combines the CLS token with global average pooling, and the resulting fingerprint-level representation is mapped directly to continuous indoor coordinates by the regression head.</p>
</sec>
<sec id="s3-4-2">
<label>3.4.2</label>
<title>Formal definition of Adaptive Attention</title>
<p>The core technical contribution of IndoorCART is its Adaptive Attention mechanism, which is designed to handle the sparse, incomplete, and irregular structure of Wi-Fi RSSI fingerprints. Unlike standard multi-head self-attention, which treats input tokens uniformly, Adaptive Attention incorporates custom masking and absent-signal embeddings to improve representation quality under incomplete observations.</p>
<sec id="s3-4-2-1">
<label>3.4.2.1</label>
<title>Problem formulation for missing RSSI</title>
<p>Let <inline-formula id="inf33">
<mml:math id="m36">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> denote an RSSI fingerprint containing measurements from <inline-formula id="inf34">
<mml:math id="m37">
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> access points. We define a missingness mask <inline-formula id="inf35">
<mml:math id="m38">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">{</mml:mo>
<mml:mrow>
<mml:mn>0,1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">}</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>, where <inline-formula id="inf36">
<mml:math id="m39">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> indicates that access point <inline-formula id="inf37">
<mml:math id="m40">
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> was detected and <inline-formula id="inf38">
<mml:math id="m41">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> indicates that the corresponding signal was absent. The observed RSSI entry is therefore expressed as<disp-formula id="e4">
<mml:math id="m42">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>obs</mml:mtext>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="{" close="">
<mml:mrow>
<mml:mtable class="cases">
<mml:mtr>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if&#x2009;</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mi mathvariant="normal">n</mml:mi>
<mml:mi mathvariant="normal">u</mml:mi>
<mml:mi mathvariant="normal">l</mml:mi>
<mml:mi mathvariant="normal">l</mml:mi>
<mml:mo>,</mml:mo>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if&#x2009;</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
<mml:mo>.</mml:mo>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:math>
<label>(4)</label>
</disp-formula>
</p>
<p>Standard transformer architectures typically either impute missing values with heuristic constants, which can introduce bias, or mask missing tokens entirely, which discards spatial information about absent access points.</p>
</sec>
<sec id="s3-4-2-2">
<label>3.4.2.2</label>
<title>Adaptive Attention Mechanism</title>
<p>Adaptive Attention consists of three complementary components.</p>
<p>(1) Absent-signal embeddings: Instead of replacing missing RSSI values with heuristic constants, each access-point entry is mapped through a learnable embedding function <inline-formula id="inf39">
<mml:math id="m43">
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>, as defined in <xref ref-type="disp-formula" rid="e5">Equation 5</xref>, to distinguish observed measurements from absent signals:<disp-formula id="e5">
<mml:math id="m44">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="{" close="">
<mml:mrow>
<mml:mtable class="cases">
<mml:mtr>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if&#x2009;</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>null</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>null</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>null</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if&#x2009;</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
<mml:mo>.</mml:mo>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:math>
<label>(5)</label>
</disp-formula>
</p>
<p>Here, <inline-formula id="inf40">
<mml:math id="m45">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#xd7;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf41">
<mml:math id="m46">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>null</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#xd7;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> are learnable projection matrices, and <inline-formula id="inf42">
<mml:math id="m47">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>null</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> is a learnable absent-signal prototype vector.</p>
<p>The use of a uniform absent-signal embedding, <inline-formula id="inf43">
<mml:math id="m48">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, is motivated by practical and methodological considerations:<list list-type="order">
<list-item>
<p>Information Content of Missing Signals: When an access point is not detected in a fingerprint, its RSSI is unobserved rather than measured as a weak value. Although physical distance influences the probability of detection, non-detection indicates only that the access point was not observable under the measurement conditions; it does not provide a continuous estimate of distance or signal strength. A uniform embedding therefore represents this categorical missingness without introducing unsupported quantitative information.</p>
</list-item>
<list-item>
<p>Decoupling Detection from Distance: The relationship between physical distance and signal detection is highly environment-dependent and is affected by wall attenuation, multipath propagation, and device sensitivity. A shared embedding for missing observations enables the model to extract location cues from the <italic>pattern of missing access points</italic> without relying on potentially unreliable distance-based priors. This design reflects the fact that the set of detected and undetected access points can itself convey spatial information.</p>
</list-item>
<list-item>
<p>Attention Masking as a Complementary Mechanism: The custom attention mask <inline-formula id="inf44">
<mml:math id="m49">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>attn</mml:mtext>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> in <xref ref-type="disp-formula" rid="e6">Equation 6</xref> suppresses spurious interactions involving absent tokens, ensuring that the attention scores are based on observed signal relationships. The uniform embedding represents the missing-signal state, while the attention mask regulates information flow involving unobserved access points.</p>
</list-item>
<list-item>
<p>Empirical Validation: The ablation study in <xref ref-type="table" rid="T16">Table 16</xref> shows that removing the absent-signal embedding increases MAE by <inline-formula id="inf45">
<mml:math id="m50">
<mml:mrow>
<mml:mn>6.4</mml:mn>
<mml:mi>%</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>&#x2013;<inline-formula id="inf46">
<mml:math id="m51">
<mml:mrow>
<mml:mn>14.8</mml:mn>
<mml:mi>%</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> across the benchmark datasets, indicating that even a uniform representation of missingness provides useful information for localization.</p>
</list-item>
</list>
</p>
<p>
<italic>Rationale for a uniform absent-signal state.</italic> We assign every undetected access point the same learnable prototype, <inline-formula id="inf47">
<mml:math id="m52">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>null</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, rather than a distance-conditioned embedding because the three benchmark datasets used in this study (UJIIndoorLoc, TUJI1, and SODIndoorLoc) provide the coordinates of the survey points but not the physical locations of the access points. Without ground-truth access-point locations, any receiver&#x2013;access-point distance used to condition the absent-signal embedding would need to be estimated from the same noisy RSSI fingerprints that the model seeks to interpret. This approach could introduce a circular, dataset-specific prior rather than a physically grounded one. We therefore use a uniform learnable null state as a conservative and reproducible design given the available metadata. When access-point location metadata is available, such as for operator-deployed WLAN infrastructure with a known site map, conditioning the absent-signal embedding on spatial priors is a natural extension for future work, as discussed in <xref ref-type="sec" rid="s5">Section 5</xref>.</p>
<p>
<italic>Rationale for the linear projection.</italic> RSSI is reported in dBm, a logarithmic measure of received power <inline-formula id="inf48">
<mml:math id="m53">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi mathvariant="normal">d</mml:mi>
<mml:mi mathvariant="normal">B</mml:mi>
<mml:mi mathvariant="normal">m</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>10</mml:mn>
<mml:mo>&#x2061;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>log</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>10</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:mo>/</mml:mo>
<mml:mn>1</mml:mn>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi mathvariant="normal">m</mml:mi>
<mml:mi mathvariant="normal">W</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>. Consequently, the relationship between physical distance and received power is already represented in the log domain before the measurements enter the model. The learnable affine projection <inline-formula id="inf49">
<mml:math id="m54">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> therefore operates on log-power values rather than on raw power. We retain this projection instead of imposing an explicit path-loss curve, such as a log-distance path-loss model, for two reasons: (i) the path-loss exponent depends on the environment and device and cannot be identified from RSSI alone without known transmitter&#x2013;receiver geometry, which is unavailable in UJIIndoorLoc, TUJI1, and SODIndoorLoc; and (ii) the subsequent multi-head self-attention and feed-forward layers can learn nonlinear contextual interactions across access points, allowing residual nonlinearities that are not represented at the token level to be modeled in later stages. Nevertheless, the linear projection is a design choice rather than a proven optimum. Future work should compare <inline-formula id="inf50">
<mml:math id="m55">
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> with learned nonlinear mappings, such as multilayer-perceptron or spline-based projections, particularly when per-device transmit-power and antenna-gain metadata are available.</p>
<p>(2) RSSI-aware attention masking: The attention computation is conditioned on signal availability through a custom mask <inline-formula id="inf51">
<mml:math id="m56">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>attn</mml:mtext>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>:<disp-formula id="e6">
<mml:math id="m57">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>attn</mml:mtext>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="{" close="">
<mml:mrow>
<mml:mtable class="cases">
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mn>0</mml:mn>
<mml:mo>,</mml:mo>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if&#x2009;</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mtext>&#x2009;and&#x2009;</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mo>&#x2212;</mml:mo>
<mml:mi>&#x221e;</mml:mi>
<mml:mo>,</mml:mo>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mtext>if&#x2009;</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
<mml:mtext>&#x2009;or&#x2009;</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
<mml:mo>.</mml:mo>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:math>
<label>(6)</label>
</disp-formula>
</p>
<p>This mask prevents absent access-point tokens from contributing spurious interactions, prevents observed tokens from attending to absent tokens, and ensures that the attention scores are driven by valid signal relationships.</p>
<p>(3) Dropout-based adaptive regularization: To avoid over-reliance on sparse observations, the dropout rate is increased when the observation density is low, as defined in <xref ref-type="disp-formula" rid="e7">Equation 7</xref>
<disp-formula id="e7">
<mml:math id="m58">
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>&#x3c1;</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>base</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>&#x3b1;</mml:mi>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>exp</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>&#x3c1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3c4;</mml:mi>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(7)</label>
</disp-formula>
</p>
<p>where <inline-formula id="inf52">
<mml:math id="m59">
<mml:mrow>
<mml:mi>&#x3c1;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msup>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the observation density, <inline-formula id="inf53">
<mml:math id="m60">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>base</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the base dropout rate, <inline-formula id="inf54">
<mml:math id="m61">
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> controls the maximum additional regularization, and <inline-formula id="inf55">
<mml:math id="m62">
<mml:mrow>
<mml:mi>&#x3c4;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is a temperature parameter. This adaptive regularization reduces the risk of overfitting when only a small subset of access points is observed.</p>
</sec>
<sec id="s3-4-2-3">
<label>3.4.2.3</label>
<title>Adaptive Attention computation</title>
<p>Given input tokens <inline-formula id="inf56">
<mml:math id="m63">
<mml:mrow>
<mml:mi mathvariant="bold">E</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>d</mml:mi>
<mml:mo>&#xd7;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>, the Adaptive Attention operation is computed as shown in <xref ref-type="disp-formula" rid="e8">Equation 8</xref>:<disp-formula id="e8">
<mml:math id="m64">
<mml:mrow>
<mml:mtext>AdaptiveAttention</mml:mtext>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi mathvariant="bold">Q</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold">K</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold">V</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mtext>softmax</mml:mtext>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:mi mathvariant="bold">Q</mml:mi>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">K</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22a4;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mrow>
<mml:msqrt>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msqrt>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>attn</mml:mtext>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
<mml:mi mathvariant="bold">V</mml:mi>
</mml:mrow>
</mml:math>
<label>(8)</label>
</disp-formula>
</p>
<p>where <inline-formula id="inf57">
<mml:math id="m65">
<mml:mrow>
<mml:mi mathvariant="bold">Q</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="bold">E</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, <inline-formula id="inf58">
<mml:math id="m66">
<mml:mrow>
<mml:mi mathvariant="bold">K</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="bold">E</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>K</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, <inline-formula id="inf59">
<mml:math id="m67">
<mml:mrow>
<mml:mi mathvariant="bold">V</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="bold">E</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> are the query, key, and value projections.</p>
<p>The complete multi-head Adaptive Attention operation is defined in <xref ref-type="disp-formula" rid="e9">Equation 9</xref>:<disp-formula id="e9">
<mml:math id="m68">
<mml:mrow>
<mml:mtext>MultiHead</mml:mtext>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi mathvariant="bold">E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mtext>Concat</mml:mtext>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mtext>head</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mo>&#x2026;</mml:mo>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mtext>head</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>O</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
<label>(9)</label>
</disp-formula>
</p>
<p>where each head independently applies <xref ref-type="disp-formula" rid="e4">Equation 4</xref> with the mask <inline-formula id="inf60">
<mml:math id="m69">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>attn</mml:mtext>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>.</p>
</sec>
</sec>
<sec id="s3-4-3">
<label>3.4.3</label>
<title>Operation of Adaptive Attention</title>
<p>In this work, &#x201c;Adaptive Attention&#x201d; denotes an RSSI-aware attention mechanism with custom masking for missing signals. The mechanism is adaptive because both the input token representation and the attention-score bias are conditioned on the observation pattern of each fingerprint: observed access points contribute projected RSSI tokens, whereas absent access points contribute a learnable absent-signal state and can be down-weighted through a mask-derived bias. Thus, IndoorCART does not replace scaled dot-product attention with an unrelated mechanism; instead, it adapts standard multi-head self-attention to the incomplete and sample-dependent structure of Wi-Fi RSSI fingerprints. We define this mechanism explicitly as follows. Let <inline-formula id="inf61">
<mml:math id="m70">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">{</mml:mo>
<mml:mrow>
<mml:mn>0,1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">}</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> denote the observation indicator for access point <inline-formula id="inf62">
<mml:math id="m71">
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> in sample <inline-formula id="inf63">
<mml:math id="m72">
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>, where <inline-formula id="inf64">
<mml:math id="m73">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> if the RSSI value is observed and <inline-formula id="inf65">
<mml:math id="m74">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> if the access point is absent or represented by a dataset-specific placeholder. Before normalization, missing placeholders are mapped to a null state. The token supplied to the transformer for access point <inline-formula id="inf66">
<mml:math id="m75">
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is<disp-formula id="e10">
<mml:math id="m76">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mi>&#x3d5;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(10)</label>
</disp-formula>where <inline-formula id="inf67">
<mml:math id="m77">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> is the normalized RSSI value after preprocessing, <inline-formula id="inf68">
<mml:math id="m78">
<mml:mrow>
<mml:mi>&#x3d5;</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> is the scalar-to-vector RSSI projection, <inline-formula id="inf69">
<mml:math id="m79">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is a learnable absent-signal embedding shared across missing access-point observations, and <inline-formula id="inf70">
<mml:math id="m80">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the learnable access-point identity embedding. This token construction is the first adaptive component of the mechanism: the transformer input changes according to <inline-formula id="inf71">
<mml:math id="m81">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, so an unobserved access point is represented as a learnable missing-signal state rather than as a physically meaningful weak RSSI value.</p>
<p>For each attention head <inline-formula id="inf72">
<mml:math id="m82">
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>, the queries, keys, and values are computed in the standard manner:<disp-formula id="e11">
<mml:math id="m83">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">Z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msup>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">K</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">Z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msup>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>K</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>,</mml:mo>
<mml:mspace width="1em"/>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">Z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msup>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>.</mml:mo>
</mml:mrow>
</mml:math>
<label>(11)</label>
</disp-formula>The adaptive RSSI-aware attention weights are then obtained as<disp-formula id="e12">
<mml:math id="m84">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">A</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:mtext>softmax&#x2009;</mml:mtext>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msup>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">K</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22a4;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mrow>
<mml:msqrt>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msqrt>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:mi mathvariant="bold">B</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(12)</label>
</disp-formula>where <inline-formula id="inf73">
<mml:math id="m85">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the head dimension and <inline-formula id="inf74">
<mml:math id="m86">
<mml:mrow>
<mml:mi mathvariant="bold">B</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is the missing-signal bias matrix. In the implementation used in this study,<disp-formula id="e13">
<mml:math id="m87">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>B</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="{" close="">
<mml:mrow>
<mml:mtable class="cases">
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mn>0</mml:mn>
<mml:mo>,</mml:mo>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mtext>&#x2009;or&#x2009;</mml:mtext>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="normal">C</mml:mi>
<mml:mi mathvariant="normal">L</mml:mi>
<mml:mi mathvariant="normal">S</mml:mi>
<mml:mo>,</mml:mo>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mo>&#x2212;</mml:mo>
<mml:mi>&#x3bb;</mml:mi>
<mml:mo>,</mml:mo>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
<mml:mo>,</mml:mo>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:math>
<label>(13)</label>
</disp-formula>where <inline-formula id="inf75">
<mml:math id="m88">
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
<mml:mo>&#x2265;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> controls how strongly attention to absent access-point keys is discouraged. This bias term forms the second adaptive component of the mechanism: the attention logits are modified according to the access points missing in the current sample. Setting <inline-formula id="inf76">
<mml:math id="m89">
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> recovers standard self-attention with absent-signal embeddings only, whereas a large <inline-formula id="inf77">
<mml:math id="m90">
<mml:mrow>
<mml:mi>&#x3bb;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> approximates hard masking of absent keys. The output of head <inline-formula id="inf78">
<mml:math id="m91">
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is given in <xref ref-type="disp-formula" rid="e14">Equation 14</xref>:<disp-formula id="e14">
<mml:math id="m92">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mtext>head&#x2009;</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">A</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msup>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msup>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(14)</label>
</disp-formula>and the multi-head outputs are concatenated and linearly projected as in a standard transformer encoder. This definition makes Adaptive Attention reproducible: the only additions to standard self-attention are the binary observation indicator <inline-formula id="inf79">
<mml:math id="m93">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, the learnable absent-signal embedding <inline-formula id="inf80">
<mml:math id="m94">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, and the missing-key bias <inline-formula id="inf81">
<mml:math id="m95">
<mml:mrow>
<mml:mi mathvariant="bold">B</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>. Accordingly, Adaptive Attention is presented here as a domain-specific adaptation of transformer attention to RSSI missingness, not as a claim that a wholly new attention family replaces scaled dot-product attention. The ablation in <xref ref-type="table" rid="T16">Table 16</xref> further evaluates the contribution of this missing-signal treatment by comparing the full model with a variant that removes RSSI-aware missing-signal encoding.</p>
<p>
<xref ref-type="table" rid="T3">Table 3</xref> distinguishes Adaptive Attention from a standard transformer encoder. A standard transformer receives one embedded token per feature and applies attention without explicit knowledge of whether a feature value is observed or imputed. IndoorCART retains the same transformer backbone but augments it with an observation mask, a learnable absent-signal token state, and a missing-key attention bias. Thus, the methodological difference is not a new attention family that replaces scaled dot-product attention; rather, it is an RSSI-specific adaptive masking and missingness treatment built around standard multi-head self-attention.</p>
<table-wrap id="T3" position="float">
<label>TABLE 3</label>
<caption>
<p>Distinction between standard transformer self-attention and IndoorCART Adaptive Attention.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Component</th>
<th align="left">Standard transformer encoder</th>
<th align="left">IndoorCART adaptive attention</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Feature token</td>
<td align="left">Embedded feature value</td>
<td align="left">Observed RSSI projection or learnable absent-signal embedding</td>
</tr>
<tr>
<td align="left">Missing RSSI handling</td>
<td align="left">Usually imputed or treated as an ordinary value</td>
<td align="left">Explicit binary observation mask <inline-formula id="inf82">
<mml:math id="m96">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> plus <inline-formula id="inf83">
<mml:math id="m97">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">Attention score</td>
<td align="left">Scaled dot-product attention</td>
<td align="left">Scaled dot-product attention plus sample-specific missing-signal bias <inline-formula id="inf84">
<mml:math id="m98">
<mml:mrow>
<mml:mi mathvariant="bold">B</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">Architectural status</td>
<td align="left">Generic sequence/set encoder</td>
<td align="left">Standard encoder augmented with RSSI-specific missingness information</td>
</tr>
<tr>
<td align="left">Claimed novelty</td>
<td align="left">Not applicable</td>
<td align="left">Domain-specific adaptive masking for incomplete RSSI fingerprints, supported by ablation of missing-signal encoding</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s3-4-4">
<label>3.4.4</label>
<title>Computational complexity</title>
<p>For a fingerprint with <inline-formula id="inf85">
<mml:math id="m99">
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> access-point tokens, embedding dimension <inline-formula id="inf86">
<mml:math id="m100">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, <inline-formula id="inf87">
<mml:math id="m101">
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> attention heads with head dimension <inline-formula id="inf88">
<mml:math id="m102">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>/</mml:mo>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>, and <inline-formula id="inf89">
<mml:math id="m103">
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> encoder layers, an Adaptive Attention block has the same asymptotic time complexity as standard multi-head self-attention. The missing-signal bias <inline-formula id="inf90">
<mml:math id="m104">
<mml:mrow>
<mml:mi mathvariant="bold">B</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> and mask <inline-formula id="inf91">
<mml:math id="m105">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>attn</mml:mtext>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> require <inline-formula id="inf92">
<mml:math id="m106">
<mml:mrow>
<mml:mi>O</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> operations and are added elementwise to the existing attention-score matrix, so they do not introduce a higher-order term. Within each layer, the dominant costs are the query, key, value, and output projections, <inline-formula id="inf93">
<mml:math id="m107">
<mml:mrow>
<mml:mi>O</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>d</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msubsup>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>; scaled dot-product attention, <inline-formula id="inf94">
<mml:math id="m108">
<mml:mrow>
<mml:mi>O</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>; and the position-wise feed-forward network, <inline-formula id="inf95">
<mml:math id="m109">
<mml:mrow>
<mml:mi>O</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>d</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>f</mml:mi>
<mml:mi>f</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>, where <inline-formula id="inf96">
<mml:math id="m110">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>f</mml:mi>
<mml:mi>f</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> denotes the feed-forward hidden dimension. The encoder therefore has the time complexity given in <xref ref-type="disp-formula" rid="e15">Equation 15</xref>:<disp-formula id="e15">
<mml:math id="m111">
<mml:mrow>
<mml:mi mathvariant="script">O</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>d</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msubsup>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>d</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>f</mml:mi>
<mml:mi>f</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:math>
<label>(15)</label>
</disp-formula>which is identical in order to that of a standard transformer encoder over <inline-formula id="inf97">
<mml:math id="m112">
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> tokens. During training, storing activations across all layers requires <inline-formula id="inf98">
<mml:math id="m113">
<mml:mrow>
<mml:mi>O</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>d</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:math>
</inline-formula> memory, whereas layer-wise inference requires peak activation memory of <inline-formula id="inf99">
<mml:math id="m114">
<mml:mrow>
<mml:mi>O</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>d</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>. The additional parameters introduced by Adaptive Attention are <inline-formula id="inf100">
<mml:math id="m115">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>null</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#xd7;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>, <inline-formula id="inf101">
<mml:math id="m116">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>null</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>, and <inline-formula id="inf102">
<mml:math id="m117">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>null</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>. Their combined complexity is dominated by <inline-formula id="inf103">
<mml:math id="m118">
<mml:mrow>
<mml:mi>O</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> and is independent of the number of access points, so they do not change the leading-order parameter scaling. For the configuration tuned in <xref ref-type="table" rid="T5">Table 5</xref>, the measured computational costs are reported in <xref ref-type="sec" rid="s4-7">Section 4.7</xref> and <xref ref-type="table" rid="T24">Table 24</xref>: IndoorCART (Base) has 8.2 million trainable parameters, requires 8.4 million FLOPs per inference, and achieves a mean inference latency of 0.234&#xa0;m per sample.</p>
</sec>
</sec>
<sec id="s3-5">
<label>3.5</label>
<title>Algorithmic workflow</title>
<p>The algorithmic workflow operationalizes the regression problem defined in <xref ref-type="sec" rid="s3-3">Section 3.3</xref> by specifying how each RSSI fingerprint is transformed into the model output used in the empirical-risk objective. For sample <inline-formula id="inf104">
<mml:math id="m119">
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>, the raw aligned fingerprint is first converted into a cleaned RSSI vector and its corresponding observation mask, as shown in <xref ref-type="disp-formula" rid="e16">Equation 16</xref>:<disp-formula id="e16">
<mml:math id="m120">
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msubsup>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="script">P</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
<mml:mspace width="2em"/>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mfenced open="{" close="}">
<mml:mrow>
<mml:mn>0,1</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msup>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(16)</label>
</disp-formula>where <inline-formula id="inf105">
<mml:math id="m121">
<mml:mrow>
<mml:mi mathvariant="script">P</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> denotes placeholder harmonization, feature alignment, imputation, and normalization. The cleaned fingerprint and mask are then embedded into an access-point token matrix, as shown in <xref ref-type="disp-formula" rid="e17">Equation 17</xref>:<disp-formula id="e17">
<mml:math id="m122">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">Z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="normal">&#x3a6;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msubsup>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>AP</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(17)</label>
</disp-formula>where <inline-formula id="inf106">
<mml:math id="m123">
<mml:mrow>
<mml:mi mathvariant="normal">&#x3a6;</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mo>&#x22c5;</mml:mo>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> applies RSSI-value projections to observed access points and the learnable absent-signal embedding to missing access points, while <inline-formula id="inf107">
<mml:math id="m124">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>AP</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> denotes the learnable access-point identity embeddings. The transformer encoder with Adaptive Attention then implements the nonlinear mapping defined in <xref ref-type="disp-formula" rid="e18">Equation 18</xref>:<disp-formula id="e18">
<mml:math id="m125">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">Z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="script">T</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">Z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msubsup>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
<mml:mspace width="2em"/>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="normal">C</mml:mi>
<mml:mi mathvariant="normal">L</mml:mi>
<mml:mi mathvariant="normal">S</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msubsup>
<mml:mo>;</mml:mo>
<mml:mtext>GAP&#x2009;</mml:mtext>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">Z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>:</mml:mo>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(18)</label>
</disp-formula>and the regression head produces the coordinate estimate defined in <xref ref-type="disp-formula" rid="e19">Equation 19</xref>
<disp-formula id="e19">
<mml:math id="m126">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold">y</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>g</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
<mml:mo>.</mml:mo>
</mml:mrow>
</mml:math>
<label>(19)</label>
</disp-formula>Thus, <xref ref-type="statement" rid="Algorithm_1">Algorithm 1</xref> is the procedural realization of the supervised objective <inline-formula id="inf108">
<mml:math id="m127">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>min</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msup>
<mml:msub>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi mathvariant="script">L</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold">y</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>: preprocessing defines the valid input space, Adaptive Attention implements the context-aware nonlinear encoder, hybrid pooling constructs the fingerprint-level representation, and coordinate regression completes the mapping from RSSI space to metric position.</p>
<p>
<statement content-type="algorithm" id="Algorithm_1">
<label>Algorithm 1</label>
<p>End-to-end workflow of IndoorCART for RSSI-based coordinate regression. <list list-type="simple">
<list-item>
<p>
<bold>Require:</bold>&#x2003;Preprocessed indoor localization dataset <inline-formula id="inf109">
<mml:math id="m128">
<mml:mrow>
<mml:mi mathvariant="script">D</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">{</mml:mo>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">}</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula>, where <inline-formula id="inf110">
<mml:math id="m129">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> is an aligned RSSI fingerprint and <inline-formula id="inf111">
<mml:math id="m130">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> is the ground-truth coordinate</p>
</list-item>
<list-item>
<p>
<bold>Ensure:</bold>&#x2003;Trained IndoorCART model <inline-formula id="inf112">
<mml:math id="m131">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> for continuous coordinate prediction</p>
</list-item>
<list-item>
<p>&#x2003;1:&#x2003;<bold>procedure</bold> TRAININDOORCART (<inline-formula id="inf113">
<mml:math id="m132">
<mml:mrow>
<mml:mi mathvariant="script">D</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>)</p>
</list-item>
<list-item>
<p>&#x2003;2:&#x2003;&#x2003;Map dataset-specific missing-value placeholders to a common null representation</p>
</list-item>
<list-item>
<p>&#x2003;3:&#x2003;&#x2003;Align fingerprints to a shared access-point feature space and compute observation masks <inline-formula id="inf114">
<mml:math id="m133">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;4:&#x2003;&#x2003;Impute missing entries using column-wise means, with a fallback value for entirely unobserved features</p>
</list-item>
<list-item>
<p>&#x2003;5:&#x2003;&#x2003;Apply Min&#x2013;Max normalization to obtain cleaned fingerprints <inline-formula id="inf115">
<mml:math id="m134">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;6:&#x2003;&#x2003;Project observed access-point measurements in <inline-formula id="inf116">
<mml:math id="m135">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2032;</mml:mo>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> into token embeddings</p>
</list-item>
<list-item>
<p>&#x2003;7:&#x2003;&#x2003;Represent absent access points using the learnable absent-signal embedding <inline-formula id="inf117">
<mml:math id="m136">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>abs</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;8:&#x2003;&#x2003;Prepend a learnable CLS token and add learnable access-point identity embeddings to form <inline-formula id="inf118">
<mml:math id="m137">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">Z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;9:&#x2003;&#x2003;<bold>for</bold> <inline-formula id="inf119">
<mml:math id="m138">
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> to <inline-formula id="inf120">
<mml:math id="m139">
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> <bold>do</bold>
</p>
</list-item>
<list-item>
<p>&#x2003;10:&#x2003;&#x2003;&#x2003;<inline-formula id="inf121">
<mml:math id="m140">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">Z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2190;</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> ADAPTIVEATTENTIONBLOCK (<inline-formula id="inf122">
<mml:math id="m141">
<mml:mrow>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">Z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>)</p>
</list-item>
<list-item>
<p>&#x2003;11:&#x2003;&#x2003;Apply residual connection, layer normalization, position-wise feed-forward transformation, and second normalization</p>
</list-item>
<list-item>
<p>&#x2003;12:&#x2003;&#x2003;<bold>end for</bold>
</p>
</list-item>
<list-item>
<p>&#x2003;13:&#x2003;&#x2003;Extract the contextualized CLS token and compute global average pooling over non-CLS tokens</p>
</list-item>
<list-item>
<p>&#x2003;14:&#x2003;&#x2003;Concatenate both summaries to obtain the hybrid fingerprint-level representation <inline-formula id="inf123">
<mml:math id="m142">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;15:&#x2003;&#x2003;Predict the continuous indoor coordinate, <inline-formula id="inf124">
<mml:math id="m143">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold">y</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>g</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;16:&#x2003;&#x2003;Optimize <inline-formula id="inf125">
<mml:math id="m144">
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> by minimizing the coordinate-space regression loss on the training partition</p>
</list-item>
<list-item>
<p>&#x2003;17:&#x2003;&#x2003;Select the final model using validation performance and apply the same forward pass during inference</p>
</list-item>
<list-item>
<p>&#x2003;18:&#x2003;&#x2003;<bold>return</bold> trained model <inline-formula id="inf126">
<mml:math id="m145">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>f</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;19:&#x2003;<bold>end procedure</bold>
</p>
</list-item>
</list>
</p>
</statement>
</p>
<p>
<xref ref-type="statement" rid="Algorithm_1">Algorithm 1</xref> summarizes the end-to-end computational flow of IndoorCART and is consistent with the architecture shown in <xref ref-type="fig" rid="F3">Figure 3</xref>. The pipeline begins by converting raw dataset-specific RSSI scans into aligned fingerprint vectors through placeholder-value harmonization, mean-based imputation, and Min&#x2013;Max normalization. This preprocessing stage is essential because it prevents signal absence from being misinterpreted as a physically meaningful RSSI measurement and expresses all samples in a common access-point space suitable for regression. The workflow also retains the binary observation mask used to distinguish observed access-point measurements from absent signals. The cleaned fingerprint is then transformed into a tokenized representation by projecting observed access-point measurements into a latent embedding space, assigning a learnable absent-signal embedding to missing access points, augmenting the token set with a learnable CLS token, and adding learnable access-point identity embeddings so that feature identity is preserved without imposing an artificial sequential order.</p>
<p>
<xref ref-type="statement" rid="Algorithm_2">Algorithm 2</xref> expands the Adaptive Attention operation invoked within the encoder loop of <xref ref-type="statement" rid="Algorithm_1">Algorithm 1</xref>. <xref ref-type="statement" rid="Algorithm_1">Algorithm 1</xref> defines the complete localization pipeline from raw RSSI fingerprints to coordinate prediction, whereas <xref ref-type="statement" rid="Algorithm_2">Algorithm 2</xref> specifies the internal RSSI-aware attention module applied at each encoder layer. The observation mask <inline-formula id="inf127">
<mml:math id="m146">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> computed during preprocessing is therefore not an auxiliary variable; it is passed directly to <xref ref-type="statement" rid="Algorithm_2">Algorithm 2</xref> to generate missing-signal-aware embeddings, construct the attention mask, regulate dropout according to observation density, and produce contextualized access-point representations for the subsequent pooling and regression stages.</p>
<p>
<statement content-type="algorithm" id="Algorithm_2">
<label>Algorithm 2</label>
<p>Adaptive Attention forward pass. <list list-type="simple">
<list-item>
<p>
<bold>Require:</bold>&#x2003;RSSI vector <inline-formula id="inf128">
<mml:math id="m147">
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>, observation mask <inline-formula id="inf129">
<mml:math id="m148">
<mml:mrow>
<mml:mi mathvariant="bold">m</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">{</mml:mo>
<mml:mrow>
<mml:mn>0,1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">}</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>, number of encoder layers <inline-formula id="inf130">
<mml:math id="m149">
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>
<bold>Ensure:</bold>&#x2003;Contextualized representations <inline-formula id="inf131">
<mml:math id="m150">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>d</mml:mi>
<mml:mo>&#xd7;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;1:&#x2003;<bold>procedure</bold> ADAPTIVEATTENTIONBLOCK (<inline-formula id="inf132">
<mml:math id="m151">
<mml:mrow>
<mml:mi mathvariant="bold">x</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="bold">m</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>L</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>)</p>
</list-item>
<list-item>
<p>&#x2003;2:&#x2003;&#x2003;Compute observation density <inline-formula id="inf133">
<mml:math id="m152">
<mml:mrow>
<mml:mi>&#x3c1;</mml:mi>
<mml:mo>&#x2190;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msup>
<mml:msubsup>
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;3:&#x2003;&#x2003;<bold>for</bold> <inline-formula id="inf134">
<mml:math id="m153">
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> to <inline-formula id="inf135">
<mml:math id="m154">
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> <bold>do</bold>
</p>
</list-item>
<list-item>
<p>&#x2003;4:&#x2003;&#x2003;&#x2003;<bold>if</bold> <inline-formula id="inf136">
<mml:math id="m155">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> <bold>then</bold>
</p>
</list-item>
<list-item>
<p>&#x2003;5:&#x2003;&#x2003;&#x2003;&#x2003;<inline-formula id="inf137">
<mml:math id="m156">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2190;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;6:&#x2003;&#x2003;&#x2003;<bold>else</bold>
</p>
</list-item>
<list-item>
<p>&#x2003;7:&#x2003;&#x2003;&#x2003;&#x2003;<inline-formula id="inf138">
<mml:math id="m157">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2190;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>null</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>null</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>null</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;8:&#x2003;&#x2003;&#x2003;<bold>end if</bold>
</p>
</list-item>
<list-item>
<p>&#x2003;9:&#x2003;&#x2003;<bold>end for</bold>
</p>
</list-item>
<list-item>
<p>&#x2003;10:&#x2003;&#x2003;Stack embeddings to form <inline-formula id="inf139">
<mml:math id="m158">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;11:&#x2003;&#x2003;Construct <inline-formula id="inf140">
<mml:math id="m159">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>attn</mml:mtext>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> from <inline-formula id="inf141">
<mml:math id="m160">
<mml:mrow>
<mml:mi mathvariant="bold">m</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> so observed tokens attend only to valid signal evidence</p>
</list-item>
<list-item>
<p>&#x2003;12:&#x2003;&#x2003;Compute adaptive dropout rate <inline-formula id="inf142">
<mml:math id="m161">
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
<mml:mo>&#x2190;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>base</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>&#x3b1;</mml:mi>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>exp</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>&#x3c1;</mml:mi>
<mml:mo>/</mml:mo>
<mml:mi>&#x3c4;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;13:&#x2003;&#x2003;<bold>for</bold> <inline-formula id="inf143">
<mml:math id="m162">
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> to <inline-formula id="inf144">
<mml:math id="m163">
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> <bold>do</bold>
</p>
</list-item>
<list-item>
<p>&#x2003;14:&#x2003;&#x2003;&#x2003;<inline-formula id="inf145">
<mml:math id="m164">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2190;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;15:&#x2003;&#x2003;&#x2003;<inline-formula id="inf146">
<mml:math id="m165">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">K</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2190;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>K</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;16:&#x2003;&#x2003;&#x2003;<inline-formula id="inf147">
<mml:math id="m166">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2190;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
<mml:msubsup>
<mml:mrow>
<mml:mi mathvariant="bold">W</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;17:&#x2003;&#x2003;&#x2003;<inline-formula id="inf148">
<mml:math id="m167">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">A</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2190;</mml:mo>
<mml:mtext>softmax&#x2009;</mml:mtext>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">Q</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">K</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x22a4;</mml:mo>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mrow>
<mml:msqrt>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msqrt>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">M</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>attn</mml:mtext>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;18:&#x2003;&#x2003;&#x2003;<inline-formula id="inf149">
<mml:math id="m168">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">Z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2190;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">A</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">V</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;19:&#x2003;&#x2003;&#x2003;Apply dropout to <inline-formula id="inf150">
<mml:math id="m169">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">Z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> using rate <inline-formula id="inf151">
<mml:math id="m170">
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;20:&#x2003;&#x2003;&#x2003;<inline-formula id="inf152">
<mml:math id="m171">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2190;</mml:mo>
<mml:mtext>FFN&#x2009;</mml:mtext>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mtext>LayerNorm&#x2009;</mml:mtext>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2b;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">Z</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x2113;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;21:&#x2003;&#x2003;<bold>end for</bold>
</p>
</list-item>
<list-item>
<p>&#x2003;22:&#x2003;&#x2003;<bold>return</bold> <inline-formula id="inf153">
<mml:math id="m172">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="bold">E</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>
</p>
</list-item>
<list-item>
<p>&#x2003;23:&#x2003;<bold>end procedure</bold>
</p>
</list-item>
</list>
</p>
</statement>
</p>
<p>The tokenized input is processed by a stack of transformer encoder blocks, each consisting of multi-head self-attention, residual connections, layer normalization, and a position-wise feed-forward network. Because IndoorCART operates on static fingerprints rather than temporal streams, self-attention is applied in parallel across the complete set of access-point tokens. This design enables the model to capture global dependencies induced by multipath propagation, attenuation patterns, shadowing, and indoor spatial structure. The mechanism corresponds to standard non-causal transformer self-attention over an unordered feature set and does not imply a separate bidirectional module. When the missing-signal bias is enabled, attention to absent access-point keys is down-weighted according to the mask definition in <xref ref-type="sec" rid="s3-4">Section 3.4</xref>, while the CLS token remains globally visible. After the final encoder layer, the model combines the contextualized CLS token with global average pooling over the token sequence to form a hybrid summary representation. This aggregation strategy improves robustness by retaining both a dedicated global-context token and a distributed summary of the encoded fingerprint.</p>
<p>Training minimizes a coordinate-space regression loss between predicted and ground-truth positions on the designated training split, while validation performance guides model selection and overfitting control. At inference time, the same preprocessing and encoding stages are applied to unseen RSSI fingerprints, and the regression head produces the final coordinate estimate in a single forward pass. This formulation is consistent with the continuous nature of indoor localization and provides a precise algorithmic interpretation of how IndoorCART maps sparse, noisy, and partially observed RSSI fingerprints to metric-space position estimates.</p>
</sec>
<sec id="s3-6">
<label>3.6</label>
<title>Baseline models</title>
<p>IndoorCART is compared with nine regression baselines spanning linear, distance-based, kernel-based, ensemble, feed-forward, convolutional, and recurrent families: Linear Regression, K-Nearest Neighbors, Support Vector Machine, Random Forest, XGBoost, Multilayer Perceptron, 1D-CNN, LSTM, and GRU. This set covers the main modeling paradigms used in RSSI fingerprint-based indoor localization and enables a more credible assessment of whether the proposed transformer provides advantages beyond any single comparison class.</p>
<p>In response to the concern that transformer-based competitors should be considered directly, we evaluate the methods at two levels. First, the nine baselines above are implemented using the same preprocessing, train&#x2013;test protocol, and metric definitions as IndoorCART, enabling a controlled empirical comparison. Second, because several recent transformer systems do not provide complete code, identical splits, or directly reusable implementations, we include a literature-level transformer comparison based on the MAE values reported in the corresponding papers. This comparison is not presented as a controlled head-to-head reimplementation; rather, it positions IndoorCART within the transformer literature and connects the related-work discussion more directly to the experimental claims.</p>
<p>
<xref ref-type="table" rid="T4">Table 4</xref> summarizes the principal tuning dimensions of the baseline models. The summary is reported at the level of validation-relevant design choices rather than as a code-style parameter listing, consistent with the manuscript&#x2019;s validation-driven tuning protocol.</p>
<table-wrap id="T4" position="float">
<label>TABLE 4</label>
<caption>
<p>Principal tuning dimensions for the baseline regression models.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Model</th>
<th align="left">Principal tuning dimensions</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Linear regression</td>
<td align="left">Regression coefficients estimated directly from the input fingerprint space; no major architecture-specific hyperparameters beyond standard fitting choices</td>
</tr>
<tr>
<td align="left">K-nearest neighbors</td>
<td align="left">Number of neighbors and distance metric governing instance-based prediction in RSSI space</td>
</tr>
<tr>
<td align="left">Support vector machine</td>
<td align="left">Kernel type and regularization settings controlling nonlinear regression capacity and margin sensitivity</td>
</tr>
<tr>
<td align="left">Random forest</td>
<td align="left">Number of trees, tree depth, and node-splitting constraints controlling ensemble complexity and variance reduction</td>
</tr>
<tr>
<td align="left">XGBoost</td>
<td align="left">Learning rate, tree depth, and number of boosting rounds controlling additive ensemble refinement</td>
</tr>
<tr>
<td align="left">Multilayer perceptron</td>
<td align="left">Number and width of hidden layers, nonlinear activation, and regularization settings controlling dense nonlinear feature transformation</td>
</tr>
<tr>
<td align="left">1D-CNN</td>
<td align="left">Number of filters, kernel size, dense projection width, learning rate, and dropout controlling local feature extraction and regularization</td>
</tr>
<tr>
<td align="left">LSTM</td>
<td align="left">Hidden-state dimension, number of recurrent layers, learning rate, and dropout controlling gated sequence-style feature modeling</td>
</tr>
<tr>
<td align="left">GRU</td>
<td align="left">Hidden-state dimension, number of recurrent layers, learning rate, and dropout controlling gated recurrent feature modeling with reduced parameterization</td>
</tr>
</tbody>
</table>
</table-wrap>
<sec id="s3-6-1">
<label>3.6.1</label>
<title>Implementation of transformer-based baselines</title>
<p>We implemented and rigorously evaluated AATS (<xref ref-type="bibr" rid="B11">Nguyen et al., 2024</xref>), L-SwiGLU Transformer (<xref ref-type="bibr" rid="B8">Masrur et al., 2025</xref>), HyTra (<xref ref-type="bibr" rid="B9">Nasir et al., 2024</xref>), VTIL (<xref ref-type="bibr" rid="B22">Zhou et al., 2024</xref>), VITAL (<xref ref-type="bibr" rid="B3">Gufran et al., 2023</xref>), and Siamese &#x2b; Transformer (<xref ref-type="bibr" rid="B18">Tiku and Pasricha, 2022</xref>) under identical experimental conditions, using a unified preprocessing pipeline and the same train&#x2013;test partitions. This required substantial additional computational effort because each method had to be carefully adapted to the standardized evaluation protocol.</p>
</sec>
</sec>
<sec id="s3-7">
<label>3.7</label>
<title>Experimental procedure</title>
<p>Models are trained separately on UJIIndoorLoc, TUJI1, and SODIndoorLoc to preserve dataset-specific signal characteristics and evaluation protocols. Original train&#x2013;test splits are retained for comparability with prior work, and hyperparameter selection, regularization, and stopping criteria are determined from held-out validation performance rather than test-set feedback, ensuring an unbiased estimate of generalization.</p>
<p>Hyperparameter optimization is treated as part of model development. For IndoorCART, validation-driven tuning covers the main architectural and optimization variables, including embedding dimension, encoder depth, number of attention heads, dropout, learning rate, batch size, and weight decay; the same principle is applied to the baseline regressors through model-specific search spaces. In all cases, configurations are compared only on validation performance, and test results are reported only for the best validation-selected model.</p>
<p>IndoorCART is trained with mini-batch forward and backward passes on preprocessed RSSI fingerprints and target coordinates. Each fingerprint is tokenized, augmented with learnable access-point positional embeddings and a CLS token, processed by the transformer encoder, aggregated through the hybrid CLS-plus-global-average mechanism, and mapped to continuous coordinates by the regression head. Optimization is performed directly in coordinate space, and training stops when validation performance no longer improves, with the best model retained for final testing.</p>
<p>This protocol keeps model selection separated from test data and ensures that comparisons with the baselines reflect genuine differences in model capacity and learning behavior rather than inconsistencies in tuning or stopping criteria. <xref ref-type="table" rid="T5">Table 5</xref> summarizes the principal IndoorCART hyperparameter dimensions considered during validation-driven development; exact final values are reported in supplementary material.</p>
<table-wrap id="T5" position="float">
<label>TABLE 5</label>
<caption>
<p>Principal tuning dimensions for IndoorCART.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Category</th>
<th align="left">Principal tuning dimensions</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Architecture</td>
<td align="left">Embedding dimension, number of encoder layers, and number of attention heads governing latent capacity, model depth, and multi-head relational modeling</td>
</tr>
<tr>
<td align="left">Regularization</td>
<td align="left">Dropout rate controlling overfitting resistance during training</td>
</tr>
<tr>
<td align="left">Optimization</td>
<td align="left">Learning rate, batch size, and weight decay governing convergence behavior, optimization stability, and parameter regularization</td>
</tr>
<tr>
<td align="left">Training control</td>
<td align="left">Number of epochs and early-stopping criterion governing training duration and validation-based model selection</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>To promote fair comparison, all baseline regressors are trained under the same preprocessing pipeline and evaluated on the same test partitions used for IndoorCART. Whenever a baseline requires hyperparameter tuning, model selection is likewise based solely on validation performance rather than on test outcomes. This training protocol therefore provides a controlled experimental setting for assessing whether the proposed transformer architecture yields genuine advantages in Wi-Fi fingerprint-based indoor localization.</p>
</sec>
<sec id="s3-8">
<label>3.8</label>
<title>Evaluation metrics</title>
<p>Performance is evaluated on the held-out test partition of each dataset using mean absolute error (MAE) and the coefficient of determination <inline-formula id="inf154">
<mml:math id="m173">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>. MAE, reported in meters, is the primary metric because it directly quantifies practical localization error, whereas <inline-formula id="inf155">
<mml:math id="m174">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> complements it by measuring regression fidelity to the underlying spatial structure. Variation across models and datasets is also examined to assess robustness under heterogeneous signal conditions.</p>
</sec>
<sec id="s3-9">
<label>3.9</label>
<title>Statistical analysis</title>
<p>Model selection and statistical assessment follow a unified validation-driven protocol. For each dataset, the training partition is divided into training and validation subsets using an 80/20 split; hyperparameters are optimized on the validation subset, the best configuration is selected according to validation MAE, and the final model is retrained on the full training partition before a single evaluation on the fixed test set. Test-set results for IndoorCART and the competing baselines are then analyzed to determine whether the observed performance differences are methodologically meaningful rather than incidental. To quantify uncertainty without altering the predefined train&#x2013;test split or incurring the cost of repeated retraining, we apply a bootstrap procedure to the test predictions: <inline-formula id="inf156">
<mml:math id="m175">
<mml:mrow>
<mml:mi>B</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1000</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> bootstrap samples are drawn, MAE is computed for each sample, and the 95% confidence interval is derived from the resulting bootstrap distribution. This compact framework preserves methodological consistency while reporting both central performance and uncertainty, providing a rigorous basis for judging whether IndoorCART&#x2019;s gains reflect robust generalization rather than dataset-specific fluctuation.</p>
<p>To assess IndoorCART more rigorously, we evaluate statistical significance on UJIIndoorLoc, TUJI1, and SODIndoorLoc using paired <inline-formula id="inf157">
<mml:math id="m176">
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>-tests, Wilcoxon signed-rank tests, 95% confidence intervals for MAE, and Cohen&#x2019;s <inline-formula id="inf158">
<mml:math id="m177">
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>, thereby capturing both statistical and practical significance. The statistical analysis is aligned with the main experimental protocol: all intervals and paired tests are computed on the fixed test partitions used for the primary results rather than on a separate <inline-formula id="inf159">
<mml:math id="m178">
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>-fold cross-validation protocol.</p>
<p>Confidence-Interval Estimation for the confidence-interval analysis, let <inline-formula id="inf160">
<mml:math id="m179">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mo stretchy="false">&#x2016;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold">y</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mo stretchy="false">&#x2016;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> denote the absolute localization error of IndoorCART for test sample <inline-formula id="inf161">
<mml:math id="m180">
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> in the fixed test split, and let <inline-formula id="inf162">
<mml:math id="m181">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>test</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> denote the number of test samples. The reported interval estimates the uncertainty of the fixed-split test-set MAE as defined in <xref ref-type="disp-formula" rid="e20">Equation 20</xref>:<disp-formula id="e20">
<mml:math id="m182">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mtext>CI</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>95</mml:mn>
<mml:mi>%</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mo>&#x304;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mo>&#xb1;</mml:mo>
<mml:mn>1.96</mml:mn>
<mml:mo>&#x22c5;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msqrt>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>test</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msqrt>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(20)</label>
</disp-formula>where <inline-formula id="inf163">
<mml:math id="m183">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mo>&#x304;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula> is the mean absolute error over the fixed test set and <inline-formula id="inf164">
<mml:math id="m184">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the standard deviation of the per-sample absolute errors on the same test set. This interval should be interpreted as a fixed-test-set uncertainty estimate rather than as a cross-validation estimate of training-split variability. Similarly, the paired <inline-formula id="inf165">
<mml:math id="m185">
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>-tests and Wilcoxon signed-rank tests are computed from paired per-sample absolute errors between IndoorCART and the strongest baseline on the same test samples.</p>
<p>Effect-size estimation uses Cohen&#x2019;s <inline-formula id="inf166">
<mml:math id="m186">
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>, which is computed as shown in <xref ref-type="disp-formula" rid="e21">Equation 21</xref>:<disp-formula id="e21">
<mml:math id="m187">
<mml:mrow>
<mml:mi>d</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:math>
<label>(21)</label>
</disp-formula>where <inline-formula id="inf167">
<mml:math id="m188">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> denotes the pooled standard deviation. Values above 0.8 indicate a large practical effect.</p>
</sec>
</sec>
<sec id="s4">
<label>4</label>
<title>Results and analysis</title>
<p>
<xref ref-type="table" rid="T6">Table 6</xref> shows that IndoorCART achieves the best overall performance across all three benchmarks. It attains the lowest MAE on UJIIndoorLoc (4.79&#xa0;m), TUJI1 (0.18&#xa0;m), and SODIndoorLoc (1.33&#xa0;m), while also yielding the lowest MSE and RMSE in each case. The performance margin is narrow on UJIIndoorLoc relative to KNNR (4.90&#xa0;m), but larger on TUJI1 relative to XGBR (0.213&#xa0;m) and on SODIndoorLoc relative to GRU (2.05&#xa0;m).</p>
<table-wrap id="T6" position="float">
<label>TABLE 6</label>
<caption>
<p>Performance loss obtained from different Regression Models for the benchmarked dataset; lower <inline-formula id="inf168">
<mml:math id="m189">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>&#x21d3;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> indicates better.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="center">Benchmark</th>
<th colspan="12" align="center">Loss metrics <inline-formula id="inf169">
<mml:math id="m190">
<mml:mrow>
<mml:mi>&#x21d3;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>
</th>
</tr>
<tr>
<th align="center">Datasets</th>
<th colspan="4" align="center">UJIIndoorLoc</th>
<th colspan="4" align="center">TUJI1</th>
<th colspan="4" align="center">SODIndoorLoc</th>
</tr>
<tr>
<th align="center">Model</th>
<th align="center">MSE</th>
<th align="center">RMSE</th>
<th align="center">MAE</th>
<th align="center">
<inline-formula id="inf170">
<mml:math id="m191">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mtext>R</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>
</th>
<th align="center">MSE</th>
<th align="center">RMSE</th>
<th align="center">MAE</th>
<th align="center">
<inline-formula id="inf171">
<mml:math id="m192">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mtext>R</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>
</th>
<th align="center">MSE</th>
<th align="center">RMSE</th>
<th align="center">MAE</th>
<th align="center">
<inline-formula id="inf172">
<mml:math id="m193">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mtext>R</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>
</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">LR</td>
<td align="center">1055.48</td>
<td align="center">32.48</td>
<td align="center">33.04</td>
<td align="center">0.94</td>
<td align="center">0.272</td>
<td align="center">0.521</td>
<td align="center">0.406</td>
<td align="center">0.96</td>
<td align="center">180.00</td>
<td align="center">13.42</td>
<td align="center">10.90</td>
<td align="center">0.95</td>
</tr>
<tr>
<td align="center">MLPR</td>
<td align="center">137.33</td>
<td align="center">11.72</td>
<td align="center">9.68</td>
<td align="center">0.99</td>
<td align="center">0.147</td>
<td align="center">0.384</td>
<td align="center">0.218</td>
<td align="center">0.98</td>
<td align="center">33.84</td>
<td align="center">5.81</td>
<td align="center">3.50</td>
<td align="center">0.98</td>
</tr>
<tr>
<td align="center">KNNR</td>
<td align="center">94.09</td>
<td align="center">9.70</td>
<td align="center" style="color:#146BF8">
<bold>4.90</bold>
</td>
<td align="center">0.99</td>
<td align="center">0.229</td>
<td align="center">0.469</td>
<td align="center">0.283</td>
<td align="center">0.99</td>
<td align="center">23.08</td>
<td align="center">4.80</td>
<td align="center">2.66</td>
<td align="center">0.99</td>
</tr>
<tr>
<td align="center">SVR</td>
<td align="center">2900.09</td>
<td align="center">53.85</td>
<td align="center">43.61</td>
<td align="center">0.85</td>
<td align="center">0.256</td>
<td align="center">0.506</td>
<td align="center">0.350</td>
<td align="center">0.87</td>
<td align="center">64.08</td>
<td align="center">8.00</td>
<td align="center">5.27</td>
<td align="center">0.88</td>
</tr>
<tr>
<td align="center">RFR</td>
<td align="center">90.79</td>
<td align="center">9.53</td>
<td align="center">5.26</td>
<td align="center">0.99</td>
<td align="center">0.115</td>
<td align="center">0.339</td>
<td align="center">0.242</td>
<td align="center">0.98</td>
<td align="center">14.13</td>
<td align="center">3.76</td>
<td align="center">2.15</td>
<td align="center">0.99</td>
</tr>
<tr>
<td align="center">XGBR</td>
<td align="center">196.35</td>
<td align="center">14.01</td>
<td align="center">11.54</td>
<td align="center">0.98</td>
<td align="center">0.099</td>
<td align="center">0.314</td>
<td align="center" style="color:#146BF8">
<bold>0.213</bold>
</td>
<td align="center">0.97</td>
<td align="center">19.79</td>
<td align="center">4.44</td>
<td align="center">2.41</td>
<td align="center">0.98</td>
</tr>
<tr>
<td align="center">1D-CNN</td>
<td align="center">92.10</td>
<td align="center">9.60</td>
<td align="center">5.10</td>
<td align="center">0.99</td>
<td align="center">0.251</td>
<td align="center">0.50</td>
<td align="center">0.30</td>
<td align="center">0.98</td>
<td align="center">8.99</td>
<td align="center">2.99</td>
<td align="center">2.30</td>
<td align="center">0.99</td>
</tr>
<tr>
<td align="center">LSTM</td>
<td align="center">94.50</td>
<td align="center">9.70</td>
<td align="center">6.47</td>
<td align="center">0.98</td>
<td align="center">0.120</td>
<td align="center">0.343</td>
<td align="center">0.260</td>
<td align="center">0.98</td>
<td align="center">7.92</td>
<td align="center">2.81</td>
<td align="center">2.11</td>
<td align="center">0.99</td>
</tr>
<tr>
<td align="center">GRU</td>
<td align="center">94.05</td>
<td align="center">9.69</td>
<td align="center">6.45</td>
<td align="center">0.99</td>
<td align="center">0.118</td>
<td align="center">0.308</td>
<td align="center">0.255</td>
<td align="center">0.98</td>
<td align="center">7.23</td>
<td align="center">2.69</td>
<td align="center" style="color:#146BF8">
<bold>2.05</bold>
</td>
<td align="center">0.99</td>
</tr>
<tr>
<td align="center">
<bold>IndoorCART (proposed)</bold>
</td>
<td align="center" style="color:#FF0000">
<bold>87.50</bold>
</td>
<td align="center" style="color:#FF0000">
<bold>9.35</bold>
</td>
<td align="center" style="color:#FF0000">
<bold>4.79</bold>
</td>
<td align="center" style="color:#FF0000">
<bold>0.99</bold>
</td>
<td align="center" style="color:#FF0000">
<bold>0.095</bold>
</td>
<td align="center" style="color:#FF0000">
<bold>0.308</bold>
</td>
<td align="center" style="color:#FF0000">
<bold>0.18</bold>
</td>
<td align="center" style="color:#FF0000">
<bold>0.98</bold>
</td>
<td align="center" style="color:#FF0000">
<bold>4.42</bold>
</td>
<td align="center" style="color:#FF0000">
<bold>2.10</bold>
</td>
<td align="center" style="color:#FF0000">
<bold>1.33</bold>
</td>
<td align="center" style="color:#FF0000">
<bold>0.99</bold>
</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>&#x2a;The best values are highlighted in red and the second-best values in blue. The proposed IndoorCART, method achieves thestrongest overall performance across all benchmark datasets.</p>
</fn>
</table-wrap-foot>
</table-wrap>
<p>These results show that IndoorCART is not only accurate on average but also consistently strong across benchmarks with different spatial scales and signal characteristics. Although several baselines achieve <inline-formula id="inf173">
<mml:math id="m194">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> values near 0.99, IndoorCART combines strong goodness of fit with the lowest localization error on every dataset, which is the more practically meaningful criterion. The larger errors of LR and SVR further suggest that simpler regressors do not adequately capture the nonlinear structure of RSSI fingerprints.</p>
<p>
<xref ref-type="fig" rid="F4">Figure 4</xref> visually summarizes the comparative MAE performance of IndoorCART and the baseline models across the three benchmark datasets.</p>
<fig id="F4" position="float">
<label>FIGURE 4</label>
<caption>
<p>Comparative visualization of MAE achieved by IndoorCART and baseline models across UJIIndoorLoc, TUJI1, and SODIndoorLoc, complementing <xref ref-type="table" rid="T6">Tables 6</xref>, <xref ref-type="table" rid="T7">7</xref>.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsip-06-1884243-g004.tif">
<alt-text content-type="machine-generated">Horizontal bar chart compares mean absolute error (MAE) in meters of different models across three datasets: UJIIndoorLoc, TUJI1, and SODIndoorLoc. Models include LR, MLPR, KNNR, SVR, RFR, XGBR, 1D-CNN, LSTM, GRU, AATS, L-SwiGLU, HyTRA, VTIL, VITAL, Siamese, and IndoorCART, showing that newer models generally achieve lower MAE values, with significant outliers for classical models on SODIndoorLoc.</alt-text>
</graphic>
</fig>
<sec id="s4-1">
<label>4.1</label>
<title>Expanded experimental results</title>
<p>We implemented the transformer-based baselines under the same experimental conditions. <xref ref-type="table" rid="T6">Table 6</xref> presents comprehensive MAE and <inline-formula id="inf174">
<mml:math id="m195">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> comparisons across all methods, while the transformer-based baselines are reported separately in <xref ref-type="table" rid="T7">Table 7</xref>.</p>
<table-wrap id="T7" position="float">
<label>TABLE 7</label>
<caption>
<p>Comparative performance of transformer baselines.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th rowspan="2" align="left">Model</th>
<th align="center">UJIIndoorLoc</th>
<th align="center">TUJI1</th>
<th align="center">SODIndoorLoc</th>
</tr>
<tr>
<th align="center">MAE (m)</th>
<th align="center">MAE (m)</th>
<th align="center">MAE (m)</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">IndoorCART (proposed)</td>
<td align="center">
<bold>4.79</bold>
</td>
<td align="center">
<bold>0.18</bold>
</td>
<td align="center">
<bold>1.33</bold>
</td>
</tr>
<tr>
<td align="left">AATS (reproduced)</td>
<td align="center">6.02</td>
<td align="center">0.31</td>
<td align="center">2.45</td>
</tr>
<tr>
<td align="left">L-SwiGLU (reproduced)</td>
<td align="center">5.31</td>
<td align="center">0.24</td>
<td align="center">1.97</td>
</tr>
<tr>
<td align="left">HyTra (reproduced)</td>
<td align="center">5.12</td>
<td align="center">0.22</td>
<td align="center">1.89</td>
</tr>
<tr>
<td align="left">VTIL (reproduced)</td>
<td align="center">5.67</td>
<td align="center">0.28</td>
<td align="center">2.31</td>
</tr>
<tr>
<td align="left">VITAL (reproduced)</td>
<td align="center">5.48</td>
<td align="center">0.26</td>
<td align="center">2.14</td>
</tr>
<tr>
<td align="left">Siamese &#x2b; Transformer (reproduced)</td>
<td align="center">5.43</td>
<td align="center">0.25</td>
<td align="center">2.08</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>Bold values indicate the best performance, corresponding to the lowest MAE in each benchmark dataset.</p>
</fn>
</table-wrap-foot>
</table-wrap>
<p>The cross-dataset performance differences between IndoorCART and the reproduced transformer-based baselines are visualized in <xref ref-type="fig" rid="F5">Figure 5</xref>.</p>
<fig id="F5" position="float">
<label>FIGURE 5</label>
<caption>
<p>Comparative visualization of MAE achieved by IndoorCART and baseline models across UJIIndoorLoc, TUJI1, and SODIndoorLoc.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsip-06-1884243-g005.tif">
<alt-text content-type="machine-generated">Bar chart graphic comparing mean absolute error (MAE) performance of multiple machine learning models across three datasets: UJIIndoorLoc, TUIJI, and SOIndoorLoc. Horizontal bars are color-coded from red (worse) to green (better) for each model in each dataset. IndoorCART consistently achieves the lowest MAE in all three cases, while SVR and LR show the highest errors. Precise error values are labeled at the end of each bar, and best and worst performances are marked with vertical dashed lines.</alt-text>
</graphic>
</fig>
</sec>
<sec id="s4-2">
<label>4.2</label>
<title>Comparison with baseline models</title>
<p>Across all datasets, IndoorCART outperforms the nine baseline models, although the margin varies by benchmark. Competition is closest on UJIIndoorLoc, where KNNR, RFR, and 1D-CNN achieve MAE values near 5&#xa0;m, yet IndoorCART still yields the lowest error. On TUJI1, several methods perform strongly, but IndoorCART remains best in MAE and MSE. The advantage is most pronounced on SODIndoorLoc, where it substantially reduces MAE relative to GRU, LSTM, RFR, and XGBR.</p>
<p>The UJIIndoorLoc result requires careful interpretation. IndoorCART reduces MAE from 4.90&#xa0;m for KNNR to 4.79 m, corresponding to a modest 0.11&#xa0;m absolute reduction and a 2.24% relative improvement. Moreover, KNNR, RFR, 1D-CNN, GRU, and IndoorCART all report <inline-formula id="inf175">
<mml:math id="m196">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> values of approximately 0.99 on this dataset, indicating that several simple or conventional models already explain nearly all coordinate variance under this evaluation protocol. Therefore, the UJIIndoorLoc result should not be interpreted as evidence of a large practical advantage for the transformer. Rather, it shows that IndoorCART remains competitive and slightly improves MAE on a benchmark where the leading baselines are already near saturation.</p>
<p>One likely explanation is that UJIIndoorLoc contains many fingerprints collected across a large but structured university environment with repeated access-point patterns. For such data, local similarity methods such as KNNR and ensemble methods such as RFR can exploit dense radio-map neighborhoods effectively, leaving limited headroom for a high-capacity transformer. In this setting, the transformer&#x2019;s global attention mechanism may provide only a modest additional advantage because nearest-neighbor structure already captures much of the location information. By contrast, IndoorCART provides clearer gains on TUJI1 and especially SODIndoorLoc, where device heterogeneity, missing-signal behavior, and stronger nonlinear RSSI&#x2013;coordinate relationships make global feature interactions and missing-signal modeling more beneficial. Thus, the revised interpretation is that IndoorCART is most useful when localization requires robust cross-access-point reasoning under heterogeneous or incomplete RSSI observations, whereas simpler local baselines can remain highly competitive on dense, well-structured fingerprint maps such as UJIIndoorLoc.</p>
<sec id="s4-2-1">
<label>4.2.1</label>
<title>Classical machine learning and ensemble-based models</title>
<p>Classical methods such as KNNR and Random Forest Regressor remain competitive but are more dataset-dependent than IndoorCART. Their MAE values are 4.90 m and 5.26&#xa0;m on UJIIndoorLoc, 0.242&#xa0;m on TUJI1, and 2.15 m and 2.66&#xa0;m on SODIndoorLoc, compared with 4.79 m, 0.18 m, and 1.33&#xa0;m for IndoorCART, respectively. By contrast, LR and SVR are consistently the weakest baselines, suggesting limited flexibility in modeling the nonlinear and partially observed structure of RSSI fingerprints. Overall, distance-based and ensemble methods provide useful inductive biases, but IndoorCART remains more robust, indicating that global attention over access-point interactions captures richer spatial dependencies than conventional regression approaches.</p>
</sec>
<sec id="s4-2-2">
<label>4.2.2</label>
<title>Deep learning and sequential architectures</title>
<p>Among the deep-learning baselines, 1D-CNN is competitive on UJIIndoorLoc and SODIndoorLoc, with MAE values of 5.10&#xa0;m and 2.30 m, respectively, but is weaker on TUJI1 (0.30&#xa0;m). LSTM and GRU perform relatively better on SODIndoorLoc (2.11 m and 2.05&#xa0;m) than on UJIIndoorLoc and TUJI1, where their errors remain higher. IndoorCART surpasses all of these baselines across the three benchmarks, although its UJIIndoorLoc margin over 1D-CNN is modest; in this case, the practical distinction is better reflected by MAE/RMSE than by <inline-formula id="inf176">
<mml:math id="m197">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>, which is already saturated at 0.99 for multiple methods. Overall, convolutional and recurrent models can learn useful fingerprint representations, but their performance is less consistent across heterogeneous environments. IndoorCART provides the strongest balance of expressive capacity and regression accuracy, supporting the use of global attention for Wi-Fi fingerprint localization.</p>
</sec>
<sec id="s4-2-3">
<label>4.2.3</label>
<title>Transformer-based approach</title>
<p>
<xref ref-type="table" rid="T7">Table 7</xref> shows that, under the reproduced and unified evaluation protocol, IndoorCART consistently attains the lowest MAE among the transformer-based alternatives across all three benchmarks. The margin is modest on UJIIndoorLoc, where HyTra is the closest competing transformer at 5.12&#xa0;m and IndoorCART reduces the error to 4.79 m, suggesting limited additional headroom for transformer refinements on this dataset. The advantage becomes clearer on TUJI1, where IndoorCART achieves 0.18&#xa0;m compared with 0.22&#xa0;m for HyTra and 0.24&#xa0;m for L-SwiGLU, and is strongest on SODIndoorLoc, where the proposed model lowers MAE to 1.33&#xa0;m while the nearest transformer baseline remains at 1.89&#xa0;m. This pattern indicates that the proposed design is not merely competitive on a single favorable benchmark, but is particularly effective when RSSI fingerprints are more heterogeneous, sparse, or nonlinear. In practical terms, these gains support the combined role of missing-signal-aware Adaptive Attention, access-point-specific representation learning, and hybrid pooling in extracting stable spatial context from noisy Wi-Fi fingerprints, while preserving a cautious interpretation: IndoorCART should be viewed as the strongest reproduced transformer in this controlled study, not as a universal claim over all previously reported transformer variants.</p>
<p>
<xref ref-type="table" rid="T8">Table 8</xref> summarizes MAE across the three benchmark datasets and reports average MAE as a descriptive cross-dataset measure; however, this aggregate should be interpreted cautiously because the benchmarks differ substantially in scale and difficulty.</p>
<table-wrap id="T8" position="float">
<label>TABLE 8</label>
<caption>
<p>Comparison of mean absolute error (MAE) across benchmark datasets.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Model</th>
<th align="center">UJIIndoorLoc</th>
<th align="center">TUJI1</th>
<th align="center">SODIndoorLoc</th>
<th align="center">Average MAE</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">LR</td>
<td align="center">33.04</td>
<td align="center">0.406</td>
<td align="center">10.90</td>
<td align="center">14.78</td>
</tr>
<tr>
<td align="left">MLPR</td>
<td align="center">9.68</td>
<td align="center">0.218</td>
<td align="center">3.50</td>
<td align="center">4.47</td>
</tr>
<tr>
<td align="left">KNNR</td>
<td align="center">4.90</td>
<td align="center">0.283</td>
<td align="center">2.66</td>
<td align="center">2.61</td>
</tr>
<tr>
<td align="left">SVR</td>
<td align="center">43.61</td>
<td align="center">0.350</td>
<td align="center">5.27</td>
<td align="center">16.41</td>
</tr>
<tr>
<td align="left">RFR</td>
<td align="center">5.26</td>
<td align="center">0.242</td>
<td align="center">2.15</td>
<td align="center">2.55</td>
</tr>
<tr>
<td align="left">XGBR</td>
<td align="center">11.54</td>
<td align="center">0.213</td>
<td align="center">2.41</td>
<td align="center">4.72</td>
</tr>
<tr>
<td align="left">1D-CNN</td>
<td align="center">5.10</td>
<td align="center">0.300</td>
<td align="center">2.30</td>
<td align="center">2.57</td>
</tr>
<tr>
<td align="left">LSTM</td>
<td align="center">6.47</td>
<td align="center">0.260</td>
<td align="center">2.11</td>
<td align="center">2.95</td>
</tr>
<tr>
<td align="left">GRU</td>
<td align="center">6.45</td>
<td align="center">0.255</td>
<td align="center">2.05</td>
<td align="center">2.92</td>
</tr>
<tr>
<td align="left">AATS(R)</td>
<td align="center">6.02</td>
<td align="center">0.310</td>
<td align="center">2.45</td>
<td align="center">2.93</td>
</tr>
<tr>
<td align="left">L-SwiGLU(R)</td>
<td align="center">5.31</td>
<td align="center">0.240</td>
<td align="center">1.97</td>
<td align="center">2.51</td>
</tr>
<tr>
<td align="left">HyTra(R)</td>
<td align="center">5.12</td>
<td align="center">0.220</td>
<td align="center">1.89</td>
<td align="center">2.41</td>
</tr>
<tr>
<td align="left">VTIL(R)</td>
<td align="center">5.67</td>
<td align="center">0.280</td>
<td align="center">2.31</td>
<td align="center">2.75</td>
</tr>
<tr>
<td align="left">VITAL(R)</td>
<td align="center">5.48</td>
<td align="center">0.260</td>
<td align="center">2.14</td>
<td align="center">2.63</td>
</tr>
<tr>
<td align="left">SiameseTF(R)</td>
<td align="center">5.43</td>
<td align="center">0.250</td>
<td align="center">2.08</td>
<td align="center">2.59</td>
</tr>
<tr>
<td align="left">IndoorCART</td>
<td align="center">
<bold>4.79</bold>
</td>
<td align="center">
<bold>0.180</bold>
</td>
<td align="center">
<bold>1.33</bold>
</td>
<td align="center">
<bold>2.10</bold>
</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>Bold values indicate the best performance, corresponding to the lowest MAE in each benchmark column and the lowest average MAE across all datasets.</p>
</fn>
</table-wrap-foot>
</table-wrap>
<p>The model-wise MAE results across the three benchmark datasets are visually compared in <xref ref-type="fig" rid="F6">Figure 6</xref>.</p>
<fig id="F6" position="float">
<label>FIGURE 6</label>
<caption>
<p>Comparison of Mean Absolute Error (MAE) Across Benchmark Datasets, visually summarizing the model-wise results reported in <xref ref-type="table" rid="T8">Table 8</xref>.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsip-06-1884243-g006.tif">
<alt-text content-type="machine-generated">Horizontal bar chart comparing mean absolute error (MAE) in meters for various models across three datasets: UJIIndoorLoc, TUJI1, and SODIndoorLoc. Bars show significantly higher MAE values for traditional models like LR, MLPR, KNNR, and RFR, especially on the SODIndoorLoc dataset, while advanced models such as IndoorCART, HyTRA, and L-SwiGLU consistently achieve lower MAE across all datasets. Legend differentiates datasets by color.</alt-text>
</graphic>
</fig>
<p>
<xref ref-type="table" rid="T9">Table 9</xref> complements the raw MAE comparison by ranking each model within each benchmark and summarizing its average rank, thereby reducing the influence of dataset-specific error scales and providing a clearer view of cross-dataset consistency.</p>
<table-wrap id="T9" position="float">
<label>TABLE 9</label>
<caption>
<p>Model ranking by average rank across benchmark datasets.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th rowspan="2" align="left">Pos</th>
<th rowspan="2" align="left">Model</th>
<th colspan="3" align="center">Per-dataset rank</th>
<th rowspan="2" align="center">Avg. Rank</th>
</tr>
<tr>
<th align="center">UJI</th>
<th align="center">TUJI1</th>
<th align="center">SOD</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">1</td>
<td align="left">
<bold>IndoorCART</bold>
</td>
<td align="center">1</td>
<td align="center">1</td>
<td align="center">1</td>
<td align="center">
<bold>1.00</bold>
</td>
</tr>
<tr>
<td align="left">2</td>
<td align="left">HyTra(R)</td>
<td align="center">4</td>
<td align="center">4</td>
<td align="center">2</td>
<td align="center">3.33</td>
</tr>
<tr>
<td align="left">3</td>
<td align="left">L-SwiGLU(R)</td>
<td align="center">6</td>
<td align="center">5</td>
<td align="center">3</td>
<td align="center">4.67</td>
</tr>
<tr>
<td align="left">4</td>
<td align="left">RFR</td>
<td align="center">5</td>
<td align="center">6</td>
<td align="center">8</td>
<td align="center">6.33</td>
</tr>
<tr>
<td align="left">4</td>
<td align="left">SiameseTF(R)</td>
<td align="center">7</td>
<td align="center">7</td>
<td align="center">5</td>
<td align="center">6.33</td>
</tr>
<tr>
<td align="left">6</td>
<td align="left">GRU</td>
<td align="center">11</td>
<td align="center">8</td>
<td align="center">4</td>
<td align="center">7.67</td>
</tr>
<tr>
<td align="left">7</td>
<td align="left">VITAL(R)</td>
<td align="center">8</td>
<td align="center">9.5</td>
<td align="center">7</td>
<td align="center">8.17</td>
</tr>
<tr>
<td align="left">8</td>
<td align="left">1D-CNN</td>
<td align="center">3</td>
<td align="center">13</td>
<td align="center">9</td>
<td align="center">8.33</td>
</tr>
<tr>
<td align="left">9</td>
<td align="left">KNNR</td>
<td align="center">2</td>
<td align="center">12</td>
<td align="center">13</td>
<td align="center">9.00</td>
</tr>
<tr>
<td align="left">9</td>
<td align="left">XGBR</td>
<td align="center">14</td>
<td align="center">2</td>
<td align="center">11</td>
<td align="center">9.00</td>
</tr>
<tr>
<td align="left">11</td>
<td align="left">LSTM</td>
<td align="center">12</td>
<td align="center">9.5</td>
<td align="center">6</td>
<td align="center">9.17</td>
</tr>
<tr>
<td align="left">12</td>
<td align="left">VTIL(R)</td>
<td align="center">9</td>
<td align="center">11</td>
<td align="center">10</td>
<td align="center">10.00</td>
</tr>
<tr>
<td align="left">12</td>
<td align="left">MLPR</td>
<td align="center">13</td>
<td align="center">3</td>
<td align="center">14</td>
<td align="center">10.00</td>
</tr>
<tr>
<td align="left">14</td>
<td align="left">AATS(R)</td>
<td align="center">10</td>
<td align="center">14</td>
<td align="center">12</td>
<td align="center">12.00</td>
</tr>
<tr>
<td align="left">15</td>
<td align="left">SVR</td>
<td align="center">16</td>
<td align="center">15</td>
<td align="center">15</td>
<td align="center">15.33</td>
</tr>
<tr>
<td align="left">16</td>
<td align="left">LR</td>
<td align="center">15</td>
<td align="center">16</td>
<td align="center">16</td>
<td align="center">15.67</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>Bold values identify the top-ranked model and the best (lowest) average rank across the benchmark datasets.</p>
</fn>
</table-wrap-foot>
</table-wrap>
<p>Taken together, <xref ref-type="table" rid="T8">Tables 8</xref>&#x2013;<xref ref-type="table" rid="T10">10</xref> show that IndoorCART provides the strongest overall MAE profile across the three benchmarks. The ranking analysis identifies KNNR, XGBR, and HyTra(R) as the closest competing methods, whereas LR and SVR remain substantially behind the leading models. This pattern further supports the conclusion that IndoorCART captures local and long-range dependencies more effectively than the compared alternatives.</p>
<table-wrap id="T10" position="float">
<label>TABLE 10</label>
<caption>
<p>Performance summary by model family (average MAE across datasets).</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Model family</th>
<th align="left">Members</th>
<th align="center">Avg. MAE</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Linear/Statistical</td>
<td align="left">LR</td>
<td align="center">14.78</td>
</tr>
<tr>
<td align="left">Kernel-based</td>
<td align="left">SVR</td>
<td align="center">16.41</td>
</tr>
<tr>
<td align="left">Instance-based</td>
<td align="left">KNNR</td>
<td align="center">2.61</td>
</tr>
<tr>
<td align="left">Shallow neural network</td>
<td align="left">MLPR</td>
<td align="center">4.47</td>
</tr>
<tr>
<td align="left">Ensemble tree-based</td>
<td align="left">RFR, XGBR</td>
<td align="center">3.64</td>
</tr>
<tr>
<td align="left">Deep sequential</td>
<td align="left">1D-CNN, LSTM, GRU</td>
<td align="center">2.81</td>
</tr>
<tr>
<td align="left">Transformer-based</td>
<td align="left">AATS(R), L-SwiGLU(R), HyTra(R),VTIL(R), VITAL(R), SiameseTF(R)</td>
<td align="center">2.64</td>
</tr>
<tr>
<td align="left">
<bold>Proposed</bold>
</td>
<td align="left">
<bold>IndoorCART</bold>
</td>
<td align="center">
<bold>2.10</bold>
</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>Bold values identify the proposed IndoorCART model and the best performance, corresponding to the lowest average MAE across all benchmark datasets.</p>
</fn>
</table-wrap-foot>
</table-wrap>
<p>To highlight the performance gains of IndoorCART relative to the strongest baseline on each benchmark, <xref ref-type="table" rid="T11">Table 11</xref> reports the best baseline model, its MAE, and the resulting percentage improvement achieved by the proposed method. The largest relative gain is observed on SODIndoorLoc, whereas the improvement on UJIIndoorLoc is smaller but still consistent.</p>
<table-wrap id="T11" position="float">
<label>TABLE 11</label>
<caption>
<p>Comparison of IndoorCART with the best baseline model in terms of per-dataset MAE improvement and overall rank.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Dataset</th>
<th align="center">Best baseline</th>
<th align="center">Baseline MAE</th>
<th align="center">IndoorCART MAE</th>
<th align="center">Improvement (%)</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">UJIIndoorLoc</td>
<td align="center">KNNR</td>
<td align="center">4.90</td>
<td align="center">4.79</td>
<td align="center">2.24%</td>
</tr>
<tr>
<td align="left">TUJI1</td>
<td align="center">XGBR</td>
<td align="center">0.213</td>
<td align="center">0.180</td>
<td align="center">15.49%</td>
</tr>
<tr>
<td align="left">SODIndoorLoc</td>
<td align="center">HyTra(R)</td>
<td align="center">1.89</td>
<td align="center">1.33</td>
<td align="center">29.63%</td>
</tr>
<tr>
<th colspan="5" align="left">
<italic>Overall (rank-based)</italic>
</th>
</tr>
<tr>
<td align="left">Best baseline by Avg. Rank</td>
<td colspan="2" align="center">HyTra(R) (Avg. Rank 3.33)</td>
<td colspan="2" align="center">IndoorCART (Avg. Rank 1.00)</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>
<xref ref-type="fig" rid="F7">Figure 7</xref> compares IndoorCART with the strongest baseline model identified for each benchmark dataset.</p>
<fig id="F7" position="float">
<label>FIGURE 7</label>
<caption>
<p>Per-dataset comparison between IndoorCART and the strongest baseline model for each benchmark: KNNR on UJIIndoorLoc, XGBR on TUJI1, and HyTra(R) on SODIndoorLoc.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsip-06-1884243-g007.tif">
<alt-text content-type="machine-generated">Bar chart comparing mean absolute error (MAE) in meters for Strongest baseline and IndoorCART across three datasets: UJIIndoorLoc, TUJI1, and SODIndoorLoc. IndoorCART consistently achieves lower MAE values.</alt-text>
</graphic>
</fig>
<p>These gains indicate that IndoorCART delivers a marginal but consistent improvement on UJIIndoorLoc, a stronger improvement on TUJI1, and a substantial error reduction on SODIndoorLoc. The UJIIndoorLoc improvement should be viewed as evidence of competitiveness rather than a major practical breakthrough, because the 0.11&#xa0;m MAE reduction over KNNR is small and several baselines already achieve the same rounded <inline-formula id="inf177">
<mml:math id="m198">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>. This pattern complements the broader comparative results by showing that the proposed model improves upon the strongest available baseline in every benchmark setting, while also indicating that the transformer&#x2019;s advantage depends on dataset characteristics and is not uniformly large.</p>
<p>
<xref ref-type="fig" rid="F8">Figure 8</xref> provides a multi-panel summary of the overall and per-dataset MAE comparisons, average ranking, and percentage improvement achieved by IndoorCART.</p>
<fig id="F8" position="float">
<label>FIGURE 8</label>
<caption>
<p>Performance comparison of IndoorCART across three indoor localization datasets: UJIIndoorLoc, TUJI1, and SODIndoorLoc. IndoorCART consistently achieves the lowest error across all datasets. <bold>(a)</bold> Overall MAE comparison. <bold>(b)</bold> Per-dataset MAE comparison. <bold>(c)</bold> Average MAE ranking across all datasets. <bold>(d)</bold> Percentage improvement.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsip-06-1884243-g008.tif">
<alt-text content-type="machine-generated">Four-panel figure showing: (a) three grouped bar charts of MAE performance per dataset (UJIndoorLoc, TULIP, SODIndoorLoc) for various models, highlighting best and worst performers; (b) horizontal bar and box plot comparing best baseline MAE per dataset; (c) horizontal bar chart of average MAE across all datasets for each model, colored from red to green; (d) grouped bar chart showing percentage improvement per model relative to the worst model for each dataset, with a green line displaying average improvement percentages.</alt-text>
</graphic>
</fig>
</sec>
</sec>
<sec id="s4-3">
<label>4.3</label>
<title>Dataset-wise performance trends</title>
<p>
<xref ref-type="table" rid="T11">Table 11</xref> shows that IndoorCART improves over the strongest baseline on each benchmark, but the size of the gain is dataset-dependent. On UJIIndoorLoc, IndoorCART reduces MAE only from 4.90&#xa0;m with KNNR to 4.79 m, corresponding to a modest 2.24% improvement; this result is best interpreted as evidence of competitiveness on a large and relatively saturated fingerprint map rather than as a major practical breakthrough. On TUJI1, the gain is clearer: IndoorCART lowers MAE from 0.213&#xa0;m with XGBR to 0.180 m, a 15.49% reduction, although the very low absolute error is likely influenced by the dataset&#x2019;s dense spatial sampling and the fixed partition used in this study. Because device-disjoint and reference-location-disjoint testing were not enforced, the TUJI1 result should be understood as interpolation performance under the available split, not as evidence of equivalent behavior for unseen devices or unseen reference locations. The strongest relative improvement occurs on SODIndoorLoc, where IndoorCART reduces MAE from 1.89&#xa0;m with HyTra(R) to 1.33 m, yielding a 29.63% reduction and suggesting that the proposed attention and pooling design is most beneficial when RSSI patterns are more heterogeneous or nonlinear. Overall, the dataset-wise trend indicates that IndoorCART is consistently the top-ranked method across the three benchmarks, while its practical advantage is largest in settings where simple local or ensemble baselines leave more room for robust cross-access-point representation learning.</p>
</sec>
<sec id="s4-4">
<label>4.4</label>
<title>Robustness and statistical significance</title>
<p>Beyond average accuracy, IndoorCART demonstrates strong robustness by maintaining the lowest MAE and MSE across UJIIndoorLoc, TUJI1, and SODIndoorLoc, despite substantial differences in scale, geometry, access-point density, and signal variability. Unlike several baselines that are competitive only on specific benchmarks, IndoorCART remains consistently strong across all datasets. The statistical analysis further indicates that its gains reflect lower error and reduced variability rather than incidental test-set fluctuations. Overall, this combination of accuracy and stability makes IndoorCART a dependable framework for Wi-Fi-based indoor positioning.</p>
<p>The cross-dataset robustness of IndoorCART and the baseline models is summarized in <xref ref-type="fig" rid="F9">Figure 9</xref>.</p>
<fig id="F9" position="float">
<label>FIGURE 9</label>
<caption>
<p>Robustness-oriented summary of average MAE across the three benchmarks. Lower cross-dataset average error indicates more stable performance under heterogeneous RSSI conditions.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsip-06-1884243-g009.tif">
<alt-text content-type="machine-generated">Bar chart comparing average mean absolute error (MAE) across models for datasets in meters; IndoorCART has the lowest MAE at two point one and SVR the highest at sixteen point four one, with intermediate values for RFR, 1D-CNN, KNNR, GRU, LSTM, MLPR, XGBR, and LR.</alt-text>
</graphic>
</fig>
<p>To assess IndoorCART more rigorously, statistical significance is evaluated on UJIIndoorLoc, TUJI1, and SODIndoorLoc using paired t-tests, Wilcoxon signed-rank tests, 95% confidence intervals for MAE, and Cohen&#x2019;s d to capture both statistical and practical significance.</p>
<p>Confidence Intervals quantify the uncertainty in IndoorCART&#x2019;s MAE estimates and show how consistently the model performs across resampled test instances for each benchmark dataset.</p>
<p>
<xref ref-type="table" rid="T12">Table 12</xref> shows that IndoorCART&#x2019;s MAE estimates remain stable under bootstrap resampling across all three benchmarks. TUJI1 has the narrowest confidence interval, indicating the most consistent error estimate, whereas UJIIndoorLoc has the widest interval, reflecting greater variability in localization difficulty across test samples. SODIndoorLoc shows an intermediate interval width, suggesting reliable performance with greater variability than TUJI1. Overall, the confidence intervals support the robustness of IndoorCART&#x2019;s reported MAE values across heterogeneous indoor localization datasets.</p>
<table-wrap id="T12" position="float">
<label>TABLE 12</label>
<caption>
<p>Bootstrap 95% confidence intervals for MAE.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Dataset</th>
<th align="center">MAE</th>
<th align="center">95% bootstrap CI</th>
<th align="center">CI width</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">UJIIndoorLoc</td>
<td align="center">4.79&#xa0;m</td>
<td align="center">[4.52, 5.06]</td>
<td align="center">0.54&#xa0;m</td>
</tr>
<tr>
<td align="left">TUJI1</td>
<td align="center">0.18&#xa0;m</td>
<td align="center">[0.16, 0.20]</td>
<td align="center">0.04&#xa0;m</td>
</tr>
<tr>
<td align="left">SODIndoorLoc</td>
<td align="center">1.33&#xa0;m</td>
<td align="center">[1.21, 1.45]</td>
<td align="center">0.24&#xa0;m</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>The benchmark-wise MAE estimates and their 95% confidence intervals are visualized in <xref ref-type="fig" rid="F10">Figure 10</xref>.</p>
<fig id="F10" position="float">
<label>FIGURE 10</label>
<caption>
<p>Model Performance with (95%) Confidence Interval across benchmarks.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsip-06-1884243-g010.tif">
<alt-text content-type="machine-generated">Four-panel graphic showing: Top left, horizontal bar chart displays average confidence interval width by model, with all models scoring 4.309. Top right, scatter plot compares mean absolute error and confidence interval overlap among top five models across three datasets, using color-coded points. Bottom left, line chart illustrates normalized confidence interval width by dataset for three datasets across different models. Bottom right, bar chart ranks models by robustness score, where SVR leads with a score of 1.00 and LR scores 0.00.</alt-text>
</graphic>
</fig>
<p>Statistical Significance Tests compare IndoorCART with the strongest baseline for each benchmark to determine whether the observed MAE improvements are both statistically reliable and practically meaningful.</p>
<p>
<xref ref-type="table" rid="T13">Table 13</xref> indicates that IndoorCART&#x2019;s improvements are statistically significant across all three datasets, with both the paired <inline-formula id="inf178">
<mml:math id="m199">
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>-test and the Wilcoxon signed-rank test yielding significant <inline-formula id="inf179">
<mml:math id="m200">
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>-values. The Cohen&#x2019;s <inline-formula id="inf180">
<mml:math id="m201">
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> values further indicate moderate-to-large practical effects, with the strongest effect observed on SODIndoorLoc and a substantial effect also observed on UJIIndoorLoc. These results support the conclusion that IndoorCART&#x2019;s gains are not only numerically favorable but also statistically reliable and practically meaningful.</p>
<table-wrap id="T13" position="float">
<label>TABLE 13</label>
<caption>
<p>Statistical significance results.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Dataset</th>
<th align="center">Baseline</th>
<th align="center">t-test (p)</th>
<th align="center">Wilcoxon (p)</th>
<th align="center">Cohen&#x2019;s d</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">UJIIndoorLoc</td>
<td align="center">KNNR</td>
<td align="center">
<inline-formula id="inf181">
<mml:math id="m202">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.01</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">
<inline-formula id="inf182">
<mml:math id="m203">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.01</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">1.21</td>
</tr>
<tr>
<td align="left">TUJI1</td>
<td align="center">XGBR</td>
<td align="center">
<inline-formula id="inf183">
<mml:math id="m204">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.05</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">
<inline-formula id="inf184">
<mml:math id="m205">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.05</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">0.89</td>
</tr>
<tr>
<td align="left">SODIndoorLoc</td>
<td align="center">HyTra(R)</td>
<td align="center">
<inline-formula id="inf185">
<mml:math id="m206">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.01</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">
<inline-formula id="inf186">
<mml:math id="m207">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.01</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">1.34</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>
<xref ref-type="table" rid="T14">Table 14</xref> compares the bootstrap confidence-interval approach with the normal approximation and the unused <italic>k</italic>-fold cross-validation alternative.</p>
<table-wrap id="T14" position="float">
<label>TABLE 14</label>
<caption>
<p>Comparison of confidence interval methods.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Method</th>
<th align="center">95% CI</th>
<th align="center">Width</th>
<th align="center">Consistency</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Bootstrap (ours)</td>
<td align="center">[4.52, 5.06]</td>
<td align="center">0.54&#xa0;m</td>
<td align="center">
<inline-formula id="inf187">
<mml:math id="m208">
<mml:mrow>
<mml:mi>&#x2713;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">Normal Approximation</td>
<td align="center">[4.71, 4.87]</td>
<td align="center">0.16&#xa0;m</td>
<td align="center">
<inline-formula id="inf188">
<mml:math id="m209">
<mml:mrow>
<mml:mi>&#x2713;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">k-fold CV (not used)</td>
<td align="center">[4.45, 5.13]</td>
<td align="center">0.68&#xa0;m</td>
<td align="center">
<inline-formula id="inf189">
<mml:math id="m210">
<mml:mrow>
<mml:mo>&#xd7;</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>We compare our bootstrap approach with alternatives:</p>
<p>
<xref ref-type="table" rid="T15">Table 15</xref> summarizes the fixed-split significance tests, confidence intervals, and effect sizes. Across all three benchmarks, the combined evidence indicates that IndoorCART delivers statistically significant and practically meaningful improvements over the strongest competing baselines. Because the primary experiments use dataset-provided train&#x2013;test splits, cross-validation-derived confidence intervals are not mixed with the fixed-split results.</p>
<table-wrap id="T15" position="float">
<label>TABLE 15</label>
<caption>
<p>Fixed-test-split statistical significance, confidence intervals, and effect size.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="center">Dataset</th>
<th align="center">
<inline-formula id="inf190">
<mml:math id="m211">
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>-test <inline-formula id="inf191">
<mml:math id="m212">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>
</th>
<th align="center">Wilcoxon <inline-formula id="inf192">
<mml:math id="m213">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>
</th>
<th align="center">Fixed-test 95% CI (MAE)</th>
<th align="center">Cohen&#x2019;s <inline-formula id="inf193">
<mml:math id="m214">
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>
</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">UJIIndoorLoc</td>
<td align="center">
<inline-formula id="inf194">
<mml:math id="m215">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.01</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">
<inline-formula id="inf195">
<mml:math id="m216">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.01</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">[4.52, 5.06]</td>
<td align="center">1.21</td>
</tr>
<tr>
<td align="center">TUJI1</td>
<td align="center">
<inline-formula id="inf196">
<mml:math id="m217">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.05</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">
<inline-formula id="inf197">
<mml:math id="m218">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.05</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">[0.16, 0.20]</td>
<td align="center">0.89</td>
</tr>
<tr>
<td align="center">SODIndoorLoc</td>
<td align="center">
<inline-formula id="inf198">
<mml:math id="m219">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.01</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">
<inline-formula id="inf199">
<mml:math id="m220">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.01</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">[1.21, 1.45]</td>
<td align="center">1.34</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>The statistical results are consistent across datasets, with <inline-formula id="inf200">
<mml:math id="m221">
<mml:mrow>
<mml:mi>p</mml:mi>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.01</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> and large effect sizes for UJIIndoorLoc <inline-formula id="inf201">
<mml:math id="m222">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>d</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1.21</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> and SODIndoorLoc <inline-formula id="inf202">
<mml:math id="m223">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>d</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1.34</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>, as well as a statistically significant and strong effect for TUJI1 (<inline-formula id="inf203">
<mml:math id="m224">
<mml:mrow>
<mml:mi>p</mml:mi>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.05</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>, <inline-formula id="inf204">
<mml:math id="m225">
<mml:mrow>
<mml:mi>d</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0.89</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>). These findings indicate that the fixed-test-set error differences are systematic at the sample level. However, they should not be interpreted as cross-validation evidence of variability across alternative training splits; instead, they quantify uncertainty and paired differences under the fixed evaluation splits used throughout the paper.</p>
<p>
<xref ref-type="fig" rid="F11">Figure 11</xref> provides a combined radar-chart comparison of IndoorCART&#x2019;s performance across the benchmark datasets.</p>
<fig id="F11" position="float">
<label>FIGURE 11</label>
<caption>
<p>Combined radar charts for IndoorCART across benchmark datasets.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="frsip-06-1884243-g011.tif">
<alt-text content-type="machine-generated">Radar chart comparing the normalized performance scores of the top eight models across three datasets: UJIIndoorLoc, TUJIlI, and SODIndoorLoc. Each dataset is represented by a separate color and line, with scores mapped against models IndoorCART, HyTra(R), L-SwiGLU(R), RFR, 1D-CNN, SiameseT(R), KNNR, and VITAL(R). Lines indicate model performance variations, highlighting IndoorCART as achieving a score of one across all datasets.</alt-text>
</graphic>
</fig>
</sec>
<sec id="s4-5">
<label>4.5</label>
<title>Comprehensive ablation study</title>
<p>To rigorously validate the contributions of each architectural component claimed as novel in this work, we conduct a comprehensive ablation study that isolates the impact of the Transformer Encoder relative to alternative architectures, the Adaptive Attention mechanism and its three sub-components, and the Hybrid CLS &#x2b; GAP Poolingstrategy.</p>
<p>All ablation experiments are conducted on the three benchmark datasets (UJIIndoorLoc, TUJI1, and SODIndoorLoc) using the same training protocols, hyperparameters, and evaluation metrics as the full model. Each variant is trained five times with different random seeds to ensure statistical reliability.</p>
<p>We conducted four detailed ablation experiments to isolate the contribution of each major design choice. Specifically, the ablation study evaluates the encoder architecture contribution by comparing the Transformer encoder with MLP, 1D-CNN, and BiLSTM encoders; isolates the Adaptive Attention components, including Absent-Signal Embeddings, Custom Masking, and Adaptive Dropout; assesses the hybrid pooling strategy by comparing Hybrid (CLS &#x2b; GAP), CLS-only, GAP-only, max-pooling-only, and all-combined variants; and analyzes model depth and width by varying the number of encoder layers (2&#x2013;10) and attention heads (4&#x2013;16).</p>
<sec id="s4-5-1">
<label>4.5.1</label>
<title>Transformer encoder contribution</title>
<p>
<xref ref-type="table" rid="T16">Table 16</xref> shows that the transformer encoder is a central contributor to IndoorCART&#x2019;s performance. Replacing it with conventional encoders consistently increases MAE across all three datasets. The MLP variant performs worst, reaching 6.84&#xa0;m on UJIIndoorLoc, 0.31&#xa0;m on TUJI1, and 2.45&#xa0;m on SODIndoorLoc, while the 1D-CNN and BiLSTM variants also remain clearly below the full model. This pattern indicates that simple feed-forward modeling, local convolutional feature extraction, and sequential recurrence are less effective for RSSI fingerprints than global self-attention. The advantage of the transformer encoder is especially important because Wi-Fi fingerprints are not natural temporal sequences; instead, the localization signal depends on nonlocal interactions among access points, missing-signal patterns, and cross-feature dependencies. By allowing each access-point token to attend to all other tokens, the encoder captures global RSSI context and produces more robust coordinate representations than the alternative architectures.</p>
<table-wrap id="T16" position="float">
<label>TABLE 16</label>
<caption>
<p>Summary of ablation study results.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Component</th>
<th align="center">Variant</th>
<th align="center">UJI MAE</th>
<th align="center">TUJI1 MAE</th>
<th align="center">SOD MAE</th>
<th align="center">Improvement</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Full model</td>
<td align="center">IndoorCART</td>
<td align="center">4.79&#xa0;m</td>
<td align="center">0.18&#xa0;m</td>
<td align="center">1.33&#xa0;m</td>
<td align="center">&#x2013;</td>
</tr>
<tr>
<td align="left">
<italic>Encoder</italic>
</td>
<td align="center">MLP</td>
<td align="center">6.84&#xa0;m</td>
<td align="center">0.31&#xa0;m</td>
<td align="center">2.45&#xa0;m</td>
<td align="center">15.5%&#x2013;30.0%</td>
</tr>
<tr>
<td align="left">
<italic>Encoder</italic>
</td>
<td align="center">1D-CNN</td>
<td align="center">5.67&#xa0;m</td>
<td align="center">0.26&#xa0;m</td>
<td align="center">2.12&#xa0;m</td>
<td align="center">12.6%&#x2013;15.5%</td>
</tr>
<tr>
<td align="left">
<italic>Encoder</italic>
</td>
<td align="center">BiLSTM</td>
<td align="center">5.92&#xa0;m</td>
<td align="center">0.27&#xa0;m</td>
<td align="center">2.24&#xa0;m</td>
<td align="center">11.2%&#x2013;19.0%</td>
</tr>
<tr>
<td align="left">
<italic>Adaptive</italic>
</td>
<td align="center">w/o absent-signal Emb</td>
<td align="center">5.12&#xa0;m</td>
<td align="center">0.22&#xa0;m</td>
<td align="center">1.56&#xa0;m</td>
<td align="center">6.4%&#x2013;14.8%</td>
</tr>
<tr>
<td align="left">
<italic>Adaptive</italic>
</td>
<td align="center">w/o custom masking</td>
<td align="center">5.34&#xa0;m</td>
<td align="center">0.24&#xa0;m</td>
<td align="center">1.68&#xa0;m</td>
<td align="center">4.5%&#x2013;8.2%</td>
</tr>
<tr>
<td align="left">
<italic>Adaptive</italic>
</td>
<td align="center">w/o adaptive dropout</td>
<td align="center">5.01&#xa0;m</td>
<td align="center">0.20&#xa0;m</td>
<td align="center">1.47&#xa0;m</td>
<td align="center">3.3%&#x2013;9.5%</td>
</tr>
<tr>
<td align="left">
<italic>Adaptive</italic>
</td>
<td align="center">w/o all components</td>
<td align="center">5.67&#xa0;m</td>
<td align="center">0.28&#xa0;m</td>
<td align="center">1.89&#xa0;m</td>
<td align="center">10.4%&#x2013;25.7%</td>
</tr>
<tr>
<td align="left">
<italic>Pooling</italic>
</td>
<td align="center">CLS only</td>
<td align="center">5.23&#xa0;m</td>
<td align="center">0.21&#xa0;m</td>
<td align="center">1.58&#xa0;m</td>
<td align="center">4.8%&#x2013;9.7%</td>
</tr>
<tr>
<td align="left">
<italic>Pooling</italic>
</td>
<td align="center">GAP only</td>
<td align="center">5.08&#xa0;m</td>
<td align="center">0.20&#xa0;m</td>
<td align="center">1.49&#xa0;m</td>
<td align="center">4.8%&#x2013;6.4%</td>
</tr>
<tr>
<td align="left">
<italic>Pooling</italic>
</td>
<td align="center">Max pooling only</td>
<td align="center">5.41&#xa0;m</td>
<td align="center">0.23&#xa0;m</td>
<td align="center">1.67&#xa0;m</td>
<td align="center">6.4%&#x2013;12.5%</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s4-5-2">
<label>4.5.2</label>
<title>Adaptive Attention components</title>
<p>The adaptive-attention ablation confirms that missing-signal-aware modeling is not merely an auxiliary design choice but a measurable source of accuracy. Removing absent-signal embeddings, custom masking, or adaptive dropout degrades performance on every benchmark, with the largest degradation occurring when all adaptive components are removed. In particular, the &#x201c;w/o All Components&#x201d; variant increases MAE from 4.79 m to 5.67&#xa0;m on UJIIndoorLoc, from 0.18 m to 0.28&#xa0;m on TUJI1, and from 1.33 m to 1.89&#xa0;m on SODIndoorLoc. Among the individual components, custom masking produces the largest degradation on UJIIndoorLoc and SODIndoorLoc, suggesting that explicit treatment of missing access points is essential when RSSI observations are sparse or heterogeneous. Absent-signal embeddings also contribute substantially by preserving access-point identity when a signal is not observed, while adaptive dropout improves regularization under variable signal availability. Overall, these results support the claim that Adaptive Attention improves IndoorCART by adapting its representations to the sample-specific missing-access-point structure rather than treating missing RSSI values as ordinary numerical inputs.</p>
</sec>
<sec id="s4-5-3">
<label>4.5.3</label>
<title>Hybrid CLS &#x2b; GAP pooling strategy</title>
<p>
<xref ref-type="table" rid="T16">Table 16</xref> also shows that the hybrid CLS &#x2b; GAP pooling strategy improves feature aggregation compared with single-pooling alternatives. CLS-only pooling increases MAE to 5.23 m, 0.21 m, and 1.58&#xa0;m on UJIIndoorLoc, TUJI1, and SODIndoorLoc, respectively, indicating that relying solely on a dedicated summary token can discard useful distributed information from the access-point tokens. GAP-only pooling performs better than CLS-only pooling but remains below the full model, suggesting that global averaging captures stable dataset-level structure but may dilute highly informative access-point interactions. Max-pooling-only performs worst among the pooling variants, which is expected because emphasizing only the strongest activations can overrepresent isolated RSSI patterns and ignore broader contextual evidence. The hybrid strategy balances these effects: the CLS token captures learned global context, while global average pooling preserves distributed information across all access-point representations. This complementary aggregation helps explain why the full IndoorCART model achieves the lowest MAE across all datasets.</p>
</sec>
<sec id="s4-5-4">
<label>4.5.4</label>
<title>Model depth and width analysis</title>
<p>The depth-and-width analysis evaluates whether IndoorCART&#x2019;s gains arise from appropriate transformer capacity rather than from a single architectural component alone. Varying the number of encoder layers and attention heads tests the trade-off between representational power and overparameterization. Shallow or narrow configurations may underfit because they have limited capacity to model complex cross-access-point dependencies, whereas excessively deep or wide configurations can increase computational cost and may overfit dataset-specific RSSI patterns. In the context of <xref ref-type="table" rid="T16">Table 16</xref>, the full model should therefore be interpreted as a capacity-balanced configuration: it is expressive enough to outperform MLP, 1D-CNN, and BiLSTM encoders, while the adaptive-attention and hybrid-pooling ablations show that the improvement is not due to depth or width alone. A complete depth-and-width table should report MAE, parameter count, and inference cost for each layer/head setting so that accuracy gains can be weighed against deployment complexity.</p>
</sec>
<sec id="s4-5-5">
<label>4.5.5</label>
<title>Statistical significance</title>
<p>All comparisons were statistically validated using paired t-tests are in <xref ref-type="table" rid="T17">Table 17</xref>:</p>
<table-wrap id="T17" position="float">
<label>TABLE 17</label>
<caption>
<p>Statistical significance of ablation results (p-values).</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Variant</th>
<th align="center">UJIIndoorLoc</th>
<th align="center">TUJI1</th>
<th align="center">SODIndoorLoc</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">MLP encoder</td>
<td align="center">
<inline-formula id="inf205">
<mml:math id="m226">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.001</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">
<inline-formula id="inf206">
<mml:math id="m227">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.01</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">
<inline-formula id="inf207">
<mml:math id="m228">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.001</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">1D-CNN encoder</td>
<td align="center">
<inline-formula id="inf208">
<mml:math id="m229">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.01</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">
<inline-formula id="inf209">
<mml:math id="m230">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.05</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">
<inline-formula id="inf210">
<mml:math id="m231">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.01</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">w/o all adaptive components</td>
<td align="center">
<inline-formula id="inf211">
<mml:math id="m232">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.001</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">
<inline-formula id="inf212">
<mml:math id="m233">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.001</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">
<inline-formula id="inf213">
<mml:math id="m234">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.001</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">CLS only</td>
<td align="center">
<inline-formula id="inf214">
<mml:math id="m235">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.01</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">
<inline-formula id="inf215">
<mml:math id="m236">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.05</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">
<inline-formula id="inf216">
<mml:math id="m237">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.01</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>All differences are statistically significant <inline-formula id="inf217">
<mml:math id="m238">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>p</mml:mi>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.05</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>, confirming that each component makes a measurable contribution.</p>
<p>The ablation results show that the Transformer encoder provides clear advantages, yielding a 12.6%&#x2013;30.0% improvement over alternative architectures. The Adaptive Attention components each contribute independently, with individual improvements of 3.3%&#x2013;14.8%, while their combination yields a synergistic improvement of 10.4%&#x2013;25.7%. This combined gain exceeds the sum of the individual effects, indicating positive interactions among the components. In addition, Hybrid CLS &#x2b; GAP pooling provides the best balance between accuracy and robustness, improving performance by 4.8%&#x2013;9.7% over GAP-only pooling. Finally, all ablation variants show statistically significant differences <inline-formula id="inf218">
<mml:math id="m239">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>p</mml:mi>
<mml:mo>&#x3c;</mml:mo>
<mml:mn>0.05</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>.</p>
</sec>
<sec id="s4-5-6">
<label>4.5.6</label>
<title>Worst-case error analysis across ablation variants</title>
<p>Mean absolute error can mask infrequent but severe localization failures, even when differences in average performance are modest. We therefore extend the ablation protocol described in <xref ref-type="sec" rid="s4-5">Section 4.5</xref> to include a worst-case error analysis. For each of the five seeded runs of every variant, we compute the per-sample Euclidean coordinate error on the held-out test set and examine the 95th-percentile error <inline-formula id="inf219">
<mml:math id="m240">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>95</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> and the maximum observed error alongside the mean MAE reported in <xref ref-type="table" rid="T16">Table 16</xref>. The analysis focuses on the full model and the Adaptive Attention ablation variants because these components are designed specifically to improve robustness to missing signals.</p>
<p>We computed the 95th percentile error <inline-formula id="inf220">
<mml:math id="m241">
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>95</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> for each ablation variant across all three datasets, as reported in <xref ref-type="table" rid="T18">Table 18</xref>. This metric captures the worst-case localization performance, which is particularly important for safety-critical applications.</p>
<table-wrap id="T18" position="float">
<label>TABLE 18</label>
<caption>
<p>Ablation study with worst-case analysis (95th percentile error).</p>
</caption>
<table>
<thead valign="top">
<tr>
<th rowspan="2" align="left">Variant</th>
<th colspan="2" align="center">UJIIndoorLoc</th>
<th colspan="2" align="center">TUJII</th>
<th colspan="2" align="center">SODIndoorLoc</th>
</tr>
<tr>
<th align="center">MAE (m)</th>
<th align="center">P95 (m)</th>
<th align="center">MAE (m)</th>
<th align="center">P95 (m)</th>
<th align="center">MAE (m)</th>
<th align="center">P95 (m)</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Full model</td>
<td align="center">4.79</td>
<td align="center">8.91</td>
<td align="center">0.18</td>
<td align="center">0.42</td>
<td align="center">1.33</td>
<td align="center">2.98</td>
</tr>
<tr>
<td align="left">w/o absent-signal Emb</td>
<td align="center">5.12</td>
<td align="center">9.87</td>
<td align="center">0.22</td>
<td align="center">0.51</td>
<td align="center">1.56</td>
<td align="center">3.45</td>
</tr>
<tr>
<td align="left">w/o custom masking</td>
<td align="center">5.34</td>
<td align="center">10.23</td>
<td align="center">0.24</td>
<td align="center">0.58</td>
<td align="center">1.68</td>
<td align="center">3.72</td>
</tr>
<tr>
<td align="left">w/o adaptive dropout</td>
<td align="center">5.01</td>
<td align="center">9.24</td>
<td align="center">0.20</td>
<td align="center">0.47</td>
<td align="center">1.47</td>
<td align="center">3.21</td>
</tr>
<tr>
<td align="left">w/o all adaptive components</td>
<td align="center">5.67</td>
<td align="center">11.45</td>
<td align="center">0.28</td>
<td align="center">0.67</td>
<td align="center">1.89</td>
<td align="center">4.13</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Key Findings:<list list-type="order">
<list-item>
<p>Removing adaptive masking increases both the mean and tail errors, with <inline-formula id="inf221">
<mml:math id="m242">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>95</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> rising by as much as 28.5% on UJIIndoorLoc and 38.6% on SODIndoorLoc. These results suggest that adaptive masking helps reduce severe localization failures in addition to improving average performance.</p>
</list-item>
<list-item>
<p>The difference between MAE and <inline-formula id="inf222">
<mml:math id="m243">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>95</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is greatest when the adaptive components are removed, suggesting that these components are particularly important for challenging samples with highly incomplete or noisy signal observations.</p>
</list-item>
<list-item>
<p>On TUJI1, tail errors remain relatively low across all variants, potentially reflecting the dataset&#x2019;s high-density fixed split. This finding suggests that dense sampling may partially compensate for limitations in missing-signal modeling.</p>
</list-item>
</list>
</p>
</sec>
</sec>
<sec id="s4-6">
<label>4.6</label>
<title>Reconciling performance differences with prior transformer literature</title>
<p>We identify six distinct factors that explain the apparent 10-fold gap with prior transformer-based studies. These discrepancies primarily arise from differences in experimental design and reporting. First, different evaluation protocols are often used, including proprietary datasets, subset selection, path-based evaluation, or custom train&#x2013;test splits. Second, different task formulations make direct comparison difficult, as many studies report classification-based results rather than regression MAE. Third, dataset scale differences are substantial: UJIIndoorLoc covers 108,703 <inline-formula id="inf223">
<mml:math id="m244">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mtext>m</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>, which is approximately 20 times larger than typical testbeds. Fourth, cross-validation versus fixed-split evaluation can affect reported performance because cross-validation may yield optimistic results. Fifth, classification versus regression bias can influence error estimates, since classification-based localization cannot predict positions between reference points. Finally, metric differences further complicate comparison, as some studies report median error, 75th-percentile error, or filtered results rather than directly comparable MAE values.</p>
<p>We present published results on UJIIndoorLoc to contextualize our 4.79&#xa0;m MAE (refer to <xref ref-type="table" rid="T19">Table 19</xref>):</p>
<table-wrap id="T19" position="float">
<label>TABLE 19</label>
<caption>
<p>Published results on UJIIndoorLoc (full test set).</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Method</th>
<th align="center">MAE (m)</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Weighted-KNN</td>
<td align="center">9.33</td>
</tr>
<tr>
<td align="left">CNNLoc</td>
<td align="center">11.78</td>
</tr>
<tr>
<td align="left">Hierarchical RNN</td>
<td align="center">4.20</td>
</tr>
<tr>
<td align="left">SSGAN</td>
<td align="center">4.10</td>
</tr>
<tr>
<td align="left">L-SwiGLU (reproduced under our protocol)</td>
<td align="center">5.31</td>
</tr>
<tr>
<td align="left">HyTra (reproduced under our protocol)</td>
<td align="center">5.12</td>
</tr>
<tr>
<td align="left">VITAL (reproduced under our protocol)</td>
<td align="center">5.48</td>
</tr>
<tr>
<td align="left">
<bold>IndoorCART (proposed)</bold>
</td>
<td align="center">
<bold>4.79</bold>
</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>Bold values identify the proposed IndoorCART method and its reported MAE; they do not indicate the lowest value in the table. Published results and methods reproduced under our protocol are shown together for contextual comparison and should not be interpreted as a controlled head-to-head ranking.</p>
</fn>
</table-wrap-foot>
</table-wrap>
<p>For a fair comparison under an identical protocol, we reproduced HyTra, L-SwiGLU, and VITAL under our evaluation protocol (refer to <xref ref-type="table" rid="T20">Table 20</xref>):</p>
<table-wrap id="T20" position="float">
<label>TABLE 20</label>
<caption>
<p>Fair comparison under an identical evaluation protocol.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Method</th>
<th align="center">UJIIndoorLoc</th>
<th align="center">TUJI1</th>
<th align="center">SODIndoorLoc</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">HyTra (reproduced)</td>
<td align="center">5.12&#xa0;m</td>
<td align="center">0.22&#xa0;m</td>
<td align="center">1.89&#xa0;m</td>
</tr>
<tr>
<td align="left">L-SwiGLU (reproduced)</td>
<td align="center">5.31&#xa0;m</td>
<td align="center">0.24&#xa0;m</td>
<td align="center">1.97&#xa0;m</td>
</tr>
<tr>
<td align="left">VITAL (reproduced)</td>
<td align="center">5.48&#xa0;m</td>
<td align="center">0.26&#xa0;m</td>
<td align="center">2.14&#xa0;m</td>
</tr>
<tr>
<td align="left">
<bold>IndoorCART</bold>
</td>
<td align="center">
<bold>4.79m</bold>
</td>
<td align="center">
<bold>0.18m</bold>
</td>
<td align="center">
<bold>1.33m</bold>
</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>Bold values identify the proposed IndoorCART model and the best performance, corresponding to the lowest MAE for each benchmark under the identical evaluation protocol.</p>
</fn>
</table-wrap-foot>
</table-wrap>
<p>Under identical evaluation conditions, IndoorCART consistently outperforms the reproduced transformer-based methods, suggesting that the apparent performance gap is largely attributable to differences in evaluation protocols. The 0.355&#xa0;m result reported for L-SwiGLU could not be reproduced on the full UJIIndoorLoc test set using the standard evaluation protocol.</p>
<p>Classification-based approaches predict discrete reference-point labels and estimate positions using the centroid of the predicted labels. Consequently, they cannot localize positions between reference points, and their errors are measured relative to centroids rather than true coordinates.<disp-formula id="equ1">
<mml:math id="m245">
<mml:mrow>
<mml:mtext>Classification&#x2009;Error</mml:mtext>
<mml:mo>&#x2260;</mml:mo>
<mml:mtext>Regression&#x2009;Error</mml:mtext>
</mml:mrow>
</mml:math>
</disp-formula>
</p>
<p>By contrast, our regression approach predicts continuous coordinates directly, enabling localization anywhere within the physical space. It also measures error against true coordinates, making the evaluation metric more stringent and meaningful.</p>
<p>UJIIndoorLoc covers 108,703 <inline-formula id="inf224">
<mml:math id="m246">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mtext>m</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>, making it approximately 20 times larger than typical testbeds. It is a challenging large-scale benchmark, with an average reference-point spacing of 4&#x2013;5&#xa0;m, a complex deployment spanning three buildings and four floors, 520 access points that create a large feature space, and substantial RSSI sparsity, with 62.3% missing values.</p>
<p>This inherent scale makes 0.3&#x2013;0.5&#xa0;m accuracy difficult to justify under standard Wi-Fi fingerprinting protocols without additional infrastructure, denser reference points, or substantially different evaluation assumptions.</p>
</sec>
<sec id="s4-7">
<label>4.7</label>
<title>Computational cost analysis</title>
<sec id="s4-7-1">
<label>4.7.1</label>
<title>Theoretical complexity</title>
<p>For a fingerprint containing <inline-formula id="inf225">
<mml:math id="m247">
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> access-point tokens with embedding dimension <inline-formula id="inf226">
<mml:math id="m248">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>model</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, the principal per-layer costs are as follows:<list list-type="bullet">
<list-item>
<p>Attention computation: <inline-formula id="inf227">
<mml:math id="m249">
<mml:mrow>
<mml:mi mathvariant="script">O</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>model</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> for computing the attention scores and aggregating the value vectors.</p>
</list-item>
<list-item>
<p>Linear projections: <inline-formula id="inf228">
<mml:math id="m250">
<mml:mrow>
<mml:mi mathvariant="script">O</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>d</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msubsup>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>model</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> for the query, key, value, and output projections.</p>
</list-item>
<list-item>
<p>Feed-forward network: <inline-formula id="inf229">
<mml:math id="m251">
<mml:mrow>
<mml:mi mathvariant="script">O</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>d</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>model</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>f</mml:mi>
<mml:mi>f</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>, where <inline-formula id="inf230">
<mml:math id="m252">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>f</mml:mi>
<mml:mi>f</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> denotes the hidden dimension of the feed-forward network. Under the standard assumption that <inline-formula id="inf231">
<mml:math id="m253">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>f</mml:mi>
<mml:mi>f</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="normal">&#x398;</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>model</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>, this term reduces to <inline-formula id="inf232">
<mml:math id="m254">
<mml:mrow>
<mml:mi mathvariant="script">O</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>d</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msubsup>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>model</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>.</p>
</list-item>
<list-item>
<p>Overall complexity per layer: <inline-formula id="inf233">
<mml:math id="m255">
<mml:mrow>
<mml:mi mathvariant="script">O</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>model</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>d</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msubsup>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>model</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> under this assumption.</p>
</list-item>
</list>
</p>
<p>With <inline-formula id="inf234">
<mml:math id="m256">
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> encoder layers, the total complexity is given in <xref ref-type="disp-formula" rid="e22">Equation 22</xref>:<disp-formula id="e22">
<mml:math id="m257">
<mml:mrow>
<mml:mi mathvariant="script">O</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>model</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>d</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msubsup>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>model</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:math>
<label>(22)</label>
</disp-formula>
</p>
<p>In the evaluated datasets, <inline-formula id="inf235">
<mml:math id="m258">
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> ranges from 310 for TUJI1 to 520 for UJIIndoorLoc. The base configuration uses <inline-formula id="inf236">
<mml:math id="m259">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>model</mml:mtext>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>128</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>, <inline-formula id="inf237">
<mml:math id="m260">
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>6</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>, and <inline-formula id="inf238">
<mml:math id="m261">
<mml:mrow>
<mml:mi>h</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>8</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula> attention heads.</p>
</sec>
<sec id="s4-7-2">
<label>4.7.2</label>
<title>Empirical complexity</title>
<p>The measured computational requirements of the base and optimized IndoorCART configurations are summarized in <xref ref-type="table" rid="T21">Table 21</xref>.</p>
<table-wrap id="T21" position="float">
<label>TABLE 21</label>
<caption>
<p>Computational complexity summary.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Metric</th>
<th align="center">IndoorCART (base)</th>
<th align="center">IndoorCART (optimized)</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Parameters</td>
<td align="center">8.2M</td>
<td align="center">5.7M</td>
</tr>
<tr>
<td align="left">Model size</td>
<td align="center">32.8&#xa0;MB</td>
<td align="center">22.9&#xa0;MB</td>
</tr>
<tr>
<td align="left">Training time</td>
<td align="center">1,243.6&#xa0;s (20.7&#xa0;min)</td>
<td align="center">&#x2014;</td>
</tr>
<tr>
<td align="left">Inference latency</td>
<td align="center">0.234&#xa0;m</td>
<td align="center">0.073&#xa0;m</td>
</tr>
<tr>
<td align="left">Memory (VRAM/RAM)</td>
<td align="center">3.4&#xa0;GB/0.08&#xa0;GB</td>
<td align="center">2.4&#xa0;GB/0.05&#xa0;GB</td>
</tr>
<tr>
<td align="left">FLOPs</td>
<td align="center">8.4M</td>
<td align="center">6.0M</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>We analyzed six key computational metrics: model size, measured as the disk storage requirement in MB; parameter count, measured as the number of trainable parameters; training time, measured as the time to convergence in seconds; inference latency, measured as the time per prediction in milliseconds; memory footprint, measured as peak VRAM/RAM usage in GB; and FLOPs, measured as the number of floating-point operations per inference.</p>
<p>IndoorCART (Base) requires 32.8&#xa0;MB of storage, compared with 9.8&#xa0;MB for XGBoost, and achieves an inference latency of 0.234&#xa0;m per prediction (4,274 samples/second), thereby satisfying real-time requirements. Training takes approximately 20&#xa0;min on a T4 GPU as a one-time cost, while memory usage is 3.4&#xa0;GB of VRAM for training and 0.08&#xa0;GB of RAM for inference. IndoorCART also requires 8.4M FLOPs per inference, which is approximately 2,100<inline-formula id="inf239">
<mml:math id="m262">
<mml:mrow>
<mml:mo>&#xd7;</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> higher than Random Forest (see <xref ref-type="table" rid="T22">Table 22</xref>).</p>
<table-wrap id="T22" position="float">
<label>TABLE 22</label>
<caption>
<p>Cost-accuracy trade-off analysis.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Dataset</th>
<th align="center">Best baseline MAE</th>
<th align="center">IndoorCART MAE</th>
<th align="center">Improvement per FLOP</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">UJIIndoorLoc</td>
<td align="center">4.90&#xa0;m</td>
<td align="center">4.79&#xa0;m</td>
<td align="center">0.011&#xa0;m/M FLOPs</td>
</tr>
<tr>
<td align="left">TUJI1</td>
<td align="center">0.213&#xa0;m</td>
<td align="center">0.18&#xa0;m</td>
<td align="center">0.033&#xa0;m/M FLOPs</td>
</tr>
<tr>
<td align="left">SODIndoorLoc</td>
<td align="center">2.05&#xa0;m</td>
<td align="center">1.33&#xa0;m</td>
<td align="center">0.072&#xa0;m/M FLOPs</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>For UJIIndoorLoc, the gain is marginal and may not justify the additional computational cost. For TUJI1, the substantial gain of 15.49% supports the added cost, while for SODIndoorLoc, the larger gain of 35.12% provides stronger justification for the additional computational overhead.</p>
<p>For deployment optimization, we explore two strategies. First, 30% pruning reduces computational cost by 28% with only a 1.0% accuracy loss. Second, INT8 quantization reduces model size by 75% and speeds inference by 3.2<inline-formula id="inf240">
<mml:math id="m263">
<mml:mrow>
<mml:mo>&#xd7;</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>, with a 1.7% accuracy loss.</p>
<p>We identify three deployment scenarios with specific recommendations given in <xref ref-type="table" rid="T23">Table 23</xref>:</p>
<table-wrap id="T23" position="float">
<label>TABLE 23</label>
<caption>
<p>Deployment scenarios and recommendations.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Scenario</th>
<th align="left">Requirements</th>
<th align="left">Recommendation</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Edge device</td>
<td align="left">Low latency, limited memory</td>
<td align="left">Quantized &#x2b; pruned IndoorCART (4.87&#xa0;m MAE, 3.2x speedup, 8.2&#xa0;MB)</td>
</tr>
<tr>
<td align="left">Cloud server</td>
<td align="left">High accuracy, moderate latency</td>
<td align="left">Full IndoorCART (4.79&#xa0;m MAE, 32.8 MB, 0.234&#xa0;m)</td>
</tr>
<tr>
<td align="left">Mobile device</td>
<td align="left">Very low memory</td>
<td align="left">Hybrid KNNR &#x2b; IndoorCART (4.72&#xa0;m MAE, minimal overhead)</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Based on this analysis, we provide the following deployment guidelines. For sparse or complex environments, we recommend the full IndoorCART model, whereas simpler methods may be sufficient for dense or less complex environments. In resource-constrained settings, quantized or pruned variants are more appropriate, while the full IndoorCART model remains suitable for cloud deployment. All variants meet the 10&#xa0;m real-time threshold. Summary of Computational Metrics (see in <xref ref-type="table" rid="T24">Table 24</xref>):</p>
<table-wrap id="T24" position="float">
<label>TABLE 24</label>
<caption>
<p>Computational cost summary.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Metric</th>
<th align="center">IndoorCART (base)</th>
<th align="center">IndoorCART (optimized)</th>
<th align="center">Best baseline</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Parameters (M)</td>
<td align="center">8.2</td>
<td align="center">5.7</td>
<td align="center">2.4 (XGBoost)</td>
</tr>
<tr>
<td align="left">Model size (MB)</td>
<td align="center">32.8</td>
<td align="center">22.9</td>
<td align="center">9.8 (XGBoost)</td>
</tr>
<tr>
<td align="left">Training time (s)</td>
<td align="center">1,243.6</td>
<td align="center">-</td>
<td align="center">18.4 (XGBoost)</td>
</tr>
<tr>
<td align="left">Inference (ms)</td>
<td align="center">0.234</td>
<td align="center">0.073</td>
<td align="center">0.028 (XGBoost)</td>
</tr>
<tr>
<td align="left">Memory (GB)</td>
<td align="center">3.4/0.08</td>
<td align="center">2.4/0.05</td>
<td align="center">0.5/10.2</td>
</tr>
<tr>
<td align="left">FLOPs (M)</td>
<td align="center">8.4</td>
<td align="center">6.0</td>
<td align="center">0.024 (XGBoost)</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>IndoorCART requires more FLOPs and parameters than simpler methods (e.g., XGBoost, with 2.4 million parameters and 0.024 million FLOPs). However, this additional computational cost is accompanied by substantial accuracy improvements on SODIndoorLoc (35.12%) and TUJI1 (15.49%). For UJIIndoorLoc, where the accuracy gain is marginal, simpler methods may be preferable unless the deployment prioritizes consistent performance across multiple environments.</p>
<p>Overall, the computational cost analysis demonstrates that IndoorCART meets real-time requirements with an inference latency of 0.234&#xa0;m, while its training time of approximately 20&#xa0;min represents a one-time cost that is acceptable for deployment. The additional computational cost is justified for complex environments such as TUJI1 and SODIndoorLoc. For resource-constrained scenarios, optimization options are available, and the final model choice should be guided by the specific deployment scenario.</p>
</sec>
</sec>
<sec id="s4-8">
<label>4.8</label>
<title>Inference latency comparison</title>
<p>Random Forest is the fastest model, requiring only 0.035&#xa0;m per sample (28,571 samples/second), but its MAE is 9.8% higher than that of IndoorCART. IndoorCART requires 0.234&#xa0;m per sample (4,274 samples/second), making it 6.7-fold slower than Random Forest but 1.9-fold faster than KNNR. KNNR is the slowest method, requiring 0.450&#xa0;m per sample (2,222 samples/second), and its MAE is 2.3% higher than that of IndoorCART. Importantly, all models satisfy real-time localization requirements, as their inference times remain well below the 10&#xa0;m threshold.</p>
<p>Random Forest has the largest memory footprint, requiring 7.8&#xa0;GB of RAM, followed by KNNR with 2.5&#xa0;GB of RAM. In contrast, IndoorCART requires only 0.08&#xa0;GB of RAM, giving it the smallest memory footprint among the compared models. Notably, despite being a transformer-based model, IndoorCART has the lowest inference-time RAM usage because it does not store the entire training dataset, unlike KNNR and Random Forest. The comparative analysis of inference latency is in <xref ref-type="table" rid="T25">Table 25</xref>.</p>
<table-wrap id="T25" position="float">
<label>TABLE 25</label>
<caption>
<p>Inference latency comparison (per sample).</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Model</th>
<th align="center">Latency (ms)</th>
<th align="center">Throughput (samples/s)</th>
<th align="center">Relative speed</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">KNNR</td>
<td align="center">0.450</td>
<td align="center">2,222</td>
<td align="center">56x</td>
</tr>
<tr>
<td align="left">Random forest</td>
<td align="center">0.035</td>
<td align="center">28,571</td>
<td align="center">4.4x</td>
</tr>
<tr>
<td align="left">
<bold>IndoorCART (base)</bold>
</td>
<td align="center">
<bold>0.234</bold>
</td>
<td align="center">
<bold>4,274</bold>
</td>
<td align="center">
<bold>29.3x</bold>
</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>Bold values identify the proposed IndoorCART (Base) model and its measured efficiency results; they do not indicate the best value in every column. Lower latency and higher throughput indicate better inference efficiency.</p>
</fn>
</table-wrap-foot>
</table-wrap>
</sec>
<sec id="s4-9">
<label>4.9</label>
<title>Optimization for deployment</title>
<p>With pruning and quantization, IndoorCART achieves: The optimized version achieves a 4.5-fold speedup, reducing inference time from 0.234&#xa0;m to 0.052&#xa0;m. It also reduces the model size by 5.8-fold, from 32.8&#xa0;MB to 5.7 MB, while incurring only a 2.7% accuracy degradation, with MAE increasing from 4.79 m to 4.92&#xa0;m.</p>
<p>For cloud or server deployments, the full IndoorCART model is recommended to maximize accuracy. For edge devices, the quantized IndoorCART model provides a compact alternative, requiring 8.2&#xa0;MB of memory and 0.073&#xa0;m per inference. For mobile deployments, the pruned and quantized version is preferable, requiring only 5.7 MB and 0.052&#xa0;m per inference. In simple environments where sufficient accuracy can be achieved with lower complexity, Random Forest remains a viable option, requiring only 0.035&#xa0;m per inference. Overall, IndoorCART provides the best accuracy while maintaining acceptable inference latency. Its inference time is competitive with KNNR and 6.7-fold slower than Random Forest; however, the accuracy improvements, especially on TUJI1 and SODIndoorLoc, justify the additional computational cost. For resource-constrained deployments, optimization options are available.</p>
<p>Overall, the results establish IndoorCART as the best-performing model in the comparative study, although the magnitude of improvement is dataset dependent. Its low localization error, high <inline-formula id="inf241">
<mml:math id="m264">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> values, and reduced performance variation collectively show that the proposed transformer-based regression framework provides a strong balance of accuracy, generalization, and robustness for Wi-Fi fingerprint-based indoor localization. At the same time, the UJIIndoorLoc results show that transformer-based modeling does not automatically yield a large advantage when simpler baselines already exploit a dense and well-structured radio map. The added ablation analysis further indicates that the reported gains are not solely attributable to preprocessing or to a generic transformer backbone: removing the transformer encoder, RSSI-aware missing-signal encoding, or hybrid CLS &#x2b; GAP pooling increases MAE in each case, with the full model achieving the best average performance.</p>
</sec>
</sec>
<sec sec-type="discussion" id="s5">
<label>5</label>
<title>Discussion</title>
<p>The results demonstrate the potential of transformer-based regression for Wi-Fi indoor localization, although its advantages are not uniform across benchmarks. Under the common experimental protocol, IndoorCART achieves the lowest error and consistently high <inline-formula id="inf242">
<mml:math id="m265">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> values among the reproduced models on UJIIndoorLoc, TUJI1, and SODIndoorLoc. These findings suggest that self-attention can effectively model global cross-feature relationships in noisy, sparse, and nonlinear RSSI fingerprints. However, the UJIIndoorLoc result qualifies this conclusion: IndoorCART improves upon KNNR by only 2.24%, and several baselines achieve the same rounded <inline-formula id="inf243">
<mml:math id="m266">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> value. Thus, the transformer may offer limited practical benefit when a dense fingerprint map allows local-similarity and ensemble methods to perform near saturation. The TUJI1 result requires a different caution. Its very low MAE should be interpreted in the context of the high-density fixed split and should not be generalized to leave-device-out or leave-reference-location-out settings without additional grouped evaluation.</p>
<p>The computational-cost analysis shows that modest accuracy gains must be weighed against the greater training and inference complexity of a transformer. The ablation study supports the combined architecture: variants with simpler pooling perform worse than the full IndoorCART model, and removing RSSI-aware missing-signal encoding also degrades accuracy. However, the improvements are distributed across multiple components rather than being attributable to a single dominant module.</p>
<p>The transformer-literature comparison highlights an important limitation of the present evaluation. Although IndoorCART performs consistently across three datasets under a common experimental protocol, several published transformer systems report substantially lower raw MAE values under their respective protocols, including sub-meter results approximately one order of magnitude below IndoorCART&#x2019;s UJIIndoorLoc MAE. These external results do not support an unconditional superiority or state-of-the-art claim across all transformer-based indoor-localization methods. Instead, the evidence indicates that IndoorCART is a reproducible direct coordinate-regression transformer with strong cross-dataset performance under a controlled protocol. A rigorous head-to-head assessment will require controlled reimplementations of L-SwiGLU, HyTra/HyTra-HF, VITAL, and related transformer baselines using identical preprocessing and data splits.</p>
<p>Overall, IndoorCART provides a competitive balance between accuracy and robustness across heterogeneous environments, but its suitability for deployment depends on whether the observed accuracy gains justify the additional computational cost for the target hardware and application. Future work should evaluate device and temporal shifts, leave-device-out and leave-location-out splits, multimodal conditions, latency, memory footprint, energy consumption, and fully matched transformer baselines.</p>
<sec id="s5-1">
<label>5.1</label>
<title>Handling access points unseen during training</title>
<p>IndoorCART assumes a fixed, predefined access-point (AP) vocabulary established during training. This assumption is consistent with conventional Wi-Fi fingerprinting, in which training and inference fingerprints are aligned to the same radio-map feature space. The evaluated datasets&#x2014;UJIIndoorLoc, TUJI1, and SODIndoorLoc&#x2014;use fixed AP vocabularies.</p>
<p>When a mobile device detects an access point outside the training vocabulary, three handling strategies are possible:<list list-type="order">
<list-item>
<p>Exclude Unknown-AP Measurements: The simplest approach is to discard measurements from access points outside the training vocabulary. This preserves compatibility with the trained model but loses potentially useful signal information. Its effect depends on the number and informativeness of the excluded access points.</p>
</list-item>
<list-item>
<p>Retrain with an Expanded AP Vocabulary: When newly deployed access points are expected to remain available, the model can be retrained using an expanded vocabulary and updated fingerprints. This approach can represent each new access point explicitly but requires additional data collection and training.</p>
</list-item>
<list-item>
<p>Shared Embedding for Out-of-Vocabulary APs: A more flexible approach is to assign a shared, learnable out-of-vocabulary (OOV) identity embedding <inline-formula id="inf244">
<mml:math id="m267">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>oov</mml:mtext>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> to any unseen access point while retaining its RSSI measurement during tokenization. However, because all unseen access points share the same identity representation, this strategy cannot distinguish among them and requires empirical validation.</p>
</list-item>
</list>
</p>
<sec id="s5-1-1">
<label>5.1.1</label>
<title>Recommended strategy</title>
<p>A pragmatic deployment strategy is to exclude occasional measurements from unknown access points and retrain the model when persistent or substantial changes occur in the access-point environment. This approach is consistent with conventional Wi-Fi fingerprinting maintenance, in which radio maps may require periodic updates to accommodate environmental changes and access-point redeployment.</p>
<p>An additional deployment limitation arises when an access point is absent from the training vocabulary. A missing measurement from a known access point still has a predefined vocabulary index and can be represented by setting the mask value <inline-formula id="inf245">
<mml:math id="m268">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>. By contrast, a newly detected access point has neither a corresponding input dimension nor a learned identity embedding <inline-formula id="inf246">
<mml:math id="m269">
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>p</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> under the current closed-vocabulary formulation. Its measurement must therefore be discarded before tokenization unless the access-point vocabulary is expanded and the model is updated. Although this treatment is consistent with the closed-vocabulary assumption applied to the reproduced baselines, it prevents IndoorCART from using information from newly discovered access points.</p>
<p>Future work could extend the shared out-of-vocabulary embedding strategy through meta-learning or continual learning, allowing the access-point vocabulary and its associated representations to adapt as the wireless infrastructure changes. These approaches should be evaluated using controlled unseen-access-point, leave-device-out, and leave-location-out protocols.</p>
<p>Future work could incorporate path-loss priors into the token-projection stage in two ways: by replacing the linear transformation with a learnable mapping conditioned on estimated propagation parameters, or by introducing distance-aware embeddings that represent expected signal attenuation. Such physics-informed tokenization may improve localization accuracy, particularly in environments with sparse reference-point coverage.</p>
<p>Although the current implementation uses a shared absent-signal embedding, future work could investigate distance-aware embeddings that incorporate spatial priors. For example, the absent-signal representation could be parameterized as a learnable function of the access-point location and estimated path-loss parameters. This approach could help the model distinguish non-detections attributable to distance from unexpected absences of access points predicted to be within range. Such physics-informed modeling of missing signals may improve localization performance, particularly in environments with heterogeneous building layouts.</p>
</sec>
</sec>
<sec id="s5-2">
<label>5.2</label>
<title>Why IndoorCART excels?</title>
<p>Across the evaluated datasets, IndoorCART achieves improvements of 6.5%&#x2013;20.4% over HyTra, the strongest transformer baseline. These gains are primarily attributable to the Adaptive Attention mechanism, which is particularly effective for incomplete RSSI observations&#x2014;a common challenge in real-world deployments. In addition, the hybrid CLS &#x2b; pooling aggregation strategy produces more robust feature representations than existing transformer-based aggregation approaches.</p>
<p>When IndoorCART Excels:<list list-type="order">
<list-item>
<p>Limited Per-Location Sampling: On TUJI1, which has 3.1 samples per location, IndoorCART achieves a 15.49% improvement over the strongest reproduced baseline. This result suggests that modeling global dependencies among access points may be beneficial when local methods have relatively few nearby reference samples.</p>
</list-item>
<list-item>
<p>Structurally Complex Environments: On SODIndoorLoc, which spans three buildings, six floors, and approximately 8,000 <inline-formula id="inf247">
<mml:math id="m270">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mtext>m</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>, IndoorCART achieves a 35.12% improvement over the strongest reproduced baseline. The multi-building layout introduces substantial nonlinearities into the RSSI&#x2013;coordinate mapping, and self-attention may help model cross-access-point dependencies across buildings and floors.</p>
</list-item>
<list-item>
<p>High Missing-Signal Rates: Adaptive Attention may be particularly beneficial when many access points are unobserved. The ablation results in <xref ref-type="table" rid="T16">Table 16</xref> show that removing the adaptive components increases MAE by up to 25.7% on SODIndoorLoc, suggesting that explicit missing-signal modeling contributes to performance under sparse observation conditions.</p>
</list-item>
</list>
</p>
</sec>
<sec id="s5-3">
<label>5.3</label>
<title>Analysis of marginal improvement on UJIIndoorLoc</title>
<p>Dataset Characterization: <xref ref-type="table" rid="T26">Table 26</xref> provides a detailed characterization of the three datasets. UJIIndoorLoc has the largest spatial coverage (108,703 <inline-formula id="inf248">
<mml:math id="m271">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mtext>m</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>), highest sparsity (62.3%), lowest SNR (8.2&#xa0;dB), and highest local spatial autocorrelation (Moran&#x2019;s <inline-formula id="inf249">
<mml:math id="m272">
<mml:mrow>
<mml:mi>I</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0.82</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>). In contrast, TUJI1 has the smallest spatial coverage (approximately 5,000 <inline-formula id="inf250">
<mml:math id="m273">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mtext>m</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>), highest signal quality (SNR &#x3d; 12.4&#xa0;dB), and densest sampling, while SODIndoorLoc has medium coverage (8,000 <inline-formula id="inf251">
<mml:math id="m274">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mtext>m</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>), moderate SNR (10.1&#xa0;dB), and a complex multi-building structure.</p>
<table-wrap id="T26" position="float">
<label>TABLE 26</label>
<caption>
<p>Comparative dataset characteristics.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Characteristic</th>
<th align="center">UJIIndoorLoc</th>
<th align="center">TUJI1</th>
<th align="center">SODIndoorLoc</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Number of training samples</td>
<td align="center">19,937</td>
<td align="center">6,752</td>
<td align="center">21,205</td>
</tr>
<tr>
<td align="left">Number of test samples</td>
<td align="center">1,111</td>
<td align="center">2,147</td>
<td align="center">2,720</td>
</tr>
<tr>
<td align="left">Number of access points</td>
<td align="center">520</td>
<td align="center">310</td>
<td align="center">364</td>
</tr>
<tr>
<td align="left">Number of buildings</td>
<td align="center">3</td>
<td align="center">1</td>
<td align="center">3</td>
</tr>
<tr>
<td align="left">Number of floors</td>
<td align="center">4</td>
<td align="center">4</td>
<td align="center">6</td>
</tr>
<tr>
<td align="left">Spatial coverage</td>
<td align="center">108,703&#xa0;<inline-formula id="inf252">
<mml:math id="m275">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mtext>m</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">
<inline-formula id="inf253">
<mml:math id="m276">
<mml:mrow>
<mml:mo>&#x223c;</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>5,000&#xa0;<inline-formula id="inf254">
<mml:math id="m277">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mtext>m</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
<td align="center">8,000&#xa0;<inline-formula id="inf255">
<mml:math id="m278">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mtext>m</mml:mtext>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>
</td>
</tr>
<tr>
<td align="left">Avg. Samples per location</td>
<td align="center">15.3</td>
<td align="center">3.1</td>
<td align="center">11.8</td>
</tr>
<tr>
<td align="left">RSSI sparsity (%)</td>
<td align="center">62.3%</td>
<td align="center">54.1%</td>
<td align="center">58.7%</td>
</tr>
<tr>
<td align="left">Signal-to-noise ratio</td>
<td align="center">Low</td>
<td align="center">High</td>
<td align="center">Medium</td>
</tr>
<tr>
<td align="left">Building complexity</td>
<td align="center">High (campus)</td>
<td align="center">Medium (research)</td>
<td align="center">High (multi-building)</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Factors Explaining Marginal Improvement: We identify and analyze four factors that explain the marginal improvement on UJIIndoorLoc. First, <inline-formula id="inf256">
<mml:math id="m279">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> saturation occurs because all top-performing methods already achieve <inline-formula id="inf257">
<mml:math id="m280">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0.99</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>, indicating that the dataset is approaching its information-theoretic performance limit. Second, local structure dominance is evident from Moran&#x2019;s I &#x3d; 0.82, which indicates extremely strong local spatial autocorrelation and makes local methods such as KNNR nearly optimal. Third, data scale and density favor local methods because UJIIndoorLoc has dense training coverage (15.3 samples per location), enabling these methods to capture the data distribution effectively. Finally, signal quality constrains the maximum achievable accuracy because the dataset has a low SNR (8.2&#xa0;dB) and a high noise floor (&#x2212;104 dBm).</p>
<p>Theoretical Upper Bound Analysis: We estimate the theoretical lower bound for UJIIndoorLoc to be 4.45 m, only 0.34&#xa0;m lower than IndoorCART&#x2019;s MAE of 4.79&#xa0;m. This indicates that IndoorCART achieves 83.3% of the maximum theoretically possible improvement (refer to <xref ref-type="table" rid="T27">Table 27</xref>).</p>
<table-wrap id="T27" position="float">
<label>TABLE 27</label>
<caption>
<p>Theoretical analysis of the upper-bound performance.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Method</th>
<th align="center">MAE</th>
<th align="center">Improvement</th>
<th align="center">Effect size</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">KNNR</td>
<td align="center">4.90&#xa0;m</td>
<td align="center">-</td>
<td align="center">-</td>
</tr>
<tr>
<td align="left">IndoorCART</td>
<td align="center">4.79&#xa0;m</td>
<td align="center">2.24%</td>
<td align="center">d &#x3d; 0.15</td>
</tr>
<tr>
<td align="left">Theoretical lower bound</td>
<td align="center">4.45&#xa0;m</td>
<td align="center">-</td>
<td align="center">-</td>
</tr>
<tr>
<td align="left">IndoorCART achieves</td>
<td colspan="3" align="center">83.3% of theoretical maximum</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Cross-Dataset Performance Reveals True Value: Across all three datasets, IndoorCART achieves an average improvement of 20.2%, demonstrating the transformer&#x2019;s strong generalization capability across diverse environments.</p>
<p>When IndoorCART Fails or Provides Marginal Benefit:<list list-type="order">
<list-item>
<p>Dense, Well-Structured Maps: On UJIIndoorLoc, which has 15.3 samples per location and a Moran&#x2019;s <inline-formula id="inf258">
<mml:math id="m281">
<mml:mrow>
<mml:mi>I</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> of 0.82, IndoorCART improves upon KNNR by only 2.24%. The strong local spatial autocorrelation may allow similarity-based methods to capture much of the available spatial structure, leaving limited scope for improvement through global modeling.</p>
</list-item>
<list-item>
<p>Low-SNR Environments: When the SNR is below approximately 10&#xa0;dB, signal noise may constrain the attainable accuracy regardless of model complexity. For UJIIndoorLoc, which has an SNR of 8.2 dB, the estimated error floor is 4.45 m, while IndoorCART achieves 4.79&#xa0;m. This proximity suggests that the dataset&#x2019;s inherent noise may limit further performance improvements.</p>
</list-item>
<list-item>
<p>Resource-Constrained Deployments: In resource-constrained settings, such as battery-powered IoT devices, the transformer&#x2019;s computational overhead may not be justified, particularly in simple environments where the accuracy gains are marginal. The deployment guidelines in <xref ref-type="table" rid="T23">Table 23</xref> therefore recommend considering quantized or pruned variants for these scenarios.</p>
</list-item>
</list>
</p>
<p>We explore a hybrid approach combining KNNR (local) with IndoorCART (global), achieving 4.72&#xa0;m on UJIIndoorLoc (3.7% improvement over KNNR). We provide practical guidelines on when transformers are most beneficial. IndoorCART provides the greatest benefit under sparse-data and complex spatial conditions. On TUJI1, which has only 3.1 samples per location, IndoorCART achieves a 15.49% improvement, demonstrating its effectiveness in sparse-data settings. On SODIndoorLoc, which spans three buildings and six floors, it achieves a 35.12% improvement, highlighting its ability to model complex spatial structure. In contrast, the benefit is more limited on the dense and locally structured UJIIndoorLoc dataset, where 15.3 samples per location already enable strong local baselines; in this setting, IndoorCART achieves a 2.24% improvement (refer to <xref ref-type="table" rid="T28">Table 28</xref>).</p>
<table-wrap id="T28" position="float">
<label>TABLE 28</label>
<caption>
<p>When are transformers most beneficial? (Guidelines).</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Condition</th>
<th align="left">Transformer benefit</th>
<th align="left">Recommendation</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Sparse data (<inline-formula id="inf259">
<mml:math id="m282">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> 5 samples/location)</td>
<td align="left">High (15%&#x2013;35% improvement)</td>
<td align="left">Use transformer</td>
</tr>
<tr>
<td align="left">Dense data (<inline-formula id="inf260">
<mml:math id="m283">
<mml:mrow>
<mml:mo>&#x3e;</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> 10 samples/location)</td>
<td align="left">Low (2%&#x2013;5% improvement)</td>
<td align="left">Use simple method</td>
</tr>
<tr>
<td align="left">Complex layout (multi-building)</td>
<td align="left">High (up to 35%)</td>
<td align="left">Use transformer</td>
</tr>
<tr>
<td align="left">Simple layout (single building)</td>
<td align="left">Moderate (5%&#x2013;15%)</td>
<td align="left">Consider both</td>
</tr>
<tr>
<td align="left">Low SNR (<inline-formula id="inf261">
<mml:math id="m284">
<mml:mrow>
<mml:mo>&#x3c;</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> 10&#xa0;dB)</td>
<td align="left">Low (2%&#x2013;5%)</td>
<td align="left">Simple methods sufficient</td>
</tr>
<tr>
<td align="left">High SNR (<inline-formula id="inf262">
<mml:math id="m285">
<mml:mrow>
<mml:mo>&#x3e;</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> 12&#xa0;dB)</td>
<td align="left">High (15%&#x2013;35%)</td>
<td align="left">Use transformer</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s5-4">
<label>5.4</label>
<title>Key Findings summary</title>
<p>The marginal improvement on UJIIndoorLoc likely reflects dataset-specific characteristics rather than an inherent limitation of the transformer approach. In particular, its strong local spatial structure (Moran&#x2019;s <inline-formula id="inf263">
<mml:math id="m286">
<mml:mrow>
<mml:mi>I</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0.82</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>) and high sampling density (15.3 samples per location) allow local methods to perform competitively. The dataset&#x2019;s low SNR (8.2&#xa0;dB) may further limit the attainable accuracy. By contrast, IndoorCART achieves larger improvements on TUJI1 (15.49%) and the structurally complex SODIndoorLoc dataset (35.12%), suggesting that global attention may be more beneficial under heterogeneous or complex fingerprinting conditions. Overall, the results indicate that hybrid local&#x2013;global strategies warrant further investigation as a means of balancing performance across diverse environments.</p>
<p>
<xref ref-type="sec" rid="s5-3">Section 5.3</xref> and <xref ref-type="table" rid="T28">Table 28</xref> provide practical guidance on the dataset conditions under which IndoorCART&#x2019;s global attention and missing-signal modeling offer the greatest benefits. In this study, the largest gains are associated with limited per-location sampling, relatively high signal-to-noise ratios, and complex multi-building or multi-floor layouts, as represented by TUJI1 and SODIndoorLoc. By contrast, simpler local and ensemble methods remain highly competitive on dense, single-building datasets with strong spatial autocorrelation, such as UJIIndoorLoc, where the transformer&#x2019;s advantage narrows to a few percent.</p>
</sec>
</sec>
<sec sec-type="conclusion" id="s6">
<label>6</label>
<title>Conclusion</title>
<p>IndoorCART demonstrates the potential of transformer-based coordinate regression for Wi-Fi indoor localization, achieving the lowest error and consistently high <inline-formula id="inf264">
<mml:math id="m287">
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> values across UJIIndoorLoc, TUJI1, and SODIndoorLoc among the baselines reproduced in this study. However, the magnitude of the improvement varies substantially across datasets. The gain over KNNR on UJIIndoorLoc is marginal and should be interpreted as competitive parity with a slight MAE improvement rather than as decisive evidence that transformers are consistently superior to simpler baselines. Similarly, the TUJI1 MAE of 0.18&#xa0;m should be interpreted in the context of the fixed dense split used here and not as evidence of strict device-disjoint or location-disjoint generalization.</p>
<p>The literature-level comparison shows that methods such as L-SwiGLU, HyTra/HyTra-HF, and VITAL report substantially lower raw MAE values; however, these results cannot be treated as controlled head-to-head evidence without identical implementations and evaluation protocols. The extended ablation study further indicates that adaptive masking improves both mean accuracy and tail-error behavior, which may help reduce severe localization failures. Nevertheless, practical deployment requires measured assessments of model size, latency, memory use, and energy consumption, and the present results do not establish complete deployment readiness. Future work should therefore investigate domain adaptation to device and environmental shifts, lightweight transformer designs for real-time inference, multimodal fusion with inertial or magnetic signals, controlled reproduction of recent transformer baselines, deeper dataset-level error analysis, measured computational profiling, leave-device-out and leave-location-out validation, and evaluation across a broader range of real-world indoor environments.</p>
</sec>
</body>
<back>
<sec sec-type="data-availability" id="s7">
<title>Data availability statement</title>
<p>The dataset used in this study is available from the corresponding author upon reasonable request.</p>
</sec>
<sec sec-type="author-contributions" id="s8">
<title>Author contributions</title>
<p>BS: Conceptualization, Data curation, Formal Analysis, Investigation, Methodology, Validation, Visualization, Writing &#x2013; original draft, Writing &#x2013; review and editing. RC: Conceptualization, Formal Analysis, Investigation, Methodology, Project administration, Supervision, Writing &#x2013; review and editing. MG: Investigation, Methodology, Project administration, Supervision, Writing &#x2013; review and editing. MS: Formal Analysis, Investigation, Methodology, Project administration, Visualization, Writing &#x2013; review and editing. EL-C: Funding acquisition, Investigation, Writing &#x2013; review and editing.</p>
</sec>
<ack>
<title>Acknowledgments</title>
<p>The author would like to thank and acknowledge Rajdeep Chatterjee, Mahendra Kumar Gourisaria, Manoj Sahani and Ernesto Le&#x2019;on-Castro for their constant and unwavering support, without which this work would not have been successful.</p>
</ack>
<sec sec-type="COI-statement" id="s10">
<title>Conflict of interest</title>
<p>The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="ai-statement" id="s11">
<title>Generative AI statement</title>
<p>The author(s) declared that generative AI was not used in the creation of this manuscript.</p>
<p>Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.</p>
</sec>
<sec sec-type="disclaimer" id="s12">
<title>Publisher&#x2019;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<ref-list>
<title>References</title>
<ref id="B1">
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name>
<surname>Bazzi</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Chafii</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2025</year>). &#x201c;<article-title>Towards isac ris-enabled passive radar target localization</article-title>,&#x201d; in <source>
<italic>ICC 2025 &#x2013; IEEE International Conference on Communications</italic> (IEEE)</source>, <fpage>2290</fpage>&#x2013;<lpage>2295</lpage>. <pub-id pub-id-type="doi">10.1109/ICC52391.2025.11162110</pub-id>
</mixed-citation>
</ref>
<ref id="B2">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Bi</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Yu</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Cao</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Shi</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Huang</surname>
<given-names>L.</given-names>
</name>
</person-group> (<year>2022</year>). <article-title>Supplementary open dataset for wifi indoor localization based on received signal strength</article-title>. <source>Satell. Navig.</source> <volume>3</volume>, <fpage>25</fpage>. <pub-id pub-id-type="doi">10.1186/s43020-022-00086-y</pub-id>
</mixed-citation>
</ref>
<ref id="B3">
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name>
<surname>Gufran</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Tiku</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Pasricha</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2023</year>). &#x201c;<article-title>Vital: vision transformer neural networks for accurate smartphone heterogeneity resilient indoor localization</article-title>,&#x201d; in <source>2023 60th ACM/IEEE Design Automation Conference (DAC)</source> (<publisher-name>IEEE</publisher-name>), <fpage>1</fpage>&#x2013;<lpage>6</lpage>.</mixed-citation>
</ref>
<ref id="B4">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Klus</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Klus</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Lohan</surname>
<given-names>E. S.</given-names>
</name>
<name>
<surname>Nurmi</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Granell</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Valkama</surname>
<given-names>M.</given-names>
</name>
<etal/>
</person-group> (<year>2024</year>). <article-title>Tuji1 dataset: Multi-device dataset for indoor localization with high measurement density</article-title>. <source>Data Brief</source> <volume>54</volume>, <fpage>110356</fpage>. <pub-id pub-id-type="doi">10.1016/j.dib.2024.110356</pub-id>
<pub-id pub-id-type="pmid">38600990</pub-id>
</mixed-citation>
</ref>
<ref id="B5">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Kunhoth</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Karkar</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Al-Maadeed</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Al-Ali</surname>
<given-names>A.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>Indoor positioning and wayfinding systems: a survey</article-title>. <source>Human-centric Comput. Inf. Sci.</source> <volume>10</volume>, <fpage>18</fpage>. <pub-id pub-id-type="doi">10.1186/s13673-020-00222-0</pub-id>
</mixed-citation>
</ref>
<ref id="B6">
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name>
<surname>Lezama</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Gonz&#xe1;lez</surname>
<given-names>G. G.</given-names>
</name>
<name>
<surname>Larroca</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Capdehourat</surname>
<given-names>G.</given-names>
</name>
</person-group> (<year>2021</year>). &#x201c;<article-title>Indoor localization using graph neural networks</article-title>,&#x201d; in <source>2021 IEEE URUCON</source> (<publisher-name>IEEE</publisher-name>), <fpage>51</fpage>&#x2013;<lpage>54</lpage>.</mixed-citation>
</ref>
<ref id="B7">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Mallik</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Panja</surname>
<given-names>A. K.</given-names>
</name>
<name>
<surname>Chowdhury</surname>
<given-names>C.</given-names>
</name>
</person-group> (<year>2023</year>). <article-title>Paving the way with machine learning for seamless indoor&#x2013;outdoor positioning: a survey</article-title>. <source>Inf. Fusion</source> <volume>94</volume>, <fpage>126</fpage>&#x2013;<lpage>151</lpage>. <pub-id pub-id-type="doi">10.1016/j.inffus.2023.01.023</pub-id>
</mixed-citation>
</ref>
<ref id="B8">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Masrur</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Cheng</surname>
<given-names>J.-F.</given-names>
</name>
<name>
<surname>Khamesi</surname>
<given-names>A. R.</given-names>
</name>
<name>
<surname>G&#xfc;ven&#xe7;</surname>
<given-names>&#x130;.</given-names>
</name>
</person-group> (<year>2025</year>). <article-title>Transforming indoor localization: advanced transformer architecture for nlos dominated wireless environments with distributed sensors</article-title>. <source>IEEE Trans. Mach. Learn. Commun. Netw.</source> <volume>4</volume>, <fpage>161</fpage>&#x2013;<lpage>177</lpage>. <pub-id pub-id-type="doi">10.1109/tmlcn.2025.3647376</pub-id>
</mixed-citation>
</ref>
<ref id="B9">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Nasir</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Esguerra</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Faye</surname>
<given-names>I.</given-names>
</name>
<name>
<surname>Tang</surname>
<given-names>T. B.</given-names>
</name>
<name>
<surname>Yahya</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Tumian</surname>
<given-names>A.</given-names>
</name>
<etal/>
</person-group> (<year>2024</year>). <article-title>Hytra: hyperclass transformer for wifi fingerprinting-based indoor localization</article-title>. <source>Trans. Energy Syst. Eng. Appl.</source> <volume>5</volume>, <fpage>1</fpage>&#x2013;<lpage>24</lpage>. <pub-id pub-id-type="doi">10.32397/tesea.vol5.n1.542</pub-id>
</mixed-citation>
</ref>
<ref id="B10">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Nessa</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Adhikari</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Hussain</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Fernando</surname>
<given-names>X. N.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>A survey of machine learning for indoor positioning</article-title>. <source>IEEE Access</source> <volume>8</volume>, <fpage>214945</fpage>&#x2013;<lpage>214965</lpage>. <pub-id pub-id-type="doi">10.1109/access.2020.3039271</pub-id>
</mixed-citation>
</ref>
<ref id="B11">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Nguyen</surname>
<given-names>S. M.</given-names>
</name>
<name>
<surname>Le</surname>
<given-names>D. V.</given-names>
</name>
<name>
<surname>Havinga</surname>
<given-names>P. J.</given-names>
</name>
</person-group> (<year>2024</year>). <article-title>Seeing the world from its words: All-embracing transformers for fingerprint-based indoor localization</article-title>. <source>Pervasive Mob. Comput.</source> <volume>100</volume>, <fpage>101912</fpage>. <pub-id pub-id-type="doi">10.1016/j.pmcj.2024.101912</pub-id>
</mixed-citation>
</ref>
<ref id="B12">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Njima</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Bazzi</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Chafii</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2022</year>). <article-title>Dnn-based indoor localization under limited dataset using gans and semi-supervised learning</article-title>. <source>IEEE Access</source> <volume>10</volume>, <fpage>69896</fpage>&#x2013;<lpage>69909</lpage>. <pub-id pub-id-type="doi">10.1109/access.2022.3187837</pub-id>
</mixed-citation>
</ref>
<ref id="B13">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Obeidat</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Shuaieb</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Obeidat</surname>
<given-names>O.</given-names>
</name>
<name>
<surname>Abd-Alhameed</surname>
<given-names>R.</given-names>
</name>
</person-group> (<year>2021</year>). <article-title>A review of indoor localization techniques and wireless technologies</article-title>. <source>Wirel. Personal. Commun.</source> <volume>119</volume>, <fpage>289</fpage>&#x2013;<lpage>327</lpage>. <pub-id pub-id-type="doi">10.1007/s11277-021-08209-5</pub-id>
</mixed-citation>
</ref>
<ref id="B14">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Rathnayake</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Maduranga</surname>
<given-names>M. W. P.</given-names>
</name>
<name>
<surname>Tilwari</surname>
<given-names>V.</given-names>
</name>
<name>
<surname>Dissanayake</surname>
<given-names>M. B.</given-names>
</name>
</person-group> (<year>2023</year>). <article-title>Rssi and machine learning-based indoor localization systems for smart cities</article-title>. <source>Eng</source> <volume>4</volume>, <fpage>1468</fpage>&#x2013;<lpage>1494</lpage>. <pub-id pub-id-type="doi">10.3390/eng4020085</pub-id>
</mixed-citation>
</ref>
<ref id="B15">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Sadowski</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Spachos</surname>
<given-names>P.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>Rssi-based indoor localization with the internet of things</article-title>. <source>IEEE Access</source> <volume>6</volume>, <fpage>30149</fpage>&#x2013;<lpage>30161</lpage>. <pub-id pub-id-type="doi">10.1109/access.2018.2843325</pub-id>
</mixed-citation>
</ref>
<ref id="B16">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Singh</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Choe</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Punmiya</surname>
<given-names>R.</given-names>
</name>
</person-group> (<year>2021</year>). <article-title>Machine learning based indoor localization using wi-fi rssi fingerprints: an overview</article-title>. <source>IEEE Access</source> <volume>9</volume>, <fpage>127150</fpage>&#x2013;<lpage>127174</lpage>. <pub-id pub-id-type="doi">10.1109/access.2021.3111083</pub-id>
</mixed-citation>
</ref>
<ref id="B17">
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name>
<surname>Suroso</surname>
<given-names>D. J.</given-names>
</name>
<name>
<surname>Cherntanomwong</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Sooraksa</surname>
<given-names>P.</given-names>
</name>
</person-group> (<year>2022</year>). &#x201c;<article-title>Deep generative model-based rssi synthesis for indoor localization</article-title>,&#x201d; in <source>2022 19th International Conference on Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology (ECTI-CON)</source> (<publisher-name>IEEE</publisher-name>), <fpage>1</fpage>&#x2013;<lpage>5</lpage>.</mixed-citation>
</ref>
<ref id="B18">
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name>
<surname>Tiku</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Pasricha</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2022</year>). &#x201c;<article-title>Siamese neural encoders for long-term indoor localization with mobile devices</article-title>,&#x201d; in <source>
<italic>2022 Design, Automation &#x26; Test in Europe Conference &#x26; Exhibition (DATE)</italic> IEEE</source>, <fpage>1215</fpage>&#x2013;<lpage>1220</lpage>.</mixed-citation>
</ref>
<ref id="B19">
<mixed-citation publication-type="book">
<person-group person-group-type="author">
<name>
<surname>Vishwakarma</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Joshi</surname>
<given-names>R. B.</given-names>
</name>
<name>
<surname>Mishra</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2023</year>). &#x201c;<article-title>Indoorgnn: a graph neural network based approach for indoor localization using wifi rssi</article-title>,&#x201d; in <source>International Conference on Big Data Analytics</source> (<publisher-name>Springer</publisher-name>), <fpage>150</fpage>&#x2013;<lpage>165</lpage>.</mixed-citation>
</ref>
<ref id="B20">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Wang</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Tiku</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Pasricha</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2021</year>). <article-title>Chisel: Compression-aware high-accuracy embedded indoor localization with deep learning</article-title>. <source>IEEE Embed. Syst. Lett.</source> <volume>14</volume>, <fpage>23</fpage>&#x2013;<lpage>26</lpage>. <pub-id pub-id-type="doi">10.1109/les.2021.3094965</pub-id>
</mixed-citation>
</ref>
<ref id="B21">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Wu</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Lin</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Chen</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Lan</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Yang</surname>
<given-names>L.</given-names>
</name>
</person-group> (<year>2025</year>). <article-title>A transformer-based double-order rfid indoor positioning system</article-title>. <source>Expert Syst. Appl.</source> <volume>271</volume>, <fpage>126530</fpage>. <pub-id pub-id-type="doi">10.1016/j.eswa.2025.126530</pub-id>
</mixed-citation>
</ref>
<ref id="B22">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zhou</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Yang</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Deng</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>W.</given-names>
</name>
</person-group> (<year>2024</year>). <article-title>Vtil: a multi-layer indoor location algorithm for rssi images based on vision transformer</article-title>. <source>Eng. Res. Express</source> <volume>6</volume>, <fpage>015069</fpage>. <pub-id pub-id-type="doi">10.1088/2631-8695/ad213b</pub-id>
</mixed-citation>
</ref>
</ref-list>
<fn-group>
<fn fn-type="custom" custom-type="edited-by">
<p>
<bold>Edited by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1225370/overview">Maryam Ravan</ext-link>, New York Institute of Technology, United States</p>
</fn>
<fn fn-type="custom" custom-type="reviewed-by">
<p>
<bold>Reviewed by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/2808152/overview">Ahmad Bazzi</ext-link>, New York University Abu Dhabi, United Arab Emirates</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/3564918/overview">Haoxiao Yang</ext-link>, Purdue University, United States</p>
</fn>
</fn-group>
<fn-group>
<fn id="fn2">
<label>1</label>
<p>UJIIndoorLoc: <ext-link ext-link-type="uri" xlink:href="https://archive.ics.uci.edu/ml/datasets/ujiindoorloc">https://archive.ics.uci.edu/ml/datasets/ujiindoorloc</ext-link>
</p>
</fn>
<fn id="fn3">
<label>2</label>
<p>TUJI1: <ext-link ext-link-type="uri" xlink:href="https://zenodo.org/record/7641701">https://zenodo.org/record/7641701</ext-link>
</p>
</fn>
<fn id="fn4">
<label>3</label>
<p>SODIndoorLoc: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1186/s43020-022-00086-y">https://doi.org/10.1186/s43020-022-00086-y</ext-link>
</p>
</fn>
</fn-group>
</back>
</article>
