Islanding detection is one of the conditions necessary for the safe operation of the microgrid. The detection technology should provide the ability to differentiate islanded operations from power grid disturbances effectively. Given that it is difficult to set the fault threshold using the passive detection method, and because the traditional active detection method affects the output power quality, a microgrid islanding detection method based on the Sliding Window Discrete Fourier Transform (SDFT)-Empirical Mode Decomposition (EMD) and Long Short-Term Memory (LSTM) network optimized by an attention mechanism is proposed. In this paper, the inverter output current and voltage at the point of common coupling (PCC) are transformed by the SDFT. The positive sequence, zero sequence, and negative sequence components of voltage and current harmonics are calculated and reconstructed by adopting the symmetrical component method (SCM). Meanwhile, the current and voltage are decomposed into a mono intrinsic mode function (IMF). The symmetric components of voltage, current, and IMFs are used as inputs to the deep learning algorithm. An LSTM with the features extracted to classify islanding and grid disturbance is proposed. By using the attention mechanism to set the weight values of the features of hidden states obtained by the LSTM network, the proportion of important features increases, which improves the classification effect. MATLAB/Simulink simulation results indicate that the proposed method can effectively classify the islanding state under different working conditions with an accuracy level of 98.4% and a loss value of 0.0725 with a maximal detection time of 66.94 ms. It can also reduce the non-detection zone (NDZ) and detection time and has a certain level of noise resistance. Meanwhile, the problem whereby the active method affects the microgrid power quality is avoided without disturbing the current or power of the microgrid.
Sarcasm is a linguistic phenomenon indicating a difference between literal meanings and implied intentions. It is commonly used on blogs, e-commerce platforms, and social media. Numerous NLP tasks, such as opinion mining and sentiment analysis systems, are hampered by its linguistic nature in detection. Traditional techniques concentrated mostly on textual incongruity. Recent research demonstrated that the addition of commonsense knowledge into sarcasm detection is an effective new method. However, existing techniques cannot effectively capture sentence “incongruity” information or take good advantage of external knowledge, resulting in imperfect detection performance. In this work, new modules are proposed for maximizing the utilization of the text, the commonsense knowledge, and their interplay. At first, we propose an adaptive incongruity extraction module to compute the distance between each word in the text and commonsense knowledge. Two adaptive incongruity extraction modules are applied to text and commonsense knowledge, respectively, which can obtain two adaptive incongruity attention matrixes. Therefore, each of the words in the sequence receives a new representation with enhanced incongruity semantics. Secondly, we propose the incongruity cross-attention module to extract the incongruity between the text and the corresponding commonsense knowledge, thereby allowing us to pick useful commonsense knowledge in sarcasm detection. In addition, we propose an improved gate module as a feature fusion module of text and commonsense knowledge, which determines how much information should be considered. Experimental results on publicly available datasets demonstrate the superiority of our method in achieving state-of-the-art performance on three datasets as well as enjoying improved interpretability.