Handwritten digit recognition using Neural networks; How to configure for 2-D input?

20 Ansichten (letzte 30 Tage)
My objective is to train a NN to recognize handwritten digits (Black/White bit pattern). The neural net seems to expect each input (training/test instance) as a column in a matrix/cell.
I do not wish for a full connection between the input and the immediate NN layer. I want to specify a more localized mapping between the input bits and the hidden neurons. In essence a mapping best descried if both the layer and the input can treated as 2 dimensional.
When my training instances are specified as columns, they loose a part of adjacency information.
How can I feed the NN an 2-D input?
I've crawled through much of the tutorial style documentation and couldn't find much that helped. Being rather new to matlab, it's a bit overwhelming. Links to relevant documentation are also welcome.
Also, what more information would be useful to answer this question?

Akzeptierte Antwort

Jonathan LeSage
Jonathan LeSage am 15 Okt. 2013
Bearbeitet: Jonathan LeSage am 15 Okt. 2013
Specifying an image as a column vector does not eliminate the adjacency information. As the column of pixels repeats at a regular interval, the patterns are still detectable when you train your neural network.
Here are some simple examples of classification which you could follow to get more familiar with the MATLAB environment:
MATLAB can only accept matrix training data when you are training a nonlinear-autoregressive (NAR) network. The third dimension in the cell array is the time. For more information, you can consult the documentation for the train function:
Hope this helps!
  3 Kommentare
Jinal
Jinal am 3 Nov. 2013
Greg, could you tell more about how could I use matrix training data? That would be very helpful. Cheers
Greg Heath
Greg Heath am 3 Nov. 2013
Any property you want to present should have each instance in column vector form. Therefore, if you want to present properties of a rectangular region, it should be columnized using the colon operatator.
The drawback is that each region must have the same size.
In some instances this is accomplished via overlapping rectangular regions.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by