DEEP LEARNING SERIES- PART 7

The previous article was about the process of convolution and its implementation. This article is about the padding, stride and the parameters involved in a CNN.

We have seen that there is a reduction of dimension in the output vector. A technique known as padding is done to preserve the original dimensions in the output vector. The only change in this process is that we add a boundary of ‘0s’ over the input vector and then do the convolution process.

Procedure to implement padding

  1. To get n*n output use a (n+2*n+2) input
  2. To get 7*7 output use 9*9 input
  3. In that 9*9 input fill the first row, first column, last row and last column with zero.
  4. Now do the convolution operation on it using a filter.
  5. Observe that the output has the same dimensions as of the input.

Zero is used since it is insignificant so as to keep the output dimension without affecting the results

Here all the elements in the input vector have been transferred to the output. Hence using padding we can preserve the originality of the input. Padding is denoted using P. If P=1 then one layer of zeroes is added and so on.

It is not necessary that the filter or kernel must be applied to all the cells. The pattern of applying the kernel onto the input vector is determined using the stride. It determines the shift or gaps in the cells where the filter has to be applied.-

S=1 means no gap is created. The filter is applied to all the cells.

S=2 means gap of 1. The filter is applied to alternative cells. This halves the dimensions on the output vector.

This diagram shows the movement of filter on a vector with stride of 1 and 2. With a stride of 2; alternative columns are accessed and hence the number of computations per row decreases by 2. Hence the output dimensions reduce while use stride.

The padding and stride are some features used in CNN.

Parameters in a convolution layer

The following are the terms needed for calculating the parameter for a convolution layer.

Input layer

Width Wi – width of input image

Height Hi – height of input image

Depth Di – 3 since they follow RGB

We saw that 7*7 inputs without padding and stride along with 3*3 kernels gave a 5*5 output. It can be verified using this calculation.

The role of padding can also be verified using this calculation.

The f is known as filter size. It can be a 1*1, 3*3 and so on. It is a 1-D value so the first value is taken. There is another term K which refers to the number of kernels used. This value is fixed by user.

These values are similar to those of w and b. The machine learns the ideal value for these parameters for high efficiency. The significance of partial connection or CNN can be easily understood through the parameters.

Consider the same example of (30*30*3) vector. The parameter for CNN by using 10 kernels will be 2.7 million. This is a large number. But if the same is done using FNN then the parameters will be at least 100 million. This is almost 50 times that of before. This is significantly larger than CNN. The reason for this large number is due to the full connectivity. 

                                                 

Parameter= 30*30*3*3*10= 2.7M

HAPPY READING!!

INSPIRATION LEADS TO SUCCESS.

Inspiration can come from anywhere, it’s something that makes you want to change in your life for the better, or someone who pushes you or set’s an example, or someone that makes you think about your life and how you want to change it.

My inspiration was my envy! Yes you heard it right. Growing up as a student was a challenging task. A child is vulnerable during this stage of life. The influence which the social sphere lay’s on them is very overwhelming. A child is born as an empty slate with capabilities; that child becomes a well adjusted individual by manifesting the potential they possess in a right way.

Let me share my piece of story. My experience as a student was, I lacked the quality of confidence and was not motivated enough to perform well in my desire area of interest, Literature. Every year mu school use to host English Recitation Competition in which I wanted to participate and win, but didn’t had the grit to admit my self into the competition. My teacher who always encouraged every student to exploit their potential advised me,“Winning doesn’t matter, what matter is participating”. That piece of encouragement was sufficient to to kick start my journey in search of my confidence aand winning that competition. I participated in the competition but I lose I was disheartened but was determine to win next year, but again success was not on my side and that’s when envy came into the frame. I was envious towards the winners and compared myself with them not releasing I was demotivating my own self. Consequently I observed the winners in the following years analyzing their ploy and instructed myself if they can do it why can’t I! I worked on my language skills and hand gestures evently advancing in the reciting tactics. I made the winners my model and changed my envious attitude into a matured one, which helped me to boost my motivation. This changes helped me to win the competition after a consistent failures in the past years. That’s when I learnt “INSPIRATION LEADS TO SUCCESS”

DEEP LEARNING SERIES- PART 6

The previous article was about the procedure to develop a deep learning network and introduction to CNN. This article concentrates on the process of convolution which is the process of taking in two images and doing a transformation to produce an output image. This process is common in mathematics and signals analysis also. The CNN’s are mainly used to work with images.

In the CNN partial connection is observed. Hence all the neurons are not connected to those in the next layer. So the number of parameters reduces leading to lesser computations.

Sample connection is seen in CNN.

Convolution in mathematics refers to the process of combining two different functions. With respect to CNN, convolution occurs between the image and the filter or kernel. Convolution itself is one of the processes done on the image.

Here also the operation is mathematical. It is a kind of operation on two vectors. The input image gets converted into a vector based on colour and dimension. The kernel or filter is a predefined vector with fixed values to perform various functions onto the image.

Process of convolution

The kernel or filter is chosen in order of 1*1, 3*3, 5*5, 7*7, and so on. The given filter vector slides over the image and performs dot product over the image vector and produces an output vector with the result of each 3*3 dot product over the 7*7 vector.

A 3*3 kernel slides over the 7*7 input vector to produce a 5*5 output image vector. The reason for the reduction in the dimension is that the kernel has to do dot product operation on the input vector-only with the same dimension. I.e. the kernel slides for every three rows in the seven rows. The kernel must perfectly fit into the input vector. All the cells in the kernel must superimpose onto the vector. No cells must be left open. There are only 5 ways to keep a 3-row filter in a 7-row vector.    

This pictorial representation can help to understand even better. These colors might seem confusing, but follow these steps to analyze them.

  1. View at the first row.
  2. Analyse and number the different colours used in that row
  3. Each colour represents a 3*3 kernel.
  4. In the first row the different colours are red, orange, light green, dark green and blue.
  5. They count up to five.
  6. Hence there are five ways to keep a 3 row filter over a 7 row vector.
  7. Repeat this analysis for all rows
  8. 35 different colours will be used. The math is that in each row there will be 5 combinations. For 7 rows there will be 35 combinations.
  9. The colour does not go beyond the 7 rows signifying that kernel cannot go beyond the dimension of input vector.

These are the 35 different ways to keep a 3*3 filter over a 7*7 image vector. From this diagram, we can analyse each row has five different colours. All the nine cells in the kernel must fit inside the vector. This is the reason for the reduction in the dimension of output vector.

Procedure to implement convolution

  1. Take the input image with given dimensions.
  2. Flatten it into 1-D vector. This is the input vector whose values represent the colour of a pixel in the image.
  3. Decide the dimension, quantity and values for filter. The value in a filter is based on the function needed like blurring, fadening, sharpening etc. the quantity and dimension is determined by the user.
  4. Take the filter and keep it over the input vector from the first cell. Assume a 3*3 filter kept over a 7*7 vector.
  5. Perform the following computations on them.

5a. take the values in the first cell of the filter and the vector.

5b. multiply them.

5c. take the values in the second cell of the filter and the vector.

5d. multiply them.

5e. repeat the procedure till the last cell.

5f. take the sum for all the nine values.

  • Place this value in the output vector.
  • Using the formula mentioned later, find the dimensions of the output vector.

HAPPY LEARNING!!

DEEP LEARNING SERIES- PART 5

The previous article was on algorithm and hyper-parameter tuning. This article is about the general steps for building a deep learning model and also the steps to improve its accuracy along with the second type of network known as CNN.

General procedure to build an AI machine

  1. Obtain the data in the form of excel sheets, csv (comma separated variables) or image datasets.
  2. Perform some pre-processing onto the data like normalisation, binarisation etc. (apply principles of statistics)
  3. Split the given data into training data and testing data. Give more preference to training data since more training can give better accuracy. Standard train test split ratio is 75:25.
  4. Define the class for the model. Class includes the initialisation, network architecture, regularisation, activation functions, loss function, learning algorithm and prediction.
  5. Plot the loss function and interpret the results.
  6. Compute the accuracy for both training and testing data and check onto the steps to improve it.

Steps to improve the accuracy

  1. Increase the training and testing data. More data can increase the accuracy since the machine learns better.
  2. Reduce the learning rate. High learning rate often affects the loss plot and accuracy.
  3. Increase the number of iterations (epochs). Training for more epochs can increase the accuracy
  4. Hyper parameter tuning. One of the efficient methods to improve the accuracy.
  5. Pre-processing of data. It becomes hard for the machine to work on data with different ranges. Hence it is recommended to standardise the data within a range of 0 to 1 for easy working.

These are some of the processes used to construct a network. Only basics have been provided on the concepts and it is recommended to learn more about these concepts. 

Implementation of FFN in detecting OSTEOARTHRITIS (OA)

Advancements in the detection of OA have occurred through AI. Technology has developed where machines are created to detect OA using the X-ray images from the patient. Since the input given is in the form of images, optimum performance can be obtained using CNN’s. Since the output is binary, the task is binary classification. A combination of CNN and FFN is used. CNN handles feature extraction i.e. converting the image into a form that is accepted by the FFN without changing the values. FFN is used to classify the image into two classes.

CNN-convolutional neural network

The convolutional neural network mainly works on image data. It is used for feature extraction from the image. This is a partially connected neural network. Image can be interpreted by us but not by machines. Hence they interpret images as a vector whose values represent the color intensity of the image. Every color can be expressed as a vector of 3-D known as RGB- Red Green Blue. The size of the vector is equal to the dimensions of the image.

                                                  

This type of input is fed into the CNN. There are several processing done to the image before classifying it. The combination of CNN and FNN serves a purpose for image classification.

Problems are seen in using FFN for image

  • We have seen earlier that the gradients are chain rule of gradient at different layers. For image data, large number of layers in order of thousands may require. It can result in millions of parameters. It is very tedious to find the gradient for the millions of these parameters.
  • Using FFN for image data can often overfit the data. This may be due to the large layers and large number of parameters.

The CNN can overcome the problems seen in FFN.

HAPPY LEARNING!!!

GUANO ISLANDS

Guano islands were discovered on a series of islands off the coast of Peru. These islands are rocky and barren and have no vegetation owning to lack of rain in the area.

The word ‘GUANO’ originated from the Andean indigenous language Quechua, which refers to any form of dung used as a fertilizer in agriculture. So what is guano? Dropping of certain fish eating birds are called as guano. Three birds are primarily producers of guano- white breasted cormorants, grey pelicans and white head gannets or piqueros. Millions of this types of birds reside on these islands because of this island isolation from natural predators and large reserves of anchovy fishes. Due to lack of rain their dropping gets baked in the dry atmosphere preventing nitrates in these droppings from evaporating make it a good fertilizer. Over the course of years guano reserves have accumulated into a thick layer of 100-150 feet guano fertilizer.

Guano has valuable agricultural benefits as it’s a natural fertilizer the crop yields improved which made it high prized commodity during 19th century. It was heavily traded by the European and American traders. It helped to build Peru economy. It Haas been estimated that around mid 1800’s Peruvian excavated over 20,000,000 tons of guano making a huge profit. Eventually Peru suffered a loss due depleted guno and introduction of artificial fertilizers.

Since 1909, the Peruvian government has taken measures to conserve guano reserves by establishing the GUANO ADMINISTRATION COMPANY . The methods includes;

. Keeping the islands off limits to reacumulate their guano reserves and not disturbing the natural habitat of these birds.

. Controlling the commercial fishing industry and setting measures to conserve guano birds feeds.

. Establishing preservation parks on the main land where some birds can migrate so that they can be safe from predators.

. Limiting guano exports and preventing disruption of ocean ecosystem.

SWATCH BHARAT SWASTH BHARAT

SWATCH BHARAT SWASTH BHARAT
Whether the Sun shines or it Rains; Cleaning the India should be our aim.
Pledge for cleanliness to show your keenness to clean India. India will teach us the tolerance and gentleness of mature mind, understanding spirit and a unifying, pacifying love for all human beings.” – Will Durant
India is in dire need of a cleanliness drive like Swachh Bharat Abhiyan to eradicate dirtiness. It is important for the overall development of citizens in terms of health and well-being. This a scheme to help us amd to make India healthy and clean and to make India swatch and swasth.

Swachh Bharat Abhiyan is one of the most significant and popular missions to have taken place in India. Swachh Bharat Abhiyan translates to Clean India Mission. This drive was formulated to cover all the cities and towns of India to make them clean. This campaign was administered by the Indian government and was introduced by the Prime Minister, Narendra Modi. It was launched on 2nd October in order to honor Mahatma Gandhi’s vision of a Clean India. The cleanliness campaign of Swachh Bharat Abhiyan was run on a national level and encompassed all the towns, rural and urban. It served as a great initiative in making people aware of the importance of cleanliness. This helped in making the message reach wider. It aims to build sanitary facilities for all households. One of the most common problems in rural areas is that of open defecation. Swachh Bharat Abhiyan aims to eliminate that. Generally, in these areas, people do not have proper toilet facilities. They go out in the fields or roads to excrete. This practice creates a lot of hygiene problems for citizens. Therefore, this Clean India mission can be of great help in enhancing the living conditions of these people. When we will dispose of waste properly and recycle waste, it will develop the country. As its main focus is one rural area, the quality of life of the rural citizens will be enhanced through it. Similarly, they also wanted to make people aware of health and education through awareness programs. After that, a major objective was to teach citizens to dispose of waste mindfully. Most importantly, it enhances the public health through its objectives. This helped in making the message reach wider. It aims to build sanitary facilities for all households.
Every small step towards sanitation will bring a big change for the nation.
Heaven could be on earth, Cleanness is something which has priceless worth.

The main objective of Swachh Bharat Abhiyan is to aware the citizens of the country of their utmost priority and responsibility towards cleanliness in the nearby surroundings and the spread of filth and infectious parasites. The campaign primarily focuses on eradicating the unhealthy practices of open defecation and provide basic sanitation facilities by constructing toilets, solid-liquid waste disposal systems, supplying clean drinking water, etc.

“Let’s make this our plea; we will make India open defecation free.
Cleanness can provide us inner peace, clean India mission is something that we need.
For cleanness we still have hope, because Swachh Bharat Abhiyan has a big scope.”


Swatch Bharat Abhiyan is a great accomplishment and proved out to a one of a kind project in the history of India. We must carry forward the practices of cleanliness with the same enthusiasm and zeal and help each other by keeping our Mother India clean and beautiful.
There are lots of schemes made for us by our government. These Abhiyan tries to make our beautiful India more beautiful and to make us healthier.
We can make our country beautiful; by participating in Swachh Bharat mission we can achieve something fruitful.
Let’s work on cleanliness from our side, and make India feel pride and clean your houses, roads and street, Cleanliness is our basic need. Make India great again, participate in Swachh Bharat mission to bring new reign.
Due to waste lying in the streets cause dangerous diseases which hampers our health and may cause dangerous diseases. These Abhiyan is a kind initiative to help us and to free us from these dangerous diseases. These are some examples how these Abhiyan help us and gift us a healthy life.
Clean India mission is something which we need for progress of our country.

Contaminated water causes many water-borne infections like diarrhoea, and also serves as a carrier for vectors such as mosquitoes spreading epidemics. Open defecation means no sanitation. It fouls the environment, and spreads diseases. According to WHO-UNICEF report (2010), India has the highest rate of open defecation. Access to safe drinking water and good sanitation are vital for family well-being. It results in control of enteric diseases, and boosts child health. A healthy child has better learning and retaining ability. Girls avoid going to school where there are no proper sanitation measures. Sanitation makes a positive contribution in family literacy. One key goal of sanitation is to safely reduce human exposure to pathogens. Pathogens are excreted by infected individuals and if not properly contained or treated, may present a risk to humans who come in contact with them. These individuals can also be exposed to pathogens through drinking water or eating food contaminated with pathogens found in human excreta. According to a UNICEF study, for every 10 per cent increase in female literacy, a country’s economy can grow by 0.3 per cent. Thus, sanitation contributes to social and economic development of the society.
Improved sanitation also helps the environment. Clean drinking water and good sanitation would not prevent infections without practicing good hygiene. A simple habit of washing hands goes a long way towards preventing diseases. The stored water supply may also serve as a source of infection in the absence of hygiene. Sanitation envisages promotion of health of the community by providing clean environment and breaking the cycle of disease. Sanitation systems aim to protect human health by providing a clean environment that will stop the transmission of disease, especially through the fecal–oral route. For example, diarrhea, a main cause of malnutrition and stunted growth in children, can be reduced through adequate sanitation.

If we follow the sanitation system then we can create a healthy world . If we live healthy then we can be wealthy. Swatch bharat is swasth bharat is a true word. If the world become clean then everyone become healthy.
If we want to make India a developed nation then clean India mission is the necessity.
Let’s take oath; by participating in clean India mission we will make our country proud.
Clean India mission is something which we need for progress of our country.
Working towards sanitation will bring a significant positive change for the nation.

DEEP LEARNING SERIES- PART 4

The previous article dealt with the networks and the backpropagation algorithm. This article is about the mathematical implementation of the algorithm in FFN followed by an important concept called hyper-parameter tuning.

In this FFN we apply the backpropagation to find the partial derivative of the loss function with respect to w1 so as to update w1.

Hence using backpropagation the algorithm determines the update required in the parameters so as to match the predicted output with the true output. The algorithm which performs this is known as Vanilla Gradient Descent.

The way of reading the input is determined using the strategy.

StrategyMeaning
StochasticOne by one
BatchSplitting entire input into batches
Mini-batchSplitting batch into batches

The sigmoid here is one of the types of the activation function. It is defined as the function pertaining to the transformation of input to output in a particular neuron. Differentiating the activation function gives the respective terms in the gradients.

There are two common phenomena seen in training networks. They are

  1. Under fitting
  2. Over fitting

If the model is too simple to learn the data then the model can underfit the data. In that case, complex models and algorithms must be used.

If the model is too complex to learn the data then the model can overfit the data. This can be visualized by seeing the differences in the training and testing loss function curves. The method adopted to change this is known as regularisation. Overfit and underfit can be visualized by plotting the graph of testing and training accuracies over the iterations. Perfect fit represents the overlapping of both curves.

Regularisation is the procedure to prevent the overfitting of data. Indirectly, it helps in increasing the accuracy of the model. It is either done by

  1. Adding noises to input to affect and reduce the output.
  2. To find the optimum iterations by early stopping
  3. By normalising the data (applying normal distribution to input)
  4. By forming subsets of a network and training them using dropout.

So far we have seen a lot of examples for a lot of procedures. There will be confusion arising at this point on what combination of items to use in the network for maximum optimization. There is a process known as hyper-parameter tuning. With the help of this, we can find the combination of items for maximum efficiency. The following items can be selected using this method.

  1. Network architecture
  2. Number of layers
  3. Number of neurons in each layer
  4. Learning algorithm
  5. Vanilla Gradient Descent
  6. Momentum based GD
  7. Nesterov accelerated gradient
  8. AdaGrad
  9. RMSProp
  10. Adam
  11. Initialisation
  12. Zero
  13. He
  14. Xavier
  15. Activation functions
  16. Sigmoid
  17. Tanh
  18. Relu
  19. Leaky relu
  20. Softmax
  21. Strategy
  22. Batch
  23. Mini-batch
  24. Stochastic
  25. Regularisation
  26. L2 norm
  27. Early stopping
  28. Addition of noise
  29. Normalisation
  30. Drop-out

 All these six categories are essential in building a network and improving its accuracy. Hyperparameter tuning can be done in two ways

  1. Based on the knowledge of task
  2. Random combination

The first method involves determining the items based on the knowledge of the task to be performed. For example, if classification is considered then

  • Activation function- softmax in o/p and sigmoid for rest
  • Initialisation- zero or Xavier
  • Strategy- stochastic
  • Algorithm- vanilla GD

The second method involves the random combination of these items and finding the best combination for which the loss function is minimum and accuracy is high.

Hyperparameter tuning would already be done by researchers who finally report the correct combination of items for maximum accuracy.

HAPPY READING!!!

DEEP LEARNING SERIES- PART 3

The previous article gave some introduction to the networks used in deep learning. This article provides more information on the different types of neural networks.

In a feed-forward neural network (FFN) all the neurons in one layer are connected to the next layer. The advantage is that all the information processed from the previous neurons is fed to the next layer hence getting clarity in the process. But the number of weights and biases significantly increases when there is a large number of input. This method is best used for text data.

In a convolutional neural network (CNN), some of the neurons are only connected to the next layer i.e. connection is partial. Batch-wise information is fed into the next layer. The advantage is that the number of parameters significantly reduces when compared to FFN. This method is best used for image data since there will be thousands of inputs.

In recurrent neural networks, the output of one neuron is fed back as an input to the neuron in the previous layer. A feed-forward and a feedback connection are established between the neurons. The advantage is that the neuron in the previous layer can perform efficiently and can update based on the output from the next neuron. This concept is similar to reinforcement learning in the brain. The brain learns an action based on punishment or reward given as feedback to the neuron corresponding to that action.

Once the final output is computed by the network, it is then compared with the original value, and their difference is taken in different forms like the difference of squares, etc. this term is known as loss function.

It will be better to explain the role of the learning algorithms here. The learning algorithm is the one that tries to find the relation between the input and output. In the case of neural networks, the output is indirectly related to input since there are some hidden layers in between them. This learning algorithm works in such a way so as to find the optimum w and b values for the loss function is minimum or ideally zero.

The algorithm in neural networks do this using a method called backpropagation. In this method, the algorithm starts tracing from the output. It then computes the values for the parameters corresponding to the neuron in that layer. It then goes back to the previous layer does the computations for the parameters of the neurons in that layer. This procedure is done till it encounters the inputs. In this way, we can find the optimum values for the parameters.

The computations made by the algorithm are based on the type of the algorithm. Most of the algorithms find the derivative of a parameter in one layer with respect to the loss function using backpropagation. This derivative is then subtracted from the original value.

Where lr is the learning rate; provided by the user. The lesser the learning rate, the better will be the results but more the time is taken. The starting value for w and b is determined using the initialization.

MethodMeaning
ZeroW and b are set to zero
Xavierw and b indirectly proportional to root n
He w and b indirectly proportional to root n/2

 Where n; refers to the number of neurons in a layer. These depend on the activation function used.

The derivative of the loss function determines the updating of the parameters.

Value of derivativeConsequence
-veIncreases
0No change
+veDecreases

The derivative of the loss function with respect to the weight or bias in a particular layer can be determined using the chain rule used in calculus.

HAPPY READING!!

AN IDLE LIFE IS AN EARLY DEATH

An idle life is an early death. It means wasting time and doing nothing, life without an aim and lack of ambitions. Scientifically it’s proved that an idle life leads to physical incapabilities and mental disorders.

“A SOUL WITHOUT A HIGH AIM , IS LIKE A SHIP WITHOUT A RUDDER.”

The meaning of the above quote is , a ship has a rudder which helps it to turn it into a particular direction, same way a person should set a high aim in life and should be courageous enough to achieve that goal through the path they choose. Each one of us have been equipped with unique abilities and sensibilities, they have the power within them they just need to manifest that power to achieve their desired goal. To contribute something positive in the society one needs to understand they just don’t need to be active but to be proactive to display the difference they have and make in the community.

Mankind has always been inclined towards growth, but only a significant individual are able to leave their footprint on the sand. Their capabilities reflects in their personality, who didn’t choose to live an idle life but are capable to make difference in life to benefit the future generations. Our great leaders, freedom fighters, philosophers, scientists and many more who contributed to the humankind. They didn’t get dusted away in the flow of time but become immortal by their virtues , rightly termed as ‘live in deeds, not in years.’

We the present generation should look upto this great pioneer and get aspirations from them so we also don’t lead an idle life and contribute great work to humanity so we don’t get lost in the flow of time.

Butterflies🦋

Have you ever seen a baby butterfly? Me neither because they don’t exist🤭. Butterfly is the adult form of caterpillar. But who gave butterflies the right to be this beautiful🥺, they are a treat to eyes. All the colors they display with so much variety in shapes and patterns is just breathtaking. They indicate biodiversity but sadly the change in climate and the shift in weather is slowly making these creatures to go extinct. Since, they are known to react quickly on climate change and to see them struggling to survive is a serious indication and warning of global warming.

Photo by Madison Inouye on Pexels.com

let’s look at some amazing facts about butterflies.

Butterflies can fly with a speed of 12 miles per hour.Their size can differ from as tiny as 1/8 inch to a huge 12 inches.

Their wings are made up a substance called chitin and are transparent in real. All the colors we see are a reflection of various colors through the thousands of scales present in them.

Photo by Suzy Hazelwood on Pexels.com

There are about 24,000 butterfly species on this earth. Antarctica is the only place to be devoid of their presence.

The Monarch Butterfly Biosphere Reserve is located in Mexico. Millions of butterflies travel from Texas. The trees are filled with butterflies and appear orange in color. The goal of reserve is to protect the butterfly species and their habitat.

They have their taste receptors on their feet. Their legs help them in locating the best plants and are evn used by them to choose plants for laying eggs.

Photo by Quang Nguyen Vinh on Pexels.com

Their average lifespan is of a 3-4 weeks. One species of butterfly lives only upto 24 hours and some migratory butterflies can live for about 8 months.

Butterflies are cold blooded hence, require ideal settings. They can’t fly if their temperature is less than 85 degrees. Some species migrate to warm places when the temperature begins to drop.

Photo by Pixabay on Pexels.com

Butterflies are health conscious and so they follow liquid diet. Lol. Actually they don’t have the necessary apparatus that helps in chewing instead they have a straw like structure that helps them in sucking nectar from flowers.

Their wings are a great defense against enemies. All the color and patterns are actually to scare predators away. And also they have 4 wings not 2. Forewings, that are close to the head and hindwings, at the back.

Photo by Aenic Visuals on Pexels.com

Pets And Humans

By Anshiki Jadia

A few connections can’t be depicted in words and one of them is human and pet relationship. This relationship can’t be portrayed in words and the sensations of creatures are so unadulterated their blamelessness simply wins your heart. Pet presence at home might bring about sure, glad environmental elements, prosperity in individuals and abilities in youngsters.

Individuals generally keep felines and canines as their pet. Individuals pet different creatures too like parrot, fish, ponies and that’s only the tip of the iceberg. Be that as it may, proportion of keeping felines and canines as their pet is high when contrasted with others.

People and pets relationship is normally valuable and moment and dynamic relationship. People are constantly benefitted and content with this relationship as from numerous years creatures have been an extremely cheerful and accommodating piece of human existence. The association which you share with your pet is profound to the point that it can’t be depicted in words. Our pets can detect our joy, pity, temperament, disappointment in your life. They even can detect the opponents which are near you and which individual is doing useful for you and which not.

As it is helpful for people it is valuable for creatures as well, as they get great safe house, great food , great consideration, colossal love and love.

HUMAN-DOG RELATIONSHIP –

Human canine association is a standout amongst other organization. Canines comprehend human so well by taking a gander at their temperament. Canines are known as the people closest companion. Canines are so glad to see their proprietor back in the home and are so glad to welcome them. It is otherwise called human-canine holding. Canines are so useful and keen that they are use in examinations for tackling case quicker. Canines regularly watches your home, go on long strolls with you, comprehends you well, and has been there as a decent ally to whom you can share anything.

As indicated by advisors likewise, creature human relationship is extremely useful for the two of them, similar to you can converse with them, hit the dance floor with your canine, partake in specialized canine care exercises so your canine additionally feels better. Canines can recognize great and awful. They can undoubtedly recognize among companion and enemy. Canine and human can bond together by straightforward exercises like playing or through a walk. They can make bond simply by doing an eye to eye connection like people. People love cushioned things and love to have them and canines are that way. Canines can unmistakably get what you are saying and love to invest energy with you.

HUMAN – CAT RELATIONSHIP –

Human and feline relationship is not the same as human canines relationship. Felines show love towards their proprietor uniquely in contrast to canines, however as per late examinations felines can rapidly bond with human actually like canines do. Felines are less receptive to human clues than canines. Felines now and then didn’t go to people for their assistance and they react to circumstances simply their proprietors do like panic or glad.

Felines are delicate to human mind-sets, they are less inclined to move toward people who are pitiful and bound to move toward people who are garrulous and outgoing. Felines are excessively generally receptive to their proprietor’s voice actually like canines do. Felines also love to invest energy with their proprietor and don’t remain with outsiders for long time.

However long human considers felines their partner you can bend over backward to improve their life and great and can give them great consideration and haven.

Keeping pet can diminish your pressure, can improve your state of mind, make you all the more truly dynamic, helps in making social associations as you go out with them and meet your companions and new individuals uncommonly it is better for senior residents or any other individual who is less friendly and pets offer the enthusiastic help and don’t anticipate much consequently your adoration.

Music As A Therapy

By Anshiki Jadia

As we say great music can mend anything. We as a whole love to listen music while working, driving, running, in exercise centers and then some. We pay attention to you that identifies with us, that we love tuning in a wide range of circumstances. Great Music is a fixation. Music can change somebody’s state of mind, can make them loose, can make them energized or can help in quieting. Music is a significant part as it is a language of feeling that addresses various sentiments and gets into soul without any limits or restrictions. It interfaces us to various pieces of the world. Individuals from various district can associate with one another by means of music. As indicated by research it has been shown that music can lessen tension, circulatory strain and torment also as it can further develop rest quality, emotional well-being and memory.

As per research, music goes about as a treatment for different emotional wellness conditions like gloom, injury, and schizophrenia. Music goes about as a medium that reflects feelings, torment, injury, and so on and can be utilized to quiet an individual, lessen their tension and cause them to feel unwind.

It’s undeniably true’s that while paying attention to music we work all the more successfully and truly appreciates it. Music is a language that is cherished by all and it interfaces us to individuals everywhere. With music we can communicate all the more viably.

Mending force of music is without a doubt the best and is applauded by everybody. Music treatment is propelling step by step and is zeroing in on in general wellbeing model. Music treatment utilizes music to further develop physical, mental and prosperity of people.

Ever, music was utilized as a treatment apparatus to fix issues identified with mind, including actual issues like sensation and development. Previously, then after the fact both the universal conflicts, heading out music bunches used to visit patients in emergency clinics and played music for them, seeing this specialists came to understand that music powerfully affects patients and can assist them with recuperating, and mentioned clinics to employ artists. This came out to be the music treatment meetings. Indeed, even in schools and universities music is incorporated as extra curricular exercises.

Music treatment can both assess and upgrade social, enthusiastic, psychological and engine working of a person. This treatment can likewise be utilized in therapy of actual sicknesses like hypertension and malignant growth. Music treatment are restricted to mental or actual issues as well as it can benefit in different circumstances or issues.

Music treatment can be coordinated face to face or with gatherings, and music can be pick by any of the party for example specialist or individual in treatment. The specialist will guarantee what sort of music the individual is picking and at what time to accomplish the objectives and answers for the issues of the person. In the start of music treatment advisors by and large prescribe music to people that matches to their present circumstance.

Music is adored by all age gatherings and that is the reason it is the most significant associating factor between individuals.

Music treatment results are practically acceptable and positive however it isn’t suggested as the last choice for genuine ailments and mental circumstances.

Impact of music in music treatment relies upon people music decision and how it will help them. To accomplish objectives and necessities in music treatment, advisors need to guarantee the people music inclinations and their present circumstances.

Let’s Communicate

By Anshiki Jadia

Have you at any point been in that abnormal circumstance with somebody where you were unable to move beyond the short discussions? Starts with the good tidings and afterward a total full stop? The underlying driver of this load of issues is ill-advised relational abilities!

WHAT EXACTLY IS COMMUNICATION?

Indeed, the course book might characterize it as “the demonstration of giving, getting, and sharing data” But it is significantly more than that, and when placed into straightforward words, it’s essentially trading thoughts and considerations, being liberal about one another’s point of view and being somewhat weak enough to trust the individual that you address.

HOW TO GET BETTER AT COMMUNICATION IN THE PROFESSIONAL SECTOR?

A few group might confront issues when they need to fire up the discussion, they are normally clear initially, don’t have the foggiest idea how to begin the discussion, however when they get into it and open up, they discover no issues in proceeding with the discussion.

Have some ‘profound’ ice breakers close by :

You can’t anticipate that topics should just snap in your psyche, so perhaps it is smarter to set yourself up ahead of time. To do that, you should initially have to accept that, the individual you are conversing with likewise coordinates with a similar excitement as yours. In any event, when uncertain, step up, it might wind up knocking your socks off!

Pose inquiries about subjects the other individual is keen on :

Extraordinary compared to other approaches to proceed with the protection is talking on the subjects the other individual is keen on, so to do that, you should essentially know something’s about him/her, which should either be possible by a little historical verification, assuming the individual you are addressing has direct impact over you, it is smarter to know things about him/her to dazzle. Else you can get by their non-verbal communication with respect to where their inclinations may lay.

Try not to push individuals to see your point of view :

We all are special in our own specific manner, likewise outlooks differ from one individual to another. At the point when you are discussing a specific subject ensure you are simply bringing up your considerations and sentiments yet not pushing them. They will have their own point of view, pay attention to it, not the entirety of our realities should be right as now and then when you go further into the subject you might understand that there is plausible to investigate the matter contrastingly as well! So rather than pushing your considerations, keep the discussion light and end with “What are your viewpoints about it?”

Try not to discuss the climate :

The subject of climate essentially implies that you are either not intrigued by the discussion or don’t have a clue what else to talk about. So I recommend you not take up this theme.

Uncover something somewhat close to home about yourself :

Rather than straightforwardly leaping direct, you can discuss your own insight with regards to why you have the assessment that you have. At the point when you disclose to them more about yourself they get a reasonable thought as well! Rather than asking them inquiries and anticipating answers, you can request their accounts, rather than posing inquiries like, “Did you have a good end of the week?” or, “What’s happening?” have a go at inquiring “What was the most amazing aspect of your end of the week?” or “What are you anticipating this week?”

Never back down, feeling that you talking or that your inflection isn’t adequate. You need to commit errors to learn! Step up and accept circumstances for what they are!

DEEP LEARNING- PART 2

This image has an empty alt attribute; its file name is deep-learning-logo-picture-id871793108

The previous article gave a brief introduction to deep learning. This article deals with the networks used in deep learning. This network is known as a neural network. As the name suggests the network is made up of neurons

The networks used in artificial intelligence are a combination of blocks arranged in layers. These blocks are called an artificial neurons. They mimic the properties of a natural neuron. One of the neurons is the sigmoid neuron.

This is in general the formula for the sigmoid function. Every neural network consists of weights and biases.

Weights- The scalar quantities which get multiplied to the input

Biases- the threshold quantity above which a neuron fires

NotationMeaning
XInput
YOutput
WWeight
BBias

Working of a neuron

This is the simple representation of a neuron. This is similar to the biological neuron. In this neuron, the inputs are given along with some priority known as weights. The higher the value of the weights, the more prioritized is that input. This is the reason for our brain to choose one activity over the other. Activity is done only if the neuron fires. A similar situation is seen here. The particular activity is forwarded to the next layer only if this particular neuron fires. That is the output must be produced from the neuron.

Condition for the neuron to fire

The neuron will produce an output only if the inputs follow the condition.

As mentioned before, the bias is the threshold value and the neuron will fire only when the value crosses this bias. Thus the weighted sum for all the inputs must be greater than the bias in order to produce an output.

Classification of networks

Every neural network consists of three layers majorly: –

  1. Input layer
    1. Hidden layer
    1. Output layer

Input layer

The input layer consists of inputs in the form of vectors. Images are converted into 1-D vectors. Input can be of any form like audio, text, video, image, etc. which get converted into vectors.

Hidden layer

This is the layer in which all the computations occur. This is generally not visible to the user hence termed as a hidden layer. This layer may be single or multiple based on the complexity of the task to be performed. Each layer processes a part of the task and it is sent to the next layer. Vectors get multiplied with the weight matrix of correct dimensions and this vector gets passed onto the next layer.

Output layer

The output layer gets information from the last layer of the hidden layer. This is the last stage in the network. This stage depends upon the task given by the user. The output will be a 1-D vector. In the case of classification, the vector will have a value high for a particular class. In the case of regression, the output vector will have numbers representing the answer to those questions posed by the user.

The next article is about the feed-forward neural network.

HAPPY LEARNING!!

DEEP LEARNING SERIES- PART 1

Have you ever wondered how the brain works? One way of understanding it is by cutting open the brain and analyzing the structures present inside it. This however can be done by researchers and doctors. Another method is by using electricity to stimulate several regions of the brain. But what if I say that it is possible to analyze and mimic the brain in our computers? Sounds quite interesting right! This particular technology is known as deep learning.

Deep learning is the technique of producing networks that process unstructured data and gives output. With the help of deep learning, it is possible to produce and use brain-like networks for various tasks in our systems. It is like using the brain without taking it out.  Deep learning is advanced than machine learning and imitates the brain better than machine learning and also the networks built using deep learning consists of parts known as neurons which is similar to biological neurons. Artificial intelligence has attracted researchers in every domain for the past two decades especially in the medical field; AI is used to detect several diseases in healthcare.

Sl.noNameDescriptionExamples
1DataType of data provided to inputBinary(0,1) Real
2TaskThe operation required to do on the inputClassification(binary or multi) Regression(prediction)
3ModelThe mathematical relation between input and output. This varies based on the task and complexityMP neuron(Y=x+b) Perceptron(Y=wx+b) Sigmoid or logistic(Y=1/1+exp(wx+b)) *w and b are parameters corresponding to the model
4Loss functionKind of a compiler that finds errors between the output and input (how much the o/p leads or lags the i/p).Square error= square of the difference between the predicted and actual output.  
5AlgorithmA kind of learning procedure that tries to reduce the error computed beforeGradient descent
NAG
AdaGrad
Adam
RMSProp
6EvaluationFinding how good the model has performedAccuracy
Mean accuracy

Every model in this deep learning can be easily understood through these six domains. Or in other words, these six domains play an important role in the construction of any model. As we require cement, sand, pebbles, and bricks to construct a house we require these six domains to construct a network.

 Now it will be more understandable to tell about the general procedure for networks.

  1. Take in the data (inputs and their corresponding outputs) from the user.
  2. Perform the task as mentioned by the user.
  3. Apply the specific relation to the input to compute the predicted output as declared by the user in the form of model by assigning values to parameters in the model.
  4.  Find the loss the model has made through computing the difference between the predicted and actual output.
  5. Use a suitable learning algorithm so as to minimize the loss by finding the optimum value for parameters in the network
  6. Run the model and evaluate its performance in order to find its efficiency and enhance it if found less.

By following these steps correctly, one can develop their own machine. In order to learn better on this, pursuing AI either through courses or opting as a major is highly recommended. The reason is that understanding those concepts requires various divisions in mathematics like statistics, probability, calculus, vectors, and matrices apart from programming. 

       

HAPPY READING!!