<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Niklas Lange</title><link>https://niklas-lange.netlify.app/</link><description>Recent content on Niklas Lange</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Tue, 31 Mar 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://niklas-lange.netlify.app/index.xml" rel="self" type="application/rss+xml"/><item><title>Machine Learning System to Predict Phishing Sites Using HTML, URL &amp; Metadata</title><link>https://niklas-lange.netlify.app/dissertation/</link><pubDate>Tue, 31 Mar 2026 00:00:00 +0000</pubDate><guid>https://niklas-lange.netlify.app/dissertation/</guid><description>&lt;h2 id="abstract"&gt;Abstract&lt;/h2&gt;
&lt;p&gt;Since the start of the internet, phishing has been a persistent problem, with attempts
becoming more sophisticated and common in recent years. Prevention models are therefore
needed to classify sites correctly as either phishing or legitimate at scale. This paper builds
and compares three ML models — Random Forest, Logistic Regression and K-Nearest
Neighbours — and a CNN model, using URL, metadata and HTML features collected from
phishing and legitimate websites. The models were evaluated on both historical and modern
datasets, with a key finding being that all models experienced significant accuracy
degradation on modern data, with ML models dropping by ~30% and the CNN by ~48%,
despite performing best on historical data.&lt;/p&gt;</description></item><item><title>Hierarchical Reinforcement Learning for Fraud Detection</title><link>https://niklas-lange.netlify.app/projects/hierarchicalfrauddetector/</link><pubDate>Sun, 04 May 2025 00:00:00 +0000</pubDate><guid>https://niklas-lange.netlify.app/projects/hierarchicalfrauddetector/</guid><description>&lt;h2 id="what-is-this"&gt;What is this?&lt;/h2&gt;
&lt;p&gt;This was my final project for CS5841 (Machine Learning), built with three other students while I was studying at Michigan Technological University (MTU). I was the only undergraduate in the group, held my own, and am happy to present the work here.&lt;/p&gt;
&lt;h2 id="the-team"&gt;The team&lt;/h2&gt;
&lt;p&gt;The report and the work are not mine alone — this was a team project, and everyone below deserves equal credit:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Amirmehdi Moghadamfarid&lt;/li&gt;
&lt;li&gt;Samuel Raber&lt;/li&gt;
&lt;li&gt;Eric Fosu-Kwabi&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="hierarchical-reinforcement-learning-fraud-detection-hrlfd-an-adaptive-approach"&gt;Hierarchical Reinforcement Learning Fraud Detection (HRLFD): an adaptive approach&lt;/h2&gt;
&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;
&lt;p&gt;Financial fraud detection is a critical task in the modern digital economy. Traditional supervised methods often struggle with imbalanced datasets, where fraudulent transactions are far less common than legitimate ones. This project explores the use of &lt;strong&gt;reinforcement learning (Q-learning)&lt;/strong&gt; combined with &lt;strong&gt;decision tree classifiers&lt;/strong&gt; to detect fraudulent cases more effectively. The goal was to design and evaluate a hybrid model capable of identifying fraud while minimizing false negatives.&lt;/p&gt;</description></item><item><title>Grade Inflation in Scotland</title><link>https://niklas-lange.netlify.app/projects/grade-flation/</link><pubDate>Sun, 09 Mar 2025 00:00:00 +0000</pubDate><guid>https://niklas-lange.netlify.app/projects/grade-flation/</guid><description>&lt;p&gt;This piece was written for the &lt;em&gt;Strathclyde Telegraph&lt;/em&gt;; what follows is the first draft, which I put together over about a week and posted here while the final version went through editing.&lt;/p&gt;
&lt;p&gt;Scottish Highers have been a crucial component of university applications for decades, and published results run back to 2009. Given recent economic inflation, this correspondent was curious whether a similar trend exists in Scottish education. Analysing the data published on Scottish Highers reveals some intriguing trends.&lt;/p&gt;</description></item><item><title>Strathclyde's Changing Demographics</title><link>https://niklas-lange.netlify.app/projects/strath-demographic/</link><pubDate>Sun, 29 Dec 2024 00:00:00 +0000</pubDate><guid>https://niklas-lange.netlify.app/projects/strath-demographic/</guid><description>&lt;p&gt;I am a big fan of journalism — &lt;em&gt;The Economist&lt;/em&gt; in particular — so I thought it would be fun to try a bit of data journalism of my own and pitch it to my university newspaper. I started by looking into the demographics of the University of Strathclyde; what follows is a short report on what changed.&lt;/p&gt;
&lt;p&gt;Over the years Strathclyde has been through a lot: Brexit, Covid and strikes may all have left a mark on the university&amp;rsquo;s make-up and capacity. This report goes to the data to see which trends actually show up.&lt;/p&gt;</description></item><item><title>A Two-Year Web Scraping Pipeline</title><link>https://niklas-lange.netlify.app/projects/phcode/</link><pubDate>Sun, 15 Dec 2024 00:00:00 +0000</pubDate><guid>https://niklas-lange.netlify.app/projects/phcode/</guid><description>&lt;h2 id="summary"&gt;Summary&lt;/h2&gt;
&lt;p&gt;This project implements an end-to-end pipeline to collect, store, and visualize publicly available video-ranking data from a major online video platform. The aim was to explore geographic differences in popularity, track trends over different time windows (daily, weekly, monthly, yearly, all-time), and build a robust system that runs on a schedule with monitoring and backups.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; the project only collected information that is publicly visible on the site, and used rate limiting and scheduling safeguards to avoid putting load on it. See the &lt;em&gt;Ethics, legal &amp;amp; safety&lt;/em&gt; section below for the precautions taken. The pipeline was retired in August 2025, after changes to the site cut the amount of usable data — and the insight that could be drawn from it — significantly.&lt;/p&gt;</description></item><item><title>How Hot is Scotland? – Fires in the Last Decade</title><link>https://niklas-lange.netlify.app/projects/fire/</link><pubDate>Sun, 21 Jul 2024 18:53:38 +0100</pubDate><guid>https://niklas-lange.netlify.app/projects/fire/</guid><description>&lt;p&gt;Over the past decade, the number of fires in Scotland has been falling. This is an encouraging trend, but there is
 still room for improvement. The majority of incidents were classified as ‘Not Accidental,’ with the highest
 concentration in densely populated areas such as Glasgow.&lt;/p&gt;

&lt;h2&gt;Fires over the last decade&lt;/h2&gt;
&lt;img src="https://niklas-lange.netlify.app/images/blog/2022/fire/histogram.jpeg" alt="Bar chart of accidental, non-accidental and total fires in Scotland by year, 2009/10 to 2020/21" loading="lazy" /&gt;

&lt;p&gt;We can see a clear downward trend, particularly after 2010/2011, when the number of incidents began to decline more
 significantly.&lt;/p&gt;</description></item><item><title>Smoking in Scotland – How Households Have Quit Cigarettes</title><link>https://niklas-lange.netlify.app/projects/smoking/</link><pubDate>Thu, 12 Jan 2023 18:53:38 +0100</pubDate><guid>https://niklas-lange.netlify.app/projects/smoking/</guid><description>&lt;h2&gt;Trends in Smoking Habits Across Scotland (2012–2019)&lt;/h2&gt;

&lt;p&gt;
 From 2012 to 2019, the Scottish Survey Core Question (SSCQ)—a project combining several large household surveys
 (&lt;a href="https://www.gov.scot/collections/scottish-surveys-core-questions/"&gt;more here&lt;/a&gt;)—was used to track smoking
 rates across Scotland.
&lt;/p&gt;

&lt;p&gt;
 The data shows a clear trend: more and more Scots are quitting cigarettes. While we cannot determine causation from
 this dataset,
 we can highlight significant differences across age groups and constituencies. These findings reveal how smoking has
 declined
 at different rates within the population.
&lt;/p&gt;</description></item></channel></rss>