Neural networks application for recognition of geometrical shapes | Статья в журнале «Молодой ученый»

Отправьте статью сегодня! Журнал выйдет 28 декабря, печатный экземпляр отправим 1 января.

Опубликовать статью в журнале

Автор:

Рубрика: Информационные технологии

Опубликовано в Молодой учёный №51 (237) декабрь 2018 г.

Дата публикации: 20.12.2018

Статья просмотрена: 46 раз

Библиографическое описание:

Мирзохидов, М. Х. Neural networks application for recognition of geometrical shapes / М. Х. Мирзохидов. — Текст : непосредственный // Молодой ученый. — 2018. — № 51 (237). — С. 14-17. — URL: https://moluch.ru/archive/237/55036/ (дата обращения: 17.12.2024).



In the work, problem of object recognition by application of neural networks based on algorithm of backpropagation on the example of recognition of geometrical objects — triangles, rectangles and circles, was considered.

For the solution of the problem of recognition of geometrical shapes on multilayered perceptron network architecture it was used a backpropagation algorithm. Neural network is divided into input, hidden and output layers, which consist of 784, 300, 3 neurons respectively. Image 28x28 sized (matrix ) is used for the input. Neurons on the output layer provide the probability of the recognition. Learning the network is divided into several stages, which includes:

‒ Data submission to the input layer and getting an output;

‒ Calculating and propagating an appropriate error;

‒ Correction of the weights;

Implementation of the neural network using backpropagation algorithm was realized on Python. For learning of the neural network Keras library was used. As a result, learning coefficient on the output — 0.90. Subsequently, recognition probability equals to 90 %.

Let us take — an input vector of the learning data, — weights vector, each element of which corresponds to the each neuron, — vector of hidden neurons, — vector of output neurons, error information, — weight correction component of, bias, vector of target values.

Activation function

Activation function should be continuous, differential and monotonously decreasing. Let us consider binary sigmoid activation function with (0, 1) range, which can be defined by following formula:

Картинки по запросу бинарный сигмоид

Learning algorithm

  1. weights initialization between neurons

Weights initialization is set up stochastic and accepts discrete random variants from Normal distribution 1;

  1. Data distribution from the input towards to the output.

Each input neuron gets input signal. Firstly, signal quantity should be determined, which is the product of rows and cols of matrix I:

  1. Each input neuron transmits obtained input data to the all neurons on the hidden layer. Input data is the sum of all signals multiplied to appropriate weights:

  1. Each hidden neuron summarizes input signals and applies activation function:

(1)

= (2)

  1. Output neuron summarizes input signals, afterwards applies activation function. Once activation function is applied, output signal is calculated, which is get as following vector:

(1)

= (2)

During the learning of the neural network, each output neuron compares value of the output signal with the target value. Subsequently, error value is determined for each input neuron, which will be used for the weights correction.

Error backpropagation

  1. Each output neuron gets target value — correct value, which corresponds to the current input signal and calculates the coefficient of the error:

  1. Hidden neuron summarizes and calculates values of the error by calculating obtained value to derivative of activation function. Then calculates the value, which describes change of the weight:

Weights correction

  1. Each output neuron changes the values of its weights with hidden neurons;
  2. Each hidden neuron changes the values of its weights with output neurons.

Condition of work termination of an algorithm can be defined as achievement of total square error of result on the output of network of the minimum preset in advance during training process, and performance of a certain number of iterations of an algorithm.

The choice of initial weights will have an impact on whether the network will manage to reach a local minimum of an error, and how fast this process will happen. Change of weights between two neurons is connected from derivative of activation function of a neuron from the subsequent layer and activation function of a neuron of previous layer. In this regard, it is important to avoid the choice of such initial weights, which will nullify activation function or its derivative. On the other hand, if initial weight are too small, then the entrance signal on the hidden or output neurons will be close to zero that will also lead to very low speed of training.

References:

  1. Simon O. Haykin, Neural Networks and Learning Machines. — Third Edition, Pearson, 2008. — p. 129–140
  2. Luis Pedro Coelho, Willi Richert, Building Machine Learning Systems with Python. — Second Edition. — PACKT Publishing, 2015. — p. 65–66
Основные термины (генерируются автоматически): PACKT.


Похожие статьи

Process automation of accounting and investigation of technological violations by software package “Accident rate”

The article deals with special software designed to automate accounting processes and investigating technological violations in the electricity sector. It briefly describes the purpose of research, introduction, objectives, functions and features of ...

Integrating Films into the English Classroom

The article deals with some aspects of integrating films into the English classes. Teaching through films is presented as a valuable instructional tool aimed at development and improvement of students’ language skills and raising their motivation.

Pragmatic and semantic features of adjectival components in phraseological units

This article dedicates the study of the English phraseology units and its linguistic structure with the usage of adjectives which presents a certain interest both for theoretical investigation and for practical usage.

Semantic Change and Its Sources in the English Language

The article is devoted to the investigation of sources, stylistic and the historical factors which lead to a semantic change in English. The author tries to explain the significance of this process in language development.

Modern techniques of learning English language

The article describes modern methods of teaching foreign languages. The article contains a material about the advantages and prospects of using the described technologies in the process of teaching foreign languages, which can be considered as altern...

Organizing and managing a literature based on reading program

This article reveals the importance of teaching basic concepts of reading materials and the way of conveying the information from the written literary works. Its main purpose is to introduce English teachers and language learners to the many linguist...

Efficiency of teaching of students to critical thinking on computer science lessons

In this article methods of application of the critical thinking model in the teaching of computer science are analyzed.

The effect of metacognitive strategy training on the listening and speaking performance of learners

This article is done by the exchange students from Turkmenistan and can be considered as the result of investigations to develop learners’ language strategies. The article suggests a number of effective ways to develop language strategies. Language i...

The role of machine translators in perception the multiple meaning words in the context

The following article is devoted to one of the main problems of semasiology to the polysemy and the role of electronic translators in perception the multilingual words in the context.

Translation methods of special texts in biology

This article is devoted to the features and formation of the terminological base. Identification of the conformity of the word to the concept, the name of which is the word, the need to determine the parameters of the concept.

Похожие статьи

Process automation of accounting and investigation of technological violations by software package “Accident rate”

The article deals with special software designed to automate accounting processes and investigating technological violations in the electricity sector. It briefly describes the purpose of research, introduction, objectives, functions and features of ...

Integrating Films into the English Classroom

The article deals with some aspects of integrating films into the English classes. Teaching through films is presented as a valuable instructional tool aimed at development and improvement of students’ language skills and raising their motivation.

Pragmatic and semantic features of adjectival components in phraseological units

This article dedicates the study of the English phraseology units and its linguistic structure with the usage of adjectives which presents a certain interest both for theoretical investigation and for practical usage.

Semantic Change and Its Sources in the English Language

The article is devoted to the investigation of sources, stylistic and the historical factors which lead to a semantic change in English. The author tries to explain the significance of this process in language development.

Modern techniques of learning English language

The article describes modern methods of teaching foreign languages. The article contains a material about the advantages and prospects of using the described technologies in the process of teaching foreign languages, which can be considered as altern...

Organizing and managing a literature based on reading program

This article reveals the importance of teaching basic concepts of reading materials and the way of conveying the information from the written literary works. Its main purpose is to introduce English teachers and language learners to the many linguist...

Efficiency of teaching of students to critical thinking on computer science lessons

In this article methods of application of the critical thinking model in the teaching of computer science are analyzed.

The effect of metacognitive strategy training on the listening and speaking performance of learners

This article is done by the exchange students from Turkmenistan and can be considered as the result of investigations to develop learners’ language strategies. The article suggests a number of effective ways to develop language strategies. Language i...

The role of machine translators in perception the multiple meaning words in the context

The following article is devoted to one of the main problems of semasiology to the polysemy and the role of electronic translators in perception the multilingual words in the context.

Translation methods of special texts in biology

This article is devoted to the features and formation of the terminological base. Identification of the conformity of the word to the concept, the name of which is the word, the need to determine the parameters of the concept.

Задать вопрос