This is a recent work I have done. I am developing a methodological framework, in which I use SOM as a translator or encoder that creates a new number space, which is based on the logic, embedded in the context of the data set.
It seems abstract in the first look, but I am pretty sure, there are lots of applications for it.
Here, is the link to the code and a case I did.
Update: This is the link to the paper I wrote about contextual numbers: http://arxiv.org/abs/1408.0889