Method and device for processing comment private message data on multiple social media platforms

By building a unified data acquisition interface and display interface, processing and classifying comments and private message data from social media platforms, the multi-platform API compatibility and synchronization delay problems are solved, and data processing efficiency and user experience are improved.

CN118642688BActive Publication Date: 2024-11-08ONE NETWORK INTEROPERABILITY (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411109703.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-08
Estimated Expiration
2044-08-14

AI Technical Summary

Technical Problem

The prior art has problems with multi-platform API compatibility, data synchronization delay, user interface complexity and network stability when processing comments and private messages on social media platforms, affecting processing efficiency and user experience.

Method used

By building a unified data acquisition interface and preset data download strategies, incremental data are evaluated and processed, cleaning and deduplication, classifying storage, building a unified display interface and interactive function, and uploading and updating data through a security mechanism.

Benefits of technology

It improves the processing efficiency and interaction effect of comments and private messages, reduces the complexity of user interface and network dependence, and enhances system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642688B_ABST
    Figure CN118642688B_ABST
Patent Text Reader

Abstract

In an embodiment of the present invention, a method, device and electronic device for processing comment and private message data of multiple social media platforms are provided, which belongs to the field of data processing technology. The method includes: determining the incremental data Dinc=Ct-Cp that needs to be collected at time t based on the total amount Ct of current comment and private message data and the total amount Cp of comment and private message data collected by the data collection interface last time; downloading the incremental data Dinc using a preset data download strategy after evaluating the data amount of the incremental data Dinc; receiving the interactive data Dic input by the user in the display interface, and updating the display data Dds based on the interactive data Dic to obtain the updated display data Dds'=fic(Dic,Dds); after obtaining the user's identity information Uif and access authority Aps, uploading the updated data set Dgx to n social media platforms respectively through a predefined Boolean function Hau(Uif,Aps). The present invention can improve the efficiency of integrating comment and private message data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device and electronic device for processing comment private message data on multiple social media platforms. Background Art

[0002] Comments and private messages on social media platforms are two main ways of communication between users. They each have their own characteristics and serve different communication purposes.

[0003] Comments are usually publicly visible, meaning anyone who visits the post can see the comment. This promotes open discussion and community interaction. Comments are usually directly linked to a specific post, image, video or other content, providing direct feedback or sharing of opinions on the content. Users can not only comment on the original post, but also reply to other users' comments, forming a multi-level discussion chain.

[0004] Private messaging is a point-to-point or point-to-multipoint private communication method, where only the sender and receiver (or designated group members) can see the message content. Private messaging is used for more direct and private communication between individuals, and is suitable for discussing topics or personal matters that should not be made public.

[0005] The existing technology has the following problems in processing comments and private message data:

[0006] 1. Multi-platform API compatibility issues: The API interface specifications and data formats of various social media platforms may be different, which will increase the complexity of development and maintenance.

[0007] 2. Data synchronization delay: Due to the frequency limit of API calls on each platform and network delays, data synchronization may have a certain delay, resulting in non-real-time data.

[0008] 3. User interface and experience: Integrating data from multiple platforms may increase the complexity of the user interface and affect the user experience.

[0009] 4. Network stability: Relying on external platform API interfaces, network fluctuations and instability will affect the normal operation of the system.

[0010] The above problems become technical problems that need to be solved. Summary of the invention

[0011] In view of this, an embodiment of the present invention provides a method, device and electronic device for processing comment private message data of multiple social media platforms, which at least partially solve the problems existing in the prior art.

[0012] In a first aspect, an embodiment of the present invention provides a method for processing comment private message data of multiple social media platforms, comprising:

[0013] Aggregate n social media platforms to form a social media platform set P = {P1, P2, ... Pn}, build a unified data collection interface for the social media platform set P, evaluate the total amount of comments and private message data Ct contained in the social media platform set P at the current time t through the data collection interface, and determine the incremental data Dinc = Ct-Cp that needs to be collected at the time t based on the current total amount of comments and private message data Ct and the total amount of comments and private message data Cp when the data collection interface was last collected;

[0014] After evaluating the data volume of the incremental data Dinc, the preset data download strategy is used to download the incremental data Dinc. By setting the cleaning function fc and the deduplication function fd, the downloaded incremental data is preprocessed to obtain the standard data Dcl, Dcl=fd(fc(Din));

[0015] Construct a comment category set Cm and a private message category set Cs, and assign the standard data Dcl to the comment category set Cm and the private message category set Cs through the data classification storage function fs;

[0016] An interface display function fp is set in the unified display interface. The interface display function fp analyzes the status and relationship of the data in the comment category set Cm and the private message category set Cs to obtain display data Dds=fp(Cm,Cs). By setting an interaction function fic, the interaction data Dic input by the user in the display interface is received, and the display data Dds is updated based on the interaction data Dic to obtain updated display data Dds'=fic(Dic,Dds);

[0017] By setting the parsing function fj, the update display data Dds' and the display data Dds are differentially parsed to obtain the update data set Dgx=fj(Dds',Dds)={Dzs,Dzd}, where Dzs is the update instruction and Dzd is the update content corresponding to the update instruction. After obtaining the user's identity information Uif and access permission Aps, the update data set Dgx is uploaded to n social media platforms respectively through the pre-defined Boolean function Hau(Uif,Aps).

[0018] According to a specific implementation of the embodiment of the present disclosure, the total amount Ct of comments and private message data contained in the social media platform set P at the current time t is evaluated through the data collection interface, including:

[0019] Get the components Hp and Ipt of the data volume on each social media platform Pi∈P, where Hp is the historical data volume of the social media platform and Ipt is the incremental data volume Ipt since the last evaluation. The incremental data volume Ipt includes the incremental comment ICt and the incremental private message Imt.

[0020] The total amount of data Ct at evaluation time t is calculated by the formula:

[0021] .

[0022] According to a specific implementation of the embodiment of the present disclosure, the downloading of the incremental data Dinc by using a preset data download strategy includes:

[0023] After obtaining the incremental data Dinc that needs to be downloaded, request the data features contained in the data Dinc from n social media platforms to obtain a data feature set K corresponding to the incremental data Dinc;

[0024] Calculate the task requirements required for processing the incremental data Dinc according to the data feature set K, and use the main process to initialize the operating resources Z that match the task requirements;

[0025] Based on the running resource Z, the number nz of sub-processes that need to be started is determined, nz≥n, and the nz sub-processes are started by the main process. After the nz sub-processes are started, the main process distributes the nz sub-processes to n social media platforms, so that there is at least one sub-process on each social media platform.

[0026] According to a specific implementation of the embodiment of the present disclosure, the downloading of the incremental data Dinc by using a preset data download strategy also includes:

[0027] The processing performance of the current device for downloading the incremental data Dinc is evaluated to obtain the performance evaluation result Pinc={Pu, Pm, Pn, Pr}. The computational complexity of the data to be downloaded on each social media platform is evaluated to obtain the computing power evaluation result Sinc, where Pu represents the process computing performance of the current device, Pm represents the storage response performance of the current device, Pu represents the network transmission performance of the current device, and Pu represents the process switching performance of the current device.

[0028] Based on the performance evaluation result Pinc, the computing power evaluation result Sinc and the balancing function J, the set of thread numbers X={X1,X2,…Xnz} that need to be allocated in the nz sub-processes is calculated, and multiple threads are created in each sub-process based on the thread number set X to complete the download of the incremental data Dinc.

[0029] According to a specific implementation of the embodiment of the present disclosure, the preprocessing operation is performed on the downloaded incremental data by setting the cleaning function fc and the deduplication function fd to obtain the standard data Dcl, including:

[0030] Use the cleaning function to remove noise, invalid and malformed entries in the data:

[0031] fc(Dinc)={d′|d∈Dinc,isValid(d′),isClean(d′)}

[0032] isValid(d′) and isClean(d′) are logic functions for verifying data validity and completing cleaning processing, respectively. d represents the data before Dinc processing, and d′ represents the data after Dinc processing;

[0033] The deduplication function is used to remove identical records from the incremental data Dinc to maintain the uniqueness of each piece of data:

[0034]

[0035] isUnique(d1, d2) is a judgment function. If any two data d1 and d2 in Dinc are the same in key attributes, it returns false, indicating that d2 is duplicated and should be excluded.

[0036] According to a specific implementation of the embodiment of the present disclosure, the method of allocating the standard data Dcl to the comment category set Cm and the private message category set Cs through the data classification storage function fs includes:

[0037] Extract the feature vector F(d) of each data d∈Dcl, which contains the keywords, sentiment tendency, target object and sending time of the text content;

[0038] Based on the trained classifier rule engine Cclass, the feature vector F(d) of each data is classified and judged, and each data is assigned to the corresponding set according to the judgment result of the classifier:

[0039] fs(Dcl)={d∈Dcl|Cclass(F(d))='Cm'},{d∈Dcl|Cclass(F(d))='Cs'}.

[0040] According to a specific implementation of the embodiment of the present disclosure, the interface display function fp analyzes the status and relationship of the data in the comment category set Cm and the private message category set Cs to obtain display data Dds=fp(Cm, Cs), including:

[0041] Build the interface to display the function fp:

[0042] fp(Cm,Cs)={Format(d3)|d3∈Cm∪Cs,withStatus(d3),inRelation(d3)}

[0043] Format(d) indicates formatting the data d3 in the comment category set Cm and the private message category set Cs. Status(d3) is used to add a status identifier. inRelation(d3) is used to determine the relationship between the data.

[0044] Based on the interface display function fp, each piece of data in Cm and Cs is parsed to extract the core information required for display, including: the content of the comment or private message, the sender, the receiver, the timestamp, and the sentiment score;

[0045] After adding status information to each piece of data in the comment category set Cm and the private message category set Cs, identify and construct the association relationship between the data;

[0046] Sort the data in the comment category set Cm and the private message category set Cs according to user preferences or system default rules, and filter the data according to the screening conditions;

[0047] The sorted data is converted into interface display data, wherein the interface display data includes a text summary, formatted time, and an emotion icon.

[0048] According to a specific implementation of the embodiment of the present disclosure, after obtaining the user's identity information Uif and access rights Aps, the update data set Dgx is uploaded to n social media platforms respectively through a predefined Boolean function Hau(Uif, Aps), including:

[0049] Obtain the user's identity information Uif, which includes the user name, password, and secondary authentication code;

[0050] After verifying the validity of Uif through the pre-set security mechanism, the access permission set Aps is determined according to the role associated with the user account;

[0051] Run the Boolean function Hau(Uif,Aps) to check whether the user Uif has the permission to upload data to the specified social media platform. If Hau returns True, data uploading is allowed, otherwise, data uploading is denied.

[0052] After the updated data set Dgx is encapsulated and formatted, it is encrypted and the encrypted data is uploaded to various social media platforms.

[0053] In a second aspect, an embodiment of the present invention provides a device for processing comment private message data of multiple social media platforms, including:

[0054] The extraction module aggregates n social media platforms to form a social media platform set P = {P1, P2, ... Pn}, builds a unified data collection interface for the social media platform set P, evaluates the total amount Ct of comments and private message data contained in the social media platform set P at the current time t through the data collection interface, and determines the incremental data Dinc = Ct-Cp that needs to be collected at the time t based on the total amount Ct of the current comments and private message data and the total amount Cp of the comments and private message data collected by the data collection interface last time;

[0055] The processing module evaluates the data volume of the incremental data Dinc, adopts a preset data download strategy to download the incremental data Dinc, and performs preprocessing operations on the downloaded incremental data by setting a cleaning function fc and a deduplication function fd to obtain standard data Dcl, Dcl=fd(fc(Din));

[0056] Construction module, constructing comment category set Cm and private message category set Cs, and allocating standard data Dcl to comment category set Cm and private message category set Cs through data classification storage function fs;

[0057] The interactive module sets an interface display function fp in a unified display interface. The interface display function fp analyzes the status and relationship of the data in the comment category set Cm and the private message category set Cs to obtain display data Dds=fp(Cm,Cs). By setting an interactive function fic, the interactive data Dic input by the user in the display interface is received, and the display data Dds is updated based on the interactive data Dic to obtain updated display data Dds'=fic(Dic,Dds);

[0058] The update module performs differential analysis on the update display data Dds' and the display data Dds by setting the analysis function fj, and obtains the update data set Dgx=fj(Dds',Dds)={Dzs,Dzd}, where Dzs is the update instruction and Dzd is the update content corresponding to the update instruction. After obtaining the user's identity information Uif and access rights Aps, the update data set Dgx is uploaded to n social media platforms respectively through the pre-defined Boolean function Hau(Uif,Aps).

[0059] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0060] at least one processor; and,

[0061] a memory communicatively connected to the at least one processor; wherein,

[0062] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for processing comment private message data of multiple social media platforms in any of the first aspects or any of the implementations of the first aspect.

[0063] In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the method for processing comment private message data of multiple social media platforms in the aforementioned first aspect or any implementation of the first aspect.

[0064] In a fifth aspect, an embodiment of the present invention further provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the method for processing comment private message data of multiple social media platforms in the aforementioned first aspect or any implementation of the first aspect.

[0065] The comment and private message data processing scheme of multiple social media platforms in the embodiment of the present invention includes: aggregating n social media platforms to form a social media platform set P={P1, P2,...Pn}, building a unified data collection interface for the social media platform set P, evaluating the total amount Ct of comment and private message data contained in the social media platform set P at the current time t through the data collection interface, and determining the incremental data Dinc=Ct-Cp that needs to be collected at the time t based on the current total amount Ct of comment and private message data and the total amount Cp of comment and private message data when the data collection interface was last collected; after evaluating the data amount of the incremental data Dinc, downloading the incremental data Dinc using a preset data download strategy, and pre-processing the downloaded incremental data by setting a cleaning function fc and a deduplication function fd to obtain standard data Dcl, Dcl=fd(fc(Din)); constructing a comment category set Cm and a private message category set Cs, and allocating the standard data Dcl to In the comment category set Cm and the private message category set Cs; an interface display function fp is set in the unified display interface, the interface display function fp analyzes the status and relationship of the data in the comment category set Cm and the private message category set Cs, and obtains the display data Dds=fp(Cm,Cs); by setting the interaction function fic, the interaction data Dic input by the user in the display interface is received, and the display data Dds is updated based on the interaction data Dic to obtain the updated display data Dds'=fic(Dic,Dds); by setting the parsing function fj, the updated display data Dds' and the display data Dds are differentially analyzed to obtain the updated data set Dgx=fj(Dds',Dds)={Dzs,Dzd}, Dzs is the update instruction, Dzd is the update content corresponding to the update instruction, after obtaining the user's identity information Uif and access permission Aps, the updated data set Dgx is uploaded to n social media platforms respectively through the pre-defined Boolean function Hau(Uif,Aps). Through the solution of this application, the processing efficiency and interaction effect of comment private message data can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0067] Figure 1 A flowchart of a method for processing comment private message data on multiple social media platforms provided by an embodiment of the present invention;

[0068] Figure 2 A flowchart of another method for processing comment private message data on multiple social media platforms provided by an embodiment of the present invention;

[0069] Figure 3 A schematic diagram of the structure of a device for processing comment private message data on multiple social media platforms provided by an embodiment of the present invention;

[0070] Figure 4 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0071] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0072] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.

[0073] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.

[0074] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0075] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.

[0076] The disclosed embodiment provides a method for processing comment private message data of multiple social media platforms. The method for processing comment private message data of multiple social media platforms provided in this embodiment can be executed by a computing device, which can be implemented as software, or as a combination of software and hardware, and the computing device can be integrated in a server, terminal device, etc.

[0077] See also Figure 1 and Figure 2 The present disclosure provides a method for processing comment private message data of multiple social media platforms, including:

[0078] S101, aggregate n social media platforms to form a social media platform set P = {P1, P2, ... Pn}, build a unified data collection interface for the social media platform set P, evaluate the total amount Ct of comments and private message data contained in the social media platform set P at the current time t through the data collection interface, and determine the incremental data Dinc = Ct-Cp that needs to be collected at time t based on the current total amount Ct of comments and private message data and the total amount Cp of comments and private message data when the data collection interface was last collected.

[0079] We can define a set P={P1,P2,...,Pn} containing n social media platforms. Each platform Pi has its own API interface for data collection. Next, we design a unified data collection interface that can initiate requests for each platform Pi in the set P to obtain comment and private message data. This interface needs to be compatible with the data structure and authentication mechanism of different platforms to ensure efficient and consistent data collection from each platform.

[0080] At time t, through a unified data collection interface, the current amount of comments and private messages is collected from each platform Pi, and the amount of data from all platforms is accumulated to obtain the total amount Ct, that is: Ct=∑ Cti, where Cti represents the total amount of comments and private messages on platform Pi at time t.

[0081] Record the total amount of comments and private messages Cp when the system last collected data. Cp is the cumulative value of all platform data when the data collection operation was last performed. Based on the current total amount Ct and the last total amount Cp collected, calculate the incremental data Dinc that needs to be collected: Dinc=Ct−Cp.

[0082] According to the calculation results of Dinc, the incremental data collection operation is performed. Since Dinc represents the net increase in data volume, the data collection interface only needs to focus on the data added since the last collection, avoiding repeated collection, improving efficiency and reducing resource consumption.

[0083] Through the above steps, the system can not only evaluate the changes in the total amount of data of the social media platform set P in real time, but also effectively perform incremental data collection to ensure the freshness and accuracy of the data while reducing unnecessary system burden.

[0084] S102, after evaluating the data volume of the incremental data Dinc, adopt a preset data download strategy to download the incremental data Dinc, and perform preprocessing operations on the downloaded incremental data by setting a cleaning function fc and a deduplication function fd to obtain standard data Dcl, Dcl=fd(fc(Din)).

[0085] After completing the evaluation of the incremental data Dinc, data acquisition will be performed according to the preset data download strategy to ensure efficient and targeted downloading of the required incremental parts.

[0086] Based on factors such as network conditions, platform API restrictions, and data size, adopt batch downloading, priority downloading, or time window-based downloading strategies to efficiently obtain Dinc.

[0087] After the data is downloaded, the cleaning function fc can be applied to perform preliminary processing on the data. This includes but is not limited to:

[0088] Remove invalid data: Remove empty values, abnormal values, or records that do not meet format requirements.

[0089] Text purification: filter out meaningless characters, HTML tags, URL links, etc., and retain plain text content.

[0090] Standardization processing: unify text formats, such as converting all text to lowercase, standardizing date and time formats, etc.

[0091] Furthermore, duplicate items can be removed from the cleaned data through the deduplication function fd, and duplicate data can be efficiently identified and eliminated by comparing the unique identifiers of the records (such as comment ID, release timestamp, etc.) or by using data fingerprinting technology (such as MD5, SHA-256 hashing).

[0092] Finally, the cleaning and deduplication steps are combined to form a complete preprocessing process, which is formulated as Dcl=fd(fc(Dinc)). This operation ensures that the output Dcl is a high-quality, de-redundant and uniformly formatted data set, providing a solid foundation for subsequent analysis, storage and presentation.

[0093] Through this data processing step, the availability and value of data can be effectively improved, while reducing storage space requirements and processing time, and optimizing overall data processing efficiency.

[0094] S103, constructing a comment category set Cm and a private message category set Cs, and allocating the standard data Dcl to the comment category set Cm and the private message category set Cs through the data classification storage function fs.

[0095] The process of constructing and classifying the standard dataset Dcl into the comment category set Cm and the private message category set Cs involves understanding and classifying the data content. The specific implementation can be carried out through the following steps:

[0096] Step S1031: Define category criteria

[0097] Comment category set Cm: defines the characteristics of comments, such as public release, feedback on posts or content, possible reply chains, etc.

[0098] Private message category set Cs: defines the characteristics of private messages, such as one-to-one or small group private communication, non-public, sent directly to specific users, etc.

[0099] Step S1032: Design data classification storage function fs

[0100] The function fs needs to assign each piece of data to the correct set based on the data content and context information. The specific implementation may include:

[0101] Content analysis: Analyze keywords, grammatical structures, or specific fields (such as recipient information) in the data to determine whether it is a comment or a private message.

[0102] Contextual identification: Check the source and environment of the data, such as whether it is related to a public post, whether there are clear signs of private communication, etc.

[0103] Logical judgment: Based on the above analysis, apply logical judgment to determine the classification of the data.

[0104] Implementing Expressions

[0105] Cm,Cs=fs(Dcl)

[0106] Among them, fs is a classification logic function, which accepts the standard data set Dcl as input, and returns two independent sets Cm and Cs through a series of logical judgments and processing, which store comments and private message data respectively.

[0107] Step S1033: Execute classification

[0108] For each piece of data d∈Dcl, the classification logic in fs is used to determine whether it belongs to a comment or a private message.

[0109] If the data meets the definition characteristics of a comment, then add Cm; if it meets the characteristics of a private message, then add Cs.

[0110] This process may also include further sub-classification, such as segmentation by topic, sentiment, popularity, etc.

[0111] Through the above steps, the standard data set Dcl is effectively divided, so that subsequent data processing, analysis and display can be optimized according to the different characteristics of comments and private messages, improving the pertinence and efficiency of data processing.

[0112] S104, setting an interface display function fp in a unified display interface, the interface display function fp parses the status and relationship of the data in the comment category set Cm and the private message category set Cs to obtain display data Dds=fp(Cm,Cs), and by setting an interaction function fic, receiving the interaction data Dic input by the user in the display interface, and updating the display data Dds based on the interaction data Dic to obtain updated display data Dds'=fic(Dic,Dds).

[0113] In the process of building a unified display interface, the interface display function fp and the interactive function fic can ensure that users can view and operate data intuitively.

[0114] fp first parses the data in Cm and Cs, extracts key information such as time, content, user information, etc., and formats it according to the interface layout and user habits to make it easy to read and understand. At the same time, it identifies and displays the status of each comment or private message, such as whether it has been read, whether it is pinned, reply status, etc., and reflects it through graphics or color coding. At the same time, it displays the relationship between data, such as the reply chain of comments and the conversation thread of private messages, using indentation, arrows or timeline.

[0115] Based on the above processing, a data structure Dds=fp(Cm,Cs) suitable for interface display is constructed, which contains formatted text, icons, links and other elements, as well as metadata for interface layout and interactive control.

[0116] The interaction function fic monitors the user's interactive behaviors, such as clicking, sliding, and inputting text, and collects these behavioral data to form the interaction data set Dic. Dic may include instructions such as the user's request to view a reply, mark a message as read, and send a new private message.

[0117] Update the status or content of Dds according to Dic,fic. For example, after a user reads a private message, the status of the corresponding private message is marked as read; the user enters a reply in the comment area, and the new reply is appended to the display data set.

[0118] Finally, by processing user interactions, an updated display dataset Dds′=fic(Dic,Dds) containing the latest status or new content is generated.

[0119] Through such a design, fp and fic work together, which not only realizes the effective display of data, but also ensures the dynamic interaction between the interface and users, and improves the user experience.

[0120] S105, by setting the parsing function fj, the updated display data Dds' and the display data Dds are differentially parsed to obtain the updated data set Dgx=fj(Dds',Dds)={Dzs,Dzd}, where Dzs is the update instruction, and Dzd is the update content corresponding to the update instruction. After obtaining the user's identity information Uif and access permission Aps, the updated data set Dgx is uploaded to n social media platforms respectively through the pre-defined Boolean function Hau(Uif,Aps).

[0121] The purpose of the parsing function fj is to identify the changes from the original display data Dds to the updated display data Dds′, so as to generate accurate update instructions and corresponding content, Dgx=fj(Dds′,Dds)={Dzs,Dzd}.

[0122] fj compares Dds′ and Dds to find out the newly added, modified or deleted data items. This may involve comparing the identifiers, timestamps, content, etc. of the comments or private messages one by one to identify the differences. For each difference point, one or a group of update instructions are generated. For example, if a new comment is found, the corresponding instruction may be "Add comment: ID1234, content: 'new comment content', time: 2024-07-25". Corresponding to each update instruction, the specific content that needs to be updated is recorded in detail, including but not limited to the complete information of the comment or private message, user interaction status, etc.

[0123] Furthermore, the user identity information Uif may be obtained to ensure that the identity of the user performing the update operation has been verified. The user identity information Uif may include a user name, a user ID, a role, etc. Based on Uif, it is checked whether the user has the right to perform the update operation on each social media platform.

[0124] Define a Boolean function Hau that evaluates whether the user has permission to perform the upload operation. For example, if the user is an administrator or content creator, more operations may be allowed.

[0125] Hau(Uif,Aps)=True / False

[0126] Once the permission verification is passed, the update is pushed to n platforms through the API interface of the social media platform according to the update instructions and content in Dgx. This process may require looping through each platform and adapting the update instructions to the API specifications of different platforms to ensure the accuracy and security of the data. The entire process ensures the efficiency and security of data updates while respecting the characteristics of different platforms and the permission restrictions of users.

[0127] According to a specific implementation of the embodiment of the present disclosure, the total amount Ct of comments and private message data contained in the social media platform set P at the current time t is evaluated through the data collection interface, including:

[0128] Get the components Hp and Ipt of the data volume on each social media platform Pi∈P, where Hp is the historical data volume of the social media platform and Ipt is the incremental data volume Ipt since the last evaluation. The incremental data volume Ipt includes the incremental comment ICt and the incremental private message Imt.

[0129] The total amount of data Ct at evaluation time t is calculated by the formula:

[0130] .

[0131] According to a specific implementation of the embodiment of the present disclosure, the downloading of the incremental data Dinc by using a preset data download strategy includes:

[0132] After obtaining the incremental data Dinc that needs to be downloaded, request the data features contained in the data Dinc from n social media platforms to obtain a data feature set K corresponding to the incremental data Dinc;

[0133] Calculate the task requirements required for processing the incremental data Dinc according to the data feature set K, and use the main process to initialize the operating resources Z that match the task requirements;

[0134] Based on the running resource Z, the number nz of sub-processes that need to be started is determined, nz≥n, and the nz sub-processes are started by the main process. After the nz sub-processes are started, the main process distributes the nz sub-processes to n social media platforms, so that there is at least one sub-process on each social media platform.

[0135] According to a specific implementation of the embodiment of the present disclosure, the downloading of the incremental data Dinc by using a preset data download strategy also includes:

[0136] The processing performance of the current device for downloading the incremental data Dinc is evaluated, and the performance evaluation result Pinc={Pu, Pm, Pn, Pr} is obtained. The computational complexity of the data that needs to be downloaded on each social media platform is evaluated, and the computing power evaluation result Sinc is obtained, where Pu represents the process computing performance of the current device, Pm represents the storage response performance of the current device, Pu represents the network transmission performance of the current device, and Pu represents the process switching performance of the current device.

[0137] The performance evaluation result calculation formula can be constructed:

[0138]

[0139] and are the first adjustment factor and the second adjustment factor respectively, and the performance evaluation result Pinc is obtained by the performance evaluation result calculation formula.

[0140] You can also obtain the time complexity and space complexity Ci of the algorithm used by the data Dinc, as well as the hardware performance H of the current device, to form an evaluation result Sinc for the data Dinc:

[0141]

[0142] and is the adjustment coefficient, γ is the index of the impact of data scale on complexity, and β is the index of the relief of hardware performance on computing requirements.

[0143] Based on the performance evaluation result Pinc, the computing power evaluation result Sinc and the balancing function J, the set of thread numbers X={X1,X2,…Xnz} that need to be allocated in the nz sub-processes is calculated, and multiple threads are created in each sub-process based on the thread number set X to complete the download of the incremental data Dinc.

[0144] As an example, we can construct a computation function that computes the number of threads Xi:

[0145]

[0146] Qi is an adjustment factor for the i-th child process.

[0147] Construct equilibrium function J:

[0148]

[0149] is the weight parameter, τ and λ are adjustment parameters.

[0150] The main process allocates Xi threads to each child process Pi according to the calculated thread number set X={X1,X2,...,Xn}, and injects the corresponding data segment Di. After each child process receives its data segment and thread number, it creates Xi threads internally. These threads process their respective data segments in parallel and perform data computing tasks.

[0151] According to a specific implementation of the embodiment of the present disclosure, the preprocessing operation is performed on the downloaded incremental data by setting the cleaning function fc and the deduplication function fd to obtain the standard data Dcl, including:

[0152] Use the cleaning function to remove noise, invalid and malformed entries in the data:

[0153] fc(Dinc)={d′|d∈Dinc,isValid(d′),isClean(d′)}

[0154] isValid(d′) and isClean(d′) are logic functions for verifying data validity and completing cleaning processing, respectively. d represents the data before Dinc processing, and d′ represents the data after Dinc processing;

[0155] The deduplication function is used to remove identical records from the incremental data Dinc to maintain the uniqueness of each piece of data:

[0156]

[0157] isUnique(d1, d2) is a judgment function. If any two data d1 and d2 in Dinc are the same in key attributes, it returns false, indicating that d2 is duplicated and should be excluded.

[0158] According to a specific implementation of the embodiment of the present disclosure, the method of allocating the standard data Dcl to the comment category set Cm and the private message category set Cs through the data classification storage function fs includes:

[0159] Extract the feature vector F(d) of each data d∈Dcl, which contains the keywords, sentiment tendency, target object and sending time of the text content;

[0160] Based on the trained classifier rule engine Cclass, the feature vector F(d) of each data is classified and judged, and each data is assigned to the corresponding set according to the judgment result of the classifier:

[0161] fs(Dcl)={d∈Dcl|Cclass(F(d))='Cm'},{d∈Dcl|Cclass(F(d))='Cs'}.

[0162] According to a specific implementation of the embodiment of the present disclosure, the interface display function fp analyzes the status and relationship of the data in the comment category set Cm and the private message category set Cs to obtain display data Dds=fp(Cm, Cs), including:

[0163] Build the interface to display the function fp:

[0164] fp(Cm,Cs)={Format(d3)|d3∈Cm∪Cs,withStatus(d3),inRelation(d3)}

[0165] Format(d) indicates formatting the data d3 in the comment category set Cm and the private message category set Cs. Status(d3) is used to add a status identifier. inRelation(d3) is used to determine the relationship between the data.

[0166] Based on the interface display function fp, each piece of data in Cm and Cs is parsed to extract the core information required for display, including: the content of the comment or private message, the sender, the receiver, the timestamp, and the sentiment score;

[0167] After adding status information to each piece of data in the comment category set Cm and the private message category set Cs, identify and construct the association relationship between the data;

[0168] Sort the data in the comment category set Cm and the private message category set Cs according to user preferences or system default rules, and filter the data according to the screening conditions;

[0169] The sorted data is converted into interface display data, wherein the interface display data includes a text summary, formatted time, and an emotion icon.

[0170] According to a specific implementation of the embodiment of the present disclosure, after obtaining the user's identity information Uif and access rights Aps, the update data set Dgx is uploaded to n social media platforms respectively through a predefined Boolean function Hau(Uif, Aps), including:

[0171] Obtain the user's identity information Uif, which includes the user name, password, and secondary authentication code;

[0172] After verifying the validity of Uif through the pre-set security mechanism, the access permission set Aps is determined according to the role associated with the user account;

[0173] Run the Boolean function Hau(Uif,Aps) to check whether the user Uif has the permission to upload data to the specified social media platform. If Hau returns True, data uploading is allowed, otherwise, data uploading is denied.

[0174] After the updated data set Dgx is encapsulated and formatted, it is encrypted and the encrypted data is uploaded to various social media platforms.

[0175] Corresponding to the above method embodiment, see Figure 3 The embodiment of the present invention further discloses a device 30 for processing comment private message data of multiple social media platforms, comprising:

[0176] The extraction module 301 aggregates n social media platforms to form a social media platform set P = {P1, P2, ... Pn}, builds a unified data collection interface for the social media platform set P, evaluates the total amount Ct of comments and private message data contained in the social media platform set P at the current time t through the data collection interface, and determines the incremental data Dinc = Ct-Cp that needs to be collected at the time t based on the total amount Ct of the current comments and private message data and the total amount Cp of the comments and private message data collected by the data collection interface last time;

[0177] The processing module 302 evaluates the data volume of the incremental data Dinc, adopts a preset data download strategy to download the incremental data Dinc, and performs a preprocessing operation on the downloaded incremental data by setting a cleaning function fc and a deduplication function fd to obtain standard data Dcl, Dcl=fd(fc(Din));

[0178] Construction module 303, constructing a comment category set Cm and a private message category set Cs, and allocating standard data Dcl to the comment category set Cm and the private message category set Cs through a data classification storage function fs;

[0179] The interaction module 304 sets an interface display function fp in the unified display interface, and the interface display function fp analyzes the status and relationship of the data in the comment category set Cm and the private message category set Cs to obtain display data Dds=fp(Cm,Cs), and receives the interaction data Dic input by the user in the display interface by setting the interaction function fic, and updates the display data Dds based on the interaction data Dic to obtain updated display data Dds'=fic(Dic,Dds);

[0180] The update module 305 performs differential analysis on the update display data Dds' and the display data Dds by setting the analysis function fj, and obtains the update data set Dgx=fj(Dds',Dds)={Dzs,Dzd}, where Dzs is the update instruction and Dzd is the update content corresponding to the update instruction. After obtaining the user's identity information Uif and access rights Aps, the update data set Dgx is uploaded to n social media platforms respectively through the pre-defined Boolean function Hau(Uif,Aps).

[0181] See also Figure 4 The embodiment of the present invention further provides an electronic device 60, the electronic device comprising:

[0182] at least one processor; and,

[0183] a memory communicatively connected to the at least one processor; wherein,

[0184] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for processing comment private message data of multiple social media platforms in the aforementioned method embodiment.

[0185] An embodiment of the present invention further provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the aforementioned method embodiment.

[0186] An embodiment of the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the method for processing comment private message data of multiple social media platforms in the aforementioned method embodiment.

[0187] Reference below Figure 4 , which shows a schematic diagram of the structure of an electronic device 60 suitable for implementing the embodiment of the present disclosure. The electronic device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0188] like Figure 4As shown, the electronic device 60 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 60 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0189] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, a gage, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 60 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 60 is shown with various devices, but it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have instead.

[0190] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0191] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for processing comment private message data on multiple social media platforms, characterized in that: include: Aggregate n social media platforms to form a social media platform set P = {P1, P2, ... Pn}, build a unified data collection interface for the social media platform set P, evaluate the total amount of comments and private message data Ct contained in the social media platform set P at the current time t through the data collection interface, and determine the incremental data Dinc = Ct-Cp that needs to be collected at the time t based on the current total amount of comments and private message data Ct and the total amount of comments and private message data Cp when the data collection interface was last collected; After evaluating the data volume of the incremental data Dinc, the preset data download strategy is used to download the incremental data Dinc. By setting the cleaning function fc and the deduplication function fd, the downloaded incremental data is preprocessed to obtain the standard data Dcl, Dcl=fd(fc(Din)); Construct a comment category set Cm and a private message category set Cs, and assign the standard data Dcl to the comment category set Cm and the private message category set Cs through the data classification storage function fs; An interface display function fp is set in the unified display interface. The interface display function fp analyzes the status and relationship of the data in the comment category set Cm and the private message category set Cs to obtain display data Dds=fp(Cm,Cs). By setting an interaction function fic, the interaction data Dic input by the user in the display interface is received, and the display data Dds is updated based on the interaction data Dic to obtain updated display data Dds'=fic(Dic,Dds); By setting the parsing function fj, the update display data Dds' and the display data Dds are differentially parsed to obtain the update data set Dgx=fj(Dds',Dds)={Dzs,Dzd}, where Dzs is the update instruction and Dzd is the update content corresponding to the update instruction. After obtaining the user's identity information Uif and access permission Aps, the update data set Dgx is uploaded to n social media platforms respectively through the pre-defined Boolean function Hau(Uif,Aps).

2. The method according to claim 1, characterized in that: The total amount Ct of comments and private message data included in the social media platform set P at the current time t is evaluated through the data collection interface, including: Get the components Hp and Ipt of the data volume on each social media platform Pi∈P, where Hp is the historical data volume of the social media platform and Ipt is the incremental data volume Ipt since the last evaluation. The incremental data volume Ipt includes the incremental comment Ict and the incremental private message Imt. The total amount of data Ct at evaluation time t is calculated by the formula: 。 3. The method according to claim 2, characterized in that The method of downloading the incremental data Dinc by adopting a preset data download strategy includes: After obtaining the incremental data Dinc that needs to be downloaded, request the data features contained in the data Dinc from n social media platforms to obtain a data feature set K corresponding to the incremental data Dinc; Calculate the task requirements required for processing the incremental data Dinc according to the data feature set K, and use the main process to initialize the operating resources Z that match the task requirements; Based on the running resource Z, the number nz of sub-processes that need to be started is determined, nz≥n, and the nz sub-processes are started by the main process. After the nz sub-processes are started, the main process distributes the nz sub-processes to n social media platforms, so that there is at least one sub-process on each social media platform.

4. The method according to claim 3, characterized in that The downloading of the incremental data Dinc by using a preset data download strategy also includes: The processing performance of the current device for downloading the incremental data Dinc is evaluated to obtain the performance evaluation result Pinc={Pu, Pm, Pn, Pr}. The computational complexity of the data to be downloaded on each social media platform is evaluated to obtain the computing power evaluation result Sinc, where Pu represents the process computing performance of the current device, Pm represents the storage response performance of the current device, Pu represents the network transmission performance of the current device, and Pu represents the process switching performance of the current device. Based on the performance evaluation result Pinc, the computing power evaluation result Sinc and the balancing function J, the set of thread numbers X={X1,X2,…Xnz} that need to be allocated in the nz sub-processes is calculated, and multiple threads are created in each sub-process based on the thread number set X to complete the download of the incremental data Dinc.

5. The method according to claim 4, characterized in that The cleaning function fc and the deduplication function fd are set to pre-process the downloaded incremental data to obtain standard data Dcl, including: Use the cleaning function to remove noise, invalid and malformed entries in the data: isValid(d') and isClean(d') are logic functions for verifying data validity and completing cleaning processing, respectively. d represents the data before Dinc processing, and d' represents the data after Dinc processing; The deduplication function is used to remove identical records from the incremental data Dinc to maintain the uniqueness of each piece of data: isUnique(d1, d2) is a judgment function. If any two data d1 and d2 in Dinc are the same in key attributes, it returns false, indicating that d2 is duplicated and should be excluded.

6. The method according to claim 5, characterized in that The method of allocating the standard data Dcl to the comment category set Cm and the private message category set Cs through the data classification storage function fs includes: Extract the feature vector F(d) of each data d∈Dcl, which contains the keywords, sentiment tendency, target object and sending time of the text content; Based on the trained classifier rule engine Cclass, the feature vector F(d) of each data is classified and judged, and each data is assigned to the corresponding set according to the judgment result of the classifier: fs(Dcl)= {d∈Dcl∣Cclass(F(d))='Cm'},{d∈Dcl∣Cclass(F(d))='Cs'}.

7. The method according to claim 6, characterized in that The interface display function fp analyzes the status and relationship of the data in the comment category set Cm and the private message category set Cs to obtain display data Dds=fp(Cm, Cs), including: Build the interface to display the function fp: fp(Cm,Cs)={Format(d3)∣d3∈Cm∪Cs, with Status(d3), in Relation(d3)} Format(d) means formatting the data d3 in the comment category set Cm and the private message category set Cs, Status(d3) is used to add a status identifier, and in Relation(d3) is used to determine the relationship between the data; Based on the interface display function fp, each piece of data in Cm and Cs is parsed to extract the core information required for display, including: the content of the comment or private message, the sender, the receiver, the timestamp, and the sentiment score; After adding status information to each piece of data in the comment category set Cm and the private message category set Cs, identify and construct the association relationship between the data; Sort the data in the comment category set Cm and the private message category set Cs according to user preferences or system default rules, and filter the data according to the screening conditions; The sorted data is converted into interface display data, wherein the interface display data includes a text summary, formatted time, and an emotion icon.

8. The method according to claim 7, characterized in that After obtaining the user's identity information Uif and access rights Aps, the updated data set Dgx is uploaded to n social media platforms respectively through a predefined Boolean function Hau(Uif,Aps), including: Obtain the user's identity information Uif, which includes the user name, password, and secondary authentication code; After verifying the validity of Uif through the pre-set security mechanism, the access permission set Aps is determined according to the role associated with the user account; Run the Boolean function Hau(Uif,Aps) to check whether the user Uif has the permission to upload data to the specified social media platform. If Hau returns True, data uploading is allowed, otherwise, data uploading is denied. After the updated data set Dgx is encapsulated and formatted, it is encrypted and the encrypted data is uploaded to various social media platforms.

9. A device for processing comment private message data on multiple social media platforms, characterized in that: include: The extraction module aggregates n social media platforms to form a social media platform set P = {P1, P2, ... Pn}, builds a unified data collection interface for the social media platform set P, evaluates the total amount Ct of comments and private message data contained in the social media platform set P at the current time t through the data collection interface, and determines the incremental data Dinc = Ct-Cp that needs to be collected at the time t based on the total amount Ct of the current comments and private message data and the total amount Cp of the comments and private message data collected by the data collection interface last time; The processing module evaluates the data volume of the incremental data Dinc, adopts a preset data download strategy to download the incremental data Dinc, and performs preprocessing operations on the downloaded incremental data by setting a cleaning function fc and a deduplication function fd to obtain standard data Dcl, Dcl=fd(fc(Din)); Construction module, constructing comment category set Cm and private message category set Cs, and assigning standard data Dcl to comment category set Cm and private message category set Cs through data classification storage function fs; The interactive module sets an interface display function fp in a unified display interface. The interface display function fp analyzes the status and relationship of the data in the comment category set Cm and the private message category set Cs to obtain display data Dds=fp(Cm,Cs). By setting an interactive function fic, the interactive data Dic input by the user in the display interface is received, and the display data Dds is updated based on the interactive data Dic to obtain updated display data Dds'=fic(Dic,Dds); The update module performs differential analysis on the update display data Dds' and the display data Dds by setting the analysis function fj, and obtains the update data set Dgx=fj(Dds',Dds)={Dzs,Dzd}, where Dzs is the update instruction and Dzd is the update content corresponding to the update instruction. After obtaining the user's identity information Uif and access rights Aps, the update data set Dgx is uploaded to n social media platforms respectively through the pre-defined Boolean function Hau(Uif,Aps).

10. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for processing comment private message data of multiple social media platforms as described in any one of claims 1 to 8.