<?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 Mert Surucuoglu on Medium]]></title>
        <description><![CDATA[Stories by Mert Surucuoglu on Medium]]></description>
        <link>https://medium.com/@mertsurucu?source=rss-fdf2a9721855------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*1L-j8aqWzmL1fFD5.</url>
            <title>Stories by Mert Surucuoglu on Medium</title>
            <link>https://medium.com/@mertsurucu?source=rss-fdf2a9721855------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 09:47:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mertsurucu/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[Analyses Of GPT-3 Paper]]></title>
            <link>https://medium.com/@mertsurucu/analyses-of-gpt-3-paper-a9e478c3d7e7?source=rss-fdf2a9721855------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9e478c3d7e7</guid>
            <category><![CDATA[few-shot-learning]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[gpt-3]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Mert Surucuoglu]]></dc:creator>
            <pubDate>Mon, 14 Mar 2022 11:40:10 GMT</pubDate>
            <atom:updated>2022-12-10T14:13:52.708Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I will explain the GPT-3 paper called “Language Models are Few-Shot Learners.” You can access the full paper through <a href="https://arxiv.org/pdf/2005.14165.pdf">this link</a>. We’ll skip a lot of information because the document is 40 pages long without the appendix; it requires its own table of contents, which is insane. GPT-3 was immensely popular when it originally came out. Even those who were uninterested in the subject were aware of it. So, what exactly is GPT-3, and why is everyone talking about it? Let’s take a closer look.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nSlaJXEyFhdwBr6V" /></figure><h4>Why is this popular?</h4><p>OpenAI team has created the world’s largest model, which cost $14 million to train. This time, OpenAI has also provided an API for accessing the model, enabling developers to build applications based on it. The majority of individuals were impressed with GPT-3’s cool applications. This language model is an order of magnitude larger than any other language model ever created, and it can accomplish some truly incredible things. On <a href="https://gpt3demo.com/">this website</a> you can reach the applications of GPT-3.</p><p><strong>What is GPT-3?</strong></p><p>It’s essentially a massive model that is trained on a huge data corpus that generates human-like text. And <a href="https://arxiv.org/pdf/2005.14165.pdf">this paper</a> is basically an investigation into what you can do with giant language models. They demonstrate that scaling up improves task-agnostic performance and can even outperform state-of-the-art task-specific fine-tuned models in some cases.</p><p>GPT-3 isn’t something that appeared out of nowhere. It builds upon the foundation established by its predecessors, GPT-1 and GPT-2, which were released earlier. The foundation for GPT-3 was created by these two previous generations. GPT stands for Generative Pre-trained Transformer.</p><p>In early 2019, a learning-based method for performing standard natural language processing tasks, such as answering questions, finishing text, reading comprehension, summarization, and more, was released. GPT-2 is the name given to a method created by OpenAI scientists. The goal was to be able to complete the task with the least amount of supervision necessary.</p><p>GPT-3 demonstrates the validity of two essential hypotheses: transformers+unsupervised pre-training (GPT-1) and language models multitasking abilities (GPT-2).</p><p><strong>Size Comparison</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*owP2AFUVFkSvtPzc" /></figure><p>GPT-3 is trained on a variety of sizes, but the most important is, of course, the largest. The largest GPT-3 has over 500 times the number of parameters as the largest BERT. To estimate the influence of model size, they trained on 8 distinct sizes. This is on a log scale, so it’s a lot bigger and took a lot longer to train. The scale of these models can be seen right here. The previous greatest language model, Microsoft’s Turing NLG, had around 17 billion parameters, making it comparable to GPT-3 13B. And the previous GPT, GPT-2, contained 1.5 billion parameters, making it comparable to the GPT-3 XL. And GPT-2 (1.5B parameters) is 100 times smaller than GPT-3.</p><p><strong>How does it work?</strong></p><p>We’ll go over the architecture, the model’s functionality, and the experimental results. The GPT-3 few-shot model was used for all tasks in the paper with no fine-tuning. On some NLP tasks, it outperforms state-of-the-art models. It does, however, have methodological difficulties in this area.</p><p><strong>Model And Architecture</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*54BeDVdiF2HK6z_y" /></figure><p>GPT-3 is a transformer model in terms of architecture. The model uses a self-attention mechanism to weight the importance of each portion of the incoming data differently. It examines where to focus attention in order to predict the following word.</p><p>The bulk of the models are built in the same way as the original BERT and GPT transformers. Encoder-only, decoder-only, and both architectures are the three types of architectures. GPT’s architecture is based solely on decoders. Decoders are configured to create sequences in an auto-regressive fashion, where the previous generated word is utilized as input to generate the next. They employ the same model and architecture as GPT-2; the only difference is that they have more layers, larger layers, and more data to train on.</p><h4>DATASET</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*87lI82VY8OINfFrP" /></figure><p>The dataset has grown significantly. GPT-2 was trained on 40GB of text data. GPT-3 uses 570GB of filtered data from CommonCrawl, which they filter down for quality and this data is basically a crawl of the entire Internet since 2011. Together with these book datasets, the WebText2 dataset, and the Wikipedia data set, they then train a language model. There are around 500 billion BPE tokens in all.</p><p><strong>Different Task-Specific Approaches</strong></p><p>There are 4 different settings for learning within the context:</p><p><strong>Fine-Tuning (FT) (not used for GPT-3)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/0*w2D8eZL9__bGUrqi" /></figure><ul><li>It trains on thousands of supervised labels specific to the desired task to update the weights of a pre-trained model.</li><li>The main advantage of fine-tuning is strong performance on many benchmarks.</li><li>The main drawbacks are the requirement for a new large dataset for each task.</li><li>The possibility of poor out-of-distribution generalization and the possibility of exploiting spurious features of the training data.</li></ul><p><strong>Few-Shot (FS)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/0*wnDhw5_6J5Ha3M-r" /></figure><ul><li>The model is given a few demonstrations of the task at inference time as conditioning, but no weights are updated.</li><li>We have a description of the task and K number of examples from the context and the prompt.</li><li>The main advantage of few-shot is that it significantly reduces the need for task-specific data. In addition, some task-specific data is still required.</li><li>The main disadvantage is that for now, the results of this method have been significantly worse than those of state-of-the-art fine-tuned models.</li></ul><p><strong>One-Shot (1S)</strong></p><p>It is totally the same, but with K=1 means that we only give description and 1 example of the task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/0*m_xceU5kCPUOUWml" /></figure><p><strong>Zero-Shot (0S)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/0*ZZTMcg0ThMvgPVBB" /></figure><p>It is totally the same but with a natural language description of the task instead of any examples. Because you must describe the “task” you want the model to execute through them, creating these few-shot instances might be tough. Models, especially smaller ones, are quite sensitive to how examples are constructed, which is a typical problem.</p><h3>RESULT</h3><p><strong>Power-Law Trend</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_nXO6FPQ7pjIAKbI" /></figure><p>We basically know you have to scale up model size, compute time, and dataset size in the same fashion for them to make these gains. If you do that, it follows a power law trend. The power-law behavior is consistent over two additional orders of magnitude, with only minor deviations from the predicted curve.<em> </em>It becomes better as we scale more, but the unknown question is: how long will it last?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/0*HUk4ZM9THke_kUhL" /></figure><p>This graph depicts the overall outcomes of few-shot, one-shot, and zero-shot in eight different parameter sizes. While zero-shot performance improves steadily with model size, few-shot performance increases more rapidly, demonstrating that larger models with more examples given(few-shot) are more proficient at in-context learning.</p><p><strong>Experiments on Different Tasks</strong></p><p>Experiments have been done on different tasks, and as we said, nothing was shown before to GPT-3 about these tasks during the training. In the paper they evaluate these 8 different models(175 billion parameter GPT-3 and other smaller models)<em> </em>on wide range of dataset</p><p><strong>Question Answering Task</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vk1BZ3S7P3gykvfB" /></figure><p>Question-Answering was one of the tasks. As a language model, the model is simply to provide either the results directly or to choose the most likely answer from a set of options. We do this in a closed-book format, which means you don’t have access to Wikipedia or anything else, and you’re just interested in learning what the model has learned about the world through consuming massive volumes of text. So, if we know the answer to a question like &quot;Who received the Nobel Prize in 2009?”, we can find it somewhere in the training data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ow-nL7xI-u9Tvnn2" /></figure><p>And it performs surprisingly well on the TriviaQA dataset, as you can see here, so it manages to outperform this open domain, fine-tuned, state-of-the-art model that is fine-tuned for question answering, and GPT-3 simply outperforms it without any extra fine tuning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bOYKBbmniPxjTLDG" /></figure><p>However, when compared to this wide domain approach, it underperforms when it comes to natural questions. And, similar to our Google search queries, you look for the solution on connected pages for these natural questions. On Wikipedia, this necessitates a high level of fine-grained knowledge.</p><p><strong>Translation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PNlgrmMNLegDiEQ2" /></figure><p>So, as previously stated, they merely input the task and a few samples, after which we issue the prompt and receive the outcome.<br>BLEU is a metric that indicates how strong a translation is. It is understandable and a decent translation if it is greater than 30. When the number of words is greater than 60, the quality of the translation is often superior to that of a human.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nL_S3SvN75LOSprQ" /></figure><p>You can see that as the model’s parameters are increased, the performance generally improves, and you can also see that the performance is fairly decent every time this model switches to English.<br>If the target language is English, which makes sense given that English makes up a substantial portion of the corpus they trained on. If it is required to create English, it will perform admirably. As we can see, there isn’t much variation in the way English is produced. When you travel to different languages, though, it is important to know which one you are in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yEy4fe8LlzR8y3je" /></figure><p>GPT-3 surpasses these state-of-the-art <strong>supervised</strong> algorithms as well as other settings on occasion.</p><p>These methods are unsupervised, which means they don’t have a supervised training data set that goes from English to French, for example, but they are created with the idea of translating in mind. As a result, they are task-specific.</p><p>GPT-3 doesn’t have a supervised training set in this space, so it just learns anything handed to it. Finally, simply because it has seen several websites where both languages are present, it can now translate quite well.</p><p><strong>SuperGLUE Benchmark</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sQbn50WwXks0UKgp" /></figure><p>SuperGLUE is a benchmark that consists of several tasks. It is evaluating general-purpose NLP models using a variety of language comprehension tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W1cxBJdADlaoSZo-" /></figure><p>In this superglue NLP benchmark, it doesn’t outperform a fine-tuned state-of-the-art model on these tasks, but it does marginally outperform a fine-tuned Bert Large model, and the BERT model is fine-tuned on these tasks, whilst GPT-3 isn’t.</p><p>GPT-3 is not doing well on the tasks that are more involved in reasoning, such as BOOLQ and CB. On the other hand, in COPA tasks, it almost performs as well as state-of-the-art models.</p><p><strong>COPA Task</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T9zX0u6rqUmtsYJn" /></figure><p>The COPA task determines which of these two events is more likely to occur, and it will, of course, choose the one that occurs more frequently.</p><p><strong>Other Results Directly From Paper</strong></p><ul><li><strong>Language Modeling</strong>: <em>”Our largest model sets a new SOTA on PTB by a substantial margin of 15 points, achieving a perplexity of 20.50”</em></li><li><strong>LAMBADA </strong>(tests the modeling of long-range dependencies in text): <em>”in a zero-shot setting GPT-3 achieves 76% on LAMBADA, a gain of 8% over the previous state of the art”</em></li><li><strong>StoryCloze </strong>(involves selecting the correct ending sentence for five-sentence long stories): <em>“GPT-3 achieves 83.2% in the zero-shot setting and 87.7% in the few-shot setting (with K = 70). This is still 4.1% lower than the fine-tuned SOTA using a BERT based model but improves over previous zero-shot results by roughly 10%.”</em></li><li><strong>Winograd-Style Tasks</strong>: <em>“On Winograd GPT-3 achieves 88.3%, 89.7%, and 88.6% in the zero-shot, one-shot, and few-shot settings, showing no clear in-context learning but in all cases achieving strong results just a few points below state-of-the-art and estimated human performance.”</em></li><li><strong>Common Sense Reasoning</strong>: <em>”PhysicalQA (PIQA), asks common sense questions about how the physical world works and is intended as a probe of grounded understanding of the world. GPT-3 achieves 81.0% accuracy zero-shot, 80.5% accuracy one-shot, and 82.8% accuracy few-shot (the last measured on PIQA’s test server). This compares favorably to the 79.4% accuracy prior state-of-the-art of a fine-tuned RoBERTa.”</em></li><li><strong>Reading Comprehension</strong>: <em>“We observe a wide spread in GPT-3’s performance across these datasets suggestive of varying capability with different answer formats. In general we observe GPT-3 is on par with initial baselines and early results trained using contextual representations on each respective dataset.”</em></li><li><strong>NLI</strong>: <em>“These results on both RTE and ANLI suggest that NLI is still a very difficult task for language models and they are only just beginning to show signs of progress.”</em></li><li><strong>Synthetic and Qualitative Tasks</strong>: <em>reasonable proficiency at moderately complex arithmetic tasks (addition/subtraction), both proficiency and failure on some “character manipulation” tasks (solving these tasks requires character-level manipulations, whereas GPT-3’s BPE encoding operates on significant fractions of a word).</em></li><li><strong>SAT Analogies</strong>: <em>“GPT-3 achieves 65.2% in the few-shot setting, 59.1% in the one-shot setting, and 53.7% in the zero-shot setting, </em><strong><em>whereas the average score among college applicants was 57%</em></strong><em> (random guessing yields 20%)”.</em></li></ul><p><strong>Limitations</strong></p><ul><li>GPT-3 takes a step towards test-time sample efficiency closer to that of humans (one-shot or zero-shot) but still sees much more pre-training data than a human sees in their lifetime.</li><li>It is not clear whether it learns new tasks “from scratch” at inference time, or if it simply recognizes and identifies tasks that it has learned during training.</li><li>Understanding precisely how models learn is an important unexplored direction for future research.</li><li>On text synthesis, GPT-3 samples still sometimes repeat themselves semantically at the document level, start to lose coherence over sufficiently long passages</li><li>Not Bidirectional, fails on tasks that involve looking back and comparing two pieces of content (fill-in-the-blank tasks)</li><li>Weights every token equally and lacks a notion of what is most important to predict and what is less important.</li><li>GPT-3’s size makes it challenging to deploy.</li></ul><h3>Broader Impacts</h3><p>Like everything, GPT-3 has some pitfalls. Since we do not know what the model learned elaborately. This potential should be closely considered as well. In the paper, they mentioned many of them.</p><p><strong>Misuse of Language Models</strong></p><p>Misuse of the language is hard to predict. They often involve repurposing language models in a very different environment or for a different purpose than researchers intended. It continues its examination into <a href="https://openai.com/blog/preparing-for-malicious-uses-of-ai/">AI’s Malicious Uses</a>.</p><p><strong>Fairness, Bias, and Representation</strong></p><p>Bias present in training data may lead models to generate stereotyped or prejudiced content. They focus on biases relating to gender, race, and religion. Many other categories of bias are likely to be present and could be studied in follow-up work. Analysis indicates that internet-trained models have internet-scale biases.</p><p><strong>Energy Usage</strong></p><p>Carbon footprint for ‘training GPT-3’ is huge. They estimated that teaching the model in a Microsoft data center using Nvidia GPUs would require approximately 190,000 kWh. We have seen that bigger network the network we get better performance but what is the cost of this the planet? Training a GPT-3 just once requires the same amount of energy as 126 Danish homes use in a year, or driving to the Moon and back.(770,000km)(<a href="https://www.theregister.com/2020/11/04/gpt3_carbon_footprint_estimate/">https://www.theregister.com/2020/11/04/gpt3_carbon_footprint_estimate/</a>). However, in my opinion, It is nothing when we see the results on unseen tasks, the potential of this gadget is more than the energy consumption.</p><p><strong>Conclusion and Key Points</strong></p><p>GPT-3 shows that a language model with adequate training data can solve NLP tasks it has never seen before. GPT-3, in other words, investigates the model as a general solution for a variety of downstream applications without requiring fine-tuning.</p><ul><li>GPT-3 is<strong> fully released</strong> for developer and enterprise use. You can get more details from this link(<a href="https://openai.com/blog/api-no-waitlist/">https://openai.com/blog/api-no-waitlist/</a>)</li><li>The GPT-3 architecture is mostly the <strong>same as the GPT-2</strong> one.</li><li>They did <strong>not use fine-tuning or any other task-specific training</strong>. Instead, they condition the model with the task description and/or some demonstrations of the task. It is called “<strong>in-context learning</strong>”.</li><li><strong>175 billion parameter </strong>language model which shows strong performance on many NLP tasks</li><li>Benchmarks in the zero-shot, one-shot, and few-shot settings, in some cases <strong>nearly matching the performance of state-of-the-art fine-tuned systems</strong>,</li><li>Despite many limitations and weaknesses, these results suggest that <strong>very large language models</strong> may be an <strong>important ingredient</strong> in the development of adaptable, general language systems.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9e478c3d7e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 6-Warmth Of Image]]></title>
            <link>https://medium.com/warmthofimage/week-6-warmth-of-image-84ffa83fb937?source=rss-fdf2a9721855------2</link>
            <guid isPermaLink="false">https://medium.com/p/84ffa83fb937</guid>
            <category><![CDATA[image-recognition]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[weather]]></category>
            <dc:creator><![CDATA[Mert Surucuoglu]]></dc:creator>
            <pubDate>Fri, 09 Feb 2018 20:58:03 GMT</pubDate>
            <atom:updated>2018-02-09T20:58:03.424Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Title:</em></strong> Weather Condition Prediction from Image</p><p><strong><em>Team Members:</em></strong> Berk GÜLAY, Samet KALKAN, Mert SÜRÜCÜOĞLU</p><p><strong><em>Emails Respectively: </em></strong>berkgulay.cs@gmail.com, abdulsametkalkan@gmail.com, mertsurucuogluu@gmail.com</p><p>In the previous week, we explained the progress of the project. And we show our methodology. Lastly, we show the collected results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TOHi97PQaMa2m0pVDnmqsA.jpeg" /></figure><p>In this week, we have prepared a project presentation. We have already finished most of the work. Creating a dataset, a feature extracting and testing it with CNN Decision Tree, Random Forest, and SVM. And we explained everything about the project in the presentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*2G5ljmCm4y6fAcERbD3k0A.png" /><figcaption>CNN architecture</figcaption></figure><p>At the end of the work, we saw that CNN and Random Forest Classifiers gave best overall and class-based accuracy scores. Decision Tree Classifier did not disgrace but slower than Random Forest. So was not worth to use. SVM did not fit our problem for real. It gave bumpy results, not fast, not cost efficient. Color Histogram, Brightness, Contrast, Sharpness and Haze metrics gave good performance since Random Forests gave also very well accuracy results using these features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vwcT1D8KvC4wlDUevfKm8g.png" /><figcaption>Random Forest visualisation by using graphviz.</figcaption></figure><p>We obtained that, the cloudy class is tricky for our problem. Because every weather condition can have cloudy views as well. Our foresight is abstracting cloud class and integrating another class like thunder/storm would increase class based and overall accuracy far preponderant.</p><h4>Our Best Results</h4><p>For Random Forest we got, <strong>Cloudy</strong>~ %56, <strong>Sunny</strong>~ %76.5, <strong>Rainy</strong>~ %65, <strong>Snowy</strong>~ %60, <strong>Foggy</strong>~ %60, <strong>Overall</strong>~ %64</p><p>For CNN we got, <strong>Cloudy</strong>~ %45, <strong>Sunny</strong>~ %73.3, <strong>Rainy</strong>~ %61, <strong>Snowy</strong>~ %70, <strong>Foggy</strong>~ %70, <strong>Overall</strong>~ %65</p><p>We didn’t start to write the Final Report yet. Hopefully, in the next week, we will be writing our Final Report. We are really excited to see a last version of the work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84ffa83fb937" width="1" height="1" alt=""><hr><p><a href="https://medium.com/warmthofimage/week-6-warmth-of-image-84ffa83fb937">Week 6-Warmth Of Image</a> was originally published in <a href="https://medium.com/warmthofimage">WarmthOfImage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 5 — Warmth of Image]]></title>
            <link>https://medium.com/warmthofimage/week-5-warmth-of-image-4808b60f03c7?source=rss-fdf2a9721855------2</link>
            <guid isPermaLink="false">https://medium.com/p/4808b60f03c7</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[random-forest]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[weather]]></category>
            <category><![CDATA[image-processing]]></category>
            <dc:creator><![CDATA[Mert Surucuoglu]]></dc:creator>
            <pubDate>Fri, 09 Feb 2018 20:54:02 GMT</pubDate>
            <atom:updated>2018-02-09T20:54:02.879Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Title:</strong> Weather Condition Prediction from Image</p><p><strong><em>Team Members:</em></strong> Berk GÜLAY, Samet KALKAN, Mert SÜRÜCÜOĞLU</p><p><strong><em>E-mails Respectively: </em></strong>berkgulay.cs@gmail.com , abdulsametkalkan@gmail.com , mertsurucuogluu@gmail.com</p><p>We have approximately 6500 datas. Each data consists of matrix of image with RGB values and we splitted them into training and validation data with %25 ratio.</p><p>I built so many CNN architecture and tried them to obtain the best results. I trained images with different sizes like 20x20, 50x50 and 100x100. Besides general accuracy for validation data, I also printed accuracy of each class separately. To do that I split validation data into 5 parts which represents the classes. There are some trials with architecture of network below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*Xj6wSRh9SjT-v44fcniZbQ.png" /><figcaption>CNN with 6 Layers</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*ZFzErKym5SccUA9FuhnWzg.png" /><figcaption>Loss Function-1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*I4gfeNWPZ-6CJner_viobQ.png" /><figcaption>CNN with 7 layers</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*E55nhfOMk-Spg6qhwYtjkw.png" /><figcaption>Loss Function-2</figcaption></figure><p>The last one is the best among the 20 trials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*gI1H7vwBQ_IH5Z03HZ6WFQ.png" /><figcaption>CNN with 6 layers</figcaption></figure><p>Each train data is trained in about 10 minutes. But the last one took 30 minutes. Because its size is 100x100x3. Since there are so many variation, I couldn’t try all. I think this good result for us.</p><p>While I use CNN method, my groupmates have tried to extract features from image to use SVM and DT. Most difficult problem for us is to extract feature. We still try to extract feature, because we encounter many errors while extracting feature. But we have obtained some results so far.</p><p>Results of Decision Tree:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*NeX4z6qwg6YsS5tiN-6Rww.png" /><figcaption>Trial-1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*BJycLrEsVR6B37llTrvlTg.png" /><figcaption>Trial-2</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/357/1*7bSHF4fLeMYe4xPr5opWEg.png" /><figcaption>Trial-3</figcaption></figure><p>And result for Random Forest</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*KEiXsAAmiMfZgI4Yy82FwQ.png" /></figure><p>So, since there are so many variation, we need more time to try other variations.</p><p>I hope next week we finish the project and obtain good results for all machine learning methods.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4808b60f03c7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/warmthofimage/week-5-warmth-of-image-4808b60f03c7">Week 5 — Warmth of Image</a> was originally published in <a href="https://medium.com/warmthofimage">WarmthOfImage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 3 — Warmth of Image]]></title>
            <link>https://medium.com/warmthofimage/week-3-warmth-of-image-a3dd91a77fec?source=rss-fdf2a9721855------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3dd91a77fec</guid>
            <category><![CDATA[image-classification]]></category>
            <category><![CDATA[weather]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[image-processing]]></category>
            <dc:creator><![CDATA[Mert Surucuoglu]]></dc:creator>
            <pubDate>Thu, 08 Feb 2018 12:25:32 GMT</pubDate>
            <atom:updated>2018-02-08T12:25:32.912Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong><em>Title:</em></strong> Weather Condition Prediction from Image</h3><p><strong><em>Team Members:</em></strong> Berk GÜLAY, Samet KALKAN, Mert SÜRÜCÜOĞLU</p><p><strong><em>E-mails Respectively: </em></strong>berkgulay.cs@gmail.com, abdulsametkalkan@gmail.com, mertsurucuogluu@gmail.com</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q2XBu7l2a-3Shw4MVWKx_w.jpeg" /></figure><p>In the previous week, we explained the project and some related works. We looked at what methods they used in the related works. And we collect our datasets. In this week, we tried to write a progress report. By working on that, we basically decided on the architecture of the project. And we are hoping to cover; rainy, sunny, cloudy, foggy, snowy weather classes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*mkLq3O_ZFci158yl8MYjyA.png" /></figure><p>When we were writing the report, we have discussed how we can do it. And there are many machine learning methods that can solve this kind of classification problems. In the related works that we found, they generally used Convolutional Neural Networks, Support Vector Machines and Decision Trees/Random Forests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*vztqzpDvmzpAvpZHpPqtZw.png" /></figure><p>Since we will classify the images, we must analyze the images so we must use image processing tools and hand-crafted feature extraction methods. There are lots of image descriptors and hand-crafted tools/algorithms. But we eliminate some descriptors and we found what can be useful for us so that, we can use in our problem such as”Hog Descriptor”, ”SIFT”, ”Blob Detection”, ”Color Histograms”, ”Local Binary Patterns”, ”Gabor Filters”, “Intensity Histogram”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*wTOd8mIThmmExhtAhju8bA.png" /></figure><p>To implement these algorithms there are many useful frameworks and libraries. For example, most used ones are tensorflow6, caffe7, keras8, libsvm9, scikit-learn10. While we are building convolutional part, we will use caffe framework, because it runs fast and it is easy to use. After convolutional part, libsvm can be used to implement and try support vector machines. And scikit-learn can be used to implement decision trees.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*FROSSfImEr1ufRDYRg3BjA.png" /></figure><p>But when we get closer to finishing up the project. it was more clear to us the architecture. But by that time we had more questions, and we went to our advisor to ask our questions. And we learned that we can use haze for foggy and cloudy images, Contrast/Brightness for sunny images, Color(by using color histogram) for snowy images(we can extract the white pixels from image) and maybe for rainy images. Other than that, we have discussed organizing our dataset to make it more useful. To do this, first, we will resize the image then we will crop each image by using the same ratio rate for each image. So that, each image will have the same size. But, we also want to crop images with respect to get more sky area. To solve this problem, we need to detect the which part of the image has the sky. We thought a simple algorithm by using edge detector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ijrcxohxl-NCZ8s41ziiXA.jpeg" /></figure><p>The result of putting the photo into the edge detector is that draws the edges of objects in every building, people, etc. in short, the edges of each object other than the sky, with a black background and white lines. So when we have that, we can decide which part of the image has less object and more sky(by counting the white pixel of each image segment). By the result, we can get more sky areas in each image and we can crop the object area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*tcmWFrUsqvz9bLhvwX4XPw.png" /><figcaption>After the algorithm that we applied</figcaption></figure><p><strong>Progress Report Of The Project:</strong></p><p><a href="https://drive.google.com/open?id=1SRnc3XG4I1h9Eoq1Nce2-dlIjHEoxB7D">WeatherConditionRecognition_paper.pdf</a></p><p>We didn&#39;t start to write the code yet. Hopefully, in the next week we will be writing our code using this architecture and of course there can be changes in the architecture. We can’t wait to start the project. And we are looking forward to talk you about our project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3dd91a77fec" width="1" height="1" alt=""><hr><p><a href="https://medium.com/warmthofimage/week-3-warmth-of-image-a3dd91a77fec">Week 3 — Warmth of Image</a> was originally published in <a href="https://medium.com/warmthofimage">WarmthOfImage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 2 — Warmth of Image]]></title>
            <link>https://medium.com/warmthofimage/week-2-warmth-of-image-a37dec17d0c7?source=rss-fdf2a9721855------2</link>
            <guid isPermaLink="false">https://medium.com/p/a37dec17d0c7</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[image-classification]]></category>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[weather]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Mert Surucuoglu]]></dc:creator>
            <pubDate>Thu, 08 Feb 2018 12:22:14 GMT</pubDate>
            <atom:updated>2018-02-08T12:22:14.742Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong><em>Title:</em></strong> Weather Condition Prediction from Image</h3><p><strong><em>Team Members:</em></strong> Berk GÜLAY, Samet KALKAN, Mert SÜRÜCÜOĞLU</p><p><strong><em>E-mails Respectively: </em></strong>berkgulay.cs@gmail.com , abdulsametkalkan@gmail.com , mertsurucuogluu@gmail.com</p><p>In previous post, we mentioned about some related works and datasets. This week, we did research about those studies and datasets in details.</p><p>Our biggest problem was collecting data. We took advice from our lecturer to collect data. He gave us a AMOS site. AMOS is a collection of long-term timelapse imagery from publicly accessible outdoor webcams around the world. There are images of millions and webcam of thousands. But we didn’t enter to the site. Because there is a problem in the site.</p><p>We looked for other ways to collect data. We mailed some people and institutions which have done work like ours to share their datasets with us but they even didn’t answer us. As a result of our lengthy research, we found a dataset that has been classified. Images that we found have 5 classes: cloudy, foggy, rain, snow and sunny. There are approximately 150.000 images and this is enough for our work.</p><p>There are some sample images below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*D5LvMKjSI1JxuSZIiKMYSQ.jpeg" /><figcaption>Cloudy</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*qOAKB-dv776a9t4OS_DZng.jpeg" /><figcaption>Snowy</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*3oYVVgUenXfCTG-JhKWySQ.jpeg" /><figcaption>Foggy</figcaption></figure><p>Also we found some related work previous week. We investigated those works in detail: How they did, which features used, which algorithm used etc.</p><p>In general, they used neural network and support vector machine(SVM). Also they used hog feature, color histogram, contrast, sharpness as feature.</p><p>We decided to use above methods and features. Next week we are going to start code it.</p><p>See you next week.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a37dec17d0c7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/warmthofimage/week-2-warmth-of-image-a37dec17d0c7">Week 2 — Warmth of Image</a> was originally published in <a href="https://medium.com/warmthofimage">WarmthOfImage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 5— Warmth of Image]]></title>
            <link>https://medium.com/@mertsurucu/week-5-warmth-of-image-14eaea031d72?source=rss-fdf2a9721855------2</link>
            <guid isPermaLink="false">https://medium.com/p/14eaea031d72</guid>
            <category><![CDATA[random-forest]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[convolutional-network]]></category>
            <dc:creator><![CDATA[Mert Surucuoglu]]></dc:creator>
            <pubDate>Thu, 04 Jan 2018 22:47:38 GMT</pubDate>
            <atom:updated>2018-01-04T22:47:38.461Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Title:</strong> Weather Condition Prediction from Image</p><p><strong><em>Team Members:</em></strong> Berk GÜLAY, Samet KALKAN, Mert SÜRÜCÜOĞLU</p><p><strong><em>E-mails Respectively: </em></strong>berkgulay.cs@gmail.com , abdulsametkalkan@gmail.com , mertsurucuogluu@gmail.com</p><p>We have approximately 6500 datas. Each data consists of matrix of image with RGB values and we splitted them into training and validation data with %25 ratio.</p><p>I built so many CNN architecture and tried them to obtain the best results. I trained images with different sizes like 20x20, 50x50 and 100x100. Besides general accuracy for validation data, I also printed accuracy of each class separately. To do that I split validation data into 5 parts which represents the classes. There are some trials with architecture of network below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*Xj6wSRh9SjT-v44fcniZbQ.png" /><figcaption>CNN with 6 Layers</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*ZFzErKym5SccUA9FuhnWzg.png" /><figcaption>Loss Function-1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*I4gfeNWPZ-6CJner_viobQ.png" /><figcaption>CNN with 7 layers</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*E55nhfOMk-Spg6qhwYtjkw.png" /><figcaption>Loss Function-2</figcaption></figure><p>The last one is the best among the 20 trials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*gI1H7vwBQ_IH5Z03HZ6WFQ.png" /><figcaption>CNN with 6 layers</figcaption></figure><p>Each train data is trained in about 10 minutes. But the last one took 30 minutes. Because its size is 100x100x3. Since there are so many variation, I couldn’t try all. I think this good result for us.</p><p>While I use CNN method, my groupmates have tried to extract features from image to use SVM and DT. Most difficult problem for us is to extract feature. We still try to extract feature, because we encounter many errors while extracting feature. But we have obtained some results so far.</p><p>Results of Decision Tree:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*NeX4z6qwg6YsS5tiN-6Rww.png" /><figcaption>Trial-1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*BJycLrEsVR6B37llTrvlTg.png" /><figcaption>Trial-2</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/357/1*7bSHF4fLeMYe4xPr5opWEg.png" /><figcaption>Trial-3</figcaption></figure><p>And result for Random Forest</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*KEiXsAAmiMfZgI4Yy82FwQ.png" /></figure><p>So, since there are so many variation, we need more time to try other variations.</p><p>I hope next week we finish the project and obtain good results for all machine learning methods.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14eaea031d72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 4 — Warmth of Image]]></title>
            <link>https://medium.com/@mertsurucu/week-4-warmth-of-image-31af75dea23f?source=rss-fdf2a9721855------2</link>
            <guid isPermaLink="false">https://medium.com/p/31af75dea23f</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[weather]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[Mert Surucuoglu]]></dc:creator>
            <pubDate>Thu, 04 Jan 2018 22:44:37 GMT</pubDate>
            <atom:updated>2018-01-04T22:44:37.701Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Title:</em></strong> Weather Condition Prediction from Image</p><p><strong><em>Team Members:</em></strong> Berk GÜLAY, Samet KALKAN, Mert SÜRÜCÜOĞLU</p><p><strong><em>E-mails Respectively: </em></strong>berkgulay.cs@gmail.com , abdulsametkalkan@gmail.com , mertsurucuogluu@gmail.com</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*iPAEOg0b4IWbLoN0dpg4Xw.jpeg" /><figcaption>Snowy Image</figcaption></figure><p>Welcome again to our blog post about 4th week of our project . We salute you from a new and promising week in our side.</p><p>This week, we could leastwise see about horizon of our project. Eventually we could form/arange and get into use all “Warmth of Image” dataset as we want(cropped/standart , test/validation/train , eliminated and balanced for each class, combined etc.). We took preliminary results from Convolutional Neural Network algorithms using “Keras”. Our image dataset’s cropped part gave approximately %79 accuracy with Convolution layers using Neural Nets.</p><p><strong><em>Architecture for first trial of CNN:</em></strong> 2 convolution layer and a pooling layer, drop-out method usage, 1 fully connected NN for classification part, softmax layer</p><p><strong><em>Used dataset info:</em></strong> 50*50 cropped images from each class (cloudy,sunny,rainy,snowy,foggy) and total 15.000 images approximately.</p><p><strong><em>Preliminary Result of CNN :</em></strong> ~ % 79 accuracy for validation data</p><p>Another progress that we also noticed is hardness of snowy view classification. Actually we are trying to use Intensity Histograms(white pixel density) to separate snowy pictures/views but since cloud or sky frames also give similar white pixel dense areas, we could not separate sky segments and snowy areas from each other(check example images below) even if we try different segmentation algorithms(Otsu/Watershed etc.) or hand-crafted tools(Edge Detectors etc.). We are trying to figure out how to separate sky area and snowy parts from each other and determine white pixel density for snowy area segmentation only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*YwBtB5XoElhMz9HEwQfsiw.jpeg" /><figcaption>An example hard case image which we face with while trying to segment snowy area &amp; sky</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*8HYyWPiHPXcsdJ84OIXr4A.jpeg" /><figcaption>An example hard case image which we face with while trying to segment snowy area &amp; sky</figcaption></figure><p>Hopefully we will figure out how to use intensity histograms/white pixel density feature for snowy image detection.</p><p>We constructed our feature-set to classify images according to their weather condition type as well. We are planning to use color histogram, brightness, contrast, haze, sharpness, intensity histogram(white pixel density) and sky region metrics as image descriptors for weather condition recognition problem. Moreover, we did not only hypothetically create our feature-set but also we researched related works/projects for our problem and found ways to calculate and measure these metrics combination efficiently.</p><p>Lastly we are using and trying different frameworks and tools for our project(like Keras, Libsvm, Scikit-learn, Scikit-image, opencv etc.) so as to determine efficient and beneficial methodologies and algorithms in our problem. Related works and other papers on similar recognition problems help so much while discovering new pathways.</p><p>Wait to inform you next weeks and you are always welcome to contact with as about any part of our project. All assistances will be highly appreciated. (“Warmth of Image” Team)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31af75dea23f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 2 — Warmth of Image]]></title>
            <link>https://medium.com/@mertsurucu/week-2-warmth-of-image-e668a9b97beb?source=rss-fdf2a9721855------2</link>
            <guid isPermaLink="false">https://medium.com/p/e668a9b97beb</guid>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[image-recognition]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[weather]]></category>
            <dc:creator><![CDATA[Mert Surucuoglu]]></dc:creator>
            <pubDate>Thu, 04 Jan 2018 22:43:05 GMT</pubDate>
            <atom:updated>2018-01-04T22:43:05.961Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Title:</em></strong> Weather Condition Prediction from Image</p><p><strong><em>Team Members:</em></strong> Berk GÜLAY, Samet KALKAN, Mert SÜRÜCÜOĞLU</p><p><strong><em>E-mails Respectively: </em></strong>berkgulay.cs@gmail.com , abdulsametkalkan@gmail.com , mertsurucuogluu@gmail.com</p><p>In previous post, we mentioned about some related works and datasets. This week, we did research about those studies and datasets in details.</p><p>Our biggest problem was collecting data. We took advice from our lecturer to collect data. He gave us a AMOS site. AMOS is a collection of long-term timelapse imagery from publicly accessible outdoor webcams around the world. There are images of millions and webcam of thousands. But we didn’t enter to the site. Because there is a problem in the site.</p><p>We looked for other ways to collect data. We mailed some people and institutions which have done work like ours to share their datasets with us but they even didn’t answer us. As a result of our lengthy research, we found a dataset that has been classified. Images that we found have 5 classes: cloudy, foggy, rain, snow and sunny. There are approximately 150.000 images and this is enough for our work.</p><p>There are some sample images below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*D5LvMKjSI1JxuSZIiKMYSQ.jpeg" /><figcaption>Cloudy</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*qOAKB-dv776a9t4OS_DZng.jpeg" /><figcaption>Snowy</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*3oYVVgUenXfCTG-JhKWySQ.jpeg" /><figcaption>Foggy</figcaption></figure><p>Also we found some related work previous week. We investigated those works in detail: How they did, which features used, which algorithm used etc.</p><p>In general, they used neural network and support vector machine(SVM). Also they used hog feature, color histogram, contrast, sharpness as feature.</p><p>We decided to use above methods and features. Next week we are going to start code it.</p><p>See you next week.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e668a9b97beb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 1 — Warmth of Image]]></title>
            <link>https://medium.com/@mertsurucu/week-1-warmth-of-image-6b8dbdb2bc70?source=rss-fdf2a9721855------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b8dbdb2bc70</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[wea]]></category>
            <category><![CDATA[classification]]></category>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[image-recognition]]></category>
            <dc:creator><![CDATA[Mert Surucuoglu]]></dc:creator>
            <pubDate>Thu, 04 Jan 2018 22:41:24 GMT</pubDate>
            <atom:updated>2018-01-04T22:41:24.400Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Title:</em></strong> Weather Condition Prediction from Image</p><p><strong><em>Team Members:</em></strong> Berk GÜLAY, Samet KALKAN, Mert SÜRÜCÜOĞLU</p><p><strong><em>E-mails Respectively: </em></strong>berkgulay.cs@gmail.com , abdulsametkalkan@gmail.com , mertsurucuogluu@gmail.com</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*XBflRY0pZ206zrhLDmMFUA.jpeg" /><figcaption>Cloudy View from London</figcaption></figure><h3>Brief Explanation:</h3><p>In our generation ML is very widely used area to predict very useful things and inference something from data(image etc.). In our project we aim to predict weather condition in given image by using various image descriptors and features. We hope to cover a large label range to classify images.</p><p><strong>Sample Classes:</strong></p><ol><li>Rainy</li><li>Sunny</li><li>Cloudy</li><li>Foggy</li><li>Snowy</li><li>Thunderstorm / Light Thunderstorm / Lightning</li></ol><h3>DataSets:</h3><p><a href="http://www.cse.cuhk.edu.hk/~leojia/projects/weatherclassify/index.htm">Two-class Weather Classifition<br>image classificationwww.cse.cuhk.edu.hk</a></p><p><a href="http://perso.lcpc.fr/tarel.jean-philippe/bdd/frida.html">FRIDA (Foggy Road Image DAtabase) Image Database<br>image databases for evaluation of defogging by Researcher Jean-Philippe Tarel. Images can be downloaded for research…perso.lcpc.fr</a></p><p><a href="http://ieeexplore.ieee.org/document/7545010/?reload=true">Image2Weather: A Large-Scale Image Dataset for Weather Property Estimation — IEEE Conference…<br>To facilitate weather property estimation from images, a large-scale image dataset associated with rich weather…ieeexplore.ieee.org</a></p><p>Also some webcam images(not labeled and should be labeled) and photoshopped(as we want, so labeled) images can be used for data variation.</p><p>If you have suggestions or some useful resources/sites you would always be welcome to contact with us by given e-mails above. Thanks in advance.</p><h3>Approach / Brief Algorithm Overview:</h3><p>Various image descriptors(Hog,Color Histogram etc.) , features and frameworks(Caffe etc.) will be used to describe&amp;classify images. Different Neural Net. architectures, SVM algorithms and Decision Trees will be tried for classification. Crop/eliminate images to make them feasible&amp;same sized, normalization, regularization and these kind of basic applications will be applied and also new ones will be researched for true labeling performance. If it is possible to collect temperature/humidity/time features for every image in dataset, we will try to obtain them as basic features about images and use them in our classification algorithm as well. Best algorithm to predict correct labels will be used as latest model and it will be introduced as result. Stand by us!</p><h3>Related Works:</h3><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//www.cs.ccu.edu.tw/%7Ewtchu/papers/2016BigMM-chu.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/1cd0d0e19c700b1b2ca4c508e599ee7c/href">https://medium.com/media/1cd0d0e19c700b1b2ca4c508e599ee7c/href</a></iframe><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//www.cse.cuhk.edu.hk/%7Eleojia/papers/weatherclassify_cvpr14.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/74338cd33912757a6b10c5801ddf3075/href">https://medium.com/media/74338cd33912757a6b10c5801ddf3075/href</a></iframe><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//mediatum.ub.tum.de/doc/1137870/302563.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/a84a910da288d706e3dac3281a69ede1/href">https://medium.com/media/a84a910da288d706e3dac3281a69ede1/href</a></iframe><iframe src="https://drive.google.com/viewerng/viewer?url=http%3A//www.murase.nuie.nagoya-u.ac.jp/publications/140-pdf.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/6dafddf4c5a2abfbe7fe332fee30054f/href">https://medium.com/media/6dafddf4c5a2abfbe7fe332fee30054f/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b8dbdb2bc70" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 6-Warmth Of Image]]></title>
            <link>https://medium.com/bbm406f17/week-6-warmth-of-image-ed6a68ede78?source=rss-fdf2a9721855------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed6a68ede78</guid>
            <category><![CDATA[weather]]></category>
            <category><![CDATA[image-classification]]></category>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Mert Surucuoglu]]></dc:creator>
            <pubDate>Fri, 29 Dec 2017 16:58:19 GMT</pubDate>
            <atom:updated>2017-12-30T07:26:21.127Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Title:</em></strong> Weather Condition Prediction from Image</p><p><strong><em>Team Members:</em></strong> Berk GÜLAY, Samet KALKAN, Mert SÜRÜCÜOĞLU</p><p><strong><em>Emails Respectively: </em></strong>berkgulay.cs@gmail.com, abdulsametkalkan@gmail.com, mertsurucuogluu@gmail.com</p><p>In the previous week, we explained the progress of the project. And we show our methodology. Lastly, we show the collected results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TOHi97PQaMa2m0pVDnmqsA.jpeg" /></figure><p>In this week, we have prepared a project presentation. We have already finished most of the work. Creating a dataset, a feature extracting and testing it with CNN Decision Tree, Random Forest, and SVM. And we explained everything about the project in the presentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*2G5ljmCm4y6fAcERbD3k0A.png" /><figcaption>CNN architecture</figcaption></figure><p>At the end of the work, we saw that CNN and Random Forest Classifiers gave best overall and class-based accuracy scores. Decision Tree Classifier did not disgrace but slower than Random Forest. So was not worth to use. SVM did not fit our problem for real. It gave bumpy results, not fast, not cost efficient. Color Histogram, Brightness, Contrast, Sharpness and Haze metrics gave good performance since Random Forests gave also very well accuracy results using these features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vwcT1D8KvC4wlDUevfKm8g.png" /><figcaption>Random Forest visualisation by using graphviz.</figcaption></figure><p>We obtained that, the cloudy class is tricky for our problem. Because every weather condition can have cloudy views as well. Our foresight is abstracting cloud class and integrating another class like thunder/storm would increase class based and overall accuracy far preponderant.</p><h4><strong><em>Our Best Results</em></strong></h4><p>For Random Forest we got, <strong>Cloudy</strong>~ %56, <strong>Sunny</strong>~ %76.5, <strong>Rainy</strong>~ %65, <strong>Snowy</strong>~ %60, <strong>Foggy</strong>~ %60, <strong>Overall</strong>~ %64</p><p>For CNN we got, <strong>Cloudy</strong>~ %45, <strong>Sunny</strong>~ %73.3, <strong>Rainy</strong>~ %61, <strong>Snowy</strong>~ %70, <strong>Foggy</strong>~ %70, <strong>Overall</strong>~ %65</p><p>We didn’t start to write the Final Report yet. Hopefully, in the next week, we will be writing our Final Report. We are really excited to see a last version of the work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed6a68ede78" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bbm406f17/week-6-warmth-of-image-ed6a68ede78">Week 6-Warmth Of Image</a> was originally published in <a href="https://medium.com/bbm406f17">bbm406f17</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>