How Police could effectively pre-empt riots

Over the past few days we have seen violence escalate dramatically in different cities across England, with London being the primary location. Acts of violence, rioting, looting, and arson have taken place at night for several days.

I have been attached to the BBC News coverage through their website and I saw an interesting tweet posted there:

Tweeted by Hannah Robertson in GloucesterAt first I thought. Pre-empt where the next bout would take place? How on earth would they manage that?

But it actually isn’t that hard. They have a mountain of CCTV data, they have a good amount of servers, all they lack is a bit of artificial intelligence.

The best way I can think of to determine where possible bouts of violence could sprout in what seems like an apparent random non-deterministic method of choice is as follows:

The IT team of the police should annotate the direction of each CCTV camera, including which streets are in view and the coordinates.

Afterwards, the CCTV cameras should be plotted on a 2D map, as vectors (pointing in the direction they are facing, with the length of the vector being the distance the camera covers).

Map Plot of LondonAdditionally, all points of interest should be mapped, such as shopping centres, residential areas, commercial areas, shops with high-value items, and shops with low-value items. Most of this data can be readily obtained from Google Maps, amongst other online maps. This data can be extracted and annotated with the values we require (such as the value of the goods sold per area, etc.)

If you think this is a very hard task, it is not. A very simple way of doing this would be to go to the website (or ask by phone) of each major retailer and chain for a list of addresses of their shops. Google Maps can plot them on a map using a spreadsheet as input. There you go, simple as that!

A Machine Learning program could be developed using WEKA (for instance), in which an SVN is programmed to take data from the map-plot, where priority spots include places where high-value items are sold. Additionally, it would take data from each CCTV camera.

Now, how do we represent the data from CCTV cameras? One way would be to take a selection of pixels from each camera, measure the amount of change for a second, and wherever there is a large enough change in different areas of the same camera, we might have a lot of movement going on. So we automatically annotate the data per CCTV camera as having “movement” or “no movement”. Additionally, a range from 0-1 would produce better results (hopefully).

So now we run an SVN machine on the data and hopefully come up with some interesting results.

What could essentially be obtained from this is a vector describing the movement of as mass of people from camera to camera, this vector would be projected on the 2d map. Multiple vectors could be plotted at the same time if there were multiple riots taking place at the same time in the city. A confidence level can be given to each vector (assuming we have built in a few mechanisms to differentiate people from cars, etc). The places of interest could be mapped as hotspots, and furthermore we can predict paths to possible places of interest, derived from the speed and direction of each vector.

So there you go. If you belong to the MET, please share this blog post with your boss (or the IT team) and get working on a system to perform such actions, it would certainly help prevent further stupidity in the future. 6,000 police officers should be able to deal with outbreaks of crime provided they knew where the rioters would be gathering and where they are heading.

The Forest

So I was busy studying, and I couldn’t get this idea out of my head, this ridiculous idea of tap dancing in a song, with a fake forest behind me. So I took a break (one which resulted in me not getting back to studying) and came up with the following madness:

Can I make 5,000 songs? + BUTCHER

So I’ve been doing some music lately (aside from taking my final exams, writing my MSc dissertation, working a lot, and going for walks around the beach now that the weather is warm), and some interesting music has been produced.

I’ve also set myself the goal of making 5,000 songs/videos for my youtube channel in my life. Hopefully it will be achievable. Check out my song “Butcher” below:

FF4 vs IE9 vs Chrome10

IE vs Chrome VS FFBefore you go all “Oh no! Not another review on the latest browsers!” on me, I state that I have been on the net and looked at reviews and comparisons of the latest browsers, and I am somewhat dissatisfied.

There are quite a few comparisons of IE9 vs FF and Chrome, but most of them seem to be from October 2010, using an RC instead of the final release, including Opera, or excluding one of these three browsers I’m reviewing.

Let me state the purpose of this post bluntly: This is not a review, nor am I meddling with V8 or Acid3 tests, we all know you can use Google to find the results straight away. I want to give my personal perspective on how well the browsers perform in real-life tasks.

After using all three browsers for about a week and a half, each one with all my regular tabs open (7 permanent, 1-7 additional), this is what I have found thus far:

Chrome 10: Fast as always, speedy start-up, no crashes in the time period (except for Flash plugin, twice). Chrome supposedly integrated GPU acceleration since build 7, so I ran the IE Fish Tank test made by Microsoft, and it reports approx. 20FPS, which is low, however, the animation looked OK to me anyway. RAM used was quite high, but performance did not drop even when I had about 14-15 tabs open (including Youtube, Grooveshark, Gmail, Docs, Hootsuite, amongst other heavy web applications). My rating: 9/10 for day-to-day use, 6/10 for animation-loaded sites.

Firefox 4: Sleek new interface, speedy when few tabs are loaded, sluggish when using over 10 tabs (specially in Google Calendar), no crashes in time period, GPU integration seems good, Fishtank’s average FPS was just below the maximum (over 50FPS) which means Firefox has done a great job integrating GPU acceleration into the browser. RAM was lower than Chrome, but performance did drop when I opened many tabs. My rating: 7/10 for day-to-day use, 9/10 for animation-loaded sites.

Internet Explorer 9: Installation time for Windows 7 64-bit version was longer than it’s counterparts (approx. 7+ minutes including necessary updates) and it asked me for a bloody Windows restart (typical of Microsoft). The browser that claims “fast is now beautiful” is actually quite fast to start up, but I’d leave “beautiful” as a perspective issue, though I must say it looks much better than IE6, 7 and 8 combined. Opening tabs is much faster than it’s predecesors. I don’t like the fact you can’t “pin” tabs like you can in FF and Chrome. GPU acceleration has given this browser a big boost in overall speed. When you open a new tab it displays useful data, similar to Chrome, which Firefox does not display. Google Calendar runs faster than in Firefox, but a bit slower than in Chrome. The overall speed remains good even with 10+ tabs open. I don’t like the feature it has of opening tabs next to the address bar by default, though that can be changed, obviously. I prefer the all-in-one bar to the dual-bar in Firefox. RAM usage was significantly lower than in Firefox, by about 40%. I didn’t like the fact that it didn’t ask me which search engine it should use by default. Fishtank’s FPS were even higher than in Firefox. My rating: 8/10 for day-to-day use, 10/10 for animation-loaded sites.

As a brief summary, my ratings are as follows: Chrome > IE9 > Firefox 4 > Firefox 3 > Firefox 2 > Firefox 1 > All other versions of IE

If you like this post, don’t forget to share (using the buttons below) and subscribe at lemiffe.com

Microsoft ahead of the game with IE9?

Browser wars are back!

Microsoft has just released IE9. Now, we were aware of a new look, impressive speed, and other impressive aspects of this revamped model of IE9 for quite a while now… But is this a game changer?

Check out the promotional video below:

I’ve not had a chance to give it a go yet. I am an avid fan of Google Chrome, it just never fails me. Before this I used to be a Firefox supporter. I left Firefox because it just seemed to drag the system’s performance down. I’ve not used Internet Explorer for years now, as I experience no problems on any page with Chrome.

However, I’m curious to the impact Internet Explorer 9 will have in the worldwide browser usage. Hopefully it will get more users off IE6 for good.

What are your thoughts on IE9? Have you tried it out? Would you be willing to try it out? What do you expect of it?

« Previous Entries Next Entries »