{"id":1811,"date":"2024-04-16T14:40:03","date_gmt":"2024-04-16T12:40:03","guid":{"rendered":"https:\/\/dah001.staging.360vier.net\/sucess-stories\/deduplizierungsmodell\/"},"modified":"2024-05-07T10:08:36","modified_gmt":"2024-05-07T08:08:36","slug":"deduplication-model","status":"publish","type":"sucess-stories","link":"https:\/\/www.datahouse.ch\/en\/sucess-stories\/deduplication-model\/","title":{"rendered":"Deduplication model"},"content":{"rendered":"\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-columns alignfull is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:15.5%\"><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<p class=\"wp-block-paragraph\">For our parent company\u00a0<a href=\"https:\/\/www.wuestpartner.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">W\u00fcest Partner<\/a>\u00a0we imple\u00admented an appli\u00adcation to deduplicate 60 million real estate ads from Germany and Switz\u00aderland using a multi-step naive bayes record linkage model.<\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns alignfull is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:15.5%\"><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<p class=\"has-h-2-font-size wp-block-paragraph\"><strong>Initial position<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Real estate platforms publish millions of rental flat and condo\u00adminium ads yearly. A given region or country of interest is normally covered by various competing platforms, leading to multiple published ads for a single real world object.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Because quantifying and modelling the real estate market requires unbiased input data, our aim was to deduplicate real estate ads using Naive Bayes record linkage.<\/p>\n\n\n\n<div style=\"height:43px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-h-2-font-size wp-block-paragraph\"><strong>Approach<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We used commer\u00adcially available German and Swiss real estate ad data from 2012 to 2019 consisting of appro\u00adxi\u00admately 60 million individual records. After multiple data cleaning and prepa\u00adration steps we employed a Naive Bayes weighting of 12-14 variables to calculate similarity scores between ads and determined a linkage threshold based on expert judgment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The dedupli\u00adcation pipeline consisted of three steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Linking ads based on identity comparisons<\/li>\n\n\n\n<li>Linking similar ads within small regional areas (municipalities)<\/li>\n\n\n\n<li>Linking similar ads within large regional areas (cantons, states)<\/li>\n<\/ol>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns alignfull is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:15.5%\"><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<div style=\"height:38px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-h-2-font-size wp-block-paragraph\"><strong>Setup<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The pipeline was deployed as a contai\u00adnerized setup with in-memory calcu\u00adlations in R and out-of-memory calcu\u00adlations and data storage in PostgreSQL. Dedupli\u00adcation linked the around 60 million ads to around 14 million object groups (Germany: 10 millions, Switz\u00aderland: 4 millions). The distri\u00adbution of similarity scores showed high separation power and the resulting object groups displayed high homogeneity in geographic location and price distri\u00adbution. Furthermore, yearly results corre\u00adsponded well with published relocation rates.<\/p>\n\n\n\n<div style=\"height:43px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-h-2-font-size wp-block-paragraph\"><strong>Findings<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using Naive Bayes record linkage to deduplicate real estate ads resulted in a sensible grouping of ads into object groups (rental flats, condo\u00adminiums). We were able to combine simila\u00adrities across different variables into a single similarity score. An advantage of the Naive Bayes approach is the high inter\u00adpre\u00adta\u00adbility of the influence of individual variables. However, by manually deter\u00admining the linkage threshold our results are heavily influenced by possible expert biases. The contai\u00adnerized R and PostgreSQL setup proved it\u2019s porta\u00adbility and scaling capabi\u00adlities. The same approach could easily be trans\u00adferred to other domains requiring dedupli\u00adcation of multi\u00advariate data sets.<\/p>\n\n\n\n<div style=\"height:43px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-h-2-font-size wp-block-paragraph\"><strong>Find out more<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Are you facing similar challenges or do you have a similar project where you need help? Then please do not hesitate to contact our Data Scientist\u00a0<a href=\"https:\/\/www.datahouse.ch\/en\/about-us\/\">Thomas Maier<\/a>.<\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns alignfull is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\"><div class=\"grid__wrapper\">\n        <div data-component=\"PostGridBlock\" data-props=\"{&quot;query&quot;:{&quot;postType&quot;:&quot;sucess-stories&quot;,&quot;itemsPerPage&quot;:&quot;3&quot;,&quot;orderBy&quot;:&quot;date&quot;,&quot;order&quot;:&quot;desc&quot;,&quot;postTypeRest&quot;:&quot;sucess-stories&quot;,&quot;taxQuery&quot;:[]},&quot;title&quot;:&quot;Similar success stories&quot;,&quot;selectPosts&quot;:true,&quot;postsData&quot;:[1602,1622,1615],&quot;align&quot;:&quot;none&quot;,&quot;displayType&quot;:&quot;grid&quot;,&quot;displayInfo&quot;:&quot;tags&quot;,&quot;gridColumns&quot;:3,&quot;navigation&quot;:{&quot;type&quot;:&quot;none&quot;}}\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Dedupli\u00adcating real estate ads using Naive Bayes record linkage<\/p>\n","protected":false},"author":13,"featured_media":1810,"template":"","sucess-stories-category":[60,61,66,63],"class_list":["post-1811","sucess-stories","type-sucess-stories","status-publish","has-post-thumbnail","hentry","sucess-stories-category-data-science-en","sucess-stories-category-diverse-en","sucess-stories-category-finance-en","sucess-stories-category-real-estate"],"acf":[],"image":{"url":"https:\/\/www.datahouse.ch\/wp-content\/uploads\/refcase_DH-Deduplizierungsmodell.webp"},"_links":{"self":[{"href":"https:\/\/www.datahouse.ch\/en\/wp-json\/wp\/v2\/sucess-stories\/1811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datahouse.ch\/en\/wp-json\/wp\/v2\/sucess-stories"}],"about":[{"href":"https:\/\/www.datahouse.ch\/en\/wp-json\/wp\/v2\/types\/sucess-stories"}],"author":[{"embeddable":true,"href":"https:\/\/www.datahouse.ch\/en\/wp-json\/wp\/v2\/users\/13"}],"version-history":[{"count":2,"href":"https:\/\/www.datahouse.ch\/en\/wp-json\/wp\/v2\/sucess-stories\/1811\/revisions"}],"predecessor-version":[{"id":1872,"href":"https:\/\/www.datahouse.ch\/en\/wp-json\/wp\/v2\/sucess-stories\/1811\/revisions\/1872"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.datahouse.ch\/en\/wp-json\/wp\/v2\/media\/1810"}],"wp:attachment":[{"href":"https:\/\/www.datahouse.ch\/en\/wp-json\/wp\/v2\/media?parent=1811"}],"wp:term":[{"taxonomy":"sucess-stories-category","embeddable":true,"href":"https:\/\/www.datahouse.ch\/en\/wp-json\/wp\/v2\/sucess-stories-category?post=1811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}