An intelligent power marketing service quality evaluation method and system

By generating an embedded matrix enhanced by power context and an embedded matrix enhanced by semantic relations, the problem of semantic dependence on context and deep semantic association of words in power marketing service quality assessment is solved, thus achieving high-quality service quality assessment.

CN123140731APending Publication Date: 2026-11-20DEZHOU POWER SUPPLY COMPANY OF STATE GRID SHANDONG ELECTRIC POWER
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611261950.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-19
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing methods for assessing the quality of electricity marketing services, the semantics of words in electricity user feedback texts rely on context and are scenario-dependent, resulting in low assessment accuracy. Furthermore, the words expressing service quality within user feedback texts have deep semantic connections and are scattered, making them difficult to integrate effectively, thus leading to insufficient accuracy in the assessment results.

Method used

By generating an initial embedding matrix, a mask sequence is constructed for masked language modeling pre-training. Sentence pairs are extracted for next sentence prediction pre-training to generate an electric context-enhanced embedding matrix. An undirected semantic relationship graph is constructed, and a semantic relationship-enhanced embedding matrix is ​​generated using a graph convolutional network. Multi-head self-attention and bidirectional LSTM networks are combined to perform context awareness and semantic relationship aggregation.

Benefits of technology

It improves the accuracy and reliability of electricity marketing service quality assessment, and can comprehensively and accurately represent the true service semantics of user feedback text, enabling comprehensive judgment and improving the accuracy and comprehensiveness of assessment results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123140731A_ABST
    Figure CN123140731A_ABST
Patent Text Reader

Abstract

The application discloses an intelligent power marketing service quality evaluation method and system, and belongs to the technical field of industrial big data processing. The method comprises the following steps: power marketing service data integration, power text coding pre-training, power context perception sequence modeling, power semantic relation graph aggregation, power feature fusion classification, and power marketing service quality evaluation. The scheme generates an initial embedding matrix and a mask sequence, extracts a context fusion representation, performs mask language modeling pre-training, extracts a sentence pair, extracts an aggregated semantic representation, performs next sentence prediction pre-training, and generates a power context enhanced embedding matrix after joint optimization, thereby providing a high-quality text representation basis for subsequent evaluation. A non-directional semantic relation graph is constructed based on a point mutual information value, a semantic relation enhanced embedding matrix is generated through a two-layer graph convolution network, and the accuracy and comprehensiveness of the power marketing service quality evaluation result are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of industrial big data processing technology, specifically referring to an intelligent method and system for evaluating the quality of electricity marketing services. Background Technology

[0002] The electricity marketing service quality assessment method is an intelligent analysis solution for electricity marketing business scenarios. By integrating industrial data processing and natural language processing technologies, it accurately identifies key factors affecting service satisfaction, provides data-driven decision support for power companies, and effectively promotes the continuous upgrading of electricity marketing services towards intelligence and refinement.

[0003] However, existing methods for assessing the quality of electricity marketing services suffer from several problems. Firstly, the semantic meaning of words in user feedback texts relies on context for accurate judgment. Secondly, electricity business terminology is context-dependent, and independent representation can easily lead to semantic bias, resulting in low accuracy in service quality assessments. Thirdly, existing methods often involve deep semantic connections across sentences and paragraphs between words expressing service quality in user feedback texts, scattered across different parts of the text, making effective integration difficult and further complicating the accuracy of service quality assessment results. Summary of the Invention

[0004] To address the above issues and overcome the shortcomings of existing technologies, this invention provides an intelligent method and system for evaluating the quality of electricity marketing services. Addressing the problem that existing methods rely on context to accurately determine the semantics of words in user feedback text, and that electricity business terminology is context-dependent and prone to semantic bias when represented independently, leading to low accuracy in service quality assessment, this solution generates an initial embedding matrix, constructs a mask sequence, extracts contextual fusion representations, performs masked language modeling pre-training, extracts sentence pairs, extracts aggregated semantic representations, performs next sentence prediction pre-training, and after joint optimization, generates an electricity context-enhanced embedding matrix. This matrix comprehensively and accurately represents the true service semantics of user feedback text, providing a foundation for subsequent... The assessment provides a high-quality text representation foundation, thereby effectively improving the accuracy and reliability of electricity marketing service quality assessment. Addressing the issue that existing electricity marketing service quality assessment methods often suffer from deep semantic connections across sentences and paragraphs between words expressing service quality in user feedback texts, scattered across different locations within the text and difficult to integrate effectively, leading to insufficient accuracy in service quality assessment results, this solution treats each row of the electricity context-aware embedding matrix as a node representation of the corresponding word. An undirected semantic relationship graph is constructed based on the point mutual information values. A two-layer graph convolutional network generates a semantic relationship enhancement embedding matrix, enabling comprehensive judgment based on the integrated complete semantic landscape, thus effectively improving the accuracy and comprehensiveness of electricity marketing service quality assessment results.

[0005] The technical solution adopted by this invention is as follows: This invention provides an intelligent method for evaluating the quality of electricity marketing services, which includes the following steps:

[0006] Step S1: Integration of electricity marketing service data;

[0007] Step S2: Electricity text encoding pre-training;

[0008] Step S3: Power context-aware sequence modeling;

[0009] Step S4: Power semantic relationship graph aggregation;

[0010] Step S5: Power feature fusion and classification;

[0011] Step S6: Evaluation of the quality of electricity marketing services.

[0012] Further, in step S1, the integration of electricity marketing service data involves collecting historical industrial big data on electricity marketing services, including user feedback text data and structured business indicator data; performing text cleaning, text truncation, word segmentation, and stop word removal on the user feedback text data in sequence to generate a text word sequence; performing missing value filling, outlier detection, and normalization on the structured business indicator data in sequence to generate a structured feature vector; manually labeling the service quality level; and constructing a training set, a validation set, and a test set.

[0013] Further, in step S2, the power text encoding pre-training specifically includes the following steps:

[0014] Step S21: Initial embedding generation; Construct a global vocabulary based on the full text of the training set. For a text word sequence, map each discrete word to a dense semantic vector through the embedding matrix, and simultaneously superimpose positional encoding to generate an initial embedding matrix.

[0015] Step S22: Masked language modeling pre-training; randomly select word positions from the text word sequence corresponding to the initial embedding matrix to form a mask set, generate a mask sequence, input the embedding matrix corresponding to the mask sequence into the encoder, output the context fusion representation of each position, for all masked positions, map their context fusion representation to the probability distribution on the vocabulary through the linear classification head to predict the original words, and take minimizing the negative log-likelihood loss as the training objective;

[0016] Step S23: Pre-training for next sentence prediction; Use all user feedback text data in the training set as pre-training corpus, extract sentence pairs from them, concatenate each sentence pair and input them into the encoder, extract the aggregated semantic representation of the sentence pairs, calculate the probability of the subsequent sentence through the binary classification head, and take minimizing the binary classification cross-entropy loss as the training objective.

[0017] Step S24: Context-enhanced embedding generation; calculate the total loss, calculate the gradient of all encoder parameters through backpropagation, jointly update all parameters, and after pre-training converges, input the initial embedding matrix of the original text word sequence back into the trained encoder to obtain the power context-enhanced embedding matrix.

[0018] Further, in step S3, the power context-aware sequence modeling involves inputting the power context enhancement embedding matrix into a multi-head self-attention layer. For each row vector, the attention weights between it and all row vectors in the matrix are calculated, and the corresponding context vector is obtained by weighted summation. The context vector is then added to the original context enhancement embedding to obtain the attention refinement embedding, forming the attention refinement embedding matrix. The attention refinement embedding matrix is ​​then input into a bidirectional LSTM network to generate the power context-aware embedding matrix.

[0019] Further, in step S4, the power semantic relationship graph aggregation is to treat each row of the power context-aware embedding matrix as a node representation of the corresponding word, construct an undirected semantic relationship graph, and based on the full text of the training set, count the co-occurrence frequency of any two words within a fixed window size and calculate their empirical probability distribution to obtain the point mutual information value. When the point mutual information value exceeds a preset positive threshold, an undirected edge is established between the corresponding two word nodes to generate an adjacency matrix. On the undirected semantic relationship graph, a two-layer graph convolutional network is used for information propagation to generate a semantic relationship enhancement embedding matrix.

[0020] Further, in step S5, the power feature fusion classification involves performing row-wise average pooling on the semantic relationship enhancement embedding matrix to obtain a text semantic vector, mapping the corresponding structured feature vector to the same vector space as the text semantic vector through a fully connected projection layer to obtain a projected structured feature vector, performing adaptive fusion using a gated fusion mechanism to obtain a fused feature vector, calculating the probability distribution of service quality levels in each category, and taking the level corresponding to the highest probability as the final prediction result.

[0021] Furthermore, in step S6, the power marketing service quality assessment involves collecting real-time power marketing service industrial big data, generating corresponding text word sequences and structured feature vectors; and based on the process described in steps S2 to S5, obtaining the service quality level assessment result corresponding to the real-time power marketing service industrial big data.

[0022] The present invention provides an intelligent power marketing service quality assessment system, comprising a power marketing service data integration module, a power text encoding pre-training module, a power context-aware sequence modeling module, a power semantic relationship graph aggregation module, a power feature fusion classification module, and a power marketing service quality assessment module;

[0023] The power marketing service data integration module collects historical power marketing service industrial big data, generates text word sequences and structured feature vectors, constructs training sets, validation sets and test sets, and sends the data to the power text encoding pre-training module.

[0024] The power text encoding pre-training module generates an initial embedding matrix, constructs a mask sequence, extracts context fusion representation, performs mask language modeling pre-training, extracts sentence pairs, extracts aggregate semantic representation, performs next sentence prediction pre-training, and generates a power context enhancement embedding matrix after joint optimization, and sends the data to the power context-aware sequence modeling module.

[0025] The power context-aware sequence modeling module generates context vectors through a multi-head self-attention layer, forms an attention-refined embedding matrix, generates a power context-aware embedding matrix based on a bidirectional LSTM network, and sends the data to the power semantic relationship graph aggregation module.

[0026] The power semantic relationship graph aggregation module treats each row of the power context-aware embedding matrix as a node representation of the corresponding word, constructs an undirected semantic relationship graph based on the point mutual information value, generates a semantic relationship enhancement embedding matrix through a two-layer graph convolutional network, and sends the data to the power feature fusion and classification module.

[0027] The power feature fusion classification module generates a text semantic vector, which is fused with the projected structured feature vector to obtain a fused feature vector. The prediction result is obtained based on the probability distribution, and the data is sent to the power marketing service quality assessment module.

[0028] The electricity marketing service quality assessment module collects real-time industrial big data on electricity marketing services and assesses the corresponding service quality level.

[0029] The beneficial effects achieved by adopting the above solution are as follows:

[0030] (1) In response to the problem that the semantics of words in the existing power marketing service quality assessment methods depend on the context for accurate judgment, while power business terms are context-dependent and independent representation is prone to semantic bias, resulting in low accuracy of service quality assessment, this solution generates an initial embedding matrix, constructs a mask sequence, extracts context fusion representation, and performs mask language modeling pre-training. This can dynamically reflect the true semantics of words according to the preceding and following context, and improve the sensitivity of key service quality identification. By extracting sentence pairs, extracting aggregate semantic representation, and performing next sentence prediction pre-training, it can establish sentence-level logical association perception ability and fully understand the service scenario expressed by the user. After joint optimization, a power context-enhanced embedding matrix is ​​generated, which can comprehensively and accurately represent the true service semantics of user feedback text, providing a high-quality text representation foundation for subsequent assessment, thereby effectively improving the accuracy and reliability of power marketing service quality assessment.

[0031] (2) In response to the problem that existing methods for evaluating the quality of electricity marketing services often have deep semantic relationships across sentences and paragraphs between words expressing service quality in the feedback text of electricity users, and these words are scattered in different positions in the text, making it difficult to effectively integrate them and resulting in insufficient accuracy of the service quality evaluation results, this solution regards each row of the electricity context-aware embedding matrix as a node representation of the corresponding word, providing a computable data unit for the subsequent aggregation of semantic relationships and avoiding the constraint of sequence position on semantic integration; it constructs an undirected semantic relationship graph based on the point mutual information value to obtain a non-local semantic relationship perspective, providing a structured path for judging service quality by integrating information from multiple texts; and it generates a semantic relationship enhancement embedding matrix through a two-layer graph convolutional network, which can make a comprehensive judgment based on the integrated complete semantic picture, thereby effectively improving the accuracy and comprehensiveness of the evaluation results of electricity marketing service quality. Attached Figure Description

[0032] Figure 1 A flowchart illustrating an intelligent electricity marketing service quality assessment method provided by the present invention;

[0033] Figure 2 A schematic diagram of an intelligent power marketing service quality assessment system provided by the present invention;

[0034] Figure 3 This is a flowchart illustrating step S2.

[0035] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used together with the embodiments of the invention to explain the invention and do not constitute a limitation thereof. Detailed Implementation

[0036] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0037] In the description of this invention, it should be understood that the terms "upper", "lower", "front", "rear", "left", "right", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this invention.

[0038] Example 1, see Figure 1 The present invention provides an intelligent method for evaluating the quality of electricity marketing services, which includes the following steps:

[0039] Step S1: Data integration of electricity marketing services; collect historical industrial big data on electricity marketing services, generate text word sequences and structured feature vectors, and construct training sets, validation sets and test sets;

[0040] Step S2: Power text encoding pre-training; generate initial embedding matrix, construct mask sequence, extract context fusion representation, perform mask language modeling pre-training, extract sentence pairs, extract aggregate semantic representation, perform next sentence prediction pre-training, and generate power context enhanced embedding matrix after joint optimization;

[0041] Step S3: Power context-aware sequence modeling; generate context vectors through a multi-head self-attention layer to form an attention-refined embedding matrix, and generate a power context-aware embedding matrix based on a bidirectional LSTM network;

[0042] Step S4: Power semantic relationship graph aggregation; Each row of the power context-aware embedding matrix is ​​regarded as the node representation of the corresponding word. An undirected semantic relationship graph is constructed based on the point mutual information value. A semantic relationship enhancement embedding matrix is ​​generated through a two-layer graph convolutional network.

[0043] Step S5: Electricity feature fusion and classification; generate text semantic vectors, fuse them with projected structured feature vectors to obtain fused feature vectors, and obtain prediction results based on probability distributions;

[0044] Step S6: Electricity Marketing Service Quality Assessment; Collect real-time industrial big data on electricity marketing services and assess the corresponding service quality level.

[0045] Example 2, see Figure 1 This embodiment is based on the above embodiment. In step S1, power marketing service data is integrated; historical power marketing service industrial big data is collected, including user feedback text data and structured business indicator data; the user feedback text data includes complaint content, inquiry content, repair request content, service evaluation, and message suggestions, and each piece of user feedback text data is associated with user ID, business work order number, and feedback time; the structured business indicator data includes user ID, associated business work order number, average power service time, average complaint handling time, repeat call rate, work order one-time completion rate, user initiative rating, proportion of overdue work orders, average fault repair time, and user satisfaction follow-up score, and each piece of structured business indicator data corresponds to user ID and associated business work order number; the user feedback text data is then processed sequentially. The process involves text washing, truncation (to a maximum length of 512 characters; if the length exceeds this, it is truncated; if the length is insufficient, a special token [PAD] is used for padding), word segmentation, and stop word removal to generate a text word sequence. The structured business indicator data is then processed sequentially with missing value imputation (median imputation), outlier detection (3σ criterion removal and median imputation), and normalization (Min-Max normalization) to generate a structured feature vector. Based on user ID and business work order number, text word sequences from the same user and the same work order are matched and associated with the structured feature vector, and the associated samples are manually labeled with service quality levels. These service quality levels include excellent, good, average, poor, and very poor. Historical power marketing service industrial big data is divided into training, validation, and test sets in a 6:2:2 ratio.

[0046] Example 3, see Figure 1 and Figure 3 This embodiment is based on the above embodiment. In step S2, the power text encoding pre-training specifically includes the following steps:

[0047] Step S21: Initial embedding generation; Electricity user feedback texts vary in length, and word order has a crucial impact on service quality semantic understanding, requiring a unified serialization format while preserving the original word order information; A global vocabulary is constructed based on the full training set text, for text word sequences... Each discrete word is mapped to a dense semantic vector using an embedding matrix, while positional encoding is superimposed to preserve word order information, thus generating an initial embedding matrix. This process converts variable-length text sequences into standardized dense vector representations that preserve word order information, providing a unified input format for subsequent self-supervised learning; the formula used is as follows:

[0048] ;

[0049] In the formula, It is a trainable embedding matrix. d is the vocabulary size, and d is the embedding dimension. It is the word x i The indexes in the vocabulary list: x1, x2, x i and x n These are the words at positions 1, 2, i, and n in the text word sequence, where i is the position index and n is the total length of the sequence. It is the trainable positional encoding vector at position i, e1, e2, e... i and e n These are words x1, x2, and x. i and x n The initial input representation after overlaying position information, where T is the transpose operation;

[0050] Step S22: Masked Language Modeling Pre-training; In power user feedback text, the semantics of service quality-related keywords often depend on the context for accurate judgment. Therefore, the encoder needs to have word-level bidirectional context-dependent learning capabilities; Randomly select 15% of the word positions from the text word sequence corresponding to the initial embedding matrix to form a mask set M. For each selected mask position, replace it with a special placeholder [MASK] with an 80% probability, replace it with a random word from the vocabulary with a 10% probability, and keep the original word unchanged with a 10% probability to generate a mask sequence X. mask The embedding matrix corresponding to the masked sequence is input into the Transformer encoder (the Transformer encoder consists of 12 identical encoder layers stacked together, each containing two core sub-layers: a multi-head self-attention layer and a feedforward neural network layer, with residual connections and layer normalization operations after each sub-layer; the number of attention heads in the multi-head self-attention layer is set to 12). The output is a context fusion representation for each position. For all masked positions, their context fusion representation is mapped to a probability distribution on the vocabulary using a linear classification head to predict the original words, with the training objective being to minimize the negative log-likelihood loss. This pre-training task enables the Transformer encoder to accurately reconstruct the masked text content based on contextual information, effectively enhancing its representation ability for power business terms and service quality-related semantics through semantic processing. The formulas used are as follows:

[0051] ;

[0052] ;

[0053] In the formula, Given a mask sequence X mask Under the condition that the i-th mask position is restored to the original word x iThe predicted probability; [MASK] is a special placeholder indicating that the original word at this position is masked and needs to be predicted by the Transformer encoder; It is the activation function, W MLM and b MLM These are the weight matrix and bias vector of the linear classifier head, respectively. i It is the context fusion representation vector output by the Transformer encoder at the i-th position. It is the negative log-likelihood loss, where |M| is the total number of mask positions in the mask set M;

[0054] Step S23: Next Sentence Prediction Pre-training; Logical relationships often exist between sentences in power service feedback. The encoder needs to learn sentence-level semantic coherence to fully understand the context of the service scenario; All user feedback text data in the training set are used as pre-training corpus, from which sentence pairs are extracted. Of these, 50% of the samples consisted of two consecutive sentences from the corpus, labeled as positive samples, while the remaining 50% consisted of two sentences randomly selected from different positions in the corpus, labeled as negative samples. Each sentence was then processed according to... The concatenated sentences are input into a Transformer encoder. The encoder output vector corresponding to the [CLS] position is extracted as the aggregated semantic representation of the sentence pair. The probability that s2 is the successor sentence of s1 is calculated by a binary classification head, and the training objective is to minimize the binary classification cross-entropy loss. This enables the encoder to effectively distinguish between logically coherent sentence pairs and randomly concatenated sentence pairs, thereby grasping the logical relationship between sentences in power service feedback. Through semantic processing, a comprehensive understanding of the service scenario described by the user is achieved. The formulas used are as follows:

[0055] ;

[0056] ;

[0057] ;

[0058] In the formula, s1 and s2 are the first and second sentences in the sentence pair, respectively. s1 is the input of the preceding sentence, and s2 is used to determine whether it is a logical successor of s1; y is the true label of the sentence pair, y=1 indicates that s2 is a continuous successor of s1 in the corpus (positive sample), and y=0 indicates that s2 is a sentence randomly selected from the corpus that has no logical connection with s1 (negative sample); [CLS] is a special classification token placed at the beginning of the sequence, and its corresponding encoder output vector is used as the aggregate semantic representation of the entire sentence pair; [SEP] is a special separator token used to separate the two input sentences and mark the boundaries of the sentences; E NSP It is a sentence pair splicing sequence The corresponding complete embedding matrix, It is a Transformer encoder, o CLS It is the aggregated semantic representation vector of sentence pairs output by the Transformer encoder at the [CLS] position. The Transformer encoder predicts that s2 is the successor to s1. It is the Sigmoid activation function, W NSP and b NSP These are the weight matrix and bias vector of the binary classification head, respectively. It is a binary cross-entropy loss;

[0059] Step S24: Context-enhanced embedding generation; the masked language modeling task focuses on word-level contextual understanding, while the next sentence prediction task focuses on sentence-level logical relationships. Both need to be optimized collaboratively to enable the encoder to simultaneously master both word-level and sentence-level semantic representation capabilities, thereby outputting enhanced embeddings adapted to the power service quality assessment task; the two pre-training tasks share all parameters of the same Transformer encoder, and the total loss is calculated in each training iteration. The gradients of all encoder parameters (including embedding matrix, positional encoding, multi-head self-attention weights, feedforward neural network parameters, and parameters of each classifier head) are calculated through backpropagation, and the Adam optimizer is used (with an initial learning rate set to...). The linear warm-up ratio was set to 10% of the total training epochs. After the warm-up, a linear decay strategy was used to gradually reduce the learning rate. All parameters were jointly optimized. The total training epochs were set to 30. After each training epoch, the total loss was calculated on the validation set. If the total loss on the validation set did not decrease for three consecutive epochs, the training was terminated early. The two pre-training tasks jointly guided the Transformer encoder to learn high-quality contextual semantic representations. After the pre-training converged, the initial embedding matrix of the original text word sequence X was input again into the trained Transformer encoder to obtain the power context-enhanced embedding matrix. The formula used is as follows:

[0060] ;

[0061] In the formula, It is a pre-trained, converged Transformer encoder; It is the initial embedding matrix of the original text word sequence X. It is an electrical context-enhanced embedding matrix.

[0062] By performing the above operations, this solution addresses the problem in existing power marketing service quality assessment methods where the semantics of words in user feedback text rely on context for accurate judgment. Furthermore, power business terminology is context-dependent, and independent representation is prone to semantic bias, leading to low accuracy in service quality assessment. This solution generates an initial embedding matrix, constructs a mask sequence, extracts contextual fusion representations, and performs masked language modeling pre-training. This dynamically reflects the true semantics of words based on the preceding and following context, improving the sensitivity for identifying key service quality aspects. By extracting sentence pairs, extracting aggregated semantic representations, and performing pre-training for next sentence prediction, this solution establishes sentence-level logical connection perception capabilities, enabling a complete understanding of the service scenario expressed by the user. Finally, after joint optimization, a power context-enhanced embedding matrix is ​​generated, which comprehensively and accurately represents the true service semantics of user feedback text, providing a high-quality text representation foundation for subsequent assessments. This effectively improves the accuracy and reliability of power marketing service quality assessment.

[0063] Example 4, see Figure 1 This embodiment is based on the above embodiment. In step S3, the power context-aware sequence modeling is performed because different words in the power service feedback text contribute significantly differently to the service quality assessment. It is necessary to use an attention mechanism to directionally strengthen the representation weights of service quality keywords while also considering the sequence context information. The power context-enhanced embedding matrix is ​​input into a multi-head self-attention layer (with 8 attention heads). Vectors are taken position by position according to the matrix row index. For each row vector, the attention weight between it and all row vectors in the matrix is ​​calculated, and the corresponding context vector is obtained by weighted summation. Then, the context vector is added to the original context-enhanced embedding to obtain the attention-refined embedding, forming the attention-refined embedding matrix. The attention-refined embedding matrix is ​​input into a bidirectional LSTM network (with a hidden dimension of 128) to model the sequence along both the forward and backward directions, generating the power context-aware embedding matrix. Attention mechanisms effectively enhance the representation weights of service quality keywords, while bidirectional LSTM captures semantic relationships such as progression and transition in the feedback text through bidirectional sequence modeling, enabling the final embedding to possess both semantic focus and sequence awareness capabilities. The formulas used are as follows:

[0064] ;

[0065] ;

[0066] ;

[0067] In the formula, , and They are The row vectors corresponding to the i-th, j-th, and k-th positions in the array, where j and k are position indices. yes and The attention weights between them, where v is the attention query weight vector. It is a hyperbolic tangent activation function, W1 and W2 are the weight matrices of the attention mechanism, and c i and These are the context vector and attention-refined embedding at position i, respectively, h1, h2, and h... n These are the output vectors of the attention-refined embeddings at the 1st, 2nd, and nth positions, respectively, after being processed by a bidirectional LSTM.

[0068] Example 5, see Figure 1 This embodiment is based on the above embodiment. In step S4, the electricity semantic relationship graph is aggregated because there are often deep semantic connections between service quality-related words in the electricity user feedback text. However, such connections may be far apart in the sequence and difficult to capture directly. Each row of the electricity context-aware embedding matrix is ​​regarded as the node representation of the corresponding word, and an undirected semantic relationship graph is constructed. The specific graph construction method is as follows: based on the full text of the training set, the co-occurrence frequency of any two words within a fixed window size (set to 5) is counted, and their empirical probability distribution is calculated to obtain the point mutual information value. When the point mutual information value exceeds a preset positive threshold, the corresponding word is included in the graph. An undirected edge is established between two word nodes, and the corresponding position in the adjacency matrix is ​​set to 1; otherwise, it is set to 0. On the undirected semantic relation graph, a two-layer graph convolutional network (GCN) is used for information propagation (each GCN has 128 hidden units, the intermediate layers use ReLU activation, and the output layer does not use an activation function). The propagation rule of the graph convolution is as follows: first, self-loops are added to the adjacency matrix and its degree matrix is ​​calculated to obtain a normalized adjacency matrix. Each GCN layer aggregates the features of neighboring nodes through this normalized adjacency matrix, and outputs a new layer of features after linear transformation and ReLU activation. After two layers of propagation, a semantic relation enhancement embedding matrix is ​​generated. By using point-to-point mutual information data to drive graph construction, a structured expression of non-local semantic relationships between words is achieved. Leveraging the multi-hop information propagation mechanism of GCN, the embedding's ability to represent deep semantic relationships in power service texts is enhanced, effectively capturing cross-distance business semantic dependencies. The formula used is as follows:

[0069] ;

[0070] ;

[0071] ;

[0072] ;

[0073] In the formula, It is the word x i With word xj Point mutual information value, and These are the words x i and word x j The empirical probability of occurrence in the entire training corpus. It is the word x i With word x j The empirical probability of co-occurrence within a window of size 5. It is a smoothing term. θ is the positive threshold of point mutual information. , It is the word x i With word x j The corresponding adjacency matrix value, and These are the node embedding matrices output by the (l+1)th and lth layers of the GCN, respectively; It is a random discard operation with a discard rate of 0.5. It is a modified linear unit activation function. It is the adjacency matrix after adding self-loops. yes The degree matrix, and These are the trainable weight matrix and bias vector of the l-th layer GCN, respectively. The word 'x' in the output of the (l+1)th layer GCN i The corresponding embedding vector, The word 'x' in the output of the l-th layer GCN j The corresponding embedding vector, and These are the words x i and word x j The corresponding set of neighboring nodes, and They are and The number of nodes in , and These are the semantic relationship enhancement embedding vectors for the 1st, 2nd, and nth words, respectively.

[0074] By performing the above operations, this solution addresses the problem in existing electricity marketing service quality assessment methods where words expressing service quality in user feedback texts often have deep semantic relationships across sentences and are scattered across different parts of the text, making effective integration difficult and leading to insufficient accuracy in service quality assessment results. This solution treats each row of the electricity context-aware embedding matrix as a node representation of the corresponding word, providing computable data units for subsequent semantic relationship aggregation and avoiding the constraint of sequence position on semantic integration. Based on point mutual information values, an undirected semantic relationship graph is constructed to obtain a non-local semantic relationship perspective, providing a structured path for comprehensively judging service quality from multiple textual sources. Finally, a semantic relationship enhancement embedding matrix is ​​generated through a two-layer graph convolutional network, enabling comprehensive judgment based on the integrated complete semantic landscape, thereby effectively improving the accuracy and comprehensiveness of electricity marketing service quality assessment results.

[0075] Example 6, see Figure 1 This embodiment is based on the above embodiment. In step S5, the power feature fusion classification is performed because a single text modality is insufficient to fully reflect the quality of power services. Structured business indicators need to be integrated to ensure the evaluation is supported by both subjective user feedback and objective business data. The semantic relationship enhancement embedding matrix is ​​averaged row-wise to obtain a text semantic vector. The structured feature vectors corresponding to the same user and the same work order in step S1 are mapped to the same vector space as the text semantic vector through a fully connected projection layer to obtain the projected structured feature vector. A gated fusion mechanism is used for adaptive fusion to obtain a fused feature vector. The fused feature vector is then passed sequentially through a fully connected mapping layer and a Softmax classifier to output the probability distribution of service quality levels in each category. The level corresponding to the highest probability is taken as the final prediction result. During the training phase, minimizing the cross-entropy loss is the optimization objective, and all trainable parameters are updated through backpropagation. This ensures that the evaluation results take into account both subjective perception and objective data, achieving end-to-end joint optimization of text and structured data. The formula used is as follows:

[0076] ;

[0077] ;

[0078] ;

[0079] ;

[0080] ;

[0081] In the formula, t is the text semantic vector. W is the semantic relation enhancement embedding vector of the i-th word, M is the structured feature vector, and W is the semantic relation enhancement embedding vector of the i-th word. proj and b projThese are the weight matrix and bias vector of the projection layer, respectively, m proj W is the projected structured feature vector. g and b g These are the weight matrix and bias vector of the gating layer, respectively, where g is the gating weight vector. It is the element-wise multiplication operator, F is the fused feature vector, and W is the element-wise multiplication operator. class and b class These are the weight matrix and bias vector of the fully connected mapping layer, P. class It is a probability distribution vector.

[0082] Example 7, see Figure 1 This embodiment is based on the above embodiment. In step S6, the power marketing service quality assessment involves collecting real-time power marketing service industrial big data, including user feedback text data and structured business indicator data. The user feedback text data is sequentially processed by text cleaning, text truncation, word segmentation, and stop word removal to generate a text word sequence. The structured business indicator data is sequentially processed by missing value filling, outlier detection, and normalization to generate a structured feature vector. The text word sequence and structured feature vector are then processed according to the process described in steps S2 to S5, sequentially through power text encoding pre-training, power context-aware sequence modeling, power semantic relationship graph aggregation, and power feature fusion classification, to obtain the service quality level assessment result corresponding to the real-time power marketing service industrial big data, thus completing the power marketing service quality assessment.

[0083] Example 8, see Figure 2 Based on the above embodiments, this embodiment provides an intelligent power marketing service quality assessment system, including a power marketing service data integration module, a power text encoding pre-training module, a power context-aware sequence modeling module, a power semantic relationship graph aggregation module, a power feature fusion classification module, and a power marketing service quality assessment module.

[0084] The power marketing service data integration module collects historical power marketing service industrial big data, generates text word sequences and structured feature vectors, constructs training sets, validation sets and test sets, and sends the data to the power text encoding pre-training module.

[0085] The power text encoding pre-training module generates an initial embedding matrix, constructs a mask sequence, extracts context fusion representation, performs mask language modeling pre-training, extracts sentence pairs, extracts aggregate semantic representation, performs next sentence prediction pre-training, and generates a power context enhancement embedding matrix after joint optimization, and sends the data to the power context-aware sequence modeling module.

[0086] The power context-aware sequence modeling module generates context vectors through a multi-head self-attention layer, forms an attention-refined embedding matrix, generates a power context-aware embedding matrix based on a bidirectional LSTM network, and sends the data to the power semantic relationship graph aggregation module.

[0087] The power semantic relationship graph aggregation module treats each row of the power context-aware embedding matrix as a node representation of the corresponding word, constructs an undirected semantic relationship graph based on the point mutual information value, generates a semantic relationship enhancement embedding matrix through a two-layer graph convolutional network, and sends the data to the power feature fusion and classification module.

[0088] The power feature fusion classification module generates a text semantic vector, which is fused with the projected structured feature vector to obtain a fused feature vector. The prediction result is obtained based on the probability distribution, and the data is sent to the power marketing service quality assessment module.

[0089] The electricity marketing service quality assessment module collects real-time industrial big data on electricity marketing services and assesses the corresponding service quality level.

[0090] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.

[0091] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention.

[0092] The present invention and its embodiments have been described above. This description is not restrictive, and the accompanying drawings are only one embodiment of the present invention; the actual structure is not limited thereto. In conclusion, if those skilled in the art are inspired by this description and design similar structures and embodiments without departing from the spirit of the invention, such designs should fall within the protection scope of the present invention.

Claims

1. An intelligent method for evaluating the quality of electricity marketing services, characterized in that: The method includes the following steps: Step S1: Data integration of electricity marketing services; collect historical industrial big data on electricity marketing services, generate text word sequences and structured feature vectors, and construct training sets, validation sets and test sets; Step S2: Power text encoding pre-training; generate initial embedding matrix, construct mask sequence, extract context fusion representation, perform mask language modeling pre-training, extract sentence pairs, extract aggregate semantic representation, perform next sentence prediction pre-training, and generate power context enhanced embedding matrix after joint optimization; Step S3: Power context-aware sequence modeling; generate context vectors through a multi-head self-attention layer to form an attention-refined embedding matrix, and generate a power context-aware embedding matrix based on a bidirectional LSTM network; Step S4: Power semantic relationship graph aggregation; Each row of the power context-aware embedding matrix is ​​regarded as the node representation of the corresponding word. An undirected semantic relationship graph is constructed based on the point mutual information value. A semantic relationship enhancement embedding matrix is ​​generated through a two-layer graph convolutional network. Step S5: Electricity feature fusion and classification; generate text semantic vectors, fuse them with projected structured feature vectors to obtain fused feature vectors, and obtain the final prediction result based on probability distribution; Step S6: Electricity Marketing Service Quality Assessment; Collect real-time industrial big data on electricity marketing services and assess the corresponding service quality level.

2. The intelligent electricity marketing service quality assessment method according to claim 1, characterized in that: In step S2, the pre-training of the power text encoding specifically includes the following steps: Step S21: Initial embedding generation; Construct a global vocabulary based on the full text of the training set. For a text word sequence, map each discrete word to a dense semantic vector through the embedding matrix, and simultaneously superimpose positional encoding to generate an initial embedding matrix. Step S22: Masked language modeling pre-training; randomly select word positions from the text word sequence corresponding to the initial embedding matrix to form a mask set, generate a mask sequence, input the embedding matrix corresponding to the mask sequence into the encoder, output the context fusion representation of each position, for all masked positions, map their context fusion representation to the probability distribution on the vocabulary through the linear classification head to predict the original words, and take minimizing the negative log-likelihood loss as the training objective; Step S23: Pre-training for next sentence prediction; Step S24: Context-enhanced embedding generation.

3. The intelligent electricity marketing service quality assessment method according to claim 2, characterized in that: In step S23, the next sentence prediction pre-training involves using all user feedback text data in the training set as pre-training corpus, extracting sentence pairs from them, concatenating each sentence pair and inputting it into the encoder, extracting the aggregated semantic representation of the sentence pairs, calculating the probability of subsequent sentences using a binary classification head, and minimizing the binary classification cross-entropy loss as the training objective.

4. The intelligent electricity marketing service quality assessment method according to claim 2, characterized in that: In step S24, the context-enhanced embedding generation involves calculating the total loss, calculating the gradients of all encoder parameters through backpropagation, jointly updating all parameters, and after pre-training convergence, inputting the initial embedding matrix of the original text word sequence back into the trained encoder to obtain the power context-enhanced embedding matrix.

5. The intelligent electricity marketing service quality assessment method according to claim 1, characterized in that: In step S3, the power context-aware sequence modeling involves inputting the power context-enhanced embedding matrix into a multi-head self-attention layer. For each row vector, the attention weights between it and all row vectors in the matrix are calculated, and the corresponding context vector is obtained by weighted summation. The context vector is then added to the original context-enhanced embedding to obtain the attention-refined embedding, forming the attention-refined embedding matrix. The attention-refined embedding matrix is ​​then input into a bidirectional LSTM network to generate the power context-aware embedding matrix.

6. The intelligent electricity marketing service quality assessment method according to claim 1, characterized in that: In step S4, the power semantic relationship graph aggregation is to treat each row of the power context-aware embedding matrix as a node representation of the corresponding word, construct an undirected semantic relationship graph, and based on the full text of the training set, count the co-occurrence frequency of any two words within a fixed window size and calculate their empirical probability distribution to obtain the point mutual information value. When the point mutual information value exceeds a preset positive threshold, an undirected edge is established between the corresponding two word nodes to generate an adjacency matrix. On the undirected semantic relationship graph, a two-layer graph convolutional network is used for information propagation to generate a semantic relationship enhancement embedding matrix.

7. The intelligent electricity marketing service quality evaluation method according to claim 1, characterized in that: In step S5, the power feature fusion classification involves performing row-wise average pooling on the semantic relationship enhancement embedding matrix to obtain a text semantic vector. The corresponding structured feature vector is then mapped through a fully connected projection layer to the same vector space as the text semantic vector to obtain a projected structured feature vector. An adaptive fusion mechanism is used to obtain a fused feature vector. The probability distribution of service quality level in each category is calculated, and the level corresponding to the highest probability is taken as the final prediction result.

8. The intelligent electricity marketing service quality assessment method according to claim 1, characterized in that: In step S1, the integration of electricity marketing service data involves collecting historical industrial big data on electricity marketing services, including user feedback text data and structured business indicator data; performing text cleaning, text truncation, word segmentation, and stop word removal on the user feedback text data to generate a text word sequence; performing missing value imputation, outlier detection, and normalization on the structured business indicator data to generate a structured feature vector; manually labeling the service quality level; and constructing a training set, a validation set, and a test set.

9. The intelligent electricity marketing service quality assessment method according to claim 1, characterized in that: In step S6, the power marketing service quality assessment involves collecting real-time power marketing service industrial big data, generating corresponding text word sequences and structured feature vectors; and based on the process described in steps S2 to S5, obtaining the service quality level assessment result corresponding to the real-time power marketing service industrial big data.

10. An intelligent electricity marketing service quality assessment system, used to implement the intelligent electricity marketing service quality assessment method as described in any one of claims 1-9, characterized in that: It includes a power marketing service data integration module, a power text encoding pre-training module, a power context-aware sequence modeling module, a power semantic relationship graph aggregation module, a power feature fusion classification module, and a power marketing service quality assessment module; The power marketing service data integration module collects historical power marketing service industrial big data, generates text word sequences and structured feature vectors, constructs training sets, validation sets and test sets, and sends the data to the power text encoding pre-training module. The power text encoding pre-training module generates an initial embedding matrix, constructs a mask sequence, extracts context fusion representation, performs mask language modeling pre-training, extracts sentence pairs, extracts aggregate semantic representation, performs next sentence prediction pre-training, and generates a power context enhancement embedding matrix after joint optimization, and sends the data to the power context-aware sequence modeling module. The power context-aware sequence modeling module generates context vectors through a multi-head self-attention layer, forms an attention-refined embedding matrix, generates a power context-aware embedding matrix based on a bidirectional LSTM network, and sends the data to the power semantic relationship graph aggregation module. The power semantic relationship graph aggregation module treats each row of the power context-aware embedding matrix as a node representation of the corresponding word, constructs an undirected semantic relationship graph based on the point mutual information value, generates a semantic relationship enhancement embedding matrix through a two-layer graph convolutional network, and sends the data to the power feature fusion and classification module. The power feature fusion classification module generates a text semantic vector, which is fused with the projected structured feature vector to obtain a fused feature vector. The prediction result is obtained based on the probability distribution, and the data is sent to the power marketing service quality assessment module. The electricity marketing service quality assessment module collects real-time industrial big data on electricity marketing services and assesses the corresponding service quality level.