# HMCGeo: IP Region Prediction Based on Hierarchical Multi-label Classification

arXiv: https://arxiv.org/abs/2501.16392 · HTML: https://mlsanity.com/paper/2501.16392/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Builds on 6 of its 46 references that are in the map.
- First posted on arXiv 26 Jan 2025.

## Builds on (most cited first, 6 of 6)

- [Attention Is All You Need](https://mlsanity.com/paper/1706.03762/) (2017)
- [Weakly-Supervised Hierarchical Text Classification](https://mlsanity.com/paper/1812.11270/) (2018)
- [Label Relation Graphs Enhanced Hierarchical Residual Network for Hierarchical Multi-Granularity Classification](https://mlsanity.com/paper/2201.03194/) (2022)
- [IP Geolocation through Reverse DNS](https://mlsanity.com/paper/1811.04288/) (2018)
- [GNN-Geo: A Graph Neural Network-based Fine-grained IP geolocation Framework](https://mlsanity.com/paper/2112.10767/) (2021)
- [A deep dive into the accuracy of IP Geolocation Databases and its impact on online advertising](https://mlsanity.com/paper/2109.13665/) (2021)

## Abstract (arXiv)

Fine-grained IP geolocation plays a critical role in applications such as location-based services and cybersecurity. Most existing fine-grained IP geolocation methods are regression-based; however, due to noise in the input data, these methods typically encounter kilometer-level prediction errors and provide incorrect region information for users. To address this issue, this paper proposes a novel hierarchical multi-label classification framework for IP region prediction, named HMCGeo. This framework treats IP geolocation as a hierarchical multi-label classification problem and employs residual connection-based feature extraction and attention prediction units to predict the target host region across multiple geographical granularities. Furthermore, we introduce probabilistic classification loss during training, combining it with hierarchical cross-entropy loss to form a composite loss function. This approach optimizes predictions by utilizing hierarchical constraints between regions at different granularities. IP region prediction experiments on the New York, Los Angeles, and Shanghai datasets demonstrate that HMCGeo achieves superior performance across all geographical granularities, significantly outperforming existing IP geolocation methods.
