Brain Training using PHP

This application uses a Neural Network written in PHP and an Adobe Flex front end to recognise mouse gestures in the form of numbers - its much like Nintendo Brain Training in that it gives you a sum and then prompts you to draw the answer using your mouse.

You have to draw the numbers as per the diagram below. Hold the mouse down and follow the arrow from the start to the end, then un-click. You'll get the hang of it eventually. If not you can watch the video of the old version running.

If you draw the numbers any differently from the gesture patterns above the program isnt going to recognise them. It doesnt matter how big or how small (within reason) you decide to draw the numbers - it should still pick them up, its also fairly resistant to noise.

ah bro, looks like your browser doesnt support SVG files why not upgrade to firefox?. Fear not, theres a video :o)

How it works

2 Main PHP classes power the classifer, translate which converts the mouse signals into a fixed size set of vectors and ANNLoader which classifies the processed signal using a 3 layer MLP. The game itself is powered by game.php which generates all the questions and validates the answers server side.

Please feel free to download the source code

5 Responses to “Brain Training”

  1. hai says:

    window.location=’http://www.google.com’;

  2. Phil says:

    Thanks TheTooth :) ive just converted the front end to Adobe Flex (away from the nasty SVG/JS mashup) so its now cross browser compatable :D

  3. Bob says:

    Very nice, I like it a lot. Is there anyay to erase a mistake?

  4. Phil says:

    Glad you like it :) – theres no way to erase a mistake at the moment but i’ll try and work on it sometime this week – I’ll probably rig it so that a right click removes the last character

Leave a Reply