Structured Data Extraction from Real Estate Documents using Clustering, Classification, and Large Language Models
This paper presents an end-to-end pipeline that successfully extracts structured property metadata from 2,781 heterogeneous real estate questionnaire documents by first classifying their structural types and then using the DeepSeek R1 large language model to generate high-quality JSON data, which was validated through consistency scoring and market segmentation clustering.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are looking to buy a house. You visit a real estate website and see a nice photo, the price, and how many bedrooms it has. That's the "easy data"—it's like the clean, printed label on a cereal box.
But hidden inside that listing is a much more detailed, messy document called a "property questionnaire." This is like the fine print on the back of the box, but instead of being printed neatly, it's a mix of typed forms, handwritten notes, scanned photocopies, and documents with weird checkmarks. This document holds the real secrets: Is there asbestos? Who supplies the gas? Are there legal disputes?
The Problem:
Currently, computers are terrible at reading these messy documents. They can easily read the clean "cereal box" data, but when they try to read the "fine print" PDFs, they get confused. Some are typed, some are blurry scans, and some have strange symbols that break standard reading tools. Because of this, this rich information is ignored and sits in a digital trash heap.
The Solution (The "Smart Pipeline"):
The authors of this paper built a robot assembly line to fix this. They tested it on nearly 4,000 house listings from a real estate platform in Aberdeen, Scotland. Here is how their machine works, step-by-step:
1. The Sorting Hat (Classification)
First, the robot looks at every PDF document and sorts it into one of three piles:
- The "Typewriter" Pile: Clean, digital text that a computer can read easily.
- The "Photocopy" Pile: Scanned images of paper forms. The computer can't read the text yet because it's just a picture.
- The "Weird Symbols" Pile: Documents with checkboxes or strange marks that confuse standard readers.
The Result: The robot successfully sorted the documents. It kept the "Typewriter" pile (about 70% of them) for the next step and set the other two piles aside for now.
2. The Super-Reader (LLM Extraction)
For the "Typewriter" pile, the robot didn't use a boring rulebook (like "if you see the word 'gas', write 'gas'"). Instead, it used a Large Language Model (LLM) called DeepSeek R1. Think of this AI as a super-smart, tireless librarian who can read any language or style.
The researchers gave the AI a specific instruction: "Read this messy document, find 35 specific facts about the house (like heating type or legal status), and write them down in a neat, organized list (JSON format)."
The Magic: Even though the sellers wrote things differently (some said "gas central heating," others said "GCH," others "mains gas"), the AI understood they all meant the same thing and wrote them down consistently. It did this for 2,781 documents with a 100% success rate.
3. The Quality Check (Validation)
Now, the team had a giant database of house facts. But was the AI making things up? To check, they ran three tests:
- The "Twin Test" (Similarity): They asked the computer, "Which houses are most similar to this one?" They used three different math methods to find the answers. The results matched up very well (82% consistency). This proved the AI wasn't just guessing randomly; it understood the actual relationships between the houses.
- The "Grouping Test" (Clustering): They asked the computer to group the houses into natural categories without telling it what to look for. The computer naturally split them into "Affordable/Smaller" houses and "Premium/Larger" houses. This showed the data was meaningful and reflected real-world differences.
- The "Ranking Test": They asked the computer to rank houses based on different priorities (e.g., "cheapest" vs. "most amenities"). The rankings were different and logical, proving the data had enough detail to support complex decisions.
The Bottom Line
The paper proves that you can build a system that automatically reads thousands of messy, real-world real estate documents and turns them into clean, usable data.
What they didn't do (yet):
- They didn't try to read the "Photocopy" or "Weird Symbols" piles yet (about 30% of the documents). They left those for future work.
- They didn't test this on other types of documents like medical records or legal contracts, though they suggest their system could work there.
- They didn't ask human buyers if they liked the results; they only checked if the computer math worked.
In short, they built a machine that can turn a chaotic pile of paper forms into a neat, organized spreadsheet, making hidden house details visible for the first time.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.