IDEAS home Printed from https://ideas.repec.org/a/gam/jeners/v16y2023i18p6679-d1242259.html
   My bibliography  Save this article

Meta In-Context Learning: Harnessing Large Language Models for Electrical Data Classification

Author

Listed:
  • Mi Zhou

    (Electric Power Research Institute, China Southern Power Grid, Guangzhou 510663, China
    Guangdong Provincial Key Laboratory of Intelligent Measurement and Advanced Metering of Power Grid, Guangzhou 510663, China)

  • Fusheng Li

    (Electric Power Research Institute, China Southern Power Grid, Guangzhou 510663, China
    Guangdong Provincial Key Laboratory of Intelligent Measurement and Advanced Metering of Power Grid, Guangzhou 510663, China)

  • Fan Zhang

    (Electric Power Research Institute, China Southern Power Grid, Guangzhou 510663, China
    Guangdong Provincial Key Laboratory of Intelligent Measurement and Advanced Metering of Power Grid, Guangzhou 510663, China)

  • Junhao Zheng

    (Guangdong Provincial Key Laboratory of Intelligent Measurement and Advanced Metering of Power Grid, Guangzhou 510663, China)

  • Qianli Ma

    (Guangdong Provincial Key Laboratory of Intelligent Measurement and Advanced Metering of Power Grid, Guangzhou 510663, China)

Abstract

The evolution of communication technology has driven the demand for intelligent power grids and data analysis in power systems. However, obtaining and annotating electrical data from intelligent terminals is time-consuming and challenging. We propose Meta In-Context Learning (M-ICL), a new approach that harnesses large language models to classify time series electrical data, which largely alleviates the need for annotated data when adapting to new tasks. The proposed M-ICL consists of two stages: meta-training and meta-testing. In meta-training, the model is trained on various tasks that have an adequate amount of training data. The meta-training stage aims to learn the mapping between electrical data and the embedding space of large language models. In the meta-testing stage, the trained model makes predictions on new tasks. By utilizing the in-context learning ability of large language models, M-ICL adapts models to new tasks effectively with only a few annotated instances (e.g., 1–5 training instances per class). Our contributions lie in the new application of large language models to electrical data classification and the introduction of M-ICL to improve the classification performance with the strong in-context learning ability of large language models. Furthermore, we conduct extensive experiments on 13 real-world datasets, and the experimental results show that the proposed M-ICL improves the average accuracy over all datasets by 19.06%, 12.06%, and 6.63% when only one, two, and five training instances for each class are available, respectively. In summary, M-ICL offers a promising solution to the challenges of electrical data classification.

Suggested Citation

  • Mi Zhou & Fusheng Li & Fan Zhang & Junhao Zheng & Qianli Ma, 2023. "Meta In-Context Learning: Harnessing Large Language Models for Electrical Data Classification," Energies, MDPI, vol. 16(18), pages 1-18, September.
  • Handle: RePEc:gam:jeners:v:16:y:2023:i:18:p:6679-:d:1242259
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1996-1073/16/18/6679/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1996-1073/16/18/6679/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jeners:v:16:y:2023:i:18:p:6679-:d:1242259. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.