<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dave Samuel on Medium]]></title>
        <description><![CDATA[Stories by Dave Samuel on Medium]]></description>
        <link>https://medium.com/@davesamuel?source=rss-2a6823913c1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Dn5N6KMKykDWo1Ny.</url>
            <title>Stories by Dave Samuel on Medium</title>
            <link>https://medium.com/@davesamuel?source=rss-2a6823913c1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 14 Nov 2026 03:26:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@davesamuel/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Predicting Rich Attributes in Real Estate Images Using fastai]]></title>
            <link>https://medium.com/data-science/predicting-rich-attributes-in-real-estate-images-using-fastai-6d9ab248f359?source=rss-2a6823913c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d9ab248f359</guid>
            <category><![CDATA[fastai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[image-classification]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Dave Samuel]]></dc:creator>
            <pubDate>Tue, 05 Feb 2019 22:51:15 GMT</pubDate>
            <atom:updated>2019-04-22T05:03:03.957Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Predicting Rich Attributes in Real Estate Images Using Fastai</strong></h3><h4>by David Samuel and Naveen Kumar</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CvgoBwepbf6CdVpc" /></figure><h3>Overview</h3><p>Visual attribute search can greatly improve the user experience, and SEO for home listing and travel websites. Although Zillow, Redfin, Airbnb and TripAdvisor have some metadata already about the amenities of a property, they can expand searchable attributes by analyzing the property images with vision models.</p><p>In this post, we share our initial approach towards a few-shot model for predicting property attributes like view, kitchen island, pool, high ceilings, hardwood floors, fireplace, etc. Since these attributes are often room and context dependent, we begin with an accurate classification model to group our images into interior and exterior settings of the property.</p><p>In the process of training our initial room-type model, we notice that some of these rich attributes are easily separable in <a href="http://platform.ai/">platform.ai</a>.</p><h3>Background</h3><p>Previous work has focused on using images to improve price estimation [1] however the incremental gain of adding image features to pricing models has been minimal; 2.3% improvement over using a handful of conventional attributes like location and property size. While pricing data for building these models has been readily available, there is a scarcity of datasets for predicting rich attributes like view, kitchen island, pool, high ceilings, hardwood floors, fireplace, etc.</p><p>Our initial dataset, previously used in price estimation [1], consists of 146,791 images and seven classes: living room, dining room, bedroom, bathroom, kitchen, interior and exterior.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*hSRpI7AyC_G67Hyk" /><figcaption>Fig 1. Class count of real estate images</figcaption></figure><p>Bathroom is the most underrepresented class, with nearly half the amount of images than any other class. We addressed this class imbalance using <a href="http://fast.ai/">fastai’s</a> vision.transform method [4] to oversample the data using the default image augmentations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*d0nmARDQJ1_Hrl-1" /><figcaption>Fig 2. Example image augmentation of the classes: bathroom, dining room, kitchen, living room, bedroom, interior, and exterior.</figcaption></figure><p>The images were pre-processed using fast.ai’s built-in transforms. Data was split randomly into 60% train, 20% validation and 20% test.</p><p>The model was initialized with ImageNet-ResNet34 weights. The network’s custom head was trained for 3 epochs, followed by unfreezing the entire network and fine tuning for another 10 epochs using discriminative learning rates. Fine tuning improved the model fit, achieving an overall test set accuracy: 97%.</p><p>By increasing the network capacity to a ResNet50, 98% final accuracy was achieved — a significant improvement over the 91% accuracy of the previous results [1].</p><h4>Building a Rich Attribute Dataset</h4><p>We constructed a rich attribute dataset by crawling property listing websites. The crawler captured both images, and the attributes of interest. In total 18,790 listings were obtained along with 350,000 images.</p><h3>Feature Class Distribution</h3><p>Our web scraper captured unstructured html, and extracted the rich attributes contained in the listings’ details table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YAg2sqD7H8XVcJ08" /><figcaption>Fig 3. Example scraped listing text metadata</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/0*slhtbdPiC8Fot4mR" /><figcaption>Figure 4. Feature class distribution from crawled data</figcaption></figure><p>The final data set consists of 18,790 individual listings that each hold an average of 21 images. We have identified several features visible in the photos like pools, patios, kitchen islands, and fireplaces. Nearly half of the listings in our data set have a pool or a patio, and only about 25 listings have wine cellars. Furthermore, the appearance of the attribute can be seen in different spaces; modern wine cellars tend to be above ground.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/0*TsGI5MeMlPgHjD9y" /><figcaption>Fig 5a. Example feature from listings dataset: wine cellar</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*W-xgeVYonUZwVA9AQiJQuQ.jpeg" /><figcaption>Fig 5b. Example feature from listings dataset: wine cellar</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*1Rw-IF6WsJdBGhBKpUKHZQ.jpeg" /><figcaption>Fig 5c. Example feature from listings dataset: wine cellar</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/0*256Fj2-dwJPYfLnI" /><figcaption>Fig 5d. Example feature from listings dataset: wine cellar</figcaption></figure><h3>Projections</h3><p>We uploaded our model, and a sample of 20,000 images from our dataset to <a href="http://platform.ai/">platform.ai</a> in order to compare its performance against the pre-built ImageNet model. Our model forms neat clusters, easily separable by eye, of similar attributes of interest like fireplaces, pools, and kitchen islands. In comparison, ImageNet tends to form wider clusters with dissimilar attributes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lTO-SPEwRzf6Oxly" /><figcaption>Fig 6. Pictured: Our Model’s Projection</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EaGOn0qGJu6C8USZ" /><figcaption>Fig 7. Pictured: ImageNet Projection</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BKpAeCPT8saNoZEN" /><figcaption>Fig 8. Zoomed in projections show a fireplace cluster.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Zjz47rIT11VyZE6z" /><figcaption>Fig 9. Zoomed in projections show a kitchen islands cluster.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_zsbfHhlLF_OluN4" /><figcaption>Fig 10. Zoomed in Projections, and selected images from our model show an outdoor swimming pool cluster.</figcaption></figure><p>Using the projections as visual aids, clusters of interest were highlighted, and selectively filtered using platform.ai. The zoomed in views of our model projection show three rich features which we have identified through our model: fireplace, kitchen island, and pool. When compared with ImageNet, we can see more numerous clusters bound closely to rich attributes vs. labeled room class features.</p><h3>Cluster Analysis</h3><p>After downloading our projections, we were able to evaluate a clustering solution comparing our model’s silhouette score against ImageNet. The results show that our silhouette score is significantly greater than ImageNet per t-test results on k=5 K-means clusters Silhouette score. Thus, our model produces similar clusters more consistently than ImageNet-ResNet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/0*bWDBz9ROFAZshkLM" /><figcaption>Fig 9. Similarity “Silhouette” scores for k=5 K-Means clusters.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/0*8pItJX-AN_Ho58WJ" /><figcaption>Table I. Silhouette Score summary statistics</figcaption></figure><h3>Conclusion</h3><p>Applying modern machine learning practices, we have developed a computer vision model that not only predicts room classes, but also the deeper attributes present in the homes that we live in. It performed better than ImageNet by clustering our nested attributes closer together, allowing visually separable groups to be extracted and labeled. Development of an accurate attribute search model could be implemented as an essential search tool in finding the right home or rental.</p><p>We plan on developing our model further using the limited labeled data from our dataset, and a Relation Network (RN) [2] to classify multiple attributes in images.</p><h4>Acknowledgements</h4><p>We’d like to thank Arshak Navruzyan for his mentor support and guidance during this project. We would also like to thank fastai team for a convenient deep learning library.</p><h4>References</h4><ol><li>Poursaeed, Omid et al. <a href="https://omidpoursaeed.github.io/publication/vision-based-real-estate-price-estimation/">Vision-based real estate price estimation</a>. Machine Vision and Applications 29 (2018): 667–676.</li><li>Santoro, Adam et al. <a href="https://arxiv.org/abs/1706.01427">A simple neural network module for relational reasoning</a>. NIPS (2017).</li><li>He, Kaiming et al. <a href="https://arxiv.org/abs/1512.03385">Deep Residual Learning for Image Recognition</a>. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (2016): 770–778.</li><li>Howard, Jeremy, et al. <a href="https://docs.fast.ai/">fastai</a> library. 2019.</li><li>Clarke, Adrian, et al. <a href="https://platform.ai/blog/page/1/optimizing-hyperparams-for-image-datasets-in-fastai/">Optimizing hyperparams for image datasets in fastai</a>. 2019</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d9ab248f359" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/predicting-rich-attributes-in-real-estate-images-using-fastai-6d9ab248f359">Predicting Rich Attributes in Real Estate Images Using fastai</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I made this icon using Google Drawings one night at 3:00 am looking for some cool content for my…]]></title>
            <link>https://medium.com/@davesamuel/i-made-this-icon-using-google-drawings-one-night-at-3-00-am-looking-for-some-cool-content-for-my-1b64364df8da?source=rss-2a6823913c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b64364df8da</guid>
            <category><![CDATA[music]]></category>
            <category><![CDATA[drawing]]></category>
            <dc:creator><![CDATA[Dave Samuel]]></dc:creator>
            <pubDate>Sun, 31 Dec 2017 04:06:45 GMT</pubDate>
            <atom:updated>2017-12-31T04:06:45.501Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*kQBA-zUyMhzSohyKRpcwjg.png" /><figcaption>My new icon — made with Google Drawings</figcaption></figure><p>I made this icon using <a href="https://docs.google.com/drawings/">Google Drawings</a> one night at 3:00 am looking for some cool content for my site. It is damn near impossible to get a good free drawing program in a browser; or design anything really cool without Adobe software. I hope with web browser advancements everyone in the world will have access to all the creative tools they need for free in the future</p><p>The creativity required to produce anything cool with Google Drawings is actually substantially nothing at all. Just create some shapes, and play with a few parameters and you’ve got something unique on your hands that can be downloaded as an SVG drawing or standard JPG/PNG.</p><p>This strange, eyeball-like design was conceived shortly after returning from a surreal music experience with Random Rab and Desert Dwellers, whose Spotify radio station chose the following:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fopen.spotify.com%2Fembed%2Ftrack%2F2PWfIEN2U4DdN5V4CnQ78N&amp;url=https%3A%2F%2Fopen.spotify.com%2Ftrack%2F2PWfIEN2U4DdN5V4CnQ78N&amp;image=https%3A%2F%2Fi.scdn.co%2Fimage%2F627bfdd36ab9d3496f5dde80782f9952ce8071e7&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=spotify" width="300" height="380" frameborder="0" scrolling="no"><a href="https://medium.com/media/14ed65749fcf67a4dcfb62e479a0c73f/href">https://medium.com/media/14ed65749fcf67a4dcfb62e479a0c73f/href</a></iframe><p>Thanks for tuning in to this post.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FAOgXnX8zeAQ%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DAOgXnX8zeAQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FAOgXnX8zeAQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/54c847cca962bc585bb677f35a8aa327/href">https://medium.com/media/54c847cca962bc585bb677f35a8aa327/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b64364df8da" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>