<?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 Oluwasola Oyinloye  on Medium]]></title>
        <description><![CDATA[Stories by Oluwasola Oyinloye  on Medium]]></description>
        <link>https://medium.com/@Deyley?source=rss-939ead806a1c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Y3uvSitDdRCffIb2rZaj0A@2x.jpeg</url>
            <title>Stories by Oluwasola Oyinloye  on Medium</title>
            <link>https://medium.com/@Deyley?source=rss-939ead806a1c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 11:18:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Deyley/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[Lagos is sinking 5 millimetres a year. Why that is bigger than it sounds]]></title>
            <link>https://medium.com/@Deyley/lagos-is-sinking-5-millimetres-a-year-why-that-is-bigger-than-it-sounds-e89abe1f742c?source=rss-939ead806a1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e89abe1f742c</guid>
            <category><![CDATA[flooding]]></category>
            <category><![CDATA[radar]]></category>
            <category><![CDATA[sattelite]]></category>
            <category><![CDATA[africa]]></category>
            <category><![CDATA[geoai]]></category>
            <dc:creator><![CDATA[Oluwasola Oyinloye ]]></dc:creator>
            <pubDate>Wed, 02 Dec 2026 15:04:14 GMT</pubDate>
            <atom:updated>2026-12-02T15:04:14.737Z</atom:updated>
            <content:encoded><![CDATA[<p>If you live in Lagos, you know what a flooded road looks like. You know which street to avoid after heavy rain. What you may not know is that the ground under that street could be getting lower, year after year.</p><p>A study published on 27 November 2026 in <em>Science Advances</em> looked at 20 coastal cities in Africa. Researchers at Virginia Tech used radar images from the European Space Agency’s Sentinel-1 satellites. Radar works by sending a signal down and listening for the echo. Compare the echoes from many passes over the same spot, and you can tell whether the ground has moved. <a href="https://www.the-star.co.ke/news/africa/2026-11-29-new-satellite-data-shows-how-fast-some-african-cities-are-sinking">The BBC reports</a> this method can pick up movement as small as 1 millimetre a year.</p><p>For Lagos, the typical result was about 5 millimetres of sinking per year. Alexandria in Egypt came out around 6. Durban in South Africa was stable or slightly rising. So this is not the same story everywhere. <a href="https://news.vt.edu/articles/2026/11/science-sinking-african-coastal-cities.html">Source: Virginia Tech</a>; <a href="https://www.the-star.co.ke/news/africa/2026-11-29-new-satellite-data-shows-how-fast-some-african-cities-are-sinking">BBC via The Star</a>.</p><p><strong>Why 5 millimetres matters</strong></p><p>Five millimetres is less than a centimetre. In one year, you would never notice it. The lead author, Oluwaseyi Dasho, put it this way: these changes are “often invisible in everyday life, but over decades they can substantially increase flood exposure.”</p><p>Here is the part that gets missed. Flooding does not depend only on how high the sea gets. It depends on how high the land is compared with the water. If the sea rises and the land drops, the gap closes from both sides.</p><p>A simple sum, which is mine and not the study’s: if Lagos kept sinking at 5 millimetres a year, that is 15 centimetres in 30 years. The rate may change, so treat this as an illustration only.</p><p><strong>What the study says about people</strong></p><p>The Virginia Tech release says about 2.6 million Lagos residents live in areas that could be exposed to extreme coastal water levels in 2020. By 2100, under the study’s assumptions, that rises to more than 4 million.</p><p>Across all 20 cities, the authors estimate more than 7 million people, 1 million buildings and about $180 billion in assets could be exposed to flooding by 2050.</p><p>These numbers come from models. They depend on assumptions about sea level and about how the sinking continues. The article I read does not describe how long the satellites were observed. Read them as a warning about direction and size, not a forecast for any one street.</p><p><strong>Why is the ground sinking?</strong></p><p>The coverage names local causes: pumping groundwater, soil squeezing together, and building on loose ground. The BBC adds that in Lagos, land reclamation for artificial islands and construction on soft ground play a part. Some sinking is natural.</p><p>One author, Manoochehr Shirzaei, said: “Land subsidence is not simply another consequence of climate change.” That is worth sitting with. It means decisions about water, land and buildings feed into this too.</p><p>A Lagos newspaper report linked the issue to private boreholes in Lekki, where many homes lack piped water. I need to be clear: that link comes from an earlier, separate report, not from this study. The study, as reported, does not name Lekki. <a href="https://allafrica.com/stories/202611300008.html">ThisDay via allAfrica</a>.</p><p><strong>What I can’t tell you</strong></p><p>The coverage gives one typical figure for Lagos. It does not say which neighbourhoods sink fastest, and a city is not one flat block of land. Reclaimed land, old settlements and newer estates may behave very differently.</p><p>Radar from space also measures the ground surface. It can tell you the land is dropping. It cannot tell you why a particular building has cracks.</p><p>The satellite data from Sentinel-1 is, as far as I know, free for anyone to use. If so, a neighbourhood-level map of Lagos is possible. That would be far more useful than one city-wide number.</p><p><strong>What I would want to see next</strong></p><p>A map of how fast each part of Lagos is sinking, placed next to a map of where floods already happen. The flood risk work I did for Amuwo-Odofin starts from how high the ground is, so I care about this. I have not tested what a drop of a few millimetres a year would do to that map, and I won’t claim a result.</p><p>For now, the useful takeaway is simple. The flood risk in coastal Lagos is not only about rain and the sea. The ground itself is part of the story, and satellites can now measure it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e89abe1f742c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Who Nigeria’s flood warnings can’t reach]]></title>
            <link>https://medium.com/@Deyley/who-nigerias-flood-warnings-can-t-reach-e5e810c4f437?source=rss-939ead806a1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5e810c4f437</guid>
            <dc:creator><![CDATA[Oluwasola Oyinloye ]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 17:08:03 GMT</pubDate>
            <atom:updated>2026-11-04T17:08:03.112Z</atom:updated>
            <content:encoded><![CDATA[<p>I matched 12.6 million people in the river flood zone against two signs of mobile signal, then looked for schools and clinics that could warn the rest</p><p>Flood warnings in Nigeria increasingly go out by text message, and a text message needs a mobile signal. That simple dependency is easy to forget when a warning system is judged by how many messages it sends rather than how many arrive. So for the <a href="https://geoinnovation.geoinfotech.ng/innovation_challenge/">Geoinnovation GIS Challenge 2026 </a>I asked a narrower question, of the people who live in the path of a major river flood, how many could a text warning actually reach, and what could reach the others?</p><p>The project, GeoAID Warn: No Signal, No Warning, extends <a href="https://medium.com/@Deyley/i-am-building-an-ai-flood-risk-system-for-lagos-here-is-why-it-matters-and-how-it-works-765a530f71dc?sharedUserId=Deyley">GeoAID</a>, the flood-risk model of Amuwo Odofin in Lagos that I built for my MIT dissertation at Miva Open University. GeoAID asks where flooding is likely, whether rainfall is activating that risk and who is exposed. GeoAID Warn adds the next question for the whole country: can the people at risk be warned?</p><p><strong>Who lives in the flood zone</strong></p><p>I started from two open datasets. The European Commission’s Joint Research Centre publishes global river flood hazard maps (version 2.1, Baugh et al. 2024) at about 90 m, and I used the 1-in-100-year flood, leaving out permanent rivers and lakes and the areas the JRC itself flags as unreliable. Meta’s population map places people in pixels of about 30 m, so each pixel can be checked against the flood depth at its own location rather than averaged over a district.</p><p>Of Nigeria’s 205.6 million people, 12.62 million (6.1%) live in that flood zone, and 8.38 million of them where the water would be a metre deep or more.</p><p><strong>Two signs of signal</strong></p><p>A text warning needs only a basic 2G signal, so the test has to be generous. For each person in the flood zone I looked for two signs. The first is a mobile cell of any generation recorded in OpenCelliD within 5 km, the low end of the 5 to 15 km range the ITU gives for a mobile cell. The second is an Ookla speed test within 2 km in any quarter of 2024. Both signs make a text likely to arrive, one makes it possible, and neither makes it unlikely.</p><p>4.88 million people have both signs and 2.48 million have one. The remaining 5.25 million, 41.6% of everyone in the flood zone, have neither.</p><p><strong>Who the text misses</strong></p><p>The 5.25 million are not spread evenly. Most live in the Niger Delta and along the Niger, and by state the largest numbers are in Bayelsa, Rivers, Delta, Anambra and Borno. The LGAs with the most are Ogbaru, Southern Ijaw, Asari-Toru, Ekeremor and Anambra West. In Ogbaru, 475,000 of its 613,000 people live in the flood zone, and for 280,000 of them I found no sign of signal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0i7wYVAQ7FUML8mhCYLzWw.png" /></figure><p>Of the 5.25 million, 3.61 million would face water a metre deep or more, and 63.7% are in the poorer 40% of Nigerians by Meta’s Relative Wealth Index, against 36.5% of everyone in the flood zone. The gap in warnings and the gap in wealth sit largely on top of each other.</p><p><strong>Who could carry the warning instead</strong></p><p>If a text cannot reach a community, a person nearby can. Schools and clinics are obvious candidates, because everyone nearby knows where they are and they have staff who could be trained to pass a warning on. Of the GRID3 clinics and schools, 4.0% of clinics and 4.7% of schools are themselves inside the flood zone, so I kept only those on dry ground, 247,254 in all, and allowed one per square kilometre.</p><p>Choosing among them is a maximal covering location problem (Church and ReVelle 1974), place a fixed number of alert points so that as many people as possible live within reach of one. I solved it by greedy selection, adding the point that brings in the most uncovered people each time, which is guaranteed to reach at least 63% of the best possible coverage (Nemhauser, Wolsey and Fisher 1978). Each alert point is assumed to reach people within 3 km, about a 40-minute walk.</p><p>With 100 alert points, the plan that maximises everyone reached covers 1.42 million of the 5.25 million. A second plan counts only people in the poorer 40% when choosing, and covers 1.01 million, of whom 756,000 are in the poorer 40%, 100,000 more than the first plan. For a public warning programme I think that trade is the right one, though it is a judgement about priorities rather than a result of the model, and the tool lets you compare both.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JNINrSiVuWeSKF_YBznamA.png" /></figure><p>One result changes how the alert points would have to work: only 3 of the 100 poorest-first alert points have mobile signal themselves. The places that can pass a warning on sit in the same dead zones as the people they would warn, so each one needs its own link, such as an HF or VHF radio or a satellite messenger, rather than an SMS.</p><p><strong>Lagos, the opposite problem</strong></p><p>Amuwo Odofin shows what the national picture leaves out. GeoAID puts 229,402 residents (51.6%) in High or Very High flood-risk squares, and 99.9% of them have signal evidence, so a text can reach almost everyone. Yet the national river flood map includes only 44.6% of them, because Amuwo Odofin floods mostly from rain and the lagoon rather than from a river. There the gap is knowing where and when to warn, which is what a local risk map with a rainfall trigger is for.</p><p>Check your own area</p><p><strong>The analysis is published as a live map at </strong><a href="https://dexsholex.github.io/geoaid-warn/">https://dexsholex.github.io/geoaid-warn/</a>. You can tap any place in Nigeria, search for an LGA, or let your phone share its location, and the report shows how many people in that square kilometre live in the flood zone, how many a text would likely reach, how deep the water could get, how far away the nearest recorded phone cell and speed test are, and the nearest alert point. The page carries a record for each of the 35,790 square kilometres with people in the flood zone and looks your point up in the browser, so your location is not sent anywhere. A slider adds alert points one at a time, in the order the analysis chose them.</p><p><strong>What it does not tell you</strong></p><p>No sign of signal in two crowdsourced datasets is an absence of evidence, not proof. OpenCelliD’s Nigerian records are mostly 2G and Ookla’s tests are sparse in rural areas, and in Asari-Toru the analysis finds 99% of the flood zone with no sign of signal although its towns may have some coverage. Any plan built on these numbers should be checked on the ground before money is spent.</p><p>The flood zone covers river flooding only; coastal and rain-driven flooding are outside it, which is what the Lagos case shows. Reach depends on the 3 km assumption: 100 alert points reach 1.14 million people at 2 km and 2.09 million at 5 km. And a registered school or clinic is not always a working one, while an alert point needs a trained focal person and equipment that this analysis does not cost.</p><p>The map, the code and a dated log of every decision are open at <a href="https://github.com/Dexsholex/geoaid-warn">https://github.com/Dexsholex/geoaid-warn</a>, and every step rebuilds from public data. If you work on flood early warning in Nigeria and these numbers do not match what you see on the ground, I would like to hear from you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5e810c4f437" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Not every connectivity gap needs a tower]]></title>
            <link>https://medium.com/@Deyley/not-every-connectivity-gap-needs-a-tower-fd21f72d22ed?source=rss-939ead806a1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd21f72d22ed</guid>
            <dc:creator><![CDATA[Oluwasola Oyinloye ]]></dc:creator>
            <pubDate>Fri, 30 Oct 2026 17:16:13 GMT</pubDate>
            <atom:updated>2026-10-30T17:16:13.648Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How I used speed tests, population data and a 1970s location model to decide where Nigeria should build next</em></p><p>Data Science Nigeria’s AI Bootcamp 2026 ended its Geospatial AI Track with a hackathon brief that was harder than it looked. Using Ookla’s internet performance data and at least two other datasets, find the communities in Nigeria with poor connectivity relative to their population, settlement and need, and say where improvements should go first. My entry, <strong>Where to Build Next</strong>, came first. Below is how it works and what it found, including where it falls short.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*yrRD9w9Q1q26rS-UIeD3uQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*MAZxTjmCKKorurK2gEGSEQ.jpeg" /></figure><p><strong>Why not just map slow internet</strong><br>The obvious answer is a map of speeds, red where the internet is slow, green where it is fast. The trouble is that a speed map treats every gap the same, and a planner with a fixed budget cannot. A town where speeds are poor needs a different response from a village where nobody has ever run a speed test. So instead of asking where the internet is bad, I asked what each place needs.</p><p><strong>Sorting Nigeria by need</strong><br>The base is a grid of 1 km squares covering the country. Each square holds its population from Meta’s 2020 map (205.6 million people in all), whether it is urban or rural from the European Commission’s GHSL settlement layer, a wealth score from Meta’s Relative Wealth Index, and its LGA. Against that grid I set Ookla’s mobile speed tests for October to December 2024: 42,838 tests in 9,234 map tiles. The file DSN supplied did not say which Ookla release it came from, so I matched it against Ookla’s public archive, and all 9,234 tiles are identical to the mobile release for that quarter.</p><p>Nigeria’s National Broadband Plan sets the benchmark at 25 Mbps in towns and 10 Mbps in rural areas. Each square then gets one of four labels:</p><ul><li>Served (53.0 million people): a test within 2 km meets the plan’s speed.</li><li>Slow signal (22.1 million): there are tests nearby, but all of them are too slow. The case here is for upgrading existing networks.</li><li>Town to measure (64.6 million): urban, with no test within 2 km. Towns usually have a signal, so the first step is measurement, not money.</li><li>Rural gap (66.0 million): rural, with no test within 2 km. This is where new sites belong.</li></ul><p>Two numbers explain the rural gap. Towns log 2.99 speed tests per 10,000 people, while rural areas log 0.31. And 80% of the people in rural gaps are among the poorest 40% of Nigerians, so the connectivity gap and the poverty gap sit on top of each other.</p><p><strong>Choosing where to build</strong><br>For the rural gaps the question becomes, with money for N sites, where should they go? Operations research has a standard answer in the maximal covering location problem (Church and ReVelle, 1974), which places N facilities to cover the most people within a set distance. I solved it with greedy selection, adding one site at a time, which is guaranteed to reach at least 63% of the best possible coverage.</p><p>The candidate hosts are 54,732 registered clinics and 204,355 schools from GRID3. They already have buildings and the people who use them, and the broadband plan itself names schools and hospitals as places to connect and sets a target for connecting primary health centres. Each site is assumed to serve people within 5 km, the low end of the 5 to 15 km range the ITU gives for a mobile site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AhKnGTOkwwGKCgNo9oG_RA.png" /></figure><p>The model runs two ways. One maximises everyone reached. The other counts only people in the poorer 40% when choosing a site, while still counting everyone it covers. With 100 sites, the first reaches 3.12 million people and the second 2.87 million, but the poorest-first plan reaches 398,000 more people in the poorer 40%. Giving up 251,000 people overall to reach 398,000 more of the poorest is a trade I think most public programmes should take, so the report recommends it. Sixty of those 100 sites would be schools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yZEcRQspyDmF9kVTIZUQkA.png" /></figure><p><strong>Checking that the gaps are real</strong><br>The weak point of any analysis built on crowdsourced speed tests is that a missing test does not prove a missing signal. I tested that two ways. First, I pulled Ookla’s tiles for the rest of 2024, 95.9% of the people in rural gaps had no test within 2 km in any quarter of the year, so the gaps are not one quarter’s bad luck. Second, I compared them with OpenCelliD, an open, crowdsourced map of mobile cells. In rural gaps, 74.5% of people have no recorded cell of any kind within 5 km, against 3.9% in served areas.</p><p>Both sources are crowdsourced, and OpenCelliD’s Nigerian records are almost all 2G, so I call this evidence suggestive rather than proof. Still, two different sources draw the same map. Every number in the report is also recomputed by a separate script that takes a different route to the same answer, using great-circle distances instead of the grid, a different raster reader and brute-force coverage counts. The current run passes all 40 of its checks.</p><p><strong>The result I did not expect<br></strong>The LGAs with the most poor, unconnected people are Ningi, Fune, Wasagu/Danko, Ganjuwa and Gamawa. The first 100 sites include only one of them. Their people are spread so thinly, 126 to 210 poorer people per km² of gap against 482 where the sites go, that in four of the five even the best possible site reaches fewer people than the 100th site chosen elsewhere. A ranking by people reached per site will always pass them over, which is why they need a budget line of their own.</p><p><strong>What it does not do</strong><br>It does not model cost, power, backhaul or security, and those decide whether a site can actually be built. The wealth estimates date from 2021, and a registered clinic or school is not always a working one. Reach also depends on the 5 km assumption: 100 sites reach 1.7 million people at 3 km and 8.0 million at 10 km, and the tool reports that range rather than a single number.</p><p><strong>Try it<br></strong>The tool is live at <a href="https://dexsholex.github.io/where-to-build-next/">https://dexsholex.github.io/where-to-build-next/</a>. You can change the number of sites, switch between the two priorities, compare clinics and schools as hosts, rank LGAs by each need, and turn on 2023 satellite imagery to look at the ground around any chosen site. The code and data are on GitHub at <a href="https://github.com/Dexsholex/where-to-build-next">https://github.com/Dexsholex/where-to-build-next</a>, with a dated log of every decision, and the whole pipeline rebuilds from public sources.</p><p>I want to take this further, starting with the costs that decide whether a site gets built and with newer Ookla quarters.</p><p>Thank you to Data Science Nigeria for the bootcamp and the brief, to Engineer Adeola Adebari of BOAZ Integrated Energy for presenting the awards, and to EqualyzAI, Microsoft, BOAZ Integrated Energy and BMONI for supporting it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd21f72d22ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Number I Didn’t Have to Report]]></title>
            <link>https://medium.com/@Deyley/the-number-i-didnt-have-to-report-8a0f1a83cf4a?source=rss-939ead806a1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a0f1a83cf4a</guid>
            <dc:creator><![CDATA[Oluwasola Oyinloye ]]></dc:creator>
            <pubDate>Wed, 09 Sep 2026 11:04:23 GMT</pubDate>
            <atom:updated>2026-09-09T11:04:23.325Z</atom:updated>
            <content:encoded><![CDATA[<p>On spatial cross-validation, honest evaluation, and why the worse result is sometimes the one that matters most.</p><p>A few months ago I wrote about a mistake in this project’s early flood labels, radar-derived training data that turned out to be sitting on the Lagos Lagoon instead of on flooded streets. I fixed it, documented how, and moved on. That story had a clean shape: find the problem, name the cause, correct it, show the better number.</p><p>This one doesn’t have that shape. This is about a number I didn’t have to report at all, and chose to report anyway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E7B4-YCSEEI_qrN02sKBDQ.png" /></figure><h3>Where the project stood</h3><p>GeoAID is a flood risk model for Amuwo Odofin, a coastal local government area in Lagos. Fourteen satellite-derived features, three machine learning models compared, one selected. Once I’d corrected the label contamination problem and retrained on clean data, I had a result I was genuinely pleased with: 0.798 ROC-AUC on a held-out test set, recall of 0.755. Numbers that would sit comfortably in most published flood susceptibility papers for Nigerian cities, several of which I’d read closely enough by that point to know what comfortably looked like in this particular field.</p><p>I could have stopped there. The evaluation was standard, defensible, and the number was good.</p><h3>The test I ran anyway</h3><p>The problem with a standard train-test split, when your data is spatial, is that it isn’t testing what you think it’s testing. Split your points randomly, and a pixel from one street can end up in training while the pixel next door, sharing almost identical terrain, rainfall, and land cover, ends up in the test set. The model doesn’t need to learn anything generalisable to score well on that neighbour. It just needs to recognise ground it has effectively already seen.</p><p>So I built a second evaluation on top of the first, partitioning Amuwo Odofin into a five-by-five grid of spatial blocks and holding out entire blocks in turn:</p><pre>def create_spatial_blocks(coords, n_blocks=5):<br>    &quot;&quot;&quot;<br>    Assign each sample to a spatial block based on a 5x5 grid<br>    over the study area extent.<br>    &quot;&quot;&quot;<br>    lon_min, lon_max = coords[&#39;longitude&#39;].min(), coords[&#39;longitude&#39;].max()<br>    lat_min, lat_max = coords[&#39;latitude&#39;].min(), coords[&#39;latitude&#39;].max()<br><br>    lon_edges = np.linspace(lon_min, lon_max, n_blocks + 1)<br>    lat_edges = np.linspace(lat_min, lat_max, n_blocks + 1)<br><br>    lon_idx = np.digitize(coords[&#39;longitude&#39;], lon_edges[1:-1])<br>    lat_idx = np.digitize(coords[&#39;latitude&#39;],  lat_edges[1:-1])<br><br>    # Combine into block ID (0 to 24 for 5x5 grid)<br>    block_id = lat_idx * n_blocks + lon_idx<br>    return block_id<br><br># Shuffle blocks and assign each to one of 5 folds<br>np.random.seed(RANDOM_SEED)<br>block_to_fold = {}<br>shuffled_blocks = np.random.permutation(unique_blocks)<br>for i, block in enumerate(shuffled_blocks):<br>    block_to_fold[block] = i % 5<br><br>fold_assignment = np.array([block_to_fold[b] for b in block_ids])</pre><p>Twenty-one of the twenty-five blocks in the grid held training points. Five-fold cross-validation across those blocks meant that no test pixel was ever adjacent to a training pixel, a harder, more honest test of whether the model had actually learned something that generalises to ground it has never seen. Under this evaluation, the AUC that had read 0.798 came back at 0.642.</p><h3>Why I’m telling you this</h3><p>That’s not a small drop, and reported on its own, without the first number sitting next to it, it would read as a considerably less impressive project. I want to be direct about the choice this created, because the choice matters more than the number does.</p><p>I could have run this test, seen the drop, and said nothing. Nobody would have known to ask. Most published flood susceptibility work for Nigerian cities reports exactly one evaluation figure, and reviewers largely don’t push back on that, because spatial cross-validation isn’t yet a standard expectation in this specific literature.</p><p>I reported both numbers side by side, with the gap explained rather than smoothed over.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eus8p5VoVNxhXpkCXDKBlQ.png" /></figure><h3>What actually explains the gap</h3><p>Reporting the honest number is only half of it. The other half is being able to say why it happened, rather than shrugging at it.</p><p>Two things account for most of the drop. Flooding in this LGA isn’t spread evenly. Some spatial blocks in the training grid carry flood proportions above sixty percent; others sit below twenty. When a fold happens to hold out one of the flood-dense blocks, the model trains on a partition that has lost most of its positive examples, and recall collapses sharply on exactly that fold. The second cause is resolution. Two of the fourteen conditioning factors, rainfall variables drawn from CHIRPS and NASA’s GPM IMERG, are measured at five and eleven kilometre resolution. Amuwo Odofin is roughly fifteen kilometres across. At that scale those two inputs barely vary within the study area at all, so they carry almost no spatial signal once the model faces genuinely unseen ground.</p><p>Neither of these is a flaw in the modelling approach so much as an honest limit, one structural to how flooding is distributed across the LGA, the other structural to the resolution of freely available satellite rainfall data. Naming them precisely is what turns an uncomfortable number into a finding rather than an embarrassment.</p><h3>Where this leaves the project</h3><p>The system is live. A public dashboard where anyone can click a point in Amuwo Odofin and see not just a risk classification but the specific factors driving it, in plain language if that’s what’s needed. The finding that matters most, once you sit with the numbers long enough to trust them, is this: 229,402 residents, just over half the LGA’s population, live in areas classified High or Very High risk. Sixteen schools. Fifty-five health facilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XGxGfJTOrVXlnLGsYjTrvA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uqd0QwSkdRz1N-ty-0FNfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ukfRAR7vb3PeEkWt4SAnNw.png" /></figure><p>I’m heading into final defense with this project now. I’ll be asked about that 0.642 figure, and I’d rather have an answer ready than hope nobody notices it’s there.</p><p><strong>Live dashboard:</strong> <a href="http://geoaid-lagos-flood.streamlit.app/">geoaid-lagos-flood.streamlit.app</a></p><p><strong>Source code and methods log:</strong> <a href="http://github.com/Dexsholex/GeoAID-Lagos-FloodRisk">github.com/Dexsholex/GeoAID-Lagos-FloodRisk</a></p><p><em>Oluwasola is a spatial data scientist and MSc candidate in Information Technology, AI specialisation, at Miva Open University. His work sits at the intersection of geospatial science, applied machine learning, and disaster intelligence for African cities.</em></p><p><strong>Tags:</strong> Data Science, Machine Learning, GIS, Remote Sensing, Nigeria, Lagos, Flood Risk, Model Evaluation, Open Science</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a0f1a83cf4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Five Years, One Bag of Garri, and a Question Nobody Around Me Was Asking]]></title>
            <link>https://medium.com/@Deyley/five-years-one-bag-of-garri-and-a-question-nobody-around-me-was-asking-d97578b2fdfb?source=rss-939ead806a1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d97578b2fdfb</guid>
            <category><![CDATA[gis]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[geospatial]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Oluwasola Oyinloye ]]></dc:creator>
            <pubDate>Tue, 21 Jul 2026 09:21:15 GMT</pubDate>
            <atom:updated>2026-07-21T09:21:15.816Z</atom:updated>
            <content:encoded><![CDATA[<p><em>What I learned building a career at the intersection of geospatial science, ML and AI, from Lagos</em></p><p>In July 2021, I submitted my undergraduate thesis in Surveying and Geoinformatics at the University of Ilorin, and within days I started learning to code. I did not know then that I was starting anything. There was no plan, no roadmap, no mentor who had walked the path ahead of me. There was only a discomfort I had been carrying for most of my degree and had never managed to name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*sPQTueu8FSaEGQdXnXFWNA.jpeg" /></figure><p>The discomfort was this. Surveying and Geoinformatics is, at its core, a discipline of data. You acquire it with instruments, clean it, process it, and make decisions from it. I loved that. What I could not accept was the ceiling. Conventional GIS software is built for a certain scale and a certain kind of question, and every time I pushed past that scale the software would slow, choke, or simply refuse. I did not want to be a person whose analytical ambition was bounded by what a menu item allowed.</p><p>So I went looking for the boundary and found programming on the other side of it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*H2BeuD0SyDuqNdYyi0MPig.jpeg" /></figure><p><strong>The false start</strong></p><p>The person who introduced me to Python spent about ten minutes on it and then spent an hour on web development, which is what he was actually excited about. I followed him there. I completed the HTML course on Sololearn. I built things that did not interest me for reasons I could not yet articulate.</p><p>It took months of searching before I found the phrase that described what I had been circling: <strong>spatial data science</strong>. The moment I read it, the whole confused shape of my ambition resolved into a single object. Everything since has been an attempt to become that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*5fIVO2xCnTnfSNqAkV0JEw.jpeg" /></figure><p><strong>Garri, and the arithmetic of poverty</strong></p><p>During NYSC I was coding up to eighteen hours a day. My allowance was ₦33,000 a month. Then my PC broke.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*Yy0n3FFmoP2Ui6Xgak3C8Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*qrn2ygEVKYzXUJv1BwzZ6A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*1VE9Jc9FKepnv80x9B61JQ.jpeg" /></figure><p>I want to describe what happened next carefully, because there is a temptation to narrate hardship as virtue, and that temptation produces dishonest writing. I gave up two full months’ food budget and lived on garri, morning and night, to pay for the repair. This was not discipline. It was arithmetic. The PC was the only capital I owned. Two months of garri cost less than two months of not being able to work. Anyone in my position who could do subtraction would have made the same decision.</p><p>What the months did teach me was smaller and more useful than a lesson about grit. It taught me that I had already, without deciding to, made this thing non-negotiable. You find out what you actually value not when you choose it, but when choosing it costs something, and you choose it anyway.</p><p><strong>The silent years</strong></p><p>Between that month and now there were years that do not photograph well.</p><p>I applied and heard nothing. I interviewed and heard nothing. I built projects — a news classifier that hit 96% accuracy, a COVID-19 mortality analysis across 170,000 rows, ridership pattern work on New York’s Citi Bike data, an image classifier deployed on Streamlit — and I put them into a portfolio that the market was in no hurry to read. I attended DataFest Africa in 2022 and again in 2023 and watched people who seemed further along than me and did not know whether I was gaining on them or falling behind.</p><p>I took a role at Zenith Bank as a Teller. It was not the spatial data science job. It was a job, it paid, and it taught me the thing that university does not: how an institution actually consumes an analysis, and how much of the value of technical work lies in whether anybody can act on it. I would not give those years back.</p><p>If you are somewhere in your own silent stretch, I have nothing consoling to tell you about it. It is genuinely bad. The only thing I can report from the other side is that the portfolio I built during those years is the exact reason the door eventually opened. Nothing was wasted. It simply did not pay out on the schedule I wanted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*Kyuj1SDfAZ2ACBIOLG-Dmw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*z16Itx5emlqGfjgqSc46NQ.jpeg" /></figure><p><strong>Where the five years landed</strong></p><p>In July 2026 I joined <strong>Geospatial Research Limited</strong> as a GIS Specialist. GRL is an ESRI Bronze Partner and Nigeria’s sole distributor of Geosun LiDAR systems — which is to say I am now inside the room where the instruments are, holding the programming ability I went and got on my own five years ago.</p><p>I am also finishing an MSc in Information Technology with an AI specialisation at Miva Open University, currently at 4.92 out of 5.0, and my final project is the piece of work that ties the entire five years together.</p><p>It is called <strong>GeoAID</strong>: an AI-enabled geospatial decision support and disaster intelligence framework for urban flood risk in Lagos, piloted in Amuwo Odofin. It has three layers. The first maps structural flood susceptibility from fifteen conditioning factors using Random Forest, Logistic Regression and XGBoost, with SHAP values so the model can explain itself rather than merely predict. The second activates that static map dynamically against near-real-time rainfall from GPM IMERG. The third converts risk into consequence, using WorldPop population data and OpenStreetMap infrastructure to answer the only question that actually matters to a policymaker: <em>who and what is exposed, and where.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F11m93mb3MXo1rDYhfcvpQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e-PNb30ui192lT1kOUxyNw.jpeg" /></figure><p>Flood inventory comes from Sentinel-1 synthetic aperture radar, because Lagos floods under cloud cover and optical satellites are blind precisely when you need them most.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*imNi4u7dLdL3fRscirWyPA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tArGcexcyoj_bIBnttM0BA.jpeg" /></figure><p>I rebuilt that flood inventory twice. I removed an entire terrain variable after it produced physically impossible values along the coast. The work has been slower and less linear than any version of it I will ever present in a viva.</p><p><strong>What I would tell the version of me who submitted that thesis</strong></p><p>Find the intersection nobody is standing in and stand there. The reason my geospatial background and my AI training are worth more together than apart is not that either is rare. It is that the overlap is thin, and Nigeria has flooding, land pressure, and infrastructure questions that require someone who can hold both sides at once.</p><p>And be patient with the arithmetic. Some months you drink garri so the machine keeps running. Five years later the machine is processing satellite radar over a city of twenty million people.</p><p>The work is only getting interesting.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d97578b2fdfb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Am Building an AI Flood Risk System for Lagos — Here Is Why It Matters and How It Works]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@Deyley/i-am-building-an-ai-flood-risk-system-for-lagos-here-is-why-it-matters-and-how-it-works-765a530f71dc?source=rss-939ead806a1c------2"><img src="https://cdn-images-1.medium.com/max/2600/0*4AehxbCJMyCapOVU" width="3500"></a></p><p class="medium-feed-snippet">A walkthrough of GeoAID: an open-source geospatial decision support system combining Google Earth Engine, machine learning, and&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@Deyley/i-am-building-an-ai-flood-risk-system-for-lagos-here-is-why-it-matters-and-how-it-works-765a530f71dc?source=rss-939ead806a1c------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@Deyley/i-am-building-an-ai-flood-risk-system-for-lagos-here-is-why-it-matters-and-how-it-works-765a530f71dc?source=rss-939ead806a1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/765a530f71dc</guid>
            <category><![CDATA[floods]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[geospatial-intelligence]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[gis]]></category>
            <dc:creator><![CDATA[Oluwasola Oyinloye ]]></dc:creator>
            <pubDate>Sun, 24 May 2026 20:22:36 GMT</pubDate>
            <atom:updated>2026-05-24T20:23:29.063Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Building a Sports Personality Image Classification Model: My Data Science Journey from Start to…]]></title>
            <link>https://medium.com/@Deyley/building-a-sports-personality-image-classification-model-my-data-science-journey-from-start-to-307fba211d87?source=rss-939ead806a1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/307fba211d87</guid>
            <dc:creator><![CDATA[Oluwasola Oyinloye ]]></dc:creator>
            <pubDate>Wed, 27 Nov 2024 20:31:10 GMT</pubDate>
            <atom:updated>2024-11-30T16:33:41.738Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Sports Personality Image Classification Model: My Data Science Journey from Start to Deployment</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1iLjDJxHeKyXWfUICn737Q.jpeg" /></figure><p>Data science is an exciting field that offers endless opportunities to solve real-world problems. As someone transitioning from data analytics to data science, I wanted to take on a full data science lifecycle project to get my hands dirty. The goal? Build a <strong>Sports Personality Image Classification Model</strong> from scratch, starting with data acquisition and ending with deployment using <strong>Streamlit</strong>.</p><p>This article outlines my journey, including the challenges I faced, the solutions I implemented, and the lessons I learned along the way. I hope it serves as a guide and motivation for others in similar positions!</p><h3>1. Data Acquisition</h3><p>The first step in my project was acquiring a robust dataset of images for five sports personalities: <strong>Cristiano Ronaldo, Muhammad Ali, Usain Bolt, LeBron James, and Serena Williams</strong>.</p><h4>Challenges:</h4><p>Initially, I spent a month trying to scrape Google Images but encountered <strong>strict anti-scraping policies</strong> that blocked my efforts. After multiple failed attempts, I switched to <strong>DuckDuckGo</strong>, which had a more lenient scraping policy. This pivot allowed me to gather enough images for training my model.</p><h4>Code for Web Scraping with Selenium:</h4><pre>def scrape_images(query, num_images=300):<br>    driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))<br>    driver.get(f&quot;https://duckduckgo.com/?q={query}&amp;iar=images&amp;iax=images&amp;ia=images&quot;)<br><br>    time.sleep(2)<br>    for _ in range(3):<br>        driver.execute_script(&quot;window.scrollTo(0, document.body.scrollHeight);&quot;)<br>        time.sleep(2)<br><br>    image_elements = driver.find_elements(By.CSS_SELECTOR, &quot;img.tile--img__img&quot;)<br><br>    if not os.path.exists(query):<br>        os.makedirs(query)<br><br>    count = 0<br>    for img_element in image_elements[:num_images]:<br>        img_url = img_element.get_attribute(&quot;src&quot;) or img_element.get_attribute(&quot;data-src&quot;)<br>        if img_url:<br>            download_image(img_url, query, f&quot;{query}_{count + 1}&quot;)<br>            count += 1</pre><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fr5KurSwKe_0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fshorts%2Fr5KurSwKe_0%3Ffeature%3Dshare&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fr5KurSwKe_0%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/65fa25c11baa8763fdb5cab118a46d04/href">https://medium.com/media/65fa25c11baa8763fdb5cab118a46d04/href</a></iframe><h3>2. Data Cleaning and Preprocessing</h3><p>The raw images I scraped were far from ready for machine learning. Many were low quality, had unnecessary backgrounds, or were duplicates.</p><h4>Steps Taken:</h4><ol><li><strong>Image Cleaning:</strong> Manually inspected to check for duplicates and ensure no incorrect or unrelated images were downloaded; resized images using OpenCV.</li><li><strong>Face Detection and Cropping:</strong> I used <strong>Haar Cascades</strong> to detect and crop faces from the images. Below is a snippet of the face detection code.</li></ol><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FPJxfwwdMwXY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fshorts%2FPJxfwwdMwXY%3Ffeature%3Dshare&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FPJxfwwdMwXY%2Fhq2.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3b2bc4983997d6600c54ad5cf0fb9fe4/href">https://medium.com/media/3b2bc4983997d6600c54ad5cf0fb9fe4/href</a></iframe><h4>Face Detection Code:</h4><pre>def get_cropped_image_if_2_eyes(image_path):<br>    img = cv2.imread(image_path)<br>    gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)<br><br>    faces = face_cascade.detectMultiScale(gray, 1.3, 5)<br>    for (x, y, w, h) in faces:<br>        roi_gray = gray[y:y + h, x:x + w]<br>        roi_color = img[y:y + h, x:x + w]<br>        eyes = eye_cascade.detectMultiScale(roi_gray)<br>        if len(eyes) &gt;= 2:<br>            return roi_color</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fmkILOKGo9tS2xOOZKeQlg.png" /></figure><p>Images were stored in folders specific to each celebrity for structured data storage, enabling smooth progression to the training phase.</p><h3>3. <strong>Feature Extraction with PyWavelet</strong></h3><p>Wavelet transformation was used to enhance feature detection. To capture both spatial and frequency domain features, I used wavelet transformations alongside raw pixel data, as shown below:</p><pre>def w2d(img, mode=&#39;haar&#39;, level=1):<br>    imArray = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY)<br>    imArray = np.float32(imArray) / 255<br>    coeffs = pywt.wavedec2(imArray, mode, level=level)<br>    coeffs_H = list(coeffs)<br>    coeffs_H[0] *= 0<br>    imArray_H = pywt.waverec2(coeffs_H, mode)<br>    return np.uint8(imArray_H * 255)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gdroM6pyit_JSXAX3ZZs_A.png" /></figure><p>This technique allows the model to consider texture and finer details, improving classification accuracy.</p><h3>4. Model Building</h3><p>I tested three algorithms — SVM, Logistic Regression, and Random Forests and optimized their performance using <strong>GridSearchCV</strong>.</p><h4>Model Training and Hyperparameter Tuning:</h4><pre>X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=0)<br><br>pipe = Pipeline([(&#39;scaler&#39;, StandardScaler()), (&#39;svc&#39;, SVC(kernel=&#39;rbf&#39;, C=10))])<br>pipe.fit(X_train, y_train)<br>print(pipe.score(X_test, y_test))  # Output: 0.71</pre><p>After tuning hyperparameters with GridSearchCV, SVM emerged as the best performer with an accuracy of 80.3% on the test set:</p><h4>Model Performance Metrics on Test set:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*i-hL9wcyoPJx2CPAemlLwA.png" /><figcaption>Model Accuracy</figcaption></figure><h4>Model Performance Metrics on Training set:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PnAkRoLcBAaoAFFfOrYiZQ.png" /></figure><h3>5. Deployment</h3><p>To make the model accessible, I created a Streamlit application where users can upload images for classification. This was my first time using <strong>Streamlit</strong>, and it was both exciting and challenging.</p><h4>Streamlit UI Code Snippet:</h4><pre>st.title(&quot;Sports Personality Classifier&quot;)<br>uploaded_file = st.file_uploader(&quot;Choose an image...&quot;, type=[&quot;jpg&quot;, &quot;jpeg&quot;, &quot;png&quot;])<br><br>if uploaded_file is not None:<br>    img_path = &#39;uploaded_image.jpg&#39;<br>    with open(img_path, &#39;wb&#39;) as f:<br>        f.write(uploaded_file.getbuffer())<br>    st.image(img_path, caption=&#39;Uploaded Image&#39;)<br>    results = classify_image(image_base64_data, img_path)<br>    if results:<br>        for result in results:<br>            st.write(f&quot;The image is classified as: **{result[&#39;class&#39;]}**&quot;)</pre><p>The app predicts the sports personality and displays probabilities for each class, making the user experience intuitive and interactive.</p><h4>Challenges Faced:</h4><ul><li>Deployment issues with compatibility and hosting remain unresolved, but the app works locally.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F0Vl4D3-_7zs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D0Vl4D3-_7zs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F0Vl4D3-_7zs%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae3d1a8c20bb215cc322f1c7458b41fa/href">https://medium.com/media/ae3d1a8c20bb215cc322f1c7458b41fa/href</a></iframe><h3>6. Results and Insights</h3><p>The model performed well, especially for <strong>Cristiano Ronaldo</strong>, but struggled with <strong>Muhammad Ali</strong> and <strong>Serena Williams</strong>. Some images with both eyes visible were incorrectly flagged as “cannot classify.”</p><h3>7. Lessons Learned</h3><ol><li><strong>Persistence Pays Off:</strong> The shift from Google to DuckDuckGo highlighted the importance of flexibility.</li><li><strong>Learn by Doing:</strong> My first Streamlit project gave me invaluable hands-on experience.</li><li><strong>Room for Improvement:</strong> Enhancements like data augmentation could improve model performance.</li></ol><h3>Conclusion</h3><p>This project encapsulates the journey from data collection to deployment, showcasing the versatility of machine learning in image classification. It was a great learning experience, reinforcing my interest in data science and data applications.</p><p>Completing a full data science project was an incredible learning experience. While there were challenges at every stage, I’m proud of what I accomplished and excited to apply these lessons to future projects.</p><p>Visit the <a href="https://github.com/Dexsholex/Sport-persons-classification">GitHub link</a> to access the complete code:</p><p><a href="https://github.com/Dexsholex/Sport-persons-classification">https://github.com/Dexsholex/Sport-persons-classification</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=307fba211d87" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Spatial Data Science: From GIS to Machine Learning]]></title>
            <link>https://medium.com/@Deyley/understanding-spatial-data-science-from-gis-to-machine-learning-c7733c980142?source=rss-939ead806a1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7733c980142</guid>
            <dc:creator><![CDATA[Oluwasola Oyinloye ]]></dc:creator>
            <pubDate>Mon, 14 Oct 2024 06:39:58 GMT</pubDate>
            <atom:updated>2024-10-14T06:39:58.425Z</atom:updated>
            <content:encoded><![CDATA[<p>Spatial data science is becoming a game-changer across industries, blending traditional GIS techniques with modern data science. This evolution has given us the power to uncover geographic patterns, make predictions, and inform smarter decisions on a global scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YLx_XkTv2jvKhfMbMkAZ-A@2x.jpeg" /><figcaption>Photo by <a href="http://ellipsis-drive.com/">Ellipsis Drive</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In this article, I’ll walk you through the essentials of spatial data science, from understanding key concepts like geospatial data and spatial relationships to applying machine learning models that take spatial data analysis to the next level.</p><p><strong>What is Spatial Data Science?</strong></p><p>Spatial data science integrates geospatial data with data science techniques, allowing for the analysis and interpretation of location-based data. Whether you’re optimizing urban infrastructure or tracking environmental changes, understanding spatial relationships and patterns is key to making data-driven decisions.</p><p><strong>From GIS to Spatial Data Science</strong></p><p>Traditional GIS tools such as ArcGIS and QGIS are foundational, but spatial data science takes it further by integrating advanced analytics and machine learning.</p><p>Some key tasks in GIS include:</p><p>•	Mapping geographic features</p><p>•	Analyzing spatial relationships like proximity or containment</p><p>•	Layering multiple datasets for a more holistic view of geographic patterns</p><p>Spatial data science builds on these capabilities, allowing us to predict trends, automate classifications, and generate deeper insights using machine learning models.</p><p><strong>Machine Learning in Spatial Data Science</strong></p><p>One of the most powerful applications of spatial data science is in machine learning, which allows for predictive modeling and automation. Convolutional Neural Networks (CNNs) are commonly used for classifying satellite imagery, while unsupervised learning techniques like K-means clustering can uncover hidden spatial patterns.</p><p>Understanding spatial autocorrelation is critical when working with spatial data. This refers to the tendency for nearby locations to have similar values (e.g., housing prices or environmental conditions). To address this, we use specialized techniques such as spatial regression.</p><p><strong>Practical Tools and Techniques</strong></p><p>Working with spatial data requires specific tools and libraries:</p><p>•	ArcGIS and QGIS for geospatial analysis and visualization.</p><p>•	GeoPandas and Shapely for handling vector data in Python.</p><p>•	Rasterio for working with raster data like satellite imagery.</p><p><strong>Real-World Applications</strong></p><p>Spatial data science is transforming how we approach complex problems:</p><p>•	Urban Planning: Cities are using spatial data to optimize infrastructure and resource allocation.</p><p>•	Environmental Monitoring: Satellite data and machine learning are being used to monitor land use, detect deforestation, and even predict the spread of diseases.</p><p>•	Transportation and Logistics: Spatial analytics is improving route optimization and helping businesses reduce costs while increasing efficiency.</p><p><strong>Conclusion</strong></p><p>Spatial data science is a powerful tool for bridging the gap between traditional GIS and advanced data science. By leveraging geospatial data, machine learning, and modern tools, you can uncover valuable insights that lead to smarter, more informed decisions.</p><p>If you’re interested in spatial data science, start exploring hands-on tools like QGIS, GeoPandas, and machine learning models. The future of geospatial analysis is here, and it’s powered by data science.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7733c980142" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning in Data Analytics: Driving Business Insights Through Data]]></title>
            <link>https://medium.com/@Deyley/machine-learning-in-data-analytics-driving-business-insights-through-data-4e59524b0352?source=rss-939ead806a1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e59524b0352</guid>
            <dc:creator><![CDATA[Oluwasola Oyinloye ]]></dc:creator>
            <pubDate>Sun, 25 Aug 2024 19:43:01 GMT</pubDate>
            <atom:updated>2024-08-25T19:44:58.939Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Machine Learning in Data Analytics: Driving Business Insights Through Data</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IB_yKd08HDCMlMwgwWtRLQ@2x.jpeg" /><figcaption>Photo by Fatos Bytyqi on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In today’s data-driven world, machine learning (ML) has become an essential tool for businesses seeking to harness the power of data analytics. By automating processes and uncovering patterns that might go unnoticed by human analysts, machine learning is transforming the way businesses operate, make decisions, and create value. In this article, we’ll explore the core aspects of machine learning in data analytics, including an overview of key algorithms, the difference between supervised and unsupervised learning, and real-world applications that demonstrate the impact of ML on business.</p><p><strong>Overview of Machine Learning Algorithms</strong></p><p>Machine learning algorithms are the backbone of data analytics, enabling systems to learn from data and make predictions or decisions without being explicitly programmed. These algorithms can be broadly categorized based on their learning styles and the type of tasks they perform:</p><p>1.	Linear Regression: A fundamental algorithm used for predicting a continuous outcome based on one or more predictor variables. It’s commonly used in forecasting sales, estimating costs, or predicting stock prices.</p><p>2.	Decision Trees: These algorithms are used for classification and regression tasks. A decision tree splits the data into subsets based on the value of input features, resulting in a tree-like model of decisions. It’s useful for customer segmentation and risk assessment.</p><p>3.	Random Forest: An ensemble method that builds multiple decision trees and merges them together to get a more accurate and stable prediction. It’s widely used in finance for credit scoring and fraud detection.</p><p>4.	Support Vector Machines (SVM): This algorithm finds the optimal hyperplane that separates different classes of data with maximum margin. It’s effective in scenarios like text categorization and image recognition.</p><p>5.	K-Nearest Neighbors (KNN): A non-parametric algorithm used for classification and regression. It classifies a data point based on how its neighbors are classified, making it useful in recommendation systems and anomaly detection.</p><p>6.	Neural Networks: Modeled after the human brain, neural networks are a series of algorithms that attempt to recognize underlying relationships in a set of data. They are the foundation of deep learning, which powers complex applications like image and speech recognition.</p><p>7.	Clustering Algorithms: Algorithms like K-Means and DBSCAN are used to group data points into clusters based on similarity. These are particularly useful in market segmentation, customer profiling, and identifying patterns in large datasets.</p><p>8.	Dimensionality Reduction: Techniques like Principal Component Analysis (PCA) reduce the number of input variables in a dataset, simplifying models without losing significant information. This is essential in handling large datasets with many variables, such as genomic data.</p><p>Supervised vs. Unsupervised Learning</p><p>Understanding the difference between supervised and unsupervised learning is key to selecting the appropriate algorithm for your data analytics tasks.</p><p>Supervised Learning involves training a model on a labeled dataset, where the outcome or target variable is known. The goal is to learn a mapping from inputs to outputs, allowing the model to make predictions on new, unseen data. This approach is useful for tasks like:</p><p>•	Classification: Predicting the category or class of an input, such as spam detection in emails or identifying customer churn.</p><p>•	Regression: Predicting a continuous value, such as forecasting sales figures or predicting house prices.</p><p>Unsupervised Learning, on the other hand, deals with unlabeled data, where the algorithm tries to infer the underlying structure of the data. It’s often used for:</p><p>•	Clustering: Grouping data points into clusters based on similarity, such as segmenting customers based on purchasing behavior.</p><p>•	Association: Discovering rules that describe large portions of data, such as market basket analysis in retail to identify products frequently bought together.</p><p>The choice between supervised and unsupervised learning depends on the nature of the data and the specific business problem you’re trying to solve. Supervised learning is generally more common in business applications due to the availability of labeled data and the clarity of predictive tasks.</p><p><strong>Practical Applications of Machine Learning in Business</strong></p><p>Machine learning has a wide range of applications across various industries, helping businesses to improve efficiency, enhance customer experience, and gain a competitive edge. Here are some examples of how ML is being used in business:</p><p>1.	Predictive Analytics in Finance:</p><p>Financial institutions leverage machine learning to predict future trends, such as stock prices, interest rates, and currency exchange rates. Algorithms like Random Forest and SVM are commonly used for credit scoring, fraud detection, and risk management, enabling firms to make data-driven decisions that minimize risk and maximize returns.</p><p>2.	Customer Segmentation in Marketing:</p><p>By using clustering algorithms, businesses can segment their customer base into distinct groups based on behavior, preferences, and demographics. This allows for more targeted marketing campaigns, personalized offers, and better customer engagement. For example, K-Means clustering can identify high-value customers who are most likely to respond to a new product launch.</p><p>3.	Supply Chain Optimization:</p><p>Machine learning models are employed to forecast demand, optimize inventory levels, and predict supply chain disruptions. Retailers use time series forecasting models to predict sales patterns, ensuring that they have the right products in the right quantities at the right time. This not only reduces costs but also improves customer satisfaction by minimizing stockouts and overstock situations.</p><p>4.	Personalized Recommendations:</p><p>E-commerce platforms and streaming services use machine learning to provide personalized recommendations to users. Collaborative filtering, a popular technique, analyzes user behavior and preferences to suggest products, movies, or music that the user is likely to enjoy. This drives customer loyalty and increases sales through upselling and cross-selling.</p><p>5.	Automating Customer Support:</p><p>Chatbots and virtual assistants powered by natural language processing (NLP) and machine learning are transforming customer support. These systems can handle a wide range of customer queries, providing instant responses and freeing up human agents to focus on more complex issues. Companies like Amazon and Apple use ML-based chatbots to deliver seamless customer experiences.</p><p>6.	Healthcare Diagnostics:</p><p>In healthcare, machine learning is revolutionizing diagnostics by analyzing medical images, electronic health records, and genetic data to detect diseases at an early stage. For instance, convolutional neural networks (CNNs) are being used to analyze medical images for early detection of conditions like cancer, enabling timely and effective treatment.</p><p><strong>Conclusion</strong></p><p>Machine learning is undeniably a game-changer in data analytics, offering businesses the ability to extract actionable insights from vast amounts of data. By understanding the different types of machine learning algorithms and their applications, businesses can leverage this technology to enhance decision-making, improve operational efficiency, and stay ahead of the competition. As machine learning continues to evolve, its integration into data analytics will only deepen, driving innovation and creating new opportunities across industries.</p><p>For those looking to build expertise in data analytics, mastering machine learning is a crucial step. The ability to design, implement, and interpret ML models will not only boost your technical skills but also position you as a valuable asset in today’s data-centric world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e59524b0352" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unveiling Hidden Patterns in Geospatial Data with Advanced Clustering Technique]]></title>
            <link>https://medium.com/@Deyley/unveiling-hidden-patterns-in-geospatial-data-with-advanced-clustering-technique-d94bfdddf33d?source=rss-939ead806a1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d94bfdddf33d</guid>
            <dc:creator><![CDATA[Oluwasola Oyinloye ]]></dc:creator>
            <pubDate>Mon, 12 Aug 2024 06:49:07 GMT</pubDate>
            <atom:updated>2024-08-12T06:50:10.592Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*slGUdTiVTP0SGdOKTu8HsA@2x.jpeg" /><figcaption>Photo by <a href="https://www.youtube.com/watch?v=9B6TgUQ4wjY">Boitumelo</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the vast domain of spatial data science, one of the key challenges is to effectively cluster geospatial data to uncover insights that may not be immediately apparent. Clustering techniques are essential tools in the data analyst’s arsenal, particularly when dealing with complex, high-dimensional geospatial datasets. In this post, I will delve into advanced clustering algorithms, specifically DBSCAN (Density-Based Spatial Clustering of Applications with Noise) and its more sophisticated counterpart, HDBSCAN (Hierarchical DBSCAN).</p><p><strong>Why Clustering Matters in Geospatial Analysis</strong></p><p>Clustering allows us to group data points that are similar to each other and separate them from dissimilar points. In geospatial data science, this translates to identifying regions or zones with similar characteristics, which can be crucial for urban planning, environmental monitoring, resource management, and more. Traditional clustering methods, such as K-means, often fall short when applied to spatial data because they require the number of clusters to be specified in advance and assume that all clusters are of similar size and density. This is where density-based clustering methods like DBSCAN and HDBSCAN shine.</p><p><strong>DBSCAN: Clustering Based on Density</strong></p><p>DBSCAN is a robust clustering algorithm that identifies clusters based on the density of points. It starts by finding core points – points that have a minimum number of neighboring points within a specified radius. These core points form the backbone of clusters. The algorithm then expands clusters by including all points within the neighborhood of the core points. Points that do not belong to any cluster are considered noise, which is particularly useful in handling outliers in geospatial data.</p><p><strong>Advantages of DBSCAN:</strong></p><p>•	It does not require the number of clusters to be specified beforehand.</p><p>•	It can identify arbitrarily shaped clusters, which is crucial in geospatial data where natural features do not conform to geometric shapes.</p><p>•	It is resilient to outliers, which are common in real-world geospatial datasets.</p><p><strong>HDBSCAN: A More Flexible Approach</strong></p><p>HDBSCAN takes the principles of DBSCAN and adds a layer of flexibility by allowing clusters to have varying densities. This is particularly important in geospatial data science, where areas of interest, such as urban centers and rural regions, may have significantly different densities. HDBSCAN starts by building a hierarchy of clusters based on varying density levels and then selects the most stable clusters. This approach allows HDBSCAN to reveal more nuanced patterns in the data.</p><p><strong>Advantages of HDBSCAN:</strong></p><p>•	It automatically determines the optimal number of clusters.</p><p>•	It handles data with varying densities more effectively than DBSCAN.</p><p>•	It provides a hierarchy of clusters, offering a more detailed analysis of the data.</p><p><strong>Applications in Geospatial Data Science</strong></p><p>Applying DBSCAN and HDBSCAN in geospatial data science can lead to more precise and actionable insights. For instance:</p><p>•	Urban Planning: These algorithms can identify regions within a city that have similar land use patterns, helping planners optimize resource allocation.</p><p>•	Environmental Monitoring: Clustering can reveal areas with similar environmental conditions, which is vital for managing conservation efforts.</p><p>•	Disaster Management: These techniques can be used to identify vulnerable regions by clustering areas with similar risk factors.</p><p>In conclusion, mastering advanced clustering techniques like DBSCAN and HDBSCAN is essential for any data analyst working in geospatial data science. These algorithms provide a powerful means of uncovering hidden patterns in data, leading to better decision-making and more efficient use of resources.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d94bfdddf33d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>