Loss-of-excitation (LOE) conditions may cause devastating effects on both the generator and power system. If LOE is not meticulously detected, two dangerous events may emerge: 1. unnecessary trip signal, 2. not detecting this abnormal condition or detecting it with time delay. Both mentioned flaws have considerable harmful consequences on the generator and power system. Conventional techniques for detecting LOE conditions are based on impedance measurement. The presence of flexible alternating current transmission (FACT) system devices can considerably affect the impedance characteristic of the system and as a result, the operation of impedance-based relays. This paper simulates LOE and stable power swing (SPS) conditions causing failures and errors in the LOE protection in the presence or absence of a unified power flow compensator (UPFC), and parameters with different behaviors are determined. Then, the most sensitive parameters are combined using an intelligent method. The single parameter, achieved from a combination of features in the previous process, is applied to a learning vector quantization (LVQ) neural network. The LVQ is a type of artificial neural network that is based on a prototype supervised learning classification algorithm and trained its network through a competitive learning algorithm. The simulation results show that, in a single machine infinitive bus (SMIB) test system, R-X directional scheme has 2 mal-operations and the proposed algorithm has no mal-operation without UPFC in the system. With UPFC in the system, the R-X directional scheme has four mal-operations and the proposed algorithm has no mal-operation. In the IEEE 9-bus test system, the R-X directional scheme has five mal-operations and the proposed algorithm has no mal-operation. Moreover, applying the proposed algorithm, LOE is detected very quickly in the presence or absence of the UPFC in the system and this approach prevents electrical and mechanical stresses enforced to the machine and power system. © 2017 Elsevier Inc. All rights reserved.