Manuscript Offprint
arXiv:2610.17178ModRes: A modification of the ResPlan dataset ready for floor plan analysis and graph machine learning
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Emma Shelley
School of Computational and Mathematical Sciences
Cardiff University
Cardiff
Thomas Woolley
School of Computational and Mathematical Sciences
Cardiff University
Cardiff
Wassim Jabi
Welsh School of Architecture
Cardiff University
Cardiff
Katerina Kaouri
School of Computational and Mathematical Sciences
Cardiff University
Cardiff
ABSTRACT
Floor plan datasets underpin computational analysis of building layouts, spatial connectivity and graph machine learning. However, publicly available datasets often require substantial preprocessing before they can be used reliably. We present ModRes, a cleaned and enriched version of the ResPlan dataset, containing 8,431 valid and unique residential floor plans. Invalid and duplicate floor plans are removed through a dedicated cleaning workflow, producing a ready-to-use dataset. For each floor plan, ModRes provides two-dimensional geometry, images, three-dimensional building representations and three complementary dual graphs in CSV and JSON formats with graph-, node- and edge-level features. Continuous and categorical graph attributes support machine learning workflows. We characterise the dataset using graph-based statistics and demonstrate its utility through a range of case studies. ModRes provides structured geometric, topological and semantic representations needed to automate spatial analysis and support machine learning-based workflows for building design and performance evaluation.
Keywords Floor plan dataset · Graph Machine Learning · Spatial analysis · TopologicPy
1 Introduction
Floor plans provide a geometric representation of an indoor environment, showing the structure of, and spatial relationships between, architectural spaces. Floor plans typically show features such as rooms, walls, and doors, and how these features are arranged and connected to each other. Floor plans are widely used across a range of fields, including architecture [1], real estate, spatial analysis [2], and robotics [3]. Floor plans provide a concise representation of a building's layout, making them valuable for design, analysis, and automated processing across these fields.
Spatial analysis techniques are widely used to evaluate how the layout of a building affects accessibility, visibility within the building and occupant behaviour [4, 5]. These techniques can be used to improve the functionality of a built environment. For example, when designing a shop, spatial analysis can be useful to ensure there is high visibility throughout the shop so that more products are seen by customers.
An example of spatial analysis techniques is space syntax, in which floor plans are represented as a network that captures spatial relationships between different areas of a building, allowing researchers to evaluate how people may move through a building [6]. For example, space syntax could be utilised when designing an office building, to ensure meeting rooms are in an area of the building with high footfall. Furthermore, visibility within a building can be evaluated using isovist analysis, which measures the total area visible from different points in the building [7]. Isovist analysis helps to
| guest room | kitchen | bedroom 1 |
|---|---|---|
| dinning room | ||
| living room | washroom | |
| bedroom 2 | ||
(a) Planar graph

(b) Dual graph
Figure 1: The planar (primary) and dual graph of a floor plan. Source: [14].
analyse the openness of a floor plan, which can be useful when designing a building where visibility is a key design objective. For example, buildings where privacy and confidentiality are important, such as government buildings, would benefit from lower visibility values whereas buildings where collaboration and supervision are essential, such as an emergency department, require higher visibility values.
More recently, due to advances in machine learning techniques, there is an increased interest in automated floor plan analysis [8]. Because of this interest, there is demand for large-scale floor plan datasets, which can be used for computational analysis, or training machine learning models. Floor plan datasets have been used for a range of applications, such as building and room classification [9] and accessibility analysis [10]. Unlike other fields such as healthcare, the architecture, engineering and construction (AEC) sector lacks publicly available datasets, as floor plans are often not publicly released due to confidentiality risks. We address this lack of datasets in this paper, by presenting a preprocessed, publicly available dataset that is ready for use. This dataset is a cleaned and processed version of ResPlan [11].
Floor plan datasets can also be used in Graph Machine Learning (GML) [12]. GML is a branch of machine learning that works on structured data, where data points are represented by nodes, and their connections are shown by edges. Unlike traditional machine learning methods, GML methods extract relationships between different parts of the graph, instead of regarding them as separate entities. In the context of floor plans, a building can be represented as a graph. The primary (or planar) graph of a floor plan has edges that correspond to the walls of the building, and nodes representing the intersections between walls [13]. The dual graph, which we use in this work, has nodes representing architectural components such as rooms and doors, and edges representing relationships between these components (see Figure 1) [14].
Graph neural networks can then be trained for a range of tasks, such as building classification [15] or estimating energy usage [16]. Representing floor plans as dual graphs allows machine learning methods to focus on the structure and connectivity of a building, instead of relying on the building's full geometry, which can be a more computationally efficient way of analysing buildings. Thus, we will incorporate multiple graphical representations of each floor plan into our dataset.
Plan 522

Figure 2: An example of a graph in ResPlan. Dark blue lines denote connections through doors, and dark green dashed lines represent connections through an arch. Source: [11].
ResPlan offers increased structural diversity compared to other floor plan datasets, with many rooms having non-rectangular shapes, and floor plans ranging from small one-bedroom apartments to large multi-wing homes.
However, in ResPlan, there are errors that need fixing, the details of which are outlined in the Section 3. We remove these floor plans, as any results obtained using floor plans with errors will lack validity and applicability to real-life residences. Furthermore, there are many instances of duplicate floor plans within the dataset. This could have a large impact when training a machine learning model on the data, as the model will learn more instances of one floor plan than another, which can bias the results. Therefore, we also remove any duplicate floor plans.
Dual graphs of floor plans
Each floor plan in the ResPlan dataset is also converted into a room connectivity graph, where the nodes correspond to rooms, and the edges represent connections between these rooms. Rooms connected through a doorway are connected by an edge labelled ‘door’, which is represented by a dark blue solid line (see Figure 2). Rooms connected directly without a door are connected by an edge labelled ‘arch’, and are represented by a dark green dashed line.
In Figure 2, we observe that the edge labels are not consistent. Rooms that are connected by doorways, for example the two bedrooms and the living room, are connected by a green dashed line, which represents an ‘arch’, meaning there is no door between them. However, we can clearly see that there are doors between them. These errors could lead to inaccuracies when using this dataset for spatial analysis, as the actual adjacency between rooms is often not represented within the graph.
The graph inconsistencies are another key issue that we fixed in this paper. We create new graphical representations for each floor plan, with increased validity. To create these graphs, we convert each floor plan from a list of Shapely Polygons [17] to a list of TopologicPy Faces [18], and use TopologicPy's 'Graph' class.
1.2 TopologicPy
TopologicPy is an open-source Python library designed for topological modelling and spatial analysis [18]. TopologicPy provides data structures that can be used to represent architectural features, such as Vertices, Edges, Faces (2D shapes) and Cells (3D shapes). A key feature of TopologicPy is its ability to analyse spatial relationships between different architectural features, such as adjacency and connectivity. Unlike purely geometric representations, topological representations highlight the relationship between different spaces, making such representations useful when analysing indoor environments.
A core component of TopologicPy is its ‘Graph’ class, in which geometric structures, such as a floor plan, can be converted into a graph that captures the spatial relationships between their components. This class also allows for computational analysis of graphs. Furthermore, TopologicPy also incorporates Graph Machine Learning, making it a useful way to represent a dataset, as it easily allows for future machine learning applications.
1.3 Aims and Paper outline
We aim to create a publicly available dataset that is ready for use, developed from ResPlan.
This paper will be set out as follows:
First in Section 2, we look at previous floor plan datasets that are available, with a focus on the dual graphs of these floor plans. Then, Section 3 outlines the rigorous cleaning process we carry out on ResPlan to remove all invalid and duplicate floor plans. Section 4 outlines each of the dual graphs in our dataset, followed by a description of the data availability and structure. Each of the graphs in the dataset are available in both CSV and JSON format. This broadens the scope of applications for this dataset, as it provides the user with a wide choice of data structures that can be used for different applications. This is followed by a discussion of the diversity of the dataset. Next, in Section 5 we show how ModRes can be used to carry out spatial analysis on a building, including energy simulations, which determine how much energy is needed to heat or cool the building. Finally, in Section 6, we discuss the limitations of ModRes, and potential avenues for future improvements.
2 Existing floor plan datasets
Floor plan datasets play a vital role in many applications in the architectural domain and beyond, including spatial analysis and machine learning algorithms [19]. Some floor plan datasets have been developed, but they vary widely in quality, content, size, and structure, which can in turn affect their suitability for different applications. The representation of the data within these datasets is also important, as some datasets store floor plans as rasterised images [19], while others include graphs representing the adjacency between each feature of the floor plan [20]. We will now look at some widely used floor plan datasets, their strengths and their potential limitations for different applications.
Modified Swiss Dwellings (MSD) [20] contains 5,300 multi-unit floor plans, made up of approximately 18,900 individual dwellings. This was developed from the Swiss Dwellings (SD) dataset, following a careful cleaning process, including removing any non-residential data points, and any near-duplicates. Each floor plan is an entire floor of a building, containing multiple apartments. This dataset is highly complex and diverse, making it a benchmark dataset for multi-unit residential buildings [20]. MSD also provides dual graphs for each floor plan, opening up its applications to both geometrical and relational analysis.
CubiCasa5k [21] is a dataset of approximately 5,000 floor plans from Finland, developed from real estate listings using a vectorisation pipeline. Each floor plan contains semantic annotations, meaning that every room and architectural feature is represented by a 2D shape, and assigned a semantic class (i.e. 'kitchen', 'window', 'bedroom', 'door'). These annotations cover 80 categories, and were manually applied by a human, then checked by another human, providing a high level of accuracy. Despite these high-quality annotations, CubiCasa5k is relatively small compared to other available datasets. This limits the diversity of floor plans, restricting the applicability of machine learning models trained with this dataset.
RPLAN [19] is among the largest publicly available floor plan datasets, consisting of approximately 80,000 floor plans from real residential buildings in Asia. Each floor plan is available in a rasterised format, consisting of a pixel image, where each pixel has semantic annotations, denoting room types or structural components. While this representation is useful for image-based tasks, it can cause challenges when looking at the floor plan as a whole. For example, topological relationships between rooms cannot be extracted directly from the pixel data; the data must first be vectorised, converting regions of pixels into geometric shapes.
2.1 Dual graphs of floor plans
While there is a range of floor plan datasets available, few of them represent these plans as graphs. Representing a floor plan graphically is beneficial, as the graph can show spatial relationships between different components, which can be used, for example, to assess connectivity of a building, or for graph neural networks (GNNs).
MSD provides two dual accessibility graphs for each of the floor plans [20]. One graph shows the connections between rooms, and the other graph shows the connections between ‘zones’, i.e. whether a space is private, public, service, or outside. Each edge is classified into one of three groups depending on the connection type:
Plan #17

(a) ResPlan. Source: [11].

(b) MSD. Source: [20]

(c) CubiCasa5k. Source: [21].

(d) RPLAN. Source: [19].
Figure 3: Examples of floor plans stored within different datasets.
| Number of bedrooms | Area Threshold () |
|---|---|
| 1 | [46.5, 92.7] |
| 2 | [69.7, 120.3] |
| 3 | [99.4, 181.4] |
| 4 | [142.6, 278.7] |
| 5 | [191.9, 278.7] |
Table 1: Thresholds for removal of floor plans in the size filtering step.
-
'passage' for when one can access the space without going through a door,
-
'door' if spaces are connected by a door,
-
'front door' if they are connected by a front door.
Nodes are also given semantic information, such as 'room type'. While these graphs do contain a lot of information, they fail to include features such as windows or connections through walls, which can be important in applications such as energy analysis, as windows and walls affect how insulated a building is.
ResPlan contains a dual graph for each floor plan [11]. This graph shows the connectivity between rooms, with two rooms being connected by an edge if they are directly adjacent, either through a doorway or a wall. However, these graphs contain correctable errors, which we aim to fix in this work. This will be outlined in detail in Section 3.
3 Cleaning of ResPlan
In this work, a Modified ResPlan dataset is generated from the ResPlan dataset. Below, we explicitly explain how the cleaning was enacted to ensure the validity and usability of each floor plan.
3.1 Removal of invalid floor plans
First, we filtered through each floor plan to check its validity. We used the following steps:
-
Essential rooms Residential floor plans should contain the basic spaces required for occupancy. We remove plans without at least one living room, bedroom, bathroom, and kitchen (See Figure 4a).
-
Invalid doors Plans with doors of unrealistically small dimensions are removed. We remove all doors under 4 units squared (ResPlan floor plans are not given to scale) (See Figure 4b).
-
Missing rooms Plans with large regions of missing geometry are removed. It is not possible for us to fill in each missing room as it is unknown what type of room they should be (See Figure 4c).
-
Missing walls Plans with gaps in the external envelope, leaving internal space exposed to the outside, are removed (See Figure 4d).
-
Door clusters Plans with clustered door groups are removed. To identify them, each plan is first represented as an adjacency graph with room and door nodes. Any plan containing adjacent door nodes is excluded (See Figure 4e).
-
Disconnectedness Plans are removed if they contain disjoint sections, or rooms with no accessible door connection. This is detected using the adjacency graph, excluding any plan with more than one connected component. We remove these plans as any house containing rooms that cannot be accessed by an occupant is unrealistic (See Figure 4f).
-
Invalid walls Plans with wall vertices clustered close together are removed. These clusters create degenerate edges when converting to other geometric representations (See Figure 4g).
-
Size filtering Plans with unrealistic recorded areas are removed. For each bedroom count, thresholds for area are specified in which we keep floor plans (See Table 1). These thresholds were calculated using a normal distribution, to find the 7.5th and 92.5th percentile. These values are consistent with real-life apartment sizes in the U.S. [22]. Any plans outside these bounds are determined to be an outlier and discarded. See Figure 5a and Figure 5b.

(a) Essential rooms.

(c) Missing room.

(e) Door cluster.

(b) Invalid door.

(d) Missing wall.

(f) Disconnected graph.

(g) Invalid walls.
Figure 4: Examples of invalid floor plans identified during the dataset filtering process.

(a) Distribution of floor plan areas before size filtering.

(b) Distribution of floor plan areas after size filtering.
Figure 5: The distribution of floor plan areas in the ResPlan dataset before and after applying the size filtering process.
3.2 Removal of duplicates
The next step in the cleaning process was to remove any duplicates. This is essential so that the data is not biased towards particular plans. This could cause problems when training machine learning models, as the model will learn more from plans with more instances, which could skew the results.
For each plan, we made a vector representing its key values. These included the number of each room type, and the total area for each room type. This resulted in a vector with 7 values (number of kitchens is not included as all floor plans have one). We include:
-
Number of bedrooms,
-
Total area of bedrooms,
-
Number of living rooms,
-
Total area of living rooms,
-
Number of bathrooms,
-
Total area of bathrooms,
-
Area of kitchen,
These vectors were then compared with each other, and if any were identical, the second out of the two plans was removed.
Table 2 shows how many floor plans were removed at each step in the cleaning process. At the end of the cleaning process, we are left with 8431 unique and valid floor plans, approximately 49% of the original dataset.
3.3 Geometry cleaning
Finally, we clean up all geometry errors in the remaining floor plans in the dataset.
• Scaling In the original ResPlan dataset, none of the geometry was to scale. We used the reported area of each floor plan to scale them individually.
• Buffer We remove any small slivers from the geometry using ResPlan’s ‘buffer_shrink_expand’ function (see Figure 6).
• Door separation Some floor plans include door geometries that represent more than one door. This causes problems when creating adjacency graphs of these floor plans, as two separate doors are represented by one node. Floor plans containing such geometries were identified by selecting each plan that contained a door with more than 4 vertices, implying it is non-rectangular. We then separate these geometries into two rectangles, representing two separate doors (See Figure 7).
| Cleaning step | Number of plans removed | Percentage of plans removed |
|---|---|---|
| No kitchens | 84 | 0.5 % |
| Invalid doors | 627 | 3.7 % |
| Missing rooms | 1609 | 9.4 % |
| Missing walls | 372 | 2.2 % |
| Disconnected | 1606 | 9.4 % |
| Door Clusters | 2046 | 12.0 % |
| Size filtering | 1459 | 8.5 % |
| Duplicates | 833 | 4.9 % |
| Invalid walls | 40 | 0.2 % |
Table 2: Number and percentage of floor plans in the ResPlan dataset removed through our cleaning process at each step.

Figure 6: An example of small slivers being removed from the living room of plan 890 using the 'buffer_shrink-expand' function.
- Duplicate rooms Some floor plans contain more than one geometry for the same room. We merge each of these duplicate geometries into one room.
4 Features of the dataset
Originally, each ResPlan floor plan was stored as a single python dictionary, which is a collection of key-value pairs. The keys of this dictionary are semantic categories (e.g. bedroom, bathroom, door, etc.) and the values were Shapely Polygon or MultiPolygon geometries.
We converted each of these Shapely Polygons into a TopologicPy Face by using a list of the vertices of the Polygon to construct a Face. Representing the geometry as a TopologicPy face allows us to easily represent spatial relationships between components. In particular, this representation enables identification of adjacency and connectivity between different elements in the floor plans, which proves particularly useful when constructing dual graphs of each floor plan.
4.1 Graphs
For each floor plan, we have produced three graphs (see Figure 8):

Figure 7: An example of a door geometry being separated into two distinct doors from plan 15633.

Figure 8: An example of each dual graph type for plan #1158. From left to right they are the: Full graph, Adjacency Graph and Accessibility graph.
-
Accessibility Graph shows the routes an individual could take when walking around the house. The graph nodes are doors and rooms, with edges that show the connections between rooms, either through direct connection or a doorway.
-
Adjacency Graph only includes nodes for the rooms, and shows their connections to each other, either directly connected, through a door, or through a wall.
-
Full Graph includes nodes for rooms, doors, and windows. The full graph shows how each room is connected to each other, like the adjacency graph, but also includes connections to doors and windows.
Each of these graphs has been enriched with data, which has been added to the dictionary of each node, edge, and graph. Data that were originally qualitative, e.g. room type, have been changed to be numerical, with a number assigned to each value instead of a word. For example, room type is stored as an integer value, 0-6, with each number corresponding to a different type of room.

(a) Area.

(b) Net area.

(c) Perimeter.
Figure 9: Diagrams showing how different graph features are calculated. Namely, the red areas or length of red line in (c).
4.1.1 Graph
We add the following data to the dictionary for the whole graph:
i. Number of bedrooms (minus one). We record how many bedrooms the floor plan has, but, for consistency, as all other dictionary values begin at 0, we begin our indexing here at 0. Thus, the recorded value is one less than the number of bedrooms.
ii. Area, A. The total area of the plan, including walls, doors, and windows (see Figure 9a).
iii. Net Area. The sum of the area of each room in the floor plan, i.e. the total usable space (see Figure 9b).
iv. Perimeter, L. The perimeter of the entire floor plan (see Figure 9c.
v. Compactness, C. We calculate compactness using the isoperimetric quotient,
where A is the area of the floor plan and L is the perimeter, and this gives a value between 0 and 1 [23]. The quotient is the ratio between the area of the floor plan and the area of a circle with the same perimeter as the floor plan. This measurement is useful for specific applications, such as energy analysis, as the more compact a house is, the more energy efficient it is [24]. See Figure 10 for examples.
vi. Unit type. In ResPlan, there are four labels which describe the type of residential unit that each floor plan is. These are ‘Apartment’, ‘IndependentHouse’, ‘Villa’ and ‘BuilderFloor’. We use one-hot encoding to store these within the dictionary of the graph, under the keys ‘unit_type_0’ to ‘unit_type_3’ respectively. One hot encoding converts categorical data into a form that machine learning can understand. Each category has a binary value, with 1 for the presence of the category, and 0 elsewhere. This prevents a machine learning model from learning an order from categories when there is not an order.
4.1.2 Nodes
The nodes of the graph are located on the centroid of each geometry. We add the following data to the dictionary of each node:
i. Room type. There are seven room types, stored numerically as 0-6. These correspond to 0 - living room, 1 - bedroom, 2 - bathroom, 3 - kitchen, 4 - window, 5 - door, and 6 - front door, respectively.
ii. Area. For rooms, the area is simply the area of the room. For doors and windows, the area is the area of the door or the window. To calculate this, we find the length of the door or window from the geometry, and then multiply it by its height. We assume a standard height of 2 metres for doors, and 1.2 metres for windows (see Figure 9a).
iii. Perimeter. As with the area, for rooms, the perimeter is simply the perimeter of the room. For doors and windows it is the perimeter of the door or window, respectively, calculated using the same standard heights stated in (ii) above. (see Figure 9c).
iv. Compactness. We calculate the compactness of each room using the isoperimetric quotient, as we do for each floor plan.

(a) Compactness = 0.23.

(b) Compactness = 0.79.
Figure 10: An example of high and low compactness floor plans, as calculated using the isoperimetric quotient.
| Room type | Measurement | Small | Medium | Large | Extra Large |
|---|---|---|---|---|---|
| Living room | Area Perimeter | (0, 20)(0, 20] | (20, 40)(20, 35] | (40, 60)(35, 50] | (60, ∞)(50, ∞) |
| Bedroom | Area Perimeter | (0, 15)(0, 15] | (15, 20)(15, 20] | (20, 25)(20, 25] | (25, ∞)(25, ∞) |
| Bathroom | Area Perimeter | (0, 2.5)(0, 6] | (2.5, 5)(6, 9] | (5, 7.5)(9, 12] | (7.5, ∞)(12, ∞) |
| Kitchen | Area Perimeter | (0, 5)(0, 10] | (5, 10)(10, 13] | (10, 15)(13, 16] | (15, ∞)(16, ∞) |
| Window | Area Perimeter | (0, 1)(0, 4] | (1, 2)(4, 6] | (2, 3)(6, 8] | (3, ∞)(8, ∞) |
| Door | Area Perimeter | (0, 1)(0, 5] | (1, 2)(5, 6] | (2, 3)(6, 7] | (3, ∞)(7, ∞) |
| Plan | Area Perimeter | (0, 100)(0, 40] | (100, 150)(40, 55] | (150, 200)(55, 70] | (200, ∞)(70, ∞) |
Table 3: Measurement thresholds for each category for area and perimeter in the categorical dataset. Areas are in and perimeters are in .

(a) Room area.

(b) Room perimeter.

(c) Door area.

(d) Door perimeter.

(e) Window area.

(f) Window perimeter.
Figure 11: Diagrams showing how different node features are calculated depending on the node type.
Table 4: Attributes included in the dataset.
| Attribute | Entity Type | Data Type | Units | Allowed Range | Encoding Method | Source Method | Available at Inference Time |
|---|---|---|---|---|---|---|---|
| Bedrooms | Graph | Ordinal | - | 0–6 | Integer encoding | Computed from geometry | Yes |
| Area | Graph | Continuous | >0 | - | Computed from geometry | Yes | |
| Net Area | Graph | Continuous | >0 | - | Computed from geometry | Yes | |
| Perimeter | Graph | Continuous | m | >0 | - | Computed from geometry | Yes |
| Compactness | Graph | Continuous | - | 0–1 | - | Isoperimetric quotient | Yes |
| Unit Type | Graph | Categorical | - | 0–3 | One-hot | Given in ResPlan | Yes |
| Room Type | Node | Categorical | - | 0–6 | Integer encoding | Given in ResPlan | Yes |
| Area | Node | Continuous | >0 | - | Computed from geometry | Yes | |
| Perimeter | Node | Continuous | m | >0 | - | Computed from geometry | Yes |
| Compactness | Node | Continuous | - | 0–1 | - | Isoperimetric quotient | Yes |
| Connection Type | Edge | Categorical | - | 0–3 | Integer encoding | - | Yes |
4.1.3 Edges
In the graphs, we have a total of four types of edges (numbered 0-3). The edge value is saved in the dictionary for the edge, under the key edge_type. 0 is a ‘doorway’, used either when the edge connects to a door, or in the case of the adjacency graph, when two rooms are connected by a door; 1 is a ‘passage’, when two rooms are directly connected without a door; 2 is a ‘wall’, when two rooms share a wall, but are not directly connected; and 3 is a ‘window’, used only in the full graph, which is a connection between a room and a window.
4.2 File format
4.2.1 Geometry
Two-dimensional We generate JSON files for each floor plan that consist of just their geometry. This is stored as a dictionary, with keys corresponding to semantic categories, e.g. ‘bedroom’, or ‘wall’, and values that consist of a list of geometries that belong in that category. These geometries are stored as lists of coordinates, allowing a high level of flexibility. The list of coordinates allows for easy conversion to different geometric representations, for example Shapely geometries, or TopologicPy Faces, depending on how they will be used in applications.
Three-dimensional We provide 3D versions of each floor plan. However, since ResPlan does not include any 3D data on the floor plans, such as the height of the ceilings or the shape of the roof, there are some assumptions made. Firstly, the International Residential Code states a minimum height of 7 feet for ceilings [25], so we assume a height of approximately 8 feet, which is 2.4 m. For doors, we assume a height of 2 m, and for windows, a height of 1.2 m, positioned 1 m above the ground. Certain 3D analysis workflows, such as energy simulations using EnergyPlus [26], require zero-thickness walls. However, ResPlan provides each floor plan with a uniform wall thickness, so we offset each of the walls. We offset internal walls by half the wall thickness to ensure they meet in their midline, and external walls by the full wall thickness.
Each of the 3D floor plans is given as two BREP files. One BREP file contains the CellComplex of the building, which is a collection of TopologicPy Cells, while the other BREP file contains the apertures, i.e. the windows and external doors.
Images We also provide images of each of the floor plans. These are to scale, and are all contained within a bounding box of 35 metres wide and 30 metres long. This allows easy visual comparison between different sizes and layouts. See Figure 13 for examples.

(a) Two-dimensional

(b) Three-dimensional
Figure 12: Floor plan 67 in two-dimensional and three-dimensional form.

(a) Plan 118.

(b) Plan 8430.
Figure 13: Examples of the geometry images stored for each floor plan.
4.2.2 Graph files
Continuous data vs categorical data Measurements, such as area and perimeter of each of the rooms, are calculated to two decimal places. However, in practical settings, obtaining measurements to this level of accuracy is often unrealistic. Therefore, we generate another version of this dataset, where the features of each node and graph are not continuous but categorical.
In this representation, each room is given two values, a category for the area (size), and a category for the perimeter (perimeter). Both categories take integer values, between 0 and 3, corresponding to small, medium, large, and extra large.
The thresholds for these categories were determined separately for each room type, reflecting the fact that typical measurements vary widely between room types. For instance, a ‘large’ bathroom is likely to be much smaller than a ‘large’ living room (see Table 3).
CSV For each type of graph, we provide a set of CSV files. The set consists of three files: graphs.csv, nodes.csv, and edges.csv, containing information on all the floor plans in the dataset.
graphs .csv contains a row of information for each graph, with the graph id identifying the corresponding floor plan in the dataset. The label for each graph is the number of bedrooms. However, for consistency we begin our indexing at 0, so the label is equal to one less than the number of bedrooms. There are then a number of columns for graph-level features. These contain information from the dictionary of each graph, although their form differs depending on whether the data is continuous or categorical (see Table 4).
nodes .csv contains information for each node across all graphs. Each node has a graph id, which identifies which graph it is from, and then a node id, uniquely identifying the node within that graph. The node has a label, which is an integer 0-6 corresponding to the room's type, as described previously. In addition, there are node-level features in the

Figure 14: Frequency of different numbers of bedrooms in ModRes.
subsequent columns. As with the graph-level features, these differ depending on whether the data are categorical or continuous.
edges.csv contains information on each of the edges of each graph. As with the nodes, graph id identifies which graph the edge is from. There is then a source id (src_id) and a destination id (dst_id), which tell us which nodes of the graph the edge is connected to. As these graphs are undirected, it contains two rows of data for each graph, one for each direction of the edge. The edge label (an integer 0 to 3 inclusive) corresponds to the connection type, as specified in the Graphs section above.
JSON We also generate a JSON file for every graph in the dataset. This consists of dictionaries for the whole graph, each node, and each edge. The dictionaries contain all the data outlined in the section above, as well as the geometry of each room, and colours that we use when plotting each of the graphs, ensuring reproducibility.
Images For each graph, we generate an image in the form of a PNG file. These images are the same structure as those in the geometry section, but they also have the graph included in the image.
4.3 Dataset diversity statistics
For a dataset to be widely applicable, it must include a diverse set of data points. In this section, we assess the diversity of the Modified ResPlan dataset we have generated using graph-based metrics.
We consider the distribution of the number of nodes and edges across our three graph types (See Figures 15, 16, 17). Adjacency graphs consistently have the least number of nodes and edges, with the lowest variance, followed by accessibility graphs, and then full graphs, which have the greatest number of nodes with the largest variance. This is expected, as adjacency graphs only contain nodes for each room, and doors are added for accessibility graphs, and then windows are added for full graphs, increasing both the number and variability of nodes and edges.
The distribution for the number of nodes and edges for each graph type can be approximated using a Gamma distribution. Each of these distributions has a skew of 0.6-0.8, which is indicative of a moderate right-skew (See Table 5 and Table 6). When compared to the distribution for number of bedrooms, we can see that this skew can be explained by the large number of two-bedroom houses within our dataset (See Figure 14). While this may limit the applicability of models trained on this data to larger houses, it is reflective of real-life housing distributions. For example, 63.7% of houses in the USA are two- and three-bedroom houses [27]. Thus, the dataset captures a realistic, albeit unbalanced, representation of residential buildings.
As well as size-based metrics, we also consider the structure of the floor plans. While graphs may have similar numbers of nodes and edges, they can vary greatly in how these nodes are connected to each other. Thus, we look at the degrees of each vertex within the graphs.
In Figure 19, we see that the degrees of the vertices are skewed to the right, with a majority of vertices having low degrees. In the case of Accessibility and Full Graphs, this skewness can be explained through the inclusion of doors and windows, as vertices representing external doors and windows all have degree 1, and internal doors have degree 2.
| Graph | Mean | Variance | Standard Deviation | Skew |
|---|---|---|---|---|
| Full | 20.34 | 16.90 | 4.11 | 0.57 |
| Adjacency | 6.60 | 1.26 | 1.12 | 0.80 |
| Accessibility | 13.46 | 6.79 | 2.61 | 0.66 |
Table 5: Variables for the gamma distribution approximation for the number of nodes in each type of graph.
| Graph | Mean | Variance | Standard Deviation | Skew |
|---|---|---|---|---|
| Full | 23.06 | 24.68 | 4.97 | 0.63 |
| Adjacency | 9.19 | 4.29 | 2.07 | 0.65 |
| Accessibility | 12.52 | 6.89 | 2.62 | 0.65 |
Table 6: Variables for the gamma distribution approximation for the number of edges in each type of graph.

(a) Node distribution.

(b) Edge distribution.
Figure 15: Histograms showing the node and edge distributions for accessibility graphs.

(a) Node distribution.

(b) Edge distribution.
Figure 16: Histograms showing the node and edge distributions for adjacency graphs.

(a) Node distribution.

(b) Edge distribution.
Figure 17: Histograms showing the node and edge distributions for full graphs.

(a) Accessibility Graphs.

(b) Adjacency Graphs

(c) Full Graphs
Figure 18: Histograms to show the distribution of density of graphs across all three graph types.

(a) Accessibility Graphs

(b) Adjacency Graphs

(c) Full Graphs
Figure 19: Histograms to show the distribution of the degrees of nodes across all three graph types.
However, Adjacency graphs only contain nodes for rooms, so are more representative of how rooms are connected to each other.
In Figure 19, we still see a bias towards low degree vertices, meaning most rooms are not connected to many other rooms. However, there are some very high degree vertices, up to 10, representing 'hubs' which are connected to a large number of rooms. The bias towards low degrees can again be explained by the number of two-bedroom floor plans within the dataset, as two bedroom floor plans often have much simpler structure than a floor plan with many more rooms.
Next, we look at the density, D, of each graph. This is calculated as
where is the number of nodes in the graph, and is the number of edges. has a value between 0 and 1, with 1 being a dense graph, where each node is connected to all other nodes, and 0 being a graph with no edges.
We observe in Figure 18 that both Accessibility graphs and Full graphs have low density, whereas Adjacency graphs have higher density. Figure 20 shows examples of high and low density graphs. In Figure 20a we have a very high density graph, as it is only one edge away from being a complete graph. Figure 20b shows a low density graph, as there are many windows that are only connected to one room. This is why all the full graphs are low density, as they include windows, which are all only connected to one node, i.e. the room to which they are attached.

(a)

(b)
Figure 20: Examples of high and low density graphs from the Modified ResPlan dataset.
5 Use Test Cases
ModRes can be used in a variety of applications in the Architecture, Engineering and Construction industry. Here, we outline some examples.
5.1 Energy analysis
To run energy analysis on a building, we use EnergyPlus [26]. EnergyPlus is a whole-building energy simulation program that can model and determine the energy consumption of a building. The energy consumption of a building is given as heating and cooling loads. The heating load of a building is the amount of energy required to heat a building to a comfortable temperature on the coldest day of the year. Conversely, the cooling load is the amount of energy required to cool a building to a comfortable temperature on the hottest day of the year. EnergyPlus incorporates a range of factors that can influence the energy consumption, such as weather conditions, building materials and insulation, and internal gains from occupants.
One of the key features of EnergyPlus is its modular framework. EnergyPlus contains many individual modules that each model a specific aspect of the building’s energy performance, such as heat transfer, HVAC components, or daylight. These modules are then controlled by a central simulation manager, which controls the interactions between all the individual simulations.
EnergyPlus calculates the heating and cooling loads by using a predictor-corrector approach to model the interaction between thermal conditions and HVAC systems. Heat balance equations are solved at sub-hourly time steps, to estimate the air temperature based on previous time steps. These predicted values are then used to simulate the response of the HVAC system. In the corrector step, temperature is then updated to include the HVAC system's response, subject to the limits of the system's capacity and capabilities.
To use EnergyPlus to find heating and cooling loads for each of the floor plans within the dataset, we use the 3D representation of the building. Other inputs are also required. Firstly, we require a weather file. Since ResPlan was originally made in the United States, we choose a weather file from Columbus Ohio.
We also require an OpenStudio file, which specifies the materials that the building is made from, and the material's U-values. A material's U-value is a measure of how quickly heat can travel through the material, with lower values indicating slower heat transmission, and, thus, higher insulation. We produce a residential template, which uses typical constructions and U-values for a residential building, based on US building regulations. This OpenStudio file is shared along all other data sources and code.
The outputs of the energy simulations are the heating and cooling loads. We normalise these to get values for heating and cooling load, per square metre, for each floor plan. Heating and cooling load have been used in previous research to train machine learning algorithms to predict the energy efficiency of buildings [16].
Zone Sensible Heating
User Design Load
Units: W/m
38.15

(a) Heating load
Zone Sensible Cooling
User Design Load
Units: W/m
13.08

(b) Cooling load
Figure 21: Heat maps showing the heating and cooling load per square metre for plan 67 in the Modified ResPlan dataset.

(a) Betweenness Centrality of nodes.

(b) Betweenness Centrality of Edges.
Figure 22: Betweenness centrality for nodes and edges calculated on the accessibility graph for plan 8426.
5.2 Space Syntax
Space syntax is a spatial analysis technique in which floor plans are represented as a network that captures spatial relationships between different areas of a building [28]. This technique can be used to analyse how people may move through a building. ModRes contains accessibility graphs for each floor plan which show how an individual can move through a building. Betweenness centrality can be calculated for these graphs to quantify the extent to which particular nodes or edges lie on the shortest path between other spaces. Using betweenness centrality, we can identify areas which are more connected to the rest of the house, and those which are more isolated. Consequently, nodes or edges with high betweenness centrality can be identified as important routes through the building (See Figure 22).
5.3 Visibility analysis
Using the 2D geometry of a floor plan in ModRes we can carry out visibility analysis. This will show us what area of the floor plan is visible from a given point (See Figure 23). Such analysis has been used in architectural research to investigate properties such as visual privacy in a house [29].
Together, these techniques demonstrate how the geometrical, topological and semantic data in ModRes can be used to derive higher level spatial information from a floor plan. The combination of these representations allows ModRes to act as a benchmark dataset for the development and evaluation of computational methods developed for the analysis of residential floor plans. In particular, the scale of the dataset enables such methods to be developed and evaluated across a wide range of diverse layouts, instead of on individual case studies. This scale provides a foundation for the development of automated applications such as compliance checking and design analysis, which can then be evaluated on new designs.

Figure 23: Visibility analysis on plan 7. The green area is visible from the given vertex, and the red line represents the direction of sight.
6 Limitations
While ModRes expands the capabilities of the original ResPlan dataset, and broadens the range of potential applications, there are still some key limitations that must be considered.
Single floor. Each floor plan within this dataset is a single-storey building. This limits the generalisability of any results obtained using this dataset to buildings with one floor. In reality, many residential buildings have more than one floor. Expanding the dataset to include multi-storey buildings, and their vertical connections through stairs, is one important avenue for future work.
3D assumptions. ResPlan does not explicitly include 3D information, when converting each of the floor plans to 3D assumptions were made, such as ceiling height and roof geometry. These assumptions may not be representative of each individual building's properties, and may affect results that depend on spatial measurements, such as energy usage simulations. In the future, these measurements could also be included in the metadata of each floor plan, allowing for more accurate 3D representations.
Diversity of house types. The dataset contains a large number of two-bedroom houses (See Figure 14). While this is representative of real-life residences, it may limit the applicability of any machine learning algorithms trained on this data to larger homes. This limitation could be mitigated by stratified sampling, or by adding more houses with three or more bedrooms in the future. Furthermore, all of these houses are of the same typology; they all originate from North America.
Lack of furniture. The dataset does not include any data on furniture or interior fixtures within the house, such as cabinets, tables, or appliances. This information can be important in applications such as indoor navigation and robotics, where furniture placement affects the accessible floor space within the building.
Graph Types. While ModRes supplies three dual graphs for each floor plan, there are still more graphs that could be added. For example, medial axis graphs, in which nodes and edges correspond to skeletal structures of walls, could be added [30]. This addition would further broaden the scope of potential applications of the dataset.
7 Conclusions and Future Work
We have introduced ModRes, a cleaned and enriched extension of the ResPlan dataset for computational floor plan analysis. Starting from the original ResPlan data, we removed invalid, disconnected, unrealistic and duplicate floor plans, and corrected geometric inconsistencies that would otherwise limit the reliability of downstream analysis. The resulting dataset contains 8,431 valid and unique residential layouts, supplied with corrected two-dimensional geometry, image outputs, three-dimensional representations and three alternative dual graph representations. In doing so, ModRes reduces the preprocessing burden on users and provides a more robust basis for spatial analysis, graph machine learning and building-performance modelling.
The contribution of ModRes should be understood in the context of a wider need for reliable, interoperable and reusable floor plan datasets. Existing resources such as CubiCasa5K, RPLAN, MSD and ResPlan have enabled significant progress in automated floor plan understanding, but they also demonstrate that no single representation is sufficient for the full range of tasks now being asked of architectural data [21, 19, 20, 11]. Rasterised images are useful for computer vision tasks, vectorised geometries support geometric and spatial analysis, graph representations support relational learning and spatial reasoning, and three-dimensional representations are required for many physically grounded simulation workflows. ModRes brings these representations together within a single cleaned dataset, allowing the same residential layouts to be studied from geometric, topological, visual and energy perspectives. This interoperability supports the development of automated workflows that can move from floor plan interpretation and spatial analysis to building performance assessment without requiring the dataset to be reconstructed for each task.
A central feature of the dataset is the provision of three dual graph types for each floor plan. These different graph structures are not interchangeable, since each encodes a different interpretation of the building. This is critical for Graph Machine Learning, where the choice of nodes, edges and features can strongly influence what a model is able to learn [12, 15, 16]. By providing multiple graph abstractions in both CSV and JSON formats, ModRes allows users to select a representation that is appropriate to their task, and also provides a test bed for comparing how different graph constructions affect downstream performance.
The dataset nevertheless has limitations that should guide its future development. Future data sets should address these limitations by incorporating multi-storey layouts, richer semantic annotations, more detailed building-envelope metadata and more diverse housing stock.
ModRes provides a practical resource for data-driven research on residential floor plans. Its main value is not only that it corrects and extends ResPlan, but that it makes a single collection of floor plans available in several mutually consistent forms. This allows researchers to move more easily between spatial analysis, graph-based modelling and building simulations.
Data availability
Dataset and associated code are available on GitHub at https://github.com/emmashelley/ModRes.
Funding acknowledgments
This work was supported by the Engineering and Physical Sciences Research Council [grant number: EP/W524682/1].
References
[1] S. Ahmed, M. Liwicki, M. Weber, and A. Dengel. Improved automatic analysis of architectural floor plans. In Proc. Int. Conf. Doc. Anal. Recognit. (ICDAR), pages 864–869, 2011. doi:10.1109/ICDAR.2011.177.
[2] T. H. D. Dao and J. Thill. Three-Dimensional indoor network accessibility auditing for floor plan design. Trans. GIS, 22(1):288–310, 2018. doi:10.1111/tgis.12310.
[3] F. Boniardi, A. Valada, R. Mohan, T. Caselitz, and W. Burgard. Robot localization in floor plans using a room layout edge extraction network. In Proc. IEEE/RSJ Int. Conf. Intell. Robots Syst. (IROS), pages 5291–5297, 2019. doi:10.1109/IROS40897.2019.8967847.
[4] H. Tawfik, A. Nagar, and T. Fernando. Multi-criteria spatial analysis of building layouts. IISIT, 4, 2007. doi:10.28945/988.
[5] Y. Lu, Z. Gou, Y. Ye, and Q. Sheng. Three-dimensional visibility graph analysis and its application. Environ. Plan. B: Urban Anal. City Sci., 46(5):948–962, 2019. doi:10.1177/2399808317739893.
[6] B. Hillier and A. Leaman and P. Stansall and M. Bedford. Space syntax. Environ. Plann. B. Plann. Des., 3(2): 147–185, 1976. doi:10.1068/b030147.
[7] C. Lonergan and N. Hedley. Unpacking isovists: a framework for 3d spatial visibility analysis. Cartogr. Geogr. Inf. Sci, 43(2):87–102, 2016. doi:10.1080/15230406.2015.1065761.
[8] P. Pizarro, N. Hitschfeld, I. Sipiran, and J. Saavedra. Automatic floor plan analysis and recognition. Autom. Constr., 140:104348, 2022. doi:10.1016/j.autcon.2022.104348.
[9] A. Paudel, R. Dhakal, and S. Bhattarai. Room classification on floor plan graphs using graph neural networks. arXiv preprint arXiv:2108.05947, 2021. doi:10.48550/arXiv.2108.05947.
[10] H. Zhang and R. Zhang. Few-shot learning with large foundation models for automated segmentation and accessibility analysis in architectural floor plans. J. Infrastruct. Intell. Resil., 4(2):100137, 2025. doi:10.1016/j.iintel.2024.100137.
[11] M. Abouagour and E. Garyfallidis. ResPlan: A Large-Scale Vector-Graph Dataset of 17,000 Residential Floor Plans, 2025. URL http://arxiv.org/abs/2508.14006.
[12] R. Hu, Z. Huang, Y. Tang, O. Van Kaick, H. Zhang, and H. Huang. Graph2plan: learning floorplan generation from layout graphs. ACM Trans. Graph., 39(4):118:118:1–118:118:14, 2020. doi:10.1145/3386569.3392391.
[13] X. Xie and W. Ding. An interactive approach for generating spatial architecture layout based on graph theory. Front. Archit. Res., 12(4):630–650, 2023. doi:10.1016/j.foar.2023.04.003.
[14] X. Wang, Y. Yang, and K. Zhang. Customization and generation of floor plans based on graph transformations. Autom. Constr., 94:405–416, 2018. doi:10.1016/j.autcon.2018.07.017.
[15] B. Kong, T. Ai, X. Zou, X. Yan, and M. Yang. A graph-based neural network approach to integrate multi-source data for urban building function classification. CEUS, 110:102094, 2024. doi:10.1016/j.compenvurbsys.2024.102094.
[16] W. Jabi, A. Alymani, and A. Alammar. Enhancing building energy efficiency estimations through graph machine learning: A focus on heating and cooling loads. MDPI, 15(18):3256, 2025. doi:10.3390/buildings15183256.
[17] S. Gillies and contributors. Shapely, 2024. URL https://doi.org/10.5281/zenodo.5597138.
[18] W. Jabi. TopologicPy, 2024. URL https://github.com/wassimj/topologicpy.
[19] P. N. Pizarro, N. Hitschfeld, and I. Sipiran. Large-scale multi-unit floor plan dataset for architectural plan analysis and recognition. Autom. Constr., 156:105132, 2023. doi:10.1016/j.autcon.2023.105132.
[20] C. V. Engelenburg, F. Mostafavi, E. Kuhn, Y. Jeon, M. Franzen, M. Standfest, J. V. Gemert, and S. Khademi. MSD: A Benchmark Dataset for Floor Plan Generation of Building Complexes, 2024. URL http://arxiv.org/abs/2407.10121.
[21] A. Kalervo, J. Ylioinas, M. Haikio, A. Karhu, J. Kannala, M. Felsberg, P. Forssen, I. Sintorn, and J. Unger. CubiCasa5K: A Dataset and Improved Multi-task Model for Floorplan Image Analysis. In Proc. Scand. Conf. Image Anal. (SCIA), pages 28–40, 2019.
[22] A. Dragos. U.s. average apartment size is increasing, with san francisco and new york leading the charge, 2025. URL https://www.rentcafe.com/blog/rental-market/market-snapshots/national-average-apartment-size/. Accessed: 25th July 2026.
[23] G. Chakerian. The isoperimetric quotient: Another look at an old favorite. Coll. Math. J., 22(4):313–315, 1991. doi:10.1080/07468342.1991.11973403.
[24] F. Pomponi and B. D'Amico. A compactness measure of sustainable building forms. R Soc Open Sci., 6(6):181265, 2019. doi:10.1098/rsos.181265.
[25] International Code Council. International Residential Code for One- and Two-Family Dwellings (2024). Model Building Code, 2024. URL https://codes.iccsafe.org/content/IRC2024P1. Accessed: 2026-05-04.
[26] U. S. Department of Energy. EnergyPlus, Version 23.1, 2024. URL https://energyplus.net.
[27] U. S. Census Bureau. American Community Survey 5-year estimates, 2020-2024, Table DP04: Selected Housing Characteristics. https://data.census.gov/table/ACSDP5Y2024.DP04, 2024. Accessed: 2026-04-27.
[28] B. N. Keles, C. Takva, and F. Z. Cakici. Accessibility analysis of public buildings with graph theory and the space syntax method: government houses. Asian Archit. Build. Eng, 24(1):199–213, 2025. doi:10.1080/13467581.2023.2292083.
[29] Y. Yao and A. Kumar and M. Mazzarello and F. Duarte and L. Shao and L. Song and C. Ratti. Beijing's urbanization reflected in apartment layouts: a computer vision and isovist analysis (1970–2020). Humanit. Soc. Sci. Commun., 12(1):639, 2025. doi:10.1057/s41599-025-04768-1.
[30] S. Tabata and T. Matsukawa. A Topology-Oriented and Scale-Aware Floor Plan Similarity Using Medial Axis Graphs. In eCAADe, volume 2, pages 59–68, 2026.