A multi-view contrastive learning framework for spatial embeddings in risk modelling
q-fin.RM, cs.LG
Submitted: 2025-11-22
Updated: 2026-09-29
Code: https://github.com/freekholvoet/MultiviewSpatialEmbeddings
License: http://creativecommons.org/licenses/by-sa/4.0/
The gist: Incorporating spatial information, particularly when related to climate, weather, and demographic factors, is crucial for improving underwriting precision and enhancing risk management in insurance.
Terminology
Abstract
Incorporating spatial information, particularly when related to climate, weather, and demographic factors, is crucial for improving underwriting precision and enhancing risk management in insurance. However, spatial data are often unstructured, high-dimensional, and difficult to integrate into predictive models. Embedding methods are needed to convert spatial data into meaningful representations for modelling tasks. We propose a novel multi-view contrastive learning framework for generating spatial embeddings that combine information from multiple spatial data sources. To train the model, we construct a spatial dataset that merges satellite imagery and OpenStreetMap features across Europe. The framework aligns these spatial views with coordinate-based encodings, producing low-dimensional embeddings that capture both spatial structure and contextual similarity. Once trained, the model generates embeddings directly from latitude-longitude pairs, enabling any dataset with coordinates to be enriched with meaningful spatial features without requiring access to the original spatial inputs. In a case study on French real estate prices, we compare models trained on raw coordinates against those using our spatial embeddings as inputs. The embeddings consistently improve predictive accuracy across generalised linear, additive, and boosting models, while providing post-hoc explainable spatial effects and demonstrating generalisation of the fitted spatial effects to regions without training observations. A second case study on flood claim counts across Belgian postal codes confirms that the embeddings improve territorial risk classification in an insurance context.
Sources
- Rethinking Representations in P&C Actuarial Science with Deep Neural Networks
- AlphaEarth Foundations: An embedding field model for accurate and efficient global mapping from sparse label data
- Entity Embeddings of Categorical Variables
- Adam: A Method for Stochastic Optimization
- Efficient Estimation of Word Representations in Vector Space
- Implicit Neural Representations with Periodic Activation Functions