Artificial intelligence-based employee abnormal behavior detection method and system

By using an AI-based approach to calculate and fuse multidimensional feature vectors from user chat data, the problem of low efficiency, high cost, and poor accuracy in chat data detection in existing technologies is solved, enabling deep semantic understanding of chat data and rapid and accurate detection of abnormal behavior.

CN118643441APending Publication Date: 2024-09-13XIAMEN MEIYA YIAN INFORMATION TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410699444.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

Existing technologies are inefficient, costly, and susceptible to subjective factors when processing chat data. They lack a deep understanding of context and semantics, resulting in low accuracy in detecting chat data anomalies.

Method used

An AI-based approach is employed to acquire, segment, and clean user chat data, calculate text, user identity, time series, time period, and holiday feature vectors, use a feedforward neural network and a transformer encoder for feature fusion and abnormal behavior prediction, and combine a binary classifier for accurate detection.

Benefits of technology

It achieves deep semantic understanding of chat data, reduces errors, and can quickly and accurately detect abnormal behavior, thus improving detection efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118643441A
    Figure CN118643441A
Patent Text Reader

Abstract

The invention provides an employee abnormal behavior detection method and system based on artificial intelligence, and the method specifically comprises the steps: obtaining chat data of a user, segmenting and cleaning the chat data, and obtaining a chat data sequence of the user, a text feature vector Et, a user identity feature sequence vector combination Ea, a time sequence feature vector Eb, a time period feature vector Ec, a festival feature vector Ed and a user feature vector combination Ee of the user chat data are calculated, feature alignment is carried out, feature fusion is carried out through mean pooling and an encoder, and abnormal behaviors of the user chat data are predicted through a binary classifier. According to the method, the problems of low efficiency, high cost and poor accuracy of a traditional abnormal behavior detection method are solved, the context and semantics of the chat data can be deeply understood, the existing error is reduced, the abnormal behavior can be quickly and accurately found from the chat data, the accuracy is up to 90% or above, and the method is suitable for popularization and application. The abnormal behavior can be detected from a large amount of chat data in several seconds.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information processing technology, and in particular to an employee abnormal behavior detection method and system based on artificial intelligence. Background Art

[0002] With the popularization of the Internet and mobile communication technologies, people are increasingly inclined to use various instant messaging applications to communicate, including but not limited to instant messaging applications (such as WhatsApp, WeChat, Telegram), social media platforms (such as Facebook, Twitter, Instagram), and email services. The use of these applications will generate a large amount of chat data information on the platform, including information in the form of text, pictures, audio and video.

[0003] As an important information carrier, chat data records people's thoughts, intentions and behaviors. In the fight against corruption, chat data plays an irreplaceable role. By analyzing chat data, we can find possible improper behaviors, illegal operations and corruption among employees. Timely discovery of abnormal chat data enables us to take measures to prevent and deal with abnormal chat data in a timely manner. In addition, chat data can also be used to monitor interpersonal relationships and power structures at all levels within the company, helping companies establish a sound internal control mechanism and reduce corruption risks.

[0004] Currently, the analysis of chat data mainly relies on manual processing or simple machine learning technology. Traditional manual methods mainly rely on manual reading and analysis of chat data. Researchers or analysts often read chat records to understand the content, emotions and topics, and manually mark keywords, emotional expressions or specific topics for statistical analysis. Although this method has a certain degree of understanding and insight, it is inefficient, costly and easily affected by subjective factors.

[0005] Machine learning methods usually involve quantitative processing and analysis of chat data, including word frequency statistics, sentiment recognition, topic modeling and other technologies. Through statistical analysis of chat data, some potential patterns and trends in chat data can be revealed. For example, word frequency statistics can determine the words or phrases most frequently used by users, sentiment recognition can analyze users' emotional tendencies, and topic modeling can identify the topics discussed in the chat. Although these statistical methods can automatically process large amounts of data, they lack a deep understanding of context and semantics, and may have errors when processing complex chat data. Summary of the invention

[0006] The present invention proposes the following technical solutions to address one or more technical deficiencies in the above-mentioned prior art.

[0007] Based on the first aspect of the present invention, a method for detecting abnormal behavior of employees based on artificial intelligence is proposed, the method comprising:

[0008] S1: Obtain user chat data and perform segmentation and cleaning to obtain the user chat data sequence [c1, c2, ..., cm] and user sequence U = [u1, u2, ..., um];

[0009] S2: Obtain the text feature vector Et of the user chat data through the chat data sequence [c1, c2, ..., cm];

[0010] S3: Calculate the user identity feature sequence vector a of the user chat data and obtain the user identity feature sequence vector combination Ea=[a1, a2, ..., am], the calculation formula is as follows:

[0011] a=FNN(Mean(Emb(X))), a∈R 768

[0012] Among them, FNN represents feedforward neural network, Mean represents mean pooling, Emb represents embedding layer, and X represents user identity feature sequence;

[0013] S4: Calculate the time series feature vector Eb of the chat data sequence according to the time information of the user chat data, and the calculation formula is as follows:

[0014] F(T)=Floor((T-t1) / N)

[0015] Eb=FNN(Emb(Min(F(T),433)))Eb∈R m*768

[0016] Wherein, T represents a time series, t1 represents the sending time of the first message in the user chat data, N represents a time interval, F(T) represents a temporal code corresponding to the time series, Floor represents a floor function, FNN represents a feedforward neural network, and Emb represents an embedding layer;

[0017] S5: Calculate the time period feature vector Ec and the festival feature vector Ed according to the time information of the user chat data, and the calculation formula is as follows:

[0018] F'(T)=Floor(T / N)

[0019] Ec=FNN(Emb(F'(T)))Ec∈R m*768

[0020] Ed=FNN(Emb(I(T)))y∈R m*768

[0021] Where T represents the time series, N represents the time interval, Floor represents the floor function, F'(T) represents the time period code corresponding to the time series, FNN represents the feedforward neural network, Emb represents the embedding layer, m represents the number of chat data sequences, I(T) represents the indicator function, if the current date is a holiday, I(T) takes the value of 1, otherwise, I(T) takes the value of 0;

[0022] S6: Match the chat data sequence [c1, c2, ..., cm] with the user sequence U = [u1, u2, ..., um], and calculate the user feature vector e corresponding to each user u to obtain the user feature vector combination Ee, the calculation formula is as follows:

[0023] e=Emb(Min(ArgSort(Count(U),u),M))

[0024] Wherein, Emb represents an embedding layer, ArgSort represents arranging the user sequence U and obtaining the sorting position of user u in the sequence, and M represents the maximum number of speakers;

[0025] S7: aligning the user identity feature sequence vector combination Ea, the time series feature vector Eb, the time period feature vector Ec, the holiday feature vector Ed and the text feature vector Et;

[0026] S8: The user identity feature sequence vector combination Ea, the time series feature vector Eb, the time period feature vector Ec, the festival feature vector Ed and the user feature vector combination Ee are fused through mean pooling and transformer encoder, and the abnormal behavior of the user chat data is predicted through several binary classifiers and the results are output.

[0027] The present invention can provide a deeper understanding of the language and semantics of chat data, reduce errors in processing massive amounts of complex chat data, and can quickly and accurately detect abnormal behaviors in chat data.

[0028] Furthermore, S1 also includes converting special types of chat data, where the special types of chat data include pictures, voices, shared links, and videos.

[0029] Furthermore, S2 specifically includes segmenting the chat data sequence [c1, c2, ..., cm], inserting [cls] at the starting position, inserting [sep] between each chat data record, obtaining the segmented text sequence [C1, C2, ...Cn] and encoding it using the Emb embedding layer to obtain the text feature vector Et.

[0030] Using the “[cls]” and “[sep]” tokens and ensuring that they appear at the beginning of the input sequence and the end of the sentence, respectively, enables the model to better understand the structure and boundaries of sentences for better classification and prediction.

[0031] Furthermore, before step S3, the method further includes extracting user identity information from the user chat data to obtain a user identity feature sequence X=[x1, x2, ..., xm];

[0032] The user identity information includes but is not limited to gender, age, position, rank and marital status.

[0033] Furthermore, S4 specifically includes setting the time interval and maximum period of the user chat data for the time series T = [t1, t2, ..., tm] corresponding to the chat data sequence [c1, c2, ..., cm] based on the sending time t1 of the first message, and uniformly encoding the time series that exceeds the maximum period of the user chat data as 433.

[0034] Integrating temporal information can better understand and capture time series relationships, as well as more accurately analyze and predict correlations and trends among chat data.

[0035] Furthermore, before calculating the time period feature vector Ec, the method further includes dividing the time series T=[t1, t2, ..., tm] corresponding to the chat data sequence [c1, c2, ..., cm] into a number of time periods at set time intervals, and capturing the time period feature vector Ec through a time period encoder.

[0036] Furthermore, the feature alignment is to separate the user identity feature sequence vector combination Ea, the time feature vector Eb, the time period feature vector Ec, the festival feature vector Ed and the text feature vector Et according to the length sequence L = [l1, l2, ...lm] corresponding to the word segmentation text sequence [C1, C2, ...Cn] so that each feature is aligned.

[0037] Feature alignment can adjust the differences between different data sets, and is used for comparison and matching between different data, to discover associations and patterns between data, thereby achieving better data analysis and model prediction results.

[0038] Based on the second aspect of the present invention, an employee abnormal behavior detection system based on artificial intelligence is also proposed, comprising:

[0039] Preparation module: obtain user chat data and perform segmentation and cleaning to obtain the user chat data sequence [c1, c2, ..., cm] and user sequence U = [u1, u2, ..., um];

[0040] Feature module: obtain the text feature vector Et of the user chat data through the chat data sequence [c1, c2, ..., cm];

[0041] Calculate the user identity feature sequence vector a of the user chat data and obtain the user identity feature sequence vector combination Ea=[a1, a2, ..., am], the calculation formula is as follows:

[0042] a=FNN(Mean(Emb(X))), a∈R 768

[0043] Among them, FNN represents feedforward neural network, Mean represents mean pooling, Emb represents embedding layer, and X represents user identity feature sequence;

[0044] The time series feature vector Eb of the chat data sequence is calculated according to the time information of the user chat data, and the calculation formula is as follows:

[0045] F(T)=Floor((T-t1) / N)

[0046] Eb=FNN(Emb(Min(F(T),433)))Eb∈R m*768

[0047] Wherein, T represents a time series, t1 represents the sending time of the first message in the user chat data, N represents a time interval, F(T) represents a temporal code corresponding to the time series, Floor represents a floor function, FNN represents a feedforward neural network, and Emb represents an embedding layer;

[0048] The time period feature vector Ec and the holiday feature vector Ed are calculated based on the time information of the user chat data. The calculation formula is as follows:

[0049] F'(T)=Floor(T / N)

[0050] Ec=FNN(Emb(F'(T)))Ec∈R m*768

[0051] Ed=FNN(Emb(I(T)))y∈R m*768

[0052] Where T represents the time series, N represents the time interval, Floor represents the floor function, F'(T) represents the time period code corresponding to the time series, FNN represents the feedforward neural network, Emb represents the embedding layer, m represents the number of chat data sequences, I(T) represents the indicator function, if the current date is a holiday, I(T) takes the value of 1, otherwise, I(T) takes the value of 0;

[0053] The chat data sequence [c1, c2, ..., cm] is matched with the user sequence U = [u1, u2, ..., um], and the user feature vector e corresponding to each user u is calculated to obtain the user feature vector combination Ee, and the calculation formula is as follows:

[0054] e=Emb(Min(ArgSort(Count(U),u),M))

[0055] Wherein, Emb represents an embedding layer, ArgSort represents arranging the user sequence U and obtaining the sorting position of user u in the sequence, and M represents the maximum number of speakers;

[0056] Alignment module: align the user identity feature sequence vector combination Ea, the time series feature vector Eb, the time period feature vector Ec, the holiday feature vector Ed and the text feature vector Et;

[0057] Anomaly detection module: The user identity feature sequence vector combination Ea, the time series feature vector Eb, the time period feature vector Ec, the holiday feature vector Ed and the user feature vector combination Ee are fused through mean pooling and transformer encoder, and the abnormal behavior of the user chat data is predicted through several binary classifiers and the results are output.

[0058] Based on the third aspect of the present invention, a computer storable medium is also proposed, on which one or more computer programs are stored, and when the computer program is executed by a computer processor, any of the methods described above is implemented.

[0059] The technical effect of the present invention is that the present invention can have a deeper understanding of the language and semantics of chat data, reduce the errors existing in processing massive amounts of complex chat data, and can also quickly and accurately detect abnormal behaviors existing in chat data from massive amounts of chat data, thereby solving the problems of low efficiency, high cost and poor accuracy existing in traditional detection methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Other features, objects and advantages of the present application will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings.

[0061] Figure 1 The figure is a general flow chart of an abnormal behavior detection method for employees based on artificial intelligence provided according to an embodiment of the present invention.

[0062] Figure 2 It is an overall structural diagram of an employee abnormal behavior detection system based on artificial intelligence provided according to an embodiment of the present invention.

[0063] Figure 3 It is a structural diagram of a computer system suitable for implementing an electronic device of an embodiment of the present application. DETAILED DESCRIPTION

[0064] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0065] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0066] Figure 1 The overall flow chart of an employee abnormal behavior detection method based on artificial intelligence of the present invention is shown, including:

[0067] S1: Obtain user chat data and perform segmentation and cleaning to obtain the user's chat data sequence

[0068] [c1,c2,…,cm] and user sequence U = [u1,u2,…,um];

[0069] S2: Obtain the text feature vector Et of the user chat data through the chat data sequence [c1, c2, ..., cm];

[0070] S3: Calculate the user identity feature sequence vector a of the user chat data and obtain the user identity feature sequence vector combination Ea=[a1, a2, ..., am], the calculation formula is as follows:

[0071] a=FNN(Mean(Emb(X))), a∈R 768

[0072] Among them, FNN represents feedforward neural network, Mean represents mean pooling, Emb represents embedding layer, and X represents user identity feature sequence;

[0073] S4: Calculate the time series feature vector Eb of the chat data sequence according to the time information of the user chat data, and the calculation formula is as follows:

[0074] F(T)=Floor((T-t1) / N)

[0075] Eb=FNN(Emb(Min(F(T),433)))Eb∈R m*768

[0076] Wherein, T represents a time series, t1 represents the sending time of the first message in the user chat data, N represents a time interval, F(T) represents a temporal code corresponding to the time series, Floor represents a floor function, FNN represents a feedforward neural network, and Emb represents an embedding layer;

[0077] S5: Calculate the time period feature vector Ec and the festival feature vector Ed according to the time information of the user chat data, and the calculation formula is as follows:

[0078] F'(T)=Floor(T / N)

[0079] Ec=FNN(Emb(F'(T)))Ec∈R m*768

[0080] Ed=FNN(Emb(I(T)))y∈R m*768

[0081] Where T represents the time series, N represents the time interval, Floor represents the floor function, F'(T) represents the time period code corresponding to the time series, FNN represents the feedforward neural network, Emb represents the embedding layer, m represents the number of chat data sequences, I(T) represents the indicator function, if the current date is a holiday, I(T) takes the value of 1, otherwise, I(T) takes the value of 0;

[0082] S6: Match the chat data sequence [c1, c2, ..., cm] with the user sequence U = [u1, u2, ..., um], and calculate the user feature vector e corresponding to each user u to obtain the user feature vector combination Ee, the calculation formula is as follows:

[0083] e=Emb(Min(ArgSort(Count(U),u),M))

[0084] Wherein, Emb represents an embedding layer, ArgSort represents arranging the user sequence U and obtaining the sorting position of user u in the sequence, and M represents the maximum number of speakers;

[0085] S7: aligning the user identity feature sequence vector combination Ea, the time series feature vector Eb, the time period feature vector Ec, the holiday feature vector Ed and the text feature vector Et;

[0086] S8: The user identity feature sequence vector combination Ea, the time series feature vector Eb, the time period feature vector Ec, the festival feature vector Ed and the user feature vector combination Ee are fused through mean pooling and transformer encoder, and the abnormal behavior of the user chat data is predicted through several binary classifiers and the results are output.

[0087] It should be noted that S1 also includes conversion of special types of chat data, where the special types of chat data include pictures, voice, sharing links and videos.

[0088] In a specific embodiment, the rules for converting special types of chat data are shown in Table 1, wherein the content in "{}" after conversion is filled according to the chat data information actually sent;

[0089] Table 1 Conversion rules for special types of chat data

[0090] Message Type Converted information picture <Picture> voice <Speech> Share Link <link>{link title} Red envelope <red envelope>{red envelope amount} transfer <Transfer> System Messages <system message>{message content} expression <Emoji> Voice Chat <Voice chat> video chat <Video chat>

[0091] It should be noted that S2 specifically includes segmenting the chat data sequence [c1, c2, ..., cm], inserting [cls] at the starting position, inserting [sep] between each chat data record, obtaining the segmented text sequence [C1, C2, ...Cn] and encoding it using the Emb embedding layer to obtain the text feature vector Et.

[0092] It should be noted that in the analysis of chat data, how to extract text features plays a decisive role in the analysis effect of the entire model. Using the "[cls]" and "[sep]" tags and ensuring that they appear at the beginning of the input sequence and the end of the sentence respectively can enable the model to better understand the structure and boundaries of the sentence for better classification and prediction.

[0093] It should be noted that before step S3, the process also includes extracting the user identity information in the user chat data to obtain a user identity feature sequence X=[x1, x2, ..., xm];

[0094] The user identity information includes but is not limited to gender, age, position, rank and marital status.

[0095] In a specific embodiment, different users have unique chat styles and content characteristics. For example, male users are usually more inclined to express themselves directly, female users are usually more delicate and tactful, young users are usually more active in chatting, and elderly users are more conservative and stable.

[0096] In a specific embodiment, users with different professional backgrounds discuss different topics. For example, programmers tend to discuss technical issues, while salespeople communicate with customers more often.

[0097] In a specific embodiment, the user's rank may also affect the sensitivity of the chat content. For example, users with higher ranks usually have more permissions and confidential information, and the chat content is often more sensitive.

[0098] It should be noted that S4 specifically includes setting the time interval and maximum period of the user chat data based on the sending time t1 of the first message corresponding to the time series T = [t1, t2, ..., tm] of the chat data sequence [c1, c2, ..., cm], and uniformly encoding the time series that exceeds the maximum period of the user chat data as 433.

[0099] It should be noted that two chat data records with a short time interval have a stronger logical correlation, while chat data records with a long time interval have a weaker logical correlation. Integrating time information in the model can better understand and capture time series relationships, as well as more accurately analyze and predict the correlation and trends between chat data.

[0100] In a specific embodiment, as shown in Table 2, for the time sequence T=[12:00, 12:01, ..., 12:40] corresponding to the chat data sequence [c1, c2, ..., cm], the sending time "12:00" of the first message is taken as the benchmark, and the corresponding timing code is "0", and 10 minutes is taken as a time interval, and the timing code corresponding to the message time "12:11" is "1", and the maximum period is set to 3 days, and the longest timing code is "432", and the timing codes exceeding three days are uniformly "433".

[0101] Table 2 Time series coding corresponding to chat data

[0102]

[0103] It should be noted that before calculating the time period feature vector Ec, the time series T=[t1, t2,..., tm] corresponding to the chat data sequence [c1, c2,..., cm] is also divided into several time periods at set time intervals, and the time period feature vector Ec is captured by a time period encoder.

[0104] It should be noted that the chat content of users may be different at different times of the day. For example, during the day, most of the chat data of users is related to work, while in the evening, users are more focused on discussing life.

[0105] In a specific embodiment, as shown in Table 3, a day is divided into 6 time periods with 240 minutes as one time period. For example, the time period corresponding to the message time "0:00" for sending chat data is coded as "0", and the time period corresponding to the message time "5:11" for sending chat data is coded as "1".

[0106] Table 3 Time period codes corresponding to chat data

[0107]

[0108] In a specific embodiment, as shown in Table 4, if the date corresponding to the chat message (eg, the text "Are you there?") is a holiday, the holiday code is "1", otherwise, if the date corresponding to the chat message is not a holiday, the holiday code is "0".

[0109] Table 4 Holiday codes corresponding to chat data

[0110]

[0111] It should be noted that in a chat record, there may be chat messages from only one person, or there may be chat messages from multiple people who are talking to each other alternately. Determining the speaker of each message is crucial for analyzing the chat data.

[0112] It should be noted that the feature alignment is to separate the user identity feature sequence vector combination Ea, the time feature vector Eb, the time period feature vector Ec, the festival feature vector Ed and the text feature vector Et according to the length sequence L = [l1, l2, ...lm] corresponding to the word segmentation text sequence [C1, C2, ...Cn] so that each feature is aligned.

[0113] It should be noted that feature alignment can adjust the differences between different data sets, which can be used for comparison and matching between different data, and to discover the associations and patterns between data, thereby achieving better data analysis and model prediction results.

[0114] In a specific embodiment, the user identity feature vector obtained by the above steps is Ea=[a1, a2, ...am], the time series feature vector is Eb=[b1, b2, ...bm], the time period feature vector is Ec=[c1, c2, ...cm], the festival feature vector is Ed=[d1, d2, ...dm], and the user feature vector is Ee=[e1, e2, ...em]; taking the user identity feature sequence vector combination Ea as an example (the alignment of other features is similar), the formula for feature alignment is as follows:

[0115]

[0116] a ij =ai;i∈[1,m],j∈[1,l],l∈L

[0117] Among them, E' a represents the aligned user identity feature sequence vector combination, and L represents the length sequence corresponding to the segmented text sequence.

[0118] Reference below Figure 2 , Figure 2 It is an overall structural diagram of an employee abnormal behavior detection system based on artificial intelligence provided according to an embodiment of the present invention, including a preparation module a, a feature module b, an alignment module c and an anomaly detection module d.

[0119] In a specific embodiment, the preparation module a is configured to: obtain user chat data and perform segmentation and cleaning to obtain the user chat data sequence [c1, c2, ..., cm] and the user sequence U = [u1, u2, ..., um].

[0120] In a specific embodiment, the feature module b is configured to: obtain the text feature vector Et of the user chat data through the chat data sequence [c1, c2, ..., cm];

[0121] Calculate the user identity feature sequence vector a of the user chat data and obtain the user identity feature sequence vector combination Ea=[a1, a2, ..., am], the calculation formula is as follows:

[0122] a=FNN(Mean(Emb(X))), a∈R 768

[0123] Among them, FNN represents feedforward neural network, Mean represents mean pooling, Emb represents embedding layer, and X represents user identity feature sequence;

[0124] The time series feature vector Eb of the chat data sequence is calculated according to the time information of the user chat data, and the calculation formula is as follows:

[0125] F(T)=Floor((T-t1) / N)

[0126] Eb=FNN(Emb(Min(F(T),433)))Eb∈R m*768

[0127] Wherein, T represents a time series, t1 represents the sending time of the first message in the user chat data, N represents a time interval, F(T) represents a temporal code corresponding to the time series, Floor represents a floor function, FNN represents a feedforward neural network, and Emb represents an embedding layer;

[0128] The time period feature vector Ec and the holiday feature vector Ed are calculated based on the time information of the user chat data. The calculation formula is as follows:

[0129] F'(T)=Floor(T / N)

[0130] Ec=FNN(Emb(F'(T)))Ec∈R m*768

[0131] Ed=FNN(Emb(I(T)))y∈R m*768

[0132] Where T represents the time series, N represents the time interval, Floor represents the floor function, F'(T) represents the time period code corresponding to the time series, FNN represents the feedforward neural network, Emb represents the embedding layer, m represents the number of chat data sequences, I(T) represents the indicator function, if the current date is a holiday, I(T) takes the value of 1, otherwise, I(T) takes the value of 0;

[0133] The chat data sequence [c1, c2, ..., cm] is matched with the user sequence U = [u1, u2, ..., um], and the user feature vector e corresponding to each user u is calculated to obtain the user feature vector combination Ee, and the calculation formula is as follows:

[0134] e=Emb(Min(ArgSort(Count(U),u),M))

[0135] Wherein, Emb represents an embedding layer, ArgSort represents arranging the user sequence U and obtaining the sorting position of user u in the sequence, and M represents the maximum number of speakers.

[0136] In a specific embodiment, the alignment module c is configured to: perform feature alignment on the user identity feature sequence vector combination Ea, the time series feature vector Eb, the time period feature vector Ec, the holiday feature vector Ed and the text feature vector Et.

[0137] In a specific embodiment, the anomaly detection module d is configured to: fuse the user identity feature sequence vector combination Ea, the time series feature vector Eb, the time period feature vector Ec, the festival feature vector Ed and the user feature vector combination Ee through mean pooling and transformer encoder, and predict the abnormal behavior of the user chat data through several binary classifiers and output the results.

[0138] Reference below Figure 3 , which shows a schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application. Figure 3 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0139] like Figure 3 As shown, the computer system includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage part 308 into a random access memory (RAM) 303. Various programs and data required for system operation are also stored in the RAM 303. The CPU 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0140] The following components are connected to the I / O interface 305: an input section 306 including a keyboard, a mouse, etc.; an output section 307 including a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed, so that a computer program read therefrom is installed into the storage section 308 as needed.

[0141] 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 storage 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 the network through the communication part 309, and / or installed from the removable medium 311. When the computer program is executed by the central processing unit (CPU) 301, the above functions defined in the method of the present application are executed. It should be noted that the computer-readable storage medium of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable storage medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wireline, optical cable, RF, etc., or any suitable combination of the foregoing.

[0142] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0143] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0144] The modules involved in the embodiments of the present application may be implemented by software or by hardware.

[0145] As another aspect, the present application further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains user chat data and performs segmentation and cleaning to obtain a user chat data sequence and a user sequence; obtains a text feature vector Et of the user chat data through the chat data sequence; calculates a user identity feature sequence vector a of the user chat data and obtains a user identity feature sequence vector combination, calculates a time series feature vector Eb of the chat data sequence according to the time information of the user chat data, calculates a time period feature vector Ec and a festival feature vector Ed according to the time information of the user chat data, matches the chat data sequence with the user sequence, and calculates a user feature vector e corresponding to each user u to obtain a user feature vector combination Ee, performs feature alignment on the user identity feature sequence vector combination Ea, the time series feature vector Eb, the time period feature vector Ec, the festival feature vector Ed and the text feature vector Et; performs mean pooling and transformer The encoder fuses the user identity feature sequence vector combination Ea, the time series feature vector Eb, the time period feature vector Ec, the festival feature vector Ed and the user feature vector combination Ee, and predicts the abnormal behavior of the user chat data through several binary classifiers and outputs the results.

[0146] Finally, it should be noted that the above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. A method for detecting abnormal employee behavior based on artificial intelligence, characterized in that: include: S1: Obtain user chat data and perform segmentation and cleaning to obtain the user chat data sequence [c1, c2, ..., cm] and user sequence U = [u1, u2, ..., um]; S2: Obtain the text feature vector Et of the user chat data through the chat data sequence [c1, c2, ..., cm]; S3: Calculate the user identity feature sequence vector a of the user chat data and obtain the user identity feature sequence vector combination Ea=[a1, a2, ..., am], the calculation formula is as follows: a=FNN(Mean(Emb(X))),a∈R 768 Among them, FNN represents feedforward neural network, Mean represents mean pooling, Emb represents embedding layer, and X represents user identity feature sequence; S4: Calculate the time series feature vector Eb of the chat data sequence according to the time information of the user chat data, and the calculation formula is as follows: F(T)=Floor((T-t1) / N) Eb=FNN(Emb(Min(F(T),433)))Eb∈R m*768 Wherein, T represents a time series, t1 represents the sending time of the first message in the user chat data, N represents a time interval, F(T) represents a temporal code corresponding to the time series, Floor represents a floor function, FNN represents a feedforward neural network, and Emb represents an embedding layer; S5: Calculate the time period feature vector Ec and the festival feature vector Ed according to the time information of the user chat data, and the calculation formula is as follows: F'(T)=Floor(T / N) Ec=FNN(Emb(F’(T)))Ec∈R m*768 Ed=FNN(Emb(I(T)))y∈R m*768 Where T represents the time series, N represents the time interval, Floor represents the floor function, F'(T) represents the time period code corresponding to the time series, FNN represents the feedforward neural network, Emb represents the embedding layer, m represents the number of chat data sequences, I(T) represents the indicator function, if the current date is a holiday, I(T) takes the value of 1, otherwise, I(T) takes the value of 0; S6: Match the chat data sequence [c1, c2, ..., cm] with the user sequence U = [u1, u2, ..., um], and calculate the user feature vector e corresponding to each user u to obtain the user feature vector combination Ee, the calculation formula is as follows: e=Emb(Min(ArgSort(Count(U),u),M)) Wherein, Emb represents an embedding layer, ArgSort represents arranging the user sequence U and obtaining the sorting position of user u in the sequence, and M represents the maximum number of speakers; S7: aligning the user identity feature sequence vector combination Ea, the time series feature vector Eb, the time period feature vector Ec, the holiday feature vector Ed and the text feature vector Et; S8: The user identity feature sequence vector combination Ea, the time series feature vector Eb, the time period feature vector Ec, the festival feature vector Ed and the user feature vector combination Ee are fused through mean pooling and transformer encoder, and the abnormal behavior of the user chat data is predicted through several binary classifiers and the results are output.

2. The method according to claim 1, characterized in that S1 also includes converting special types of chat data, where the special types of chat data include pictures, voices, shared links, and videos.

3. The method according to claim 1, characterized in that S2 specifically includes segmenting the chat data sequence [c1, c2, ..., cm], inserting [cls] at the starting position, inserting [sep] between each chat data record, obtaining the segmented text sequence [C1, C2, ...Cn] and encoding it using the Emb embedding layer to obtain the text feature vector Et.

4. The method according to claim 1, characterized in that Before step S3, the method further includes extracting user identity information from the user chat data to obtain a user identity feature sequence X=[x1, x2, ..., xm]; The user identity information includes but is not limited to gender, age, position, rank and marital status.

5. The method according to claim 1, characterized in that S4 specifically includes taking the time series T=[t1, t2,..., tm] corresponding to the chat data sequence [c1, c2,..., cm] as the reference, setting the time interval and maximum period of the user chat data, and uniformly encoding the time series exceeding the maximum period of the user chat data as 433.

6. The method according to claim 1, characterized in that Before calculating the time period feature vector Ec, the method further includes dividing the time series T=[t1, t2, ..., tm] corresponding to the chat data sequence [c1, c2, ..., cm] into a number of time periods at set time intervals, and capturing the time period feature vector Ec through a time period encoder.

7. The method according to claim 1, characterized in that The feature alignment is to separate the user identity feature sequence vector combination Ea, the time feature vector Eb, the time period feature vector Ec, the festival feature vector Ed and the text feature vector Et according to the length sequence L = [l1, l2, ...lm] corresponding to the word segmentation text sequence [C1, C2, ...Cn] so that each feature is aligned.

8. An employee abnormal behavior detection system based on artificial intelligence, characterized in that: include: Preparation module: obtain user chat data and perform segmentation and cleaning to obtain the user chat data sequence [c1, c2, ..., cm] and user sequence U = [u1, u2, ..., um]; Feature module: obtain the text feature vector Et of the user chat data through the chat data sequence [c1, c2, ..., cm]; Calculate the user identity feature sequence vector a of the user chat data and obtain the user identity feature sequence vector combination Ea=[a1, a2, ..., am], the calculation formula is as follows: a=FNN(Mean(Emb(X))),a∈R 768 Among them, FNN represents feedforward neural network, Mean represents mean pooling, Emb represents embedding layer, and X represents user identity feature sequence; The time series feature vector Eb of the chat data sequence is calculated according to the time information of the user chat data, and the calculation formula is as follows: F(T)=Floor((T-t1) / N) Eb=FNN(Emb(Min(F(T),433)))Eb∈R m*768 Wherein, T represents a time series, t1 represents the sending time of the first message in the user chat data, N represents a time interval, F(T) represents a temporal code corresponding to the time series, Floor represents a floor function, FNN represents a feedforward neural network, and Emb represents an embedding layer; The time period feature vector Ec and the holiday feature vector Ed are calculated based on the time information of the user chat data. The calculation formula is as follows: F'(T)=Floor(T / N) Ec=FNN(Emb(F’(T)))Ec∈R m*768 Ed=FNN(Emb(I(T)))y∈R m*768 Where T represents the time series, N represents the time interval, Floor represents the floor function, F'(T) represents the time period code corresponding to the time series, FNN represents the feedforward neural network, Emb represents the embedding layer, m represents the number of chat data sequences, I(T) represents the indicator function, if the current date is a holiday, I(T) takes the value of 1, otherwise, I(T) takes the value of 0; The chat data sequence [c1, c2, ..., cm] is matched with the user sequence U = [u1, u2, ..., um], and the user feature vector e corresponding to each user u is calculated to obtain the user feature vector combination Ee, and the calculation formula is as follows: e=Emb(Min(ArgSort(Count(U),u),M)) Wherein, Emb represents an embedding layer, ArgSort represents arranging the user sequence U and obtaining the sorting position of user u in the sequence, and M represents the maximum number of speakers; Alignment module: align the user identity feature sequence vector combination Ea, the time series feature vector Eb, the time period feature vector Ec, the holiday feature vector Ed and the text feature vector Et; Anomaly detection module: The user identity feature sequence vector combination Ea, the time series feature vector Eb, the time period feature vector Ec, the holiday feature vector Ed and the user feature vector combination Ee are fused through mean pooling and transformer encoder, and the abnormal behavior of the user chat data is predicted through several binary classifiers and the results are output.

9. A computer storable medium having one or more computer programs thereon, characterized in that: When the one or more computer programs are executed by a computer processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Screening method, system and equipment for predicting abnormal behaviors of personnel in enterprise and medium

    CN119578663A

  • Predicting abnormal behavior screening method, system, device and medium

    CN119578663B