Jurnal Teknik Pertanian Lampung (Journal of Agricultural Engineering)
Vol. 15 No. 2 (2026): April 2026

Design and Implementation of an Artificial Neural Network Model for Soil Nitrogen Prediction

Rita Anggraini (Universitas Lampung)
Sri Ratna Sulistiyanti (Universitas Lampung)
Helmy Fitriawan (Universitas Lampung)
FX Arinto Setyawan (Universitas Lampung)
Mareli Telaumbanua (Universitas Lampung)
Witaningsih Witaningsih (Universitas Lampung)



Article Info

Publish Date
17 Apr 2026

Abstract

The availability of nitrogen in soil is a crucial factor determining crop productivity. However, the measurement of total nitrogen (N-total) content requires considerable time and cost. Therefore, a fast, accurate, and easy prediction method is needed to support the agricultural development. This study aims to develop an Artificial Neural Network (ANN) model based on the backpropagation algorithm to identify soil N-total content using soil pH, moisture content, and soil resistance as input parameters. The model was trained using the trainbr training function with variations of logsig and tansig activation functions and hidden layer structures of 5–5, 8–8, and 12–12 to obtain the best configuration. The training results indicate that the tansig–tansig combination with 8–8 hidden layer structure achieved the highest performance, with a R2 training of 0.953 and a R2 testing of 0.911. The model was implemented in the form of a Graphical User Interface (GUI) application to facilitate field-level prediction. Validation using 40 testing data samples showed a classification accuracy of 70% and an R² value of 0.932 for nitrogen prediction. The model correctly classified 28 data samples out of the total 40 tested data. These results indicate that the proposed model is capable of predicting soil nitrogen content accurately and reliably.

Copyrights © 2026






Journal Info

Abbrev

JTP

Publisher

Subject

Agriculture, Biological Sciences & Forestry Engineering

Description

Jurnal Teknik Pertanian Lampung or Journal of Agricultural Engineering (JTEP-L) is a peer-reviewed open-access journal. The journal invites scientists and engineers throughout the world to exchange and disseminate theoretical and practice-oriented researches in the whole aspect of Agricultural ...