A knowledge-graph based text summarization scheme for mobile edge computing

As the demand for edge services intensifies, text, being the most common type of data, has seen a significant expansion in data volume and an escalation in processing complexity. Furthermore, mobile edge computing (MEC) service systems often faces challenges such as limited computational capabilities and difficulties in data integration, requiring the development and implementation of more efficient and lightweight methodologies for text data processing. To swiftly extract and analysis vital information from MEC text data, an automatic generation scheme of multi-document text summarization based on knowledge graph is proposed in this paper, named KGCPN. For the text data from MEC devices and applications, the natural language processing technology is used to execute the data pre-processing steps, which transforms the MEC text data into a computationally tractable and semantically comprehensible format. Then, the knowledge graph of multi-document text is constructed by integrating the relationship paths and entity descriptions. The nodes and edges of the knowledge graph serve to symbolize the semantic relationships within the text, and the Graph Convolution Neural network (GCN) is used to understand the text and learn the semantic representation. Finally, a pointer-generator network model accepts the encoding information from GCN and automatically generate a general text summarization. The experimental results indicate that our scheme can effectively facilitate the smart pre-processing and integration of MEC data.


Introduction
With the accelerated advancement of the Internet of Things (IoT) and cloud computing, individuals are inundated with an abundance of textual information daily.The continuous monitoring and data collection from mobile edge computing (MEC) devices have generated an even larger volume of data.Although MEC aims to extend the edge of cloud networks to reduce latency and network congestion [1], how to process MEC data in an economical and secure way remains a fundamental challenge.In recent years, deep learning-driven artificial intelligence (AI) has gradually grown into a key technology for realizing intelligent data analysis [2], capable of addressing issues such as limited computing power and fast-changing context environment.To efficiently and intelligently process text data from MEC devices and applications, text summarization and knowledge graphs, which are pivotal technologies in the field of AI, offer promising approaches to address this issue.
To swiftly comprehend and assimilate massive information, text summarization has emerged as an extremely pragmatic tool [3].However, traditional summarization methodologies predominantly rely on single documents, failing to fully exploit the information redundancy across multi-documents.This limitation hinders the ability to provide a comprehensive and accurate summary of the article's theme [4].Furthermore, with the advent of knowledge graph technology, an increasing number of studies are focusing on how to utilize this technology for text summarization.The automatic generation algorithm based on knowledge graph is studied to improve the accuracy and efficiency of multi-document text summarization [5].The knowledge graph is a kind of knowledge base presented in a graphical way, which expresses the complex relationship between knowledge through entities, relationships and attributes [6].As the demand for knowledge grows, traditional standalone information formats such as text, images, and videos are no longer sufficient to satisfy people's need for diverse and integrated knowledge [7].Knowledge graphs can visually present a wealth of knowledge information, enabling users to more intuitively understand the relationships between different pieces of knowledge [8].This not only enhances comprehension but also allows for more effective application in real-world scenarios.
Therefore, this study aims to overcome the limitations of traditional MEC text data processing methods by proposing a new scheme named KGCPN that utilizes a summarization model based on knowledge graphs and Graph Convolution Neural Network (GCN) [9].This approach is designed to capture the contextual information of MEC text data, extract entities and relationships, and construct the knowledge graph.The nodes and edges in the knowledge graph represent semantic relationships.Through GCN for text comprehension and semantic representation learning, the corresponding semantic information is input into the Pointer-Generator Network (PGN) to automatically generate multi-document text summarization.The contributions of this paper are as follows: 1. Automated feature extraction from MEC data: This research employs NLP techniques such as word segmentation, part-of-speech tagging, and named entity recognition (NER) to integrate MEC data and construct the knowledge graph.2. Optimization of text summarization: Leveraging the constructed knowledge graph, the semantic sequences generated by the GCN are fed into a PGN model to produce summarization.This approach enhances the generation of multi-document summarization.

Effective integration of MEC data and AI:
The fully trained text summarization model is deployed directly on edge devices, obviating the need to transmit vast quantities of raw text back to the central server.This approach enables a rapid response to user requests, enhancing the overall efficiency of the system.
The related work will be presented and discussed.Then we elaborate on the construction of the knowledge graph.The design details of our text summarization model are introduced later.Our comparative experiments and performance evaluation are described then.Finally, we conclude the article with prospects.

Related work
There are various processing methods for data and resources in edge cloud environments currently.Xu et al. [10] proposed a dynamic offloading strategy based on game theory and convolutional neural network partitioning, which can determine the optimal offloading decision in dynamic and heterogeneous edge-cloud environment.Li et al. [11] proposed a knowledge driven anomaly detection framework that effectively solves the problem of feature loss in distributed environments by dynamically adjusting feature attention.To address the potential load imbalance issues that traditional edge server deployment strategies may face, Yan et al. [12] designed a deployment strategy of edge servers based on the stateaction-reward-state-action (SARSA) learning, which optimized response latency and processing energy consumption.To fully utilize AI technology and edge devices distributed at road edges, The advantages of machine learning methods represented by CNN and federated learning in improving model efficiency and stability have also been recognized [13][14][15].Tian et al. [16] achieved a MEC-enabled distributed cooperative microservice caching scheme by integrating deep reinforcement learning and Markov decision process.However, issues such as how to effectively integrate text data from MEC devices and applications, and how to effectively extract semantic information from MEC text data still need to be explored and studied.
The goal of automatic text summarization is to generate concise and accurate abstracts, extracting key information from multi-documents, which simplifies the understanding of the main points across a collection of texts.This task can effectively summarize and organize vast amounts of text information in fields such as search engines, recommendation systems, and automatic translation.This enhances the efficiency and quality of information processing, thereby improving the overall user experience and system performance [17].In the field of machine learning, the task of automatically generating multi-document text summarization can be perceived as a distinct text classification task [18].In the domain of data mining, this endeavor can be considered as a text clustering mining task, where the goal is to extract meaningful patterns and information from an extensive array of texts.The investigation into algorithms for the text summarization from multi-documents encounters numerous challenges and intricacies [19].Redundancy and conflict of information among multi-documents need to be fully dealt with to avoid duplicate or contradictory information.Quality and accuracy need to be fully guaranteed [20] to ensure that the generated abstract is concise and comprehensive.Knowledge differences and language barriers between documents in different fields also need to be fully considered and solved [21].At present, many researchers have studied the method of generating text summarization.Sanchez-Gomez et al. [22] take medical texts as an example to study the query-oriented algorithm of generating text abstracts.This method better considers the professional knowledge and needs in the medical field and has certain pertinence.It can effectively compress and sort out the important information in medical texts, making the abstracts more informative.Mojrian et al. [23] use the heuristic method of quantum computing and genetic algorithm to extract multi-document text summarization.Quantum heuristic genetic algorithm can find better abstracts in a shorter time, has strong robustness and can deal with various input documents and noise data.However, this method is difficult to implement, requires more technology and resources, and affects the real-time performance and efficiency of the algorithm.Gupta et al. [24] used two-level feature extraction method to generate abstracts.This method used two-level feature extraction, firstly understood the report at a macro level, and then extracted more detailed features, which helped to grasp the core content of the text and clearly show how each element in the abstract was extracted from the original text, so that readers could better understand the abstract.However, because this method needs multi-stage processing, it may take more time to extract abstracts than other single-stage methods.
Aiming at the problems existing in the above methods, we propose an automatic multi-document text summarization scheme based on knowledge graphs.Unlike traditional summarization strategies, this study delves into the deep processing and analysis of multi-document texts, fully utilizing semantic information and entity relationships within the knowledge graph.This approach facilitates efficient processing and abstract generation of multi-document texts, offering enhanced support to swiftly comprehend and assimilate vast amounts of MEC text data information.

Data integration
The MEC data in this paper mainly comes from roadside intelligent devices such as cameras and traffic lights [25], vehicles, and mobile devices such as smartphones.
After these data are cleaned and preprocessed into multidocument texts, they are subjected to feature extraction using NLP methods.This primarily involves word segmentation, part-of-speech tagging, and NER.The result of word segmentation is directly used for the part-ofspeech tagging task, where the generated word sequence is used as input and corresponds to the tagging sequence.The part-of-speech tagging sequence is used for training the NER model.Once the features, such as entities and relationship paths within the text, are identified, the automatic generation of a multi-document knowledge graph is initiated.Subsequently, the generated knowledge graph is utilized for text comprehension and semantic representation learning based on GCN.Finally, the text summarization is automatically produced using the PGN which leverages the encoding information from the GCN.Contrasted with traditional data integration methods that require substantial manpower to manually extract entities and relations from text, NLP technology accomplishes the task of automatically constructing a knowledge graph with minimal cost, which is achieved by modeling and integrating the semantic relations of textual entities.The resultant knowledge graph, endowed with attributes such as accuracy and interpretability, can significantly enhance the efficacy of text summarization (Fig. 1).

Word segmentation
In the data integration, a word serves as the basic semantic unit and an integral element of the text.The word segmentation is employed to establish the boundaries of words within documents, which is essential as it enables the execution of deep text processing.In the realm of natural language processing (NLP), the N-gram model is often utilized for word segmentation, which allows for the straightforward matching of text sentences according to a predefined dictionary [26], thereby enabling the search for all potential candidate words within the matching results.Utilizing the candidate words derived from text sentences, an N-gram segmentation graph is formulated.In this graph, all candidate words are set as nodes and weights are set for the edges of the word segmentation graph to represent the cost of different edges.The Viterbi algorithm is employed to identify the path with the minimum cost in the word segmentation graph, thereby deriving the final word segmentation sequence.This approach combines both statistical and rule-based methods, which can effectively execute the word segmentation task using the word separator.

Part-of-speech tagging
The part-of-speech tagging requires the establishment of a set of tagging rules.Firstly, continually mark the intermediate results [27], count the incorrect tags, then build a rule learner, and use the corrected marked content to generate new tagging rules.Then, iterate repeatedly, and stop when no new rules can reduce the number of incorrectly tagged instances, obtaining a set of final tagging rules.Finally, the number of incorrect part-of-speech tags can be minimized to the greatest extent based on these tagging rules.
The rule iteration and model training process mentioned above are carried out by the Hidden Markov Model (HMM), combining the pre-trained word embeddings (such as Word2Vec [28], GloVe [29], etc.) and language models (such as BERT, ELMo [30], etc.) to extract rich semantic features of vocabulary, which can help better represent the context of vocabularies in the sentences.The word sequences {x 1 , x 2 , ..., x n } and part-of-speech markers {y 1 , y 2 , ..., y n } are introduced to represent observation sequence and state sequence, the expression of text part-of-speech tagging is as follows: In the formula (1), P(x i |y i ) indicates the probability that the word sequence x i marked as the label of word y i .
Before the parameter training of the HMM, the relevant parameters of the dictionary information constraint model are set, and the state generation probability and state transition probability parameters are trained by large-scale corpus.After completing the model training, the Viterbi algorithm is selected to mark the part-of-speech of multi-document texts. (1) NER NER, also known as entity labeling, is an information extraction technology.From the multi-document text, the category marking of key information of named entities is processed [27].Conditional random field (CRF) probability model is selected to identify named entities in multidocument texts.According to the input text sequence, this method constructs a discriminant model to obtain the output sequence.While training the CRF model, the previous part-of speech tagging results are used as additional feature inputs, which means that each word is not only represented as its original form, but also as its partof-speech tagging label.The part-of-speech tagging can help the model understand the grammatical role of words in sentences, thereby recognizing named entities more accurately.In the NER of multi-document texts, we use X = {x 1 , x 2 , ..., x n } and Y = {y 1 , y 2 , ..., y n } represent two sets of random text variables, X and Y represent a structurally identical observed sequence as well as the hidden states, respectively.The constructed linear chain CRFs are represented by p(y i |X, y i−1 , y i+1 ) , and the constraints are added to the CRF model to reduce the probability of errors in the output label.The expression of the CRF is as follows: In the above formula, score(s, w) and P respectively represent the comprehensive evaluation score and (2) ,w)   w∈W i e score(s,w) Fig. 1 The integration scheme of MEC data the emission score matrix of the text, A and w i respec- tively represent the transfer matrix and all possible tag sequences, P(w|s) represents the probability that the input sequence of text corresponds to the tag sequence.
The input and output of CRF model are text sequence and label sequence respectively.The Viterbi algorithm is used to complete the prediction task, and the complexity of the named entity identification path is reduced by the dynamic programming solution method, and the final text NER result is output.

Multi-document text knowledge graph
By identifying the relationship paths between entities, we can enhance the connectivity and expressive power of the knowledge graph.On the other hand, transforming the entity description information in the text into semantically represented vectors can enrich the attribute information of entities in the knowledge graph.Therefore, the representation of relationship path information and entity description information in multi-document texts aims to enrich and improve the knowledge graph from different perspectives, thereby enhancing the effectiveness of knowledge acquisition and inference.

Representation of path information
After completing NER, we begin to represent the relationship path information.The TransE model [31] is employed for knowledge graph embedding tasks above due to three pivotal reasons.Firstly, the TransE model boasts a comparatively simple structural design, which significantly enhances the computational efficiency during both training and prediction phases.Secondly, it articulates relationships within the knowledge graph as vector translations between entities, offering an intuitive geometric perspective for comprehending and interpreting the knowledge graph.Lastly, the translation characteristic of TransE can be harnessed for sophisticated tasks such as link prediction and entity alignment, thereby broadening the application spectrum of the knowledge graph.
The relationship between entities h and t is represented by relationship paths connected by N bars, and the relationship paths between connecting h and t are included in the set P = {p 1 , p 2 , ..., p N } .The relationship path is represented as a triplet (h, p, t), defining the energy function for it.Considering the relationship between entities and path information in the multi-document, the accuracy of knowledge reasoning of knowledge graph is improved.All the vectors in the text [32] are then added into the path combination vector p * , which is expressed as follows: In the formula (4), r * represents structured vector rep- resentation of text relations.When there is a multi-step relationship path between the entity pairs, based on the energy function of the TransE model, the expression of the triple energy function that defines the relationship path is as follows: From formula (5), the smaller the relationship r between the relationship path p, the higher the similarity between them, and the probability of calculating the relationship r is greater by using the path p.
According to the path-constrained resource allocation algorithm applied to the fact triplet (h, r, t), considering the relationship between multiple paths, the comprehensive energy function expression of multiple paths in the text is constructed as follows: In the formula (6), p ∈ P(h, t) represents the reliability of the full relationship path and the relationship path p between entity pairs (h, t) is expressed as R(p|h, t).Z and E(h, p, t) respectively represent the normalization factor and the energy function of the path.Based on the above process, the representation of path information of multidocument text relationship is completed.

Representation of descriptive information
To reduce text information loss, the entity description information of multi-document texts is input into the BERT model [33] and converted into semantic representation.The entity information in the text is described using methods such as word embedding, segment embedding, and position embedding.The description result of entity information is processed by vector concatenation [34], and the concatenation result is input into the BERT model to obtain sentence vectors.After taking the average value of all sentence vectors, we can obtain the entity description information vector.The expression of the entity description information vector in the text is as follows: In the formula (7), n indicates the number of text statement, S i represents the sentence vector of the statement.
The representation method based on structure and entity description can better determine the information (4) of factual triples in the knowledge graph.When similar entities exist in the text, the description information is similar to the keywords [35], and the relationship between entities cannot be directly obtained through structural information, but can be clarified by analyzing the internal relationship of keywords.The expression of energy function expressed by text entity description information is defined as follows: In the formula ( 8), E dd and E ds mean that the head and tail are described by entities and structural information respectively, which is helpful to obtain the best vector representation results of entities and relationships in texts, thereby constructing a more comprehensive and accurate knowledge graph.

Automatic construction
Prior to the actual deployment of the KGCPN in the edge environment, the nodes and edges within the knowledge graph bear no direct correlation to edge computing itself.Instead, the nodes in the knowledge graph symbolize various entities found within the text, such as "Ocean" and "Forest".Conversely, the edges denote the relationships between these textual entities, expressing associations like "Belongs to" and "Similar to".Based on the entities from the previously acquired multi-document texts, when automatically constructing a knowledge graph, it is necessary to establish the index of the knowledge graph according to the attributes of the entities.The process of building multi-document knowledge graph is as follows: (1) Input the stored entities.A random entity X is selected from the text entities as the initial center point of the knowledge graph.Y i and D respectively represent the text words and the set of words added to the graph.The attribute values corresponding to entity X are retrieved to form a set .Using the representation of entity description information to determine the initial central node, the boundary set E d = {Y i } of central node X is created with the newly added node X d .Based on the represen- tation of relationship path information, the relationship between the new node to be added and the central node is determined through the existing path information in multi-document texts.Then E d contained in is gath- ered.At the same time, if a collection of words D is not empty, merge edge sets, otherwise proceed to the next step.
(2) Set X = X k , X k represents the next entity in the knowledge graph that is associated with X. Repeat the above steps until all the entities associated with the current entity have been traversed, and proceed to the next step. (8) (3) Select other nodes in multi-document texts.Take this node as the starting node of the knowledge graph.Repeat the above steps until all texts of multi-document are traversed, and the multi-document knowledge graph is expanded to complete the construction.
In the process of merging node and edge sets, the edge set E i of current node X i and central node X is used to determine whether Y i exists in E i .If Y i is not present in E i , then Y i is added to E i , otherwise the addition is skipped.Y i represents the current query conditions during the construction.By merging the node boundaries, the information of the current node and the added node edges is merged to solve the conflict of the knowledge graph edge and the redundant information between the nodes.

Text understanding and semantic representation
According to the knowledge graph constructed for multidocument texts, the GCN method is selected for text understanding and semantic representation learning, which uses convolution kernel with parameter sharing function to convolution receptive field, realizing the text feature extraction.According to the convolution theorem, the GCN completes the graph convolution operation of each node information in the knowledge graph (Fig. 2).
Suppose that the knowledge graph contains N nodes, in Fourier domain, the graph convolution operation is performed by multiplying the convolution kernel g θ , and the node feature x ∈ R N , which is expressed as follows: In the formula (9), U and * respectively represent the eigenvector matrix of the normalized Laplacian graph matrix L as well as the convolution operation, and g θ (�) respectively represent the diagonal matrix com- posed of the node features of the knowledge graph and the convolution kernel associated with the function of the matrix .By updating convolution kernel g θ , the expression of the convolution operation of knowledge graph is as follows: In the formula (10), max and θ ′ ∈ R K +1 respectively express the maximum eigenvalue of L and Chebyshev coefficient vector, K represents the order.The operation procedure of the graph convolution is related to the polynomial of order K of the Laplacian graph matrix, making the GCN have strong K-local connectivity.
To further simplify the propagation rules of node information of GCN, K is set as 1, by reducing the number of (9) parameters, over-fitting can be avoided.L j represents the j-th layer node GCN and the number of layers is j + 1 , the expression of node convolution operation in this layer is as follows: In the formula (11), Ã = A + I represents an adjacency matrix with a self-ring, D and I respectively represent the degree matrix and the identity matrix of the diagonal matrix, W j and σ respectively represent the weight matrix and the activation function.The GCN is used to convolution the node features in the knowledge graph to obtain the final text sentence features.
The text features obtained above will be translated into z ′ i after the average pooling and combining features, and then input into the fully connected layer, where the activation function is set to Softmax, and finally get the labels Y i of the multi document texts.The calculation formula of the fully connected layer is as follows: In the formula (12), Y i ∈ R C , C and b indicate that num- ber of text label and the offset respectively.When dealing with multi-document texts, the GCN selects cross entropy as the loss function, and the expression of the loss function is as follows: (11) In the formula (13), and θ respectively represent the L2 regularization coefficient and regularization parameter, y and ŷ respectively represent the real label of the text and the prediction result.
The GCN layer is used to understand and learn the semantic representation of multi-document texts, and the multi-dimensional semantic feature coding results are output, which are subsequently utilized to automatically generate text summarization.

Automatic generation
The PGN model [36] is selected to be the generation model for the KGCPN.In general PGN models, the parameters of the word embedding matrix are randomly initialized, which may lead to poor performance and elevated training costs.In addition, the issue of polysemy is also urgently needed to be addressed.To tackle these challenges, we incorporate the BERT model for parameter initialization.The multi-head attention mechanism is employed to obtain contextual semantic information, making it more dynamic and enabling more effective feature extraction.In addition, BERT also distinguishes multiple meanings of a word by combining different contextual information features to represent distinct semantics.After completing the above initialization operations, the encoding results of multi-dimensional semantic features output by GCN (13) Fig. 2 The scheme of proposed KGCPN and BERT are input into the encoder of long short-term memory (LSTM) network to generate the hidden layer state sequence h i .At the t time, the word vector gener- ated at the last moment is input into the LSTM decoder to obtain the decoding state sequence s t , which is the genera- tion results of multi-document text summarization.By harnessing the structural information of the knowledge graph, the KGCPN is enabled to more effectively comprehend the relationships and structural data among nodes.
The PGN not only copies words from the original document but also generates words from a fixed-size vocabulary, which effectively solve the OOV problem (difficulty in handling out-of-vocabulary words).The generation probability p gen ∈ [0, 1] for timestep t is calculated from the con- text vector h * t , the decoder state s t and the decoder input x t : In the formula ( 14), W h * , W s , W x and scalar b ptr are learn- able parameters and σ is the sigmoid function.Next, p gen will decide whether to generate words from the vocabulary by sampling from P vocab , or copy words from the input sequence by sampling from attention distribution a t .The probability distribution over the extended vocabulary can be specified as: To reduce the repetition problem, the coverage mechanism is introduced.In each decoding process, PGN calculates a new coverage vector, which represents the cumulative total of attention distributions from all preceding steps.Subsequently, in the loss function computation, a coverage loss is also factored in, which is the sum of the minimum values of the coverage vector and the attention distribution of the current step.Coverage loss encourages PGN to avoid giving too much attention to the same input vocabulary as much as possible.Through this methodology, the PGN can effectively mitigate the issue of duplicate generation and enhance the quality of text summarization.The coverage vector c t tracks the words that have been gen- erated and applies a certain penalty to these words to minimize the duplication in the generated summary.c t can be understood as the degree of coverage that the words have received from the attention mechanism, then the coverage vector is regarded as extra input into the attention mechanism.( 14) In the formula (17), W c is a learnable parameter vector of same length as v. Accordingly, the coverage loss must be introduced.Therefore, the final loss function consists of two parts: the cross entropy and the coverage loss, in which the weight of the coverage loss is determined by : In conclusion, the composition of KGCPN is as follows: GCN parses the entity information and dependency relationships transmitted from the knowledge graph into encoded results and transmits them to PGN, and finally PGN completes the summarization output.

Experimental results and analysis
We gathered 2746 documents from MEC devices like traffic lights, cameras, mobile phones, and vehicles, covering situations such as traffic and travel.Additionally, we included 582 authoritative meteorological forecast documents from the Jiangsu Provincial Meteorological Bureau into our dataset.To encompass daily situations like dialogue and news, we collected 1056 documents using a theme crawler program from sources like Wikipedia, Baidu Baike, and major news websites.After a rigorous screening process, we utilized 4097 documents to construct the final dataset, with an average word count of 1052 per document.Based on this amalgamated dataset, we employ NLP methods such as word segmentation, part of speech tagging, and NER to finish in feature extraction and data integration, ultimately constructing a knowledge graph.The MEC data collected in this paper includes not only textual data, but also device status, network traffic, user behavior, etc., most of which are semi-structured.There are three primary methods for converting these data into textual format: first, convert each item or group of data into descriptive sentences.For example, the device status can be converted to "Device A has 80% battery and a signal strength of -60dBm".Network traffic can be converted to "User B's traffic consumption between 12:00 and 13:00 is 200MB".Alternatively, convert the data into a series of event logs.For instance, user behavior can be translated as "User C visited website D at 14:00 and then downloaded file E at 14:05.".Finally, if certain log tables do require storage, OCR technology can be used to extract textual data from them.(17) In the stage of text preprocessing, it's essential to eliminate special tables and symbols that have low contributions to the analysis of multi-document texts.Following this, stemming is performed on the text to retain the root word.Stem processing allows us to normalize various forms of vocabulary (like plurals, past tense, etc.) into the same stem, which significantly reduces the size of the vocabulary space, thereby diminishing the complexity and computational cost of the model.Similarly, in the field of information retrieval, we can use any form of vocabulary to search for information.For instance, if a user queries "running", the system is capable of returning documents that contain "run" and "runner", thereby enhancing the efficiency of information retrieval.Subsequently, word segmentation is carried out, breaking down the sentences within the document into sets of words.To gain a more comprehensive understanding of the document's content and structure, a length coefficient is introduced to manage sentences that are excessively long or unusually short within the experimental dataset.The formula for calculating this length coefficient is as follows: In formula (20), L and L M respectively represent that sentence length and the longest sentence length in the text.
In the experimental dataset, the statistical results of the length coefficient of some texts are shown in Fig. 3.As can be seen from Fig. 3, the length coefficients of the document text in the experimental data set are distributed in different areas in the [0,1] interval.When the text statement is too long or too short, it cannot be set as the candidate statement.Based on the calculation results of the text length coefficient, sentences with a coefficient greater than 0.8 or less than 0.2 are removed.(20 The resulting text is ultimately used for the automatic generation of multi-document text summarization in the experiment.
To evaluate the performance of the model on tasks such as part-of-speech tagging, NER, and text summarization, distinct metrics are employed for each module.The definitions and computation methodologies of these specific indicators are elucidated as follows: 1. Part-of-Speech Tagging: The indicator for measuring the effectiveness of part-of-speech tagging is the accuracy, which is a ratio of the number of correctly labeled samples to the total number of samples.The higher the accuracy, the better the word segmentation performance of the model.2. NER: The following three common metrics have been selected as the key criteria: precision, recall, and F1-score.Precision metric indicates the proportion of predicted results that are truly positive.Recall metric indicates the proportion of all positive cases that are correctly predicted.F1-score combines the precision and recall, and can analyze the entity classification performance more comprehensively.In the text summarization experiments, the semantic similarity index examines whether the information conveyed in the generated summarization is similar to the reference summarization, not just the similarity of vocabulary or sentence structure.The higher the value of meaning similarity, the better the model performance.

Text Summarization: Rouge (Recall-Oriented
Understudy for Gisting Evaluation) [37] indicator is one of the most commonly used evaluation tools for evaluating automatic summarization or text summarization.Rouge-1, Rouge-2 and Rouge-L are three main versions of Rouge series, which evaluate the repetition of one word, two words and long words respectively.Rouge-1 only considers the repetition of a single word or vocabulary.Rouge-2 considers the repetition of two consecutive words or words.Rouge-L considers not only the repetition, but also the relative positions of words in sentences.
In this paper, the part-of-speech tagging task is executed by BERT pre-trained model and HMM (BERT-HMM).To verify the enhancement by BERT-HMM, we respectively conducted part-of-speech tagging task on the same text data based on BERT and HMM methods, comparing their final accuracies.The comparison results of part-of-speech tagging are shown in Table 1.
According to the Table 1, BERT-HMM surpasses BERT and HMM in the performance of tagging all main types of words, achieving a peak accuracy of 92.12% for Nouns.Even for the lowest-scoring category, Prepositions, our model still exceeds an accuracy of 86%.Firstly, the bidirectional comprehension of BERT equips our model with enhanced representational learning abilities, thereby harvesting richer contextual information.Secondly, in Markov processes, the emergence of a particular state is contingent solely on one or a handful of preceding states, and remains unaffected by other states.This characteristic empowers HMM to manage first-order dependencies within sequences.Furthermore, through the utilization of the state transition matrix and observation probability matrix, we can derive the most probable state sequence.In summary, our model delivers the best performance in word segmentation, providing vital support for the follow-up NER task.Subsequently, NER experiments are conducted based on the results of part-of-speech tagging.
The NER model presented in this paper is primarily composed of three key components: a pre-trained BERT model, part-of-speech tagging results serving as additional input features, and a CRF for predicting entity types, named BERT-POS-CRF.In terms of parameter settings, the batch size is configured to 32, and a learning rate of 0.0001 is established.The number of epochs is set to 25 and Adam was selected as the optimizer.Meanwhile, the BERT model comprises 12 Transformer layers, 768-dimensional hidden layers, and employs 12 multihead attention mechanisms.Our model is compared against three benchmark models, the CRF, BiLSTM-CRF, and BERT-CRF.Table 2 details the comparison results.
From Table 2, compared to the single CRF and baseline model BiLSTM-CRF, the BERT-POS-CRF has improved the precision by 10.13% and 2.59% respectively.Moreover, compared to the BERT-CRF model that does not involve part-of-speech tagging, our model also shows an improvement of 4.49% in the precision.There are three main reasons why our model performs best in the NER task.Firstly, when the results of part-of-speech tagging are input as additional features, they can assist the model in understanding the grammatical role of words within a sentence.Secondly, part-of-speech tagging can aid in comprehending the context of sentences.For instance, verbs often precede nouns, and prepositions usually come before noun phrases.The contextual information can help the model identify named entities more accurately.Lastly, if a noun is followed by a verb, it likely indicates the end of an entity, thereby making the boundaries of the entity clearer.
After the NER is completed, we introduce the py2neo toolkit to read the entities and relationships obtained using NER, relationship path and entity description, traverse the file to generate node trees and store them in the list, then convert them into subgraph instances.Using the tool classes written according to rules and query logic, a large amount of knowledge is efficiently written into the knowledge graph.We select the travel topic knowledge graph as the construction instance, and the display effect is shown in the Fig. 4. The "Travel" is divided into two categories: "Era" and "Resource".The "Era" is divided into two parts: "History" and "Modern", among which "Folk Custom", "Religion", "Traditional Chinese Opera", "Minority Culture", "Painting and Calligraphy Art" and "Landscape Architecture" all belong to the "History", while "Contemporary Art", "Popular Art", "Natural Science", "Film and Television" and "Modern Architecture"  all belong to the "Modern".Meanwhile, the "Resource" is divided into two parts: "Natural Landscape" and "Artificial Facility"."Natural Landscape" includes tourist places such as "Ocean", "Mountain Range", "Steppe", "Forest", "Shadow" and "Inland Waters", and "Artificial Facility" includes tourist places such as "Zoo", "Park", "Museum", "Ancient Town", "Holiday Village" and "Snack Street".
Based on the effectiveness of the graph construction, our MEC data integration scheme intuitively presents the content related to various topics across multi-documents, which successfully encompasses entities and relationships within MEC text data, thereby laying a solid foundation for the subsequent automatic generation of text summarization.
Given that the number of documents in multi-document summarization can vary, to demonstrate that our model can sufficiently preserve the original semantics, we calculated the semantic similarity of the summarizations generated by KGCPN across a range of 2 to 8 documents in three categories: travel, weather, and news.The comparison results of the semantic similarity are depicted in Fig. 5.
As can be seen from the experimental results in Fig. 5, the semantic similarity of the text summarization generated by KGCPN for different types of texts of 2-8 documents is higher than 0.8.The experimental results show that KGCPN can effectively reflect the themes that need to be expressed in different types of texts, and have good generalization performance.
To further verify the reliability of our scheme, we select the text evaluation index Rouge to evaluate the generated abstracts to check their quality and accuracy.The experimental results of text summarization are shown in Fig. 6.It can be seen from Fig. 6 that the Rouge-1, Rouge-2 and Rouge-L of the KGCPN are all higher than 0.9.The experimental results show that the KGCPN takes into account the repetition of a single word, two consecutive words or long words, which makes the automatically generated summarization more superior and suitable for a wider range of applications.To illustrate the superiority of KGCPN over traditional methods, we compared its performance with the extractive TextRank method, the abstractive pure PGN model, and the BERT-PGN model that incorporates pre-trained models, all tested on the dataset used in this paper.The comparative results, as demonstrated by their respective Rouge scores, are presented in Table 3.While extractive methods exemplified by TextRank have a lower error rate, the sentences they extract are often redundant and struggle to succinctly encapsulate the original meaning, which clearly does not meet the requirements for multi-document summarization in the MEC environment.In comparison to abstractive models like PGN, KGCPN extracts semantic features of entities from the data integration stage, enriching the knowledge graph based on relationship paths and descriptive information within the multi-document texts.Subsequently, the information from the knowledge graph is parsed by the GCN and transmitted to the PGN, enabling our model to better capture the structure and dependencies between nodes in multi-documents, thereby achieving the best Rouge scores and summarization results.In addition, the difference in performance between the extractive and generative methods is mainly due to the requirements for information coherence and language fluency.When summarizing multi-documents, key information may be scattered across multiple sections, which may not be easily extracted and consolidated to form a cohesive summarization.Generative methods can rephrase and assimilate this scattered information to generate more coherent and scattered summarization.Finally, enhanced language fluency and readability within dialogue, traffic, weather, and other situations in MEC environments align more closely with human reading preferences, which also contributes to the superior performance of generative methods under the demands of the research presented in this paper.
To ascertain the superior generation efficiency of our model in MEC environments, we simulated the  Initially, to expedite model computations, particularly on MEC devices capable of low-precision calculations, we reduce model size through quantization operations to accelerate computation, which is manifested by converting the floating point weights in the model to low precision numbers (such as 8-bit integers).Subsequently, to accommodate the formats of mobile and embedded devices, we employ the TensorFlow Lite tool to transform the model into a format capable of independent operation.Table 4 illustrates the performance of each model under varying environments and situations.
From Table 4, it is evident that our model outperforms the others under all situations.However, there is a significant difference in model performances between dialogue and traffic situations, mainly due to the data characteristics and processing methods [38] in the two situations.Generally, the length of the text being processed is directly proportional to the time required for generation; the longer the text, the more time is needed.Because the model needs to read and comprehend a larger amount of content to produce an accurate summarization.Therefore, in the context of dialogue situations, the generation of text summarization is typically faster due to the shorter length of the input text.Conversely, data pertaining to traffic environments can encompass a variety of information types, including road conditions, weather, traffic accidents, and traffic rules, among others, which may originate from diverse sources, and the format and structure can vary significantly.Moreover, traffic information usually requires real-time updates, and processing these multifaceted data requires more time and computational resources, thereby increasing the difficulty and time required to generate the summarization.
In the normal environment, KGCPN exhibits an average improvement of 7.37% across all situations when compared to the PGN model.This underscores the significant enhancements brought about by the knowledge graph and GCN methods, which deeply extract semantic and entity information from multi-documents.Furthermore, in edge environments, our model demonstrates an average performance improvement exceeding 7.12% in various situations.This improvement is not solely due to the model itself but also because it is directly deployed on MEC devices.The elimination of the process of transmitting large amounts of original text back to the central server facilitates faster user request responses and enhances the overall system efficiency.

Conclusion
This article introduces KGCPN, a text summarization scheme based on knowledge graphs and GCN, designed for MEC text data preprocessing and integration.By constructing a knowledge graph and encoding the GCN representation of text data derived from MEC devices and applications, the generation quality of multi-document text abstracts has been significantly enhanced.Moreover, performance evaluations conducted in edge environments demonstrate that KGCPN outperforms existing schemes in terms of generation efficiency.The approaches in this paper offer room for further enhancement.For instance, during the graph embedding process, consideration could be given to more diverse embedding methods, such as TransA and TransD.Additionally, optimizing the scope and volume of MEC data collection could prove beneficial.Since we have trained KGCPN within five common situations, future work will involve adapting the model to more situations.A promising work is employing generative large models in encoding.Furthermore, the exploration of multimodal MEC data mining also presents a valuable direction for future work.

Fig. 3
Fig. 3 Statistical results of length coefficient

Fig. 4
Fig. 4 Display effect of knowledge graph

Table 1
Tagging accuracy of part-of-speech

Table 2
Comparison of experimental results of NER

Table 3
Comparison of experimental results on Rouge We recorded the total time for generating complete summarization.The experiments encompassed five situations: Travel, Traffic, Weather, Dialogue, and News.KGCPN necessitates two additional preprocessing steps before the deployment.

Table 4
Performances of each model under varying environments and situationsThe generation time is the total time required to calculate from the start of generation to the completion of output