Você está na página 1de 12

International Research Journal of Computer Science (IRJCS) ISSN: 2393-9842

Issue 07, Volume 5 (July 2018) www.irjcs.com

PREDICT NORMAL BABIES WEIGHT USING


K- NEAREST NEIGHBORS
Dimas Adjie Pamungkas
Departement of Information System, Faculty of Computer Science,
Mercu Buana University, Indonesia
dimasadjie420@gmail.com
Bagus Priambodo
Departement of Information System, Faculty of Computer Science,
Mercu Buana University, Indonesia
bagus.priambodo@mercubuana.ac.id
Manuscript History
Number: IRJCS/RS/Vol.05/Issue07/JYCS10080
Received: 04, July 2018
Final Correction: 09, July 2018
Final Accepted: 11, July2018
Published: July 2018
Citation: Pamungkas & Priambodo (2018). PREDICT NORMAL BABIES WEIGHT USING K- NEAREST
NEIGHBORS.IRJCS:: International Research Journal of Computer Science, Volume V, 368-379.
doi://10.26562/IRJCS.2018.JYCS10080
Editor: Dr.A.Arul L.S, Chief Editor, IRJCS, AM Publications, India
Copyright: ©2018 This is an open access article distributed under the terms of the Creative Commons Attribution
License, Which Permits unrestricted use, distribution, and reproduction in any medium, provided the original author
and source are credited
Abstract— Posyandu is an activity to record the health condition of children under five that is done regularly and
continuously every month. Recording health of children under five is done to monitor the growth of children
under five (growth monitoring), both weight and height growth of children under five. Weighing weight and
height measurement of babies at posyandu is the effort of society in monitoring growth of baby and toddler
growth. Although the weight and height of the toddler have been recorded in the KMS, parents still need to do the
calculations to find out if their toddlers have normal weight or not, besides the parents also want to know if their
toddler weight will increase in the coming months based on the baby's weight in previous months. We propose a
nearest neighbour using Euclidean distance to determine if the weight of a toddler is normal, less normal or
abnormal based on the WHO table. Furthermore, to predict the weight of infants in the coming months we
propose k-nearest neighbour based on the previous baby's weight. The experimental results show that k-nearest
neighbour can classify normal, abnormal, and abnormal growths of the baby and k-nearest neighbour can predict
the baby's weight in the following month.
Keywords— Classification of baby growth; baby weight prediction; K-Nearest Neighbor;
I. INTRODUCTION
Posyandu is an activity to record the health condition of children under five that is done regularly and
continuously every month. Recording health of children under five is done to monitor the growth of toddlers, both
weight and height growth of children under five. Weighing weight and height measurement of babies at posyandu
is the effort of society in monitoring growth of baby and toddler growth. Monitoring the growth of toddlers is very
important to be done to determine early growth failure (growth faltering). Currently, health education is
conducted by health workers by providing counselling directly. Results of counselling, weight and height of
children under five are recorded in KMS every month. Recording in the KMS is done to monitor the growth of
infants and toddlers. Although the weight and height of the toddler have been recorded in the KMS, the mothers
still need to do the calculations to find out their toddler has an ideal weight or not. This shows that in fact people
still lay for information covering about the growth of children's health and toddlers.(Munawaroh,2014).

_________________________________________________________________________________________________
IRJCS: Impact Factor Value – SJIF: Innospace, Morocco (2016): 4.281
Indexcopernicus: (ICV 2016): 88.80
© 2014- 18, IRJCS- All Rights Reserved Page -368
International Research Journal of Computer Science (IRJCS) ISSN: 2393-9842
Issue 07, Volume 5 (July 2018) www.irjcs.com

Information technology is now one of the solutions in providing information about health education for mothers
in monitoring the growth of infants and toddlers. in addition to the early detection of deviations and disorders of
infant and toddler growth. The approach of information technology makes one of the alternatives done to
facilitate the information becomes more effective. Information technology in health services in the development of
this technology is a demand to be able to develop the quality of health services in Indonesia Exponential Maternal
Neonatal Survivor (EMAS) program is one of the objectives is the use of information technology in reducing the
number of physical deficiencies toddlers and to the health norm of infants and toddlers. The use of information
systems in the health sector has long been used in Indonesia, but not all have utilized information technology to
assist the work of a medical worker (Nurhidayati et al., Nd), particularly in assisting monitoring infant and toddler
growth in Rt 005/ Rw 001 Kelurahan ketapang districts cipondoh tangerang city. Basically, parents are eager to
find out if their toddler weight is normal or not, besides the parents also want to know whether their toddler
weight will increase in the coming month based on the baby weight of previous months.
In previous research, K-NN algorithm was applied to predict predicate of student achievement. K-NN is also
successfully applied for early warning system (EWS) to predict student achievement. Each of these predictions
will be able to overcome some of the problems that have been faced by academic advisors who cannot know
periodically the development of their students in the future. K-NN is one method for making decisions using
algorithms where new input data results are classified with nearest neighbours in training data (Tedy Rismawan,
Ardhitya Wiedha Irawan, Wahyu Prabowo, 2008). The K-NN Classification algorithm proved capable of modelling
a prediction case with precise accuracy (Mustakim,Giantika O, 2016). We propose a nearest neighbour using
Euclidean distance to determine if the weight of a toddler is normal, less normal or abnormal based on the WHO
table. Furthermore, to predict infant weight in the coming months we propose k-nearest neighbour based on
previous infant weight.
II. PROBLEM
Weighing weight and height measurement of toddlers at posyandu is the effort of society in monitoring growth of
baby and toddler growth. Monitoring the growth of toddlers is very important to be done to determine early
growth failure (growth faltering). Parents want to know if their toddler weight is normal or not, compared to the
high weight table issued by WHO, besides the parents also want to know whether their toddler weight will
increase in the coming month based on month baby weight previous. We propose a nearest neighbour using
Euclidean distance to determine if the weight of a toddler is normal, less normal or abnormal based on the WHO
table. Furthermore, to predict infant weight in the coming months we propose k-nearest neighbour based on
previous infant weight.
III. FUNDAMENTAL THEORY
A. Anthropometry
Anthropometry is a combination of several parameters to determine the nutritional status of children under five /
ideal. Combination weight can be compared with WHO-NCHS reference table (World Health Organization-
National Center for Health Statistics). Anthropometry is a method for determining nutritional status based on
body size. The anthropometry associated with the various dimensions and measurements of body composition of
the age level and parameters of nutritional status determination based on anthropometry itself is age, weight, and
height.
B. Weight
Weight is the most important and most commonly used anthropometric measure for diagnosing normal babies.
Weight loss is the main choice for sharing calculations, among others: the parameters of the best, easy to see
changes in a short time due to changes in food consumption and health. Provides an overview of the current
nutritional status and description of growth.
C. Height
Measurement of height is used to assess the status of nutritional improvement. This measurement can be done
very easily in assessing growth and developmental disorders. Body height measurements are used to assess
nutritional status improvements. This measurement can be done very easily in assessing growth and
developmental disorders. Body height (TB) is the most important parameter for past and present circumstances if
age is not known properly. Height is also an important second measure because by linking the weight to the height
the age factor can be set aside. Body height for children less than 2 years is often called the length of the body with
a monthly increase that is not too significant.
D. Analysis Data
Data analysis is data collection is the most strategic step in research, because the main goal is to get data. A
process of searching data and systematically compile data obtained from interviews and field notes, so that it can
be understood clearly and its findings can be informed to others (Bogdan in sugiyono 2013: 244).

_________________________________________________________________________________________________
IRJCS: Impact Factor Value – SJIF: Innospace, Morocco (2016): 4.281
Indexcopernicus: (ICV 2016): 88.80
© 2014- 18, IRJCS- All Rights Reserved Page -369
International Research Journal of Computer Science (IRJCS) ISSN: 2393-9842
Issue 07, Volume 5 (July 2018) www.irjcs.com

E. Growth Monitoring
Growth monitoring of a growth monitoring as a routine recording of child weight, and coupled with some
remedial measures are determined if the weight or height is hampered due to several factors. Growth monitoring
has many distinct advantages as it is easy to use and implementation of the implementation is also practical.
Output issued from card growth monitoring KMS (card to health).
F. Classification
Classification is a data functionality that will generate a model for predicting the categories of objects in a row of
data. Classification is a process that consists of two stages, namely learning and application stage.setiap algorithm
of classification has the same principle were to do learning in the model so that it can make predictions on the
correct class input as out. From the classification stage, this stage takes a data that does not know the class label to
be predicted and then tested using a model that has been made in the learning process.
G. K-Nearest Neighbor (KNN)
K-Nearest neighbour is one of the simplest and most accurate in
classification methods in the learning area. On the other hand with the
neighbouring K-NN is a learning algorithm that requires training data and a predetermined k value to find out the
nearest K data based on distance calculation. The task of K-NN is to classify the example being observed by
specifying case-training data that has the most frequent classes among the nearest K's (Aung, Nagayama, &
Tamaki, 2017).

Fig. 1 K-Nearest Neighbor

On picture. 3.1, the basic functions of k-NN can be seen clearly. For K = 3, the observed samples, plus symbols,
include the blue circle, whereas for K = 9, the observed sample will be classified into red triangles as the most
frequent class is the blue circle for K = 3 and the red triangle for K = 9. K-NN method that clarifies the object based
on the results of the data collection closest to the object. This method aims to find the closest data between the
data can be evaluated with the value of the neighboring K based on the classification determined by Method K -
Nearest Neighbor must first determine the data train and test data which will then be done a calculation process
to find the distance using the formula calculation by using the method KNN (Dzikrulloh & Setiawan, 2017).
K-Nearest Neighbor (KNN) algorithm is a method to classify objects based on data closest to the object. This
technique is very simple and easy to implement. This method has similarities with the clustering technique, which
is to group a new data based on the new data distance to some data / nearest neighbour. First before searching
the distance of data to a neighbour is determine the value of neighbouring K (neighbour). Then, to define the
distance between two points ie the point on the training data and the point in the data testing, then used
Euclidean formula with the following equation. The steps in the implementation of K-Nearest Neighbor method
calculation are as follows : (Wibowo & Fitrianah, 2018)
Information on formula :
X = data sample
Y = test data
D = distance
The steps in the implementation of K-Nearest Neighbor method calculation are as follows:
1. Determine the parameter k (the number of nearest neighbours).
2. Calculate the Euclidean distance (Euclidean distance) between the data to be evaluated with all training.
3. Sort the distance that is formed (up sequence).
4. Choosing the nearest alternative distance k.
K-NN itself is also included as a method of classification data mining based on learning data by analogy. An
example of training data has an attribute's numerical dimension. Each training sample is stored in a numeric
dimension. While testing the data, it will find the value of K closest to the test data. The nearest neighbours are
defined in the Euclidean range between two points X=(x1, x2,…,xn dan Y= (y1,y2,…,yn) (Technology, 2017).

_________________________________________________________________________________________________
IRJCS: Impact Factor Value – SJIF: Innospace, Morocco (2016): 4.281
Indexcopernicus: (ICV 2016): 88.80
© 2014- 18, IRJCS- All Rights Reserved Page -370
International Research Journal of Computer Science (IRJCS) ISSN: 2393-9842
Issue 07, Volume 5 (July 2018) www.irjcs.com

H. Euclidean distance
A regional-based euclidean distance based on distance metrics is a vector to measure the distance of similarity
generated in the presence of a distance number. To determine a distance between two points:

Where Euclidean (X, Y) is the distance between the points X and Y (Aung et al., 2017).
I. Time series
Time series is a method applied in time series forecasting to predict future values. Forecasting method uses
analysis of the pattern of relationships between variables to be estimated with time variables or time series
analysis. The classification of the time series model is determined in two. The first model is univariate. The second
model is multivariate (multivariable), Time series multivariate modelling variables that correlate and written
from time to time.
Table.1 Data time series

IV. METHODOLOGY
In this study, there are two achievements that are normal baby classification and baby weight prediction. Stages in
the study can be illustrated in the following :
Table 2 Diagram of research methodology used
Classify normal babies weight Predict babies weight

Collecting data
Collecting data

Prepare time series data


Define classification ideal,
less ideal, not ideal table
based on WHO table
Predict babies weight
using k-nn

Classify ideal weight using


nearest neighbor based on Calculate error of
age, weight and height. prediction result

CLASSIFICATION OF WEIGHT NORMAL BABY:


1) Initial step Data collection is at the process of a research to produce data Elang Posyandu. The data obtained in
the form of actual data containing the weight and height of children under five each month.
2) Establish normal, abnormal and abnormal normal table or matrix classification based on the WHO table. In the
table, there is a weight and height standard 80%, standard children from the age range 0 – 3 years 9 months.
Based on the classification results with the who's table we classify the high weight of the toddler into three
classifications, ie normal high weight, less normal high weight (80% than normal high weight), and abnormal
(high weight less than 80% normal high weight). As can be seen in table 4.2 below.
_________________________________________________________________________________________________
IRJCS: Impact Factor Value – SJIF: Innospace, Morocco (2016): 4.281
Indexcopernicus: (ICV 2016): 88.80
© 2014- 18, IRJCS- All Rights Reserved Page -371
International Research Journal of Computer Science (IRJCS) ISSN: 2393-9842
Issue 07, Volume 5 (July 2018) www.irjcs.com

Table 3 WHO weight and height normal baby


Weight (Kg) High (Kg)
Age Normal 80 % Normal Normal 80 % Normal
Born 3,4 2,7 50,5 40,4
12 Month 10 7,9 74,5 59,6
1 Year 3 Month 10,6 8,5 78 62,4
1 Year 6 Month 11,3 9 81,5 65,2
1 Year 9 Month 11,9 9,5 84,5 67,6
2 Year 0 Month 12,4 9,9 87 69,6
2 Year 3 Month 12,9 10,3 89,5 71,6
2 Year 6 Month 13,5 10,8 92 73,6
2 Year 9 Month 14 11,2 94 75,2
3 Year 0 Month 14,5 11,6 96 76,8
3 Year 3 Month 15 12 98 78,4
3 Year 6 Month 15,5 12,4 99,5 79,6
3 Year 9 Month 16 12,8 101,5 81,2
Table 4 Classification table based on WHO table
Wight (Kg) & Height (Cm)
Age (Month)
Weight (Kg) Height (Cm) Classification
12 10 74,5 Normal
12 7,9 59,6 Less Normal
12 7,8 58 Abnormal
15 10,6 78 Normal
15 8,5 64 Less Normal
15 8,2 62 Abnormal
18 11,3 84,5 Normal
18 9,5 65,2 Less Normal
18 9 64 Abnormal
3) Classify the normal weight of a toddler by calculating the nearest neighbour with the height of the toddler with
the classification table that has been made. At this stage, the process of removal is done to determine whether
the high weight of toddlers under normal conditions or not. The calculation process is done by finding nearest
neighbour from the classification table that has been made.To determine whether a high-toddler weight is
normal or not can be calculated using the known method as follows:
Table 5 Classification
Month Weight Height KET
12 10 74,5 Normal
12 7,9 59,6 Less Normal
12 7,8 58 Abnormal
15 10,6 78 Normal
15 8,5 64 Less Normal
15 8,2 62 Abnormal
18 11,3 84,5 Normal
18 9,5 65,2 Less Normal
18 9 64 Abnormal
Table 6 Data actual
Name Month Weight Height
M.Fariz 13 9 76
K –1 = x1-y2)2 +(x2-y2)2 +(x3-y3)2
= 2+ (10-9)2 + (74,5-76)2
=
= 2,061553 (Normal)

K –1 = x1-y2)2 +(x2-y2)2 +(x3-y3)2

_________________________________________________________________________________________________
IRJCS: Impact Factor Value – SJIF: Innospace, Morocco (2016): 4.281
Indexcopernicus: (ICV 2016): 88.80
© 2014- 18, IRJCS- All Rights Reserved Page -372
International Research Journal of Computer Science (IRJCS) ISSN: 2393-9842
Issue 07, Volume 5 (July 2018) www.irjcs.com

= 2+ (7,9 9)2 + (59,6 76)2


=
= 16,46724 (Less Normal)

K –1 = x1-y2)2 +(x2-y2)2 +(x3-y3)2

= 2+ (7,8 9)2 + (58 76)2


=
= 18,06765 (Abnormal)
K –2 = x1-y2)2 +(x2-y2)2 +(x3-y3)2
= 2+ (10,6-9)2 + (78-76)2
=
= 3,2496154 (Normal)

K –2 = x1-y2)2 +(x2-y2)2 +(x3-y3)2


= 2+ (8,5 9)2 + (64 76)2
=
= 12,175796 (Less Normal)

K –2 = x1-y2)2 +(x2-y2)2 +(x3-y3)2


= 2+ (8,2 9)2 + (62 76)2
=
= 14,164745 (Abnormal)

K –3 = x1-y2)2 +(x2-y2)2 +(x3-y3)2


= 2+ (11,3 9)2 + (84,5 76)2
=
= 10,126204 (Normal)

K –3 = x1-y2)2 +(x2-y2)2 +(x3-y3)2


= 2+ (9,5 9)2 + (65,2 76)2
=
= 11,911759 (Less Normal)

K –3 = x1-y2)2 +(x2-y2)2 +(x3-y3)2


= 2+ (9 9)2 + (64 76)2
=
= 13 (Abnormal)
The calculation result using K-NN algorithm we select the result with K = 1 classification that has the closest
distance that is: 2.061553 where at this distance high weight of toddler including normal.
WEIGHT PREDICTION OF BABY:
1) Initial step Data collection is at the process of a research to produce data Elang Posyandu. The data
obtained in the form of actual data containing the weight of toddlers each month. The amount of data
obtained by a number of 20 children from the posyandu eagle.
2) Establish results of baby weight data in the form of time series for predicting the next 2 months.
3) To calculate a time series data and generate prediction numbers are:
- Determine the parameter K = the number of nearest neighbours suppose to use k2.
- Calculate the distance between the time series data and sort the distance of the nearest neighbour
according to the minimum distance produced by Euclidean distance.
K2 = x1-x1)2 +(x2-x2)2
= 2 + (13,9 13,3)2

= 0,848528
_________________________________________________________________________________________________
IRJCS: Impact Factor Value – SJIF: Innospace, Morocco (2016): 4.281
Indexcopernicus: (ICV 2016): 88.80
© 2014- 18, IRJCS- All Rights Reserved Page -373
International Research Journal of Computer Science (IRJCS) ISSN: 2393-9842
Issue 07, Volume 5 (July 2018) www.irjcs.com
4)

Table 7 Actual data before conducting time series time series.


NAMA ID UB BB
KHOIR .M 10 24 12,5
25 11,8
26 12,2
27 12,6
28 12,1
29 12,7
30 13
31 13,3
32 13,6
33 13,9
34 14
35 14,2
Table 8 Data produced time series K2.
Name Month X1 X2 Y DISTANCE
KHOIR .M 26 12,5 11,8 12,2 2,370654
K2 27 11,8 12,2 12,6 2,475884
28 12,2 12,6 12,1 1,910497
29 12,6 12,1 12,7 2,059126
30 12,1 12,7 13 1,920937
31 12,7 13 13,3 1,272792
32 13 13,3 13,6 0,848528
33 13,3 13,6 13,9 0,424264
34 13,6 13,9 13,75 0
35 13,9 13,75 13,82

K2 = x1-x1)2 +(x2-x2)2
= 2+ (13,9 13,6)2
= 0,424264
- Next, collect the Y values from the data K = 2 with the nearest neighbour resulting in the time series
time sequence and the result of the nearest calculation distance using the Euclidean distance.
Table 9 time series prediction
Name Month X1 X2 Y DISTANCE DISTANCE
KHOIR .M 31 12,7 13 13,3 1,27279221 1,41509717
K2 32 13 13,3 13,6 0,84852814 1,00623059
33 13,3 13,6 13,9 0,42426407 0,618465844
34 13,6 13,9 13,75 0,335410197
35 13,9 13,75 13,82
Use the nearest neighbour Euclidean distance as the predicted value.
-
13,9 + 13,6 = 13,75 is the 34th month predicted result.
-
2
- 13,75 + 13,9 = 13,82 is the 35th month predicted result.
2
5) The final step is to calculate the predicted result with the actual data, the prediction error is calculated
using RMSE. RMSE is used to measure differences in error values from actual data with forecast data for
each period. If there is a value of data observation and forecasting for any period of time, there are error
values and statistical measures that can be formulated as follows (Hidayat Damanik, 2012).

RMSE = Declares the results of calculations from ( At -Ft)^2 and in the rank of rank by RMSE.

_________________________________________________________________________________________________
IRJCS: Impact Factor Value – SJIF: Innospace, Morocco (2016): 4.281
Indexcopernicus: (ICV 2016): 88.80
© 2014- 18, IRJCS- All Rights Reserved Page -374
International Research Journal of Computer Science (IRJCS) ISSN: 2393-9842
Issue 07, Volume 5 (July 2018) www.irjcs.com

V. RESULT OF EXPERIMENT AND DISCUSSION


1). RESULTS KNN CLASSIFICATION OF TWO TODDLERS
From table 5.1.1 and 5.2.2 we get the results of high weight classification of children under 6 months, the
calculation is done by classifying high weight data of toddlers with a table made based on a table of the
classification made based on WHO table, high weight classification of toddler determined based on Euclidean
value distance nearest neighbour.
Table 10 Result of data classification tested
Data Fariz Maulana Classification KNN Classification
12 8 70 0 4 20,25 4,9244289 Normal
0 0,01 108,16 10,400481 Less Normal
0 0,04 144 12,001667 Abnormal
9 6,76 64 8,9308454 Normal
9 0,25 36 6,726812 Less Normal
9 0,04 64 8,5463442 Abnormal
36 10,89 210,25 16,035585 Normal
36 2,25 23,04 7,828793 Less Normal
36 1 36 8,5440037 Abnormal
13 9 76 1 1 2,25 2,0615528 Normal
1 1,21 268,96 16,46724 Less Normal
1 1,44 324 18,067651 Abnormal
4 2,56 4 3,2496154 Normal
4 0,25 144 12,175796 Less Normal
4 0,64 196 14,164745 Abnormal
25 5,29 72,25 10,126204 Normal
25 0,25 116,64 11,911759 Less Normal
25 0 144 13 Abnormal
14 8,7 77 4 1,69 6,25 3,4554305 Normal
4 0,64 302,76 17,532826 Less Normal
4 0,81 361 19,12616 Abnormal
1 3,61 1 2,3685439 Normal
1 0,04 169 13,039939 Less Normal
1 0,25 225 15,041609 Abnormal
16 6,76 56,25 8,8887569 Normal
16 0,64 139,24 12,485191 Less Normal
16 0,09 169 13,604779 Abnormal
15 9,9 78 9 0,01 12,25 4,6108568 Normal
9 4 338,56 18,749933 Less Normal
9 4,41 400 20,332486 Abnormal
0 0,49 0 0,7 Normal
0 1,96 196 14,069826 Less Normal
0 2,89 256 16,090059 Abnormal
9 1,96 42,25 7,2945185 Normal
9 0,16 163,84 13,152946 Less Normal
9 0,81 196 14,34608 Abnormal
16 10 79,1 16 0 21,16 6,0959003 Normal
16 4,41 380,25 20,016493 Less Normal
16 4,84 445,21 21,588191 Abnormal
1 0,36 1,21 1,603122 Normal
1 2,25 228,01 15,207235 Less Normal
1 3,24 292,41 17,22353 Abnormal
4 1,69 29,16 5,9033889 Normal
4 0,25 193,21 14,052046 Less Normal
4 1 228,01 15,264665 Abnormal
17 10,5 81 25 0,25 42,25 8,2158384 Normal
25 6,76 457,96 22,129618 Less Normal
25 7,29 529 23,69156 Abnormal
_________________________________________________________________________________________________
IRJCS: Impact Factor Value – SJIF: Innospace, Morocco (2016): 4.281
Indexcopernicus: (ICV 2016): 88.80
© 2014- 18, IRJCS- All Rights Reserved Page -375
International Research Journal of Computer Science (IRJCS) ISSN: 2393-9842
Issue 07, Volume 5 (July 2018) www.irjcs.com

4 0,01 9 3,6069378 Normal


4 4 289 17,233688 Less Normal
4 5,29 361 19,242921 Abnormal
1 0,64 12,25 3,726929 Normal
1 1 249,64 15,863165 Less Normal
1 2,25 289 17,095321 Abnormal
18 11 83 36 1 72,25 10,452272 Normal
36 9,61 547,56 24,355082 Less Normal
36 10,24 625 25,9083 Abnormal
9 0,16 25 5,8446557 Normal
9 6,25 361 19,397165 Less Normal
9 7,84 441 21,397196 Abnormal
0 0,09 2,25 1,5297059 Normal
0 2,25 316,84 17,86309 Less Normal
0 4 361 19,104973 Abnormal
Table 11 Result of data classification tested
Data Khofifah Classification KNN Classification
12 8,3 60 0 2,89 210,25 14,5993151 Normal
0 0,16 0,16 0,56568542 Less Normal
0 0,25 4 2,06155281 Abnormal
9 5,29 324 18,3926616 Normal
9 0,04 16 5,0039984 Less Normal
9 0,01 4 3,60693776 Abnormal
36 9 600,25 25,4017716 Normal
36 1,44 27,04 8,02994396 Less Normal
36 0,49 16 7,24499827 Abnormal
13 8,5 64 1 2,25 110,25 10,6536379 Normal
1 0,36 19,36 4,55192267 Less Normal
1 0,49 36 6,12290781 Abnormal
4 4,41 196 14,2972025 Normal
4 0 0 2 Less Normal
4 0,09 4 2,84429253 Abnormal
25 7,84 420,25 21,2859108 Normal
25 1 1,44 5,23832034 Less Normal
25 0,25 0 5,02493781 Abnormal
14 10,9 78 4 0,81 12,25 4,13037529 Normal
4 9 338,56 18,7499333 Less Normal
4 9,61 400 20,337404 Abnormal
1 0,09 0 1,04403065 Normal
1 5,76 196 14,239382 Less Normal
1 7,29 256 16,2569985 Abnormal
16 0,16 42,25 7,64264352 Normal
16 1,96 163,84 13,483323 Less Normal
16 3,61 196 14,6836644 Abnormal
15 11 80 9 1 6084 78,0640762 Normal
9 9,61 6084 78,1192038 Less Normal
9 10,24 6084 78,123236 Abnormal
0 0,16 4 2,03960781 Normal
0 6,25 256 16,1941347 Less Normal
0 7,84 324 18,2164761 Abnormal
9 0,09 20,25 5,41664103 Normal
9 2,25 219,04 15,1753089 Less Normal
9 4 256 16,4012195 Abnormal
16 11,4 81,2 16 1,96 44,89 7,92779919 Normal
16 12,25 466,56 22,2443251 Less Normal

_________________________________________________________________________________________________
IRJCS: Impact Factor Value – SJIF: Innospace, Morocco (2016): 4.281
Indexcopernicus: (ICV 2016): 88.80
© 2014- 18, IRJCS- All Rights Reserved Page -376
International Research Journal of Computer Science (IRJCS) ISSN: 2393-9842
Issue 07, Volume 5 (July 2018) www.irjcs.com

16 12,96 538,24 23,815961 Abnormal


1 0,64 10,24 3,44673759 Normal
1 8,41 295,84 17,4714052 Less Normal
1 10,24 368,64 19,4905105 Abnormal
4 0,01 10,89 3,86005181 Normal
4 3,61 256 16,236071 Less Normal
4 5,76 295,84 17,4814187 Abnormal
17 12 83 25 1,96 72,25 9,96042168 Normal
25 12,25 547,56 24,1828452 Less Normal
25 14,44 625 25,7767337 Abnormal
4 1,96 25 5,5641711 Normal
4 12,25 361 19,4229246 Less Normal
4 14,44 441 21,4345515 Abnormal
1 4 72,25 8,78919792 Normal
1 16,81 466,56 22,0084075 Less Normal
1 17,64 538,24 23,598305 Abnormal
18 12,3 83 36 5,29 72,25 10,655515 Normal
36 19,36 547,56 24,5544293 Less Normal
36 20,25 625 26,1007663 Abnormal
9 2,89 25 6,07371386 Normal
9 14,44 361 19,6071416 Less Normal
9 16,81 441 21,6057863 Abnormal
0 1 2,25 1,80277564 Normal
0 7,84 316,84 18,018879 Less Normal
0 10,89 361 19,2844497 Abnormal
2). Results Predicted baby weight
Next, we do predict the weight of the next 2 months baby, for five toddlers. The following is the result of the baby's
weight prediction with k = 2 and k = 3.
Table 12 Prediction Test Results RMSE 24 -35 K2
K2 RMSE 24-35
NAME AGE (Month) ACTUAL PREDICTION RMSE
34 13,3 13,1
REZA 0,285
35 13,6 13,25
34 14 13,75
KHOIR. M 0,322
35 14,2 13,82
34 13,6 13,35
JERRY 0,383
35 13,9 13,42
34 14,7 13,75
FERNANDO 0,806
35 14,5 13,87
34 12,8 12,65
RIANSYAH.N 0,237
35 13,1 12,8

_________________________________________________________________________________________________
IRJCS: Impact Factor Value – SJIF: Innospace, Morocco (2016): 4.281
Indexcopernicus: (ICV 2016): 88.80
© 2014- 18, IRJCS- All Rights Reserved Page -377
International Research Journal of Computer Science (IRJCS) ISSN: 2393-9842
Issue 07, Volume 5 (July 2018) www.irjcs.com

Fig 2 Line chart of error of prediction results RMSE 24 -35 K2

Table 13 Error of prediction results 24 -35 K3


K3 RMSE 24-35
NAME AGE (Month) ACTUAL PREDICTION RMSE
34 13,3 13,06
REZA 0,361
35 13,6 13,15
34 14 13,6
KHOIR. M 0,453
35 14,2 13,7
34 13,6 13,26
JERRY 0,475
35 13,9 13,32
34 14,7 13,56
FERNANDO 0,993
35 14,5 13,68
34 12,8 12,9
RIANSYAH.N 0,244
35 13,1 13,43
Fig 3 Line chart of error of prediction results 24 -35 K3

Based on the error table we can see, the prediction error value using k -in with k = 2 is better than using k = 3.
VI. CONCLUSIONS
Monitoring the growth of toddlers is very important to be done to determine early growth failure (growth
faltering). Parents want to know if their toddler weight is normal or not, compared to the high weight table
published by WHO. Furthermore the parents also want to know whether their toddler weight will increase in the
coming month based on month baby weight previous. Based on the experimental results, the k-nearest neighbor
algorithm can classify the high weight of toddlers based on the high weight tables published by WHO. In addition,
the k-nn algorithm can also be used to predict the weight of babies in the next month based on the weight of the
previous month.
REFERENCES
1. Azizah, N. (2012). Evaluasi Terhadap Pelaksanaan Rujukan Berjenjang Kasus Kegawatdaruratan Maternal pada
Program Jampersal di Puskesmas Kencong, 4–30.
2. Aung, S. S., Nagayama, I., & Tamaki, S. (2017). Regional Distance-based k-NN Classification, 56–62.

_________________________________________________________________________________________________
IRJCS: Impact Factor Value – SJIF: Innospace, Morocco (2016): 4.281
Indexcopernicus: (ICV 2016): 88.80
© 2014- 18, IRJCS- All Rights Reserved Page -378
International Research Journal of Computer Science (IRJCS) ISSN: 2393-9842
Issue 07, Volume 5 (July 2018) www.irjcs.com

3. Dzikrulloh, N. N., & Setiawan, B. D. (2017). Penerapan Metode K – Nearest Neighbor ( KNN ) dan Metode
Weighted Product ( WP ) Dalam Penerimaan Calon Guru Dan Karyawan Tata Usaha Baru Berwawasan
Teknologi ( Studi Kasus : Sekolah Menengah Kejuruan Muhammadiyah 2 Kediri ), 1(5), 378–385.
4. Munawaroh, S. (2014). Model Informasi Monitoring Kesehatan Ibu dan Bayi pada Posyandu dalam Rangka
Upaya Peningkatan Kesehatan Keluarga. Dinamik - Jurnal Teknologi Informasi, 19(1), 76–85.
5. Nurhidayati, E., Kebutuhan, A., Teknologi, M., Balita, DAN., Puskesmas, D. I., & Yogyakarta, T. (n.d.). Evi
Nurhidayati, A.,.
6. Technology, A. I. (2017). EFFECTIVENESS OF K-MEANS CLUSTERING TO DISTRIBUTE TRAINING DATA AND
TESTING DATA ON K-NEAREST NEIGHBOR CLASSIFICATION, 95(21), 5693–5700.
7. Tedy Rismawan, Ardhitya Wiedha Irawan, Wahyu Prabowo, S. K. (2008). Sistem pendukung keputusan
berbasis pocket pc sebagai penentu status gizi menggunakan metode knn (k-nearest neighbor). Teknoin, 13,
18–23.
8. Bode, A. (2017). K-Nearest Neighbor Dengan Feature Selection Menggunakan Backward Elimination Untuk
Prediksi Harga Komoditi Kopi Arabika. ILKOM Jurnal Ilmiah, 9, 188–195.
9. Hidayat Damanik, A. (2012). Analisa Metode K-Nearest Neighbor dalam Peramalan Penjualan Mobil pada PT
Karya Zirang Utama, 1–10.
10.Mustakim,Giantika O. (2016). Algoritma K-Nearest Neighbor Classification Sebagai Sistem Prediksi Predikat
Prestasi Mahasiswa. Jurnal Sains Dan Teknologi Industri, 13(2), 195–202.
11.Wibowo, A. T., & Fitrianah, D. (2018). a K-Nearest Algorithm Based Application To Predict Snmptn Acceptance
for High School. International Research Journal of Computer Science (IRJCS), 5(01), 9–20.
https://doi.org/10.26562/IRJCS.2018.JACS10083

_________________________________________________________________________________________________
IRJCS: Impact Factor Value – SJIF: Innospace, Morocco (2016): 4.281
Indexcopernicus: (ICV 2016): 88.80
© 2014- 18, IRJCS- All Rights Reserved Page -379

Você também pode gostar