Islanding detection is important for the protection of any distribution system connected to distributed energy resources (DER's). This study proposes an intelligent islanding detection technique based on artificial neural network (ANN) that employs minimal features from the power system. The accuracy of the trained ANN is improved by optimising the learning rate, momentum and number of neurons in the hidden layers using evolutionary programming (EP) and particle swarm optimisation (PSO). The performance comparison between stand-alone ANN, ANN-EP and ANN-PSO in the form of regression value is performed to obtain the best feature combination for an efficient islanding detection. The proposed technique is tested on- and off-line for various islanding and non-islanding events. The simulation results indicate that the proposed technique can successfully distinguish islanding from other non-islanding events such as load variation, capacitor switching, faults, induction motor starting and DER tripping.