Você está na página 1de 10

UNIVERSIDAD NACIONAL DEL

CENTRO DEL PER


INGENIERIA DE SISTEMAS
TEMA:
Implementacin de redes neuronales para identificar figuras
geomtricas.
DOCENTE:
Dr. Abraham Gamarra Moreno
INTERGRANTES:
Vivas Mancha Jhoel Elvis

HYO - 2015

Implementacin de redes neuronales para identificar figuras geomtricas

1. DESCRIPCIN DE LA APLICACIN
Esta implementacin de reconocimiento de figuras geomtricas, consiste
en dibujar figuras geomtricas en una aplicacin desarrollada, y esta va a
reconocer estas figuras e indicar si corresponde a cuadrado, triangulo o
rombo.
La Red Neuronal tiene 36 entradas que son lo botones con el cual se va a
representar la grfica, y que la maquina tiene que reconocer.
Esto lo desarrollaremos mediante redes neuronales y la aplicacin lo
desarrollaremos en visual.net.
2. DESARROLLO DE LA RED NEURONAL
Definimos Patrones que van hacer fuente de conocimiento para nuestra red
Neuronal.
Se consider un total de 119 patrones sin duplicar. Son 36 entradas (x1, x2,
x3,, x34, x35, x36) y una salida.
Tabla de entrenamiento de redes neuronales.
X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X F
i
1 2 3 4 5 6 7 8 9 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 g
1 1 1 1 1 1 1 0 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0 1 1 1 1 1 1 1 1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6
1 1 1 1 1 0 1 0 0 0 1 0 1 0 0 0 1 0 1 0 0 0 1 0 1 0 0 0 1 0 1 1 1 1 1 0 1
0 1 1 1 1 1 0 1 0 0 0 1 0 1 0 0 0 1 0 1 0 0 0 1 0 1 1 1 1 1 0 0 0 0 0 0 1
0 0 0 0 0 0 1 1 1 1 1 0 1 0 0 0 1 0 1 0 0 0 1 0 1 0 0 0 1 0 1 1 1 1 1 1 1
0 0 0 0 0 0 0 1 1 1 1 1 0 1 0 0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 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 1 0 1 0 0 1 1 1 1 3
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 1 0 1 0 0 1 1 1 1 0 0 3
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 1 0 1 0 0 1 1 1 1 0 3

Pasos a desarrollar
Duplicamos los patrones anteriores para utilizar en el NeuroShell

Creamos un nuevo proyecto en NeuroShell

Importamos los patrones y definimos las entradas y salidas para calcular los max y min

Calculamos los valores de M y N

Entrenamos la red neuronal y el cdigo creado lo exportamos en visual

Diseamos el formulario en visual

Copiamos el cdigo generado en NeuroShell

Desarrollamos el cdigo para el reconocimiento de las figuras

Compilamos la aplicacin y listo