Abstract background

Woonin improves rent calculation with AI and computer vision

Housing corporation Woonin faced an enormous challenge: under a new rent act, rents must be based on the exact square metres of outdoor spaces such as balconies and roof terraces. That required a fast and accurate inventory of 35,000 homes. An AI solution with computer vision offered the way out.

Key takeaways

  • Under the new act every square metre of outdoor space yields roughly two euros of extra rent per month, so exact measurements matter.
  • Checking 35,000 homes by hand was not an option, and floor plans were often outdated, incomplete or inconsistent.
  • The solution has four steps: PDF to image, text recognition with OCR, pixel analysis with computer vision and cloud computing for speed.
  • A virtual machine with 60 cores and 240 GB of RAM processed all floor plans in an hour instead of 30 hours.
  • The problem was solved with straightforward data science, without the generative AI hype.

The problem: from complex floor plans to exact data

Woonin is a housing corporation committed to affordable housing for the most vulnerable in society. The new rent act that came into force in July was a drastic change from the old points system, which worked with rough categories based on surface area. “We did not know exactly which homes had balconies, let alone how large they were,” says Mark Rossen, IT adviser at Woonin. “Checking 35,000 homes by hand was simply not an option.” Floor plans often contained incomplete or confusing information. Terms such as balcony, roof terrace and loggia were not used consistently, and dimensions were sometimes missing altogether.

The time pressure was enormous. “The act was only announced four days before it came into force, so we had no time to lose. This was not only a technical challenge but also a moral responsibility. Woonin makes no profit, and we want to be sure that tenants do not wrongly pay too much.” Woonin called in Diamond Decisions and experienced data scientist Longhow Lam.

The approach: a process in four steps

  1. PDF to image. Floor plans were converted with Python from PDF into images (PNG files), so that they were suitable for further analysis.
  2. Text recognition with OCR. With optical character recognition (Tesseract OCR), words such as balcony or loggia were identified.
  3. Pixel analysis with computer vision. The OpenCV package was used to recognize the contours of balconies and count the corresponding pixels. This pixel data was converted into square metres by comparison with a reference room, such as the bedroom.
  4. Cloud computing for speed. A virtual machine in the cloud with 60 cores and 240 GB of RAM was spun up temporarily. “What would normally take 30 hours to process all floor plans, we could now do in an hour through the power of parallel computing,” says Lam.

Flexibility proved essential. When the kitchen turned out not to work as a reference room because of confusing lines for worktops, the bedroom was used instead. “Such quick adjustments made a world of difference,” says Rossen. The approach was refined in three iterations: first a pilot on 500 homes, then processing the feedback to increase accuracy further, and finally the analysis of the full data set of 35,000 homes.

Manual inventory versus the AI approach

Why checking by hand was not an option.

Manual

AI approach

Scale

35,000 homes, one by one

All floor plans in one run

Lead time

Weeks of work

An hour of computing time

Measuring

Reading and estimating

Counting pixels against a reference

Poor floor plans

Slow, error-prone

Small share to manual check

Reuse

None

Technique applicable to other documents

Results: time saved and reliability

We now have a data quality that is reliable enough to apply the new rent act correctly.

“This solution literally saved us weeks of work,” says Rossen. Although a small percentage of floor plans could not be processed completely because of poor quality, combining the results of artificial intelligence with Woonin’s own data set offered a robust solution. Manual checks were carried out where necessary, but this concerned only a relatively small percentage of the homes. Lam emphasizes: “With straightforward data science, without the generative AI hype, we solved this problem effectively.” Woonin was also surprised by the speed of the cloud environment. “I did not know you could scale up capacity so quickly. Opening up that world really inspired me.”

A success story with a future

The housing corporation is now inspired to gain more knowledge of data analysis and technology and to embrace data-driven working further. “We want to learn how to apply these techniques more broadly, for example to navigate through our database of millions of documents,” says Rossen. Lam sums up the project: “With the right tools and a practical approach you can solve complex problems. Data science is not about the hype, but about what works.” Woonin now has the data quality in order for its rent calculations.

How Diamond Decisions applies AI

The case shows the Diamond Decisions way: start with the decision (which rent is correct?), not with the technology. In business modeling we determine which data the decision requires, in data analytics we choose the simplest technique that works and refine it in short iterations, and decision makers keep control through checks where the model is unsure.

Conclusion

The project shows how technology and human expertise together have a positive impact: proven techniques such as OCR and computer vision, scaled up in the cloud and combined with manual checks, turned an impossible manual job into reliable data within a very short time, to the benefit of tenants and the corporation.

Talk to the author

Daan van BeekDaan van Beek
Diamond Decisions

Discuss your question with Daan

Tell us which challenge in this story you recognize. In a no-obligation conversation we translate the lessons to your organization.

Schedule an introduction →

Diamond Decisions

Our approach in 4 steps

From inspiration and business model to data analysis and better decisions: this is how we approach it for you too.

Explore our approach →

Frequently asked questions

01

How did Woonin measure the outdoor space of 35,000 homes?

By converting floor plans from PDF to images, recognizing words such as balcony with OCR, recognizing the contours with computer vision and converting the counted pixels into square metres by comparison with a reference room such as the bedroom.

02

What is computer vision?

A field within artificial intelligence in which software interprets images, for example by recognizing shapes and contours. In this case it recognized the outline of balconies on floor plans and counted the pixels within it.

03

What is the difference between this approach and generative AI?

Generative AI produces new text or images. This approach uses established, verifiable techniques: text recognition, contour detection and calculation. For measuring surfaces, such straightforward data science is more reliable and easier to check.

04

Can a smaller organization use this kind of solution?

Yes. The software used is open source, and cloud capacity is rented only for the hours needed. The approach suits any organization with many similar documents, such as drawings, invoices or forms, from which data must be extracted.

Further reading

About the author

Daan van Beek

Daan van Beek

Daan co-founded Diamond Decisions and leads its further growth. He helps organisations translate strategy into day-to-day practice through a human-centred approach to data-driven working, and learns something new in every sector he works in.

About Diamond Decisions

Diamond Decisions helps organizations become better by enabling better decisions. We don’t start with data, dashboards or AI, but with the decision that needs to improve, and work back from there to KPIs, data and technology. We do that in four steps: inspiration and alignment, business modeling, analytics and data platform and data-driven decision makers. That way BI and AI don’t remain an IT project, but deliver value every day.

Schrijf je in voor de Masterclass