A financial security early warning method and system based on visual behavior analysis

Through visual behavior analysis technology, optical flow analysis and multi-scale loop iteration method are used to extract the characteristic vectors of financial transaction behavior and build an abnormal warning model, which solves the problem of inefficiency of traditional security systems and realizes efficient and safe management of financial institutions.

CN118552881BActive Publication Date: 2024-11-01HUNAN FENGHUI YINJIA SCI & TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Traditional financial security systems rely on human eye monitoring, are inefficient and prone to missed reports and alarms, and cannot effectively improve the security and management efficiency of financial institutions.

Method used

By using visual behavior analysis technology, through intelligent identification and analysis of video images, optical flow analysis and multi-scale loop iteration method, users' behavior feature vectors are extracted, and abnormal behavior warning models are constructed to realize abnormal judgment and security warning of user behavior.

Benefits of technology

It improves the security and management efficiency of financial institutions, reduces missed reports and alarms through accurate user behavior tracking and abnormal identification, and enhances the intelligence level of security systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552881B_ABST
    Figure CN118552881B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of financial security warning, and discloses a financial security warning method and system of visual behavior analysis, the method comprising: performing target detection on a video of financial transaction behavior, extracting a target subgraph in a video frame; performing optical flow analysis on a target frame sequence; extracting the behavior features corresponding to a target behavior trajectory frame, aggregating all the behavior features to form a behavior feature vector; and using an abnormal behavior warning model to perform behavior abnormality discrimination on the behavior feature vector of the target in the video of financial transaction behavior. The present invention combines the moving position of the target frame and the motion angle information of the pixel to realize user positioning tracking and trajectory information determination, determines the attention weight of the target behavior trajectory frame based on the trajectory information, constitutes the user's behavior feature vector, adopts a multi-scale cyclic iteration method to perform multi-scale iteration and integration processing on the behavior feature vector, constitutes a behavior abnormality value to realize abnormal discrimination of user behavior, and performs security warning processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of financial security early warning, and in particular to a financial security early warning method and system based on visual behavior analysis. Background Art

[0002] With the development of the financial industry and the rapid advancement of intelligent security technology, the application of visual behavior analysis in the field of financial security is becoming more and more extensive. Traditional security systems mainly rely on surveillance cameras to capture scene information, but relying solely on human eyes for monitoring has problems such as low efficiency and missed reports. In response to this problem, the present invention proposes a financial security early warning method based on visual behavior analysis, which uses visual behavior analysis technology to intelligently identify, analyze and warn video images to improve the security and management efficiency of financial institutions. Summary of the invention

[0003] In view of this, the present invention provides a financial security warning method based on visual behavior analysis, the purpose of which is to: 1) determine the user's financial transaction behavior video based on the time when the user enters and leaves the financial transaction area, and locate the user's image frame from the video to obtain a target frame sequence, use optical flow analysis to obtain the pixel's motion angle information, combine the target frame's moving position and the pixel's motion angle information, convert the target frame sequence into a target behavior trajectory frame sequence, realize user positioning tracking and trajectory information determination, determine the attention weights of different target behavior trajectory frames based on the trajectory information, and aggregate all behavior features to form the user's behavior feature vector; 2) use a multi-scale cyclic iteration method to perform multi-scale iterative iteration on the behavior feature vector, and retain the effective vector information of each iteration to achieve integrated processing of effective vector information at different scales, convert the integrated result into a behavior anomaly value, realize abnormal judgment of user behavior, and perform security warning processing.

[0004] To achieve the above purpose, the present invention provides a financial security early warning method based on visual behavior analysis, comprising the following steps:

[0005] S1: obtaining a financial transaction behavior video to be analyzed, performing target detection on the financial transaction behavior video, extracting target sub-graphs in the video frames, and forming a target frame sequence with the extracted target sub-graphs, wherein the improved R-CNN is the main implementation method of the target detection;

[0006] S2: Perform optical flow analysis on the target frame sequence to obtain the target behavior trajectory frame sequence, wherein the improved FlowNet is the main implementation method of the optical flow analysis;

[0007] S3: extracting the behavior features corresponding to each target behavior trajectory frame in the target behavior trajectory frame sequence, and aggregating all the behavior features to form a behavior feature vector;

[0008] S4: Construct an abnormal behavior warning model, use the abnormal behavior warning model to identify abnormal behavior of the target's behavior feature vector in the financial transaction behavior video, and issue a security warning based on the identification result. The abnormal behavior warning model takes the behavior feature vector as input and the abnormal behavior identification result as output, wherein the improved LSTM is the main implementation method of the warning model.

[0009] As a further improvement method of the present invention:

[0010] Optionally, in step S1, obtaining a financial transaction behavior video to be analyzed, performing target detection on the financial transaction behavior video, and extracting a target sub-image in the video frame include:

[0011] The financial transaction behavior video to be analyzed is obtained, wherein the financial transaction behavior video is a video of a user in a financial transaction venue from the transaction time to the end of the transaction time, the transaction time is the time when the user enters the financial transaction area, and the end of the transaction time is the time when the user leaves the financial transaction area. The target to be analyzed corresponding to the financial transaction behavior video is the user of the financial transaction venue; the obtained financial transaction behavior video of the user user is:

[0012] ;

[0013] in:

[0014] Indicates the financial transaction behavior video of user user. Video showing financial transaction behavior The nth video frame in the video, N represents the financial transaction behavior video The total number of video frames in; In this embodiment of the present invention, Indicates the video frame corresponding to the transaction time of user user. Indicates the video frame corresponding to the moment when the user ends the transaction, the video of financial transaction behavior The video of the financial transaction area captured by the camera between the time when the user user made a transaction and the time when the user user ended the transaction; the financial transaction area includes banks, securities exchanges, etc.

[0015] Perform target detection on financial transaction behavior videos and extract target sub-images in video frames. The target detection process is:

[0016] S11: Using target detection network to detect financial transaction behavior videos For each video frame in the video, a detection bounding box of the object in the video frame is generated, and a classification category of the image in the detection bounding box is generated, where the selected target detection network is Faster-RCNN;

[0017] S12: Video of financial transaction behavior The image in the detection bounding box of the first frame of the video frame where the financial transaction area is entered is classified as the financial transaction behavior video. The target image to be analyzed for behavior;

[0018] S13: Calculate the target image for behavior analysis and the video of financial transaction behavior The classification category is the similarity of the image in the detection bounding box of the user, and the image in the detection bounding box with a similarity higher than the preset threshold is used as the target sub-image in the video frame, where the similarity is calculated as follows:

[0019] Reduce the target image to be analyzed and the image within the detection boundary box to Pixel size, and convert the pixel values ​​of the pixels in the reduced image to 64 gray levels; respectively calculate the average gray value of the reduced result of the target image to be analyzed and the image in the detection boundary box at 64 gray levels; mark the pixels with gray values ​​higher than the average gray value in the target image to be analyzed as 1, and mark the other pixels as 0; mark the pixels with gray values ​​higher than the average gray value in the image in the detection boundary box as 1, and mark the other pixels as 0; calculate the Hamming distance between the target image to be analyzed and the image in the detection boundary box after 0-1 marking, and take the inverse of the Hamming distance as the similarity between the target image to be analyzed and the image in the detection boundary box;

[0020] The extracted target sub-images constitute a target frame sequence corresponding to the target in the financial transaction behavior video.

[0021] Optionally, the step of forming a target frame sequence from the extracted target sub-images includes:

[0022] The target sub-graphs are sorted according to the order of the video frames corresponding to the target sub-graphs, and the target frame sequence corresponding to the target in the financial transaction behavior video is obtained, where the financial transaction behavior video The target frame sequence corresponding to the target in is:

[0023] ;

[0024] in:

[0025] Video showing financial transaction behavior The target frame sequence corresponding to the target in the target;

[0026] Video showing financial transaction behavior The mth target sub-image in which the target is detected, M represents the video of financial transaction behavior The total number of target subgraphs in which targets are detected, .

[0027] Optionally, performing optical flow analysis on the target frame sequence in step S2 includes:

[0028] Perform optical flow analysis on the target frame sequence, where the target frame sequence The optical flow analysis process is as follows:

[0029] S21: Calculate the target frame sequence The coordinates of the center pixel of each target sub-image in the video frame, where the coordinates of the center pixel of the mth target sub-image in the corresponding video frame are ;

[0030] S22: Calculate the target frame sequence The optical flow information matrix corresponding to each target sub-image in , where the mth target sub-image The corresponding optical flow information matrix is :

[0031] ;

[0032] ;

[0033] ;

[0034] ;

[0035] ;

[0036] ;

[0037] ;

[0038] ;

[0039] in:

[0040] Represents the mth target subgraph The pixel at row x and column y The optical flow information, Represents the mth target subgraph The number of pixel rows, Represents the mth target subgraph The number of pixel columns;

[0041] Represents the mth target subgraph The optical flow information components of the x-th row and y-th column pixels in the horizontal and vertical directions respectively;

[0042] In pixels centered In the pixel area, the pixel The gradient value of the jth neighborhood pixel;

[0043] represents an exponential function with a natural constant as base;

[0044] Represents the jth neighborhood pixel to pixel The Euclidean distance of

[0045] represents a diagonal matrix;

[0046] In pixels centered In the pixel area, the pixel The change in the gradient value of the j-th neighborhood pixel;

[0047] T stands for transpose;

[0048] Represents pixels The gradient information of Represents pixels The optical flow information, Represents pixels Optical flow transformation information;

[0049] S23: Calculate the target frame sequence The light flow behavior matrix corresponding to each target sub-image in , where the mth target sub-image The corresponding light flow behavior matrix is :

[0050] ;

[0051] ;

[0052] ;

[0053] ;

[0054] in:

[0055] Pixel The light flow behavior information, Pixel The position change information, Pixel The optical flow motion angle information, Represents pixels The optical flow motion angle information of the jth neighborhood pixel;

[0056] is the four-quadrant inverse tangent function;

[0057] S24: The target frame sequence Each target sub-image in is converted into a target behavior trajectory frame, where the mth target sub-image The converted target behavior trajectory frame is:

[0058] ;

[0059] ;

[0060] in:

[0061] Represents the mth target subgraph The converted target behavior trajectory frame, Represents the target behavior trajectory frame Pixel information of the pixel at the xth row and yth column;

[0062] Represents pixels The gray value of .

[0063] Optionally, extracting the behavior feature corresponding to each target behavior trajectory frame in the target behavior trajectory frame sequence in step S3 includes:

[0064] Extract the behavior features corresponding to each target behavior trajectory frame in the target behavior trajectory frame sequence, where the target behavior trajectory frame The behavior feature extraction process is as follows:

[0065] Target behavior trajectory frame Perform weighted convolution processing, where the formula for weighted convolution processing is:

[0066] ;

[0067] ;

[0068] ;

[0069] in:

[0070] represents the convolution processing matrix, represents the convolution operator;

[0071] Represents the target behavior trajectory frame The corresponding weight matrix is, Represents the target behavior trajectory frame The weighted value of the pixel information in the xth row and yth column;

[0072] The weighted convolution processing result As target behavior trajectory frame behavioral characteristics;

[0073] Aggregate the behavior features corresponding to each target behavior trajectory frame in the target behavior trajectory frame sequence to form a financial transaction behavior video The behavioral feature vector of the target .

[0074] Optionally, the aggregating all behavioral features to form a behavioral feature vector includes:

[0075] Aggregate all behavioral features to form a behavioral feature vector, where the behavioral feature vector The aggregation method is:

[0076] ;

[0077] ;

[0078] in:

[0079] Indicates behavioral characteristics The vectorized weights of .

[0080] Optionally, constructing an abnormal behavior warning model in step S4 includes:

[0081] Construct an abnormal behavior warning model, which takes the behavior feature vector as input and the behavior abnormality discrimination result as output, wherein the improved LSTM is the main implementation method of the warning model, wherein the abnormal behavior warning model includes an input layer, a loop iteration layer, an iteration information integration layer and a behavior abnormality discrimination layer;

[0082] The input layer is used to receive the behavior feature vector, the loop iteration layer is used to perform loop iteration processing on the behavior feature vector and retain the vector information of each iteration, the iteration information integration layer is used to integrate the loop iteration processing results and the retained vector information, and the behavior anomaly discrimination layer is used to perform behavior anomaly discrimination on the integration results and output the obtained behavior anomaly discrimination results.

[0083] Optionally, the abnormal behavior warning model is used to identify abnormal behavior of the behavior feature vector of the target in the financial transaction behavior video, and a security warning is issued according to the identification result, including:

[0084] The abnormal behavior warning model is used to identify the abnormal behavior of the target's behavior feature vector in the financial transaction behavior video, and a security warning is issued based on the identification results. The process of identifying abnormal behavior is as follows:

[0085] S41: Input layer is used to receive behavior feature vectors ;

[0086] S42: Loop iterative layer pair behavior feature vector Perform loop iteration processing, where the behavior feature vector The formula for the zth loop iteration is:

[0087] ;

[0088] in:

[0089] represents the loop iteration matrix, Represents the loop iteration bias;

[0090] Represents the behavioral feature vector The result of the zth loop iteration is: , Z represents the maximum number of loop iterations, ;

[0091] S43: retain the vector information of each loop iteration, wherein during the zth loop iteration, the retained vector information is ;

[0092] S44: The iterative information integration layer integrates the loop iterative processing results and the retained vector information, wherein the integrated results for:

[0093] ;

[0094] S45: Behavior abnormality discrimination layer integration results Perform abnormal behavior identification and obtain the abnormal behavior identification result for output, wherein the abnormal behavior identification result is:

[0095] ;

[0096] ;

[0097] in:

[0098] Video showing financial transaction behavior The abnormal behavior judgment result of the target in the It indicates abnormal behavior and issues a security warning;

[0099] represents the behavior mapping parameter matrix;

[0100] Video showing financial transaction behavior The behavioral outliers of the target in Indicates the preset behavioral outlier threshold.

[0101] In order to solve the above problems, the present invention provides a financial security early warning system based on visual behavior analysis, characterized in that the system comprises:

[0102] The target frame extraction module is used to obtain the financial transaction behavior video to be analyzed, perform target detection on the financial transaction behavior video, extract the target sub-image in the video frame, form a target frame sequence with the extracted target sub-image, perform optical flow analysis on the target frame sequence, and obtain the target behavior trajectory frame sequence;

[0103] A behavior feature extraction module is used to extract the behavior features corresponding to each target behavior trajectory frame in the target behavior trajectory frame sequence, and aggregate all behavior features to form a behavior feature vector;

[0104] The behavior warning device is used to build an abnormal behavior warning model, use the abnormal behavior warning model to identify the behavior abnormality of the target's behavior feature vector in the financial transaction behavior video, and issue a security warning based on the identification result.

[0105] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0106] A memory storing at least one instruction;

[0107] Communication interface, enabling electronic equipment to communicate; and

[0108] The processor executes the instructions stored in the memory to implement the financial security warning method based on visual behavior analysis as described above.

[0109] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the financial security warning method based on visual behavior analysis as described above.

[0110] Compared with the prior art, the present invention proposes a financial security early warning method based on visual behavior analysis, which has the following advantages:

[0111] First, this scheme proposes a motion trajectory information extraction method to calculate the target frame sequence The light flow behavior matrix corresponding to each target sub-image in , where the mth target sub-image The corresponding light flow behavior matrix is :

[0112] ;

[0113] ;

[0114] ;

[0115] ;

[0116] in: Pixel The light flow behavior information, Pixel The position change information, Pixel The optical flow motion angle information, Represents pixels The optical flow motion angle information of the jth neighborhood pixel; is a four-quadrant inverse tangent function; the target frame sequence Each target sub-image in is converted into a target behavior trajectory frame, where the mth target sub-image The converted target behavior trajectory frame is:

[0117] ;

[0118] ;

[0119] in: Represents the mth target subgraph The converted target behavior trajectory frame, Represents the target behavior trajectory frame Pixel information of the pixel at the xth row and yth column; Represents pixels Grayscale value of the target frame. This scheme determines the user's financial transaction behavior video based on the time when the user enters and leaves the financial transaction area, locates the user's image frame from the video, obtains the target frame sequence, uses optical flow analysis to obtain the pixel's motion angle information, combines the target frame's moving position and the pixel's motion angle information, converts the target frame sequence into a target behavior trajectory frame sequence, realizes user positioning tracking and trajectory information determination, determines the attention weights of different target behavior trajectory frames based on the trajectory information, and aggregates all behavior features to form the user's behavior feature vector.

[0120] At the same time, this scheme proposes a behavior abnormality identification method, which uses the abnormal behavior warning model to identify the behavior abnormality of the target's behavior feature vector in the financial transaction behavior video, and issues a security warning based on the identification result. The process of abnormal behavior identification is as follows: the input layer is used to receive the behavior feature vector ; Cycle iterative layer behavior feature vector Perform loop iteration processing, where the behavior feature vector The formula for the zth loop iteration is:

[0121] ;

[0122] in: represents the loop iteration matrix, Represents the loop iteration bias; Represents the behavioral feature vector The result of the zth loop iteration is: , Z represents the maximum number of loop iterations, ; retain the vector information of each loop iteration, and during the zth loop iteration, the retained vector information is ; The iterative information integration layer integrates the loop iterative processing results and the retained vector information, where the integrated results for:

[0123] ;

[0124] The abnormal behavior discrimination layer integrates the results Perform abnormal behavior identification and obtain the abnormal behavior identification result for output, wherein the abnormal behavior identification result is:

[0125] ;

[0126] ;

[0127] in: Video showing financial transaction behavior The abnormal behavior judgment result of the target in the It indicates abnormal behavior and issues a security warning; represents the behavior mapping parameter matrix; Video showing financial transaction behavior The behavioral outliers of the target in Represents the preset behavior anomaly threshold. This solution uses a multi-scale cyclic iteration method to iterate the behavior feature vector at multiple scales, and retains the effective vector information of each iteration, realizes the integration processing of effective vector information at different scales, converts the integration result into a behavior anomaly value, realizes the abnormal judgment of user behavior, and performs security warning processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0128] Figure 1 A flowchart of a financial security early warning method based on visual behavior analysis provided by an embodiment of the present invention;

[0129] Figure 2 A functional module diagram of a financial security early warning system for visual behavior analysis provided by an embodiment of the present invention, wherein 100 is a financial security early warning system for visual behavior analysis, 101 is a target frame extraction module, 102 is a behavior feature extraction module, and 103 is a behavior early warning device;

[0130] Figure 3 A schematic structural diagram of an electronic device for implementing a financial security early warning method for visual behavior analysis provided in one embodiment of the present invention, 1 electronic device, 10 processor, 11 memory, 12 program, 13 communication interface; the realization of the purpose of the present invention, functional features and advantages will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0131] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0132] The embodiment of the present application provides a financial security early warning method based on visual behavior analysis. The execution subject of the financial security early warning method based on visual behavior analysis includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present application. In other words, the financial security early warning method based on visual behavior analysis can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.

[0133] S1: Obtain a financial transaction behavior video to be analyzed, perform target detection on the financial transaction behavior video, extract target sub-images in the video frames, and form a target frame sequence with the extracted target sub-images.

[0134] In the step S1, the financial transaction behavior video to be analyzed is obtained, target detection is performed on the financial transaction behavior video, and target sub-images in the video frame are extracted, including:

[0135] The financial transaction behavior video to be analyzed is obtained, wherein the financial transaction behavior video is a video of a user in a financial transaction venue from the transaction time to the end of the transaction time, the transaction time is the time when the user enters the financial transaction area, and the end of the transaction time is the time when the user leaves the financial transaction area. The target to be analyzed corresponding to the financial transaction behavior video is the user of the financial transaction venue; the obtained financial transaction behavior video of the user user is:

[0136] ;

[0137] in:

[0138] Indicates the financial transaction behavior video of user user. Video showing financial transaction behavior The nth video frame in the video, N represents the financial transaction behavior video The total number of video frames in; In this embodiment of the present invention, Indicates the video frame corresponding to the transaction time of user user. Indicates the video frame corresponding to the moment when the user ends the transaction, the video of financial transaction behavior The video of the financial transaction area captured by the camera between the time when the user user made the transaction and the time when the user user ended the transaction;

[0139] Perform target detection on financial transaction behavior videos and extract target sub-images in video frames. The target detection process is:

[0140] S11: Using target detection network to detect financial transaction behavior videos For each video frame in the video, a detection bounding box of the object in the video frame is generated, and a classification category of the image in the detection bounding box is generated, where the selected target detection network is Faster-RCNN;

[0141] S12: Video of financial transaction behavior The image in the detection bounding box of the first frame of the video frame where the financial transaction area is entered is classified as the financial transaction behavior video. The target image to be analyzed for behavior;

[0142] S13: Calculate the target image for behavior analysis and the video of financial transaction behavior The classification category is the similarity of the image in the detection bounding box of the user, and the image in the detection bounding box with a similarity higher than the preset threshold is used as the target sub-image in the video frame, where the similarity is calculated as follows:

[0143] Reduce the target image to be analyzed and the image within the detection boundary box to Pixel size, and convert the pixel values ​​of the pixels in the reduced image to 64 gray levels; respectively calculate the average gray value of the reduced result of the target image to be analyzed and the image in the detection boundary box at 64 gray levels; mark the pixels with gray values ​​higher than the average gray value in the target image to be analyzed as 1, and mark the other pixels as 0; mark the pixels with gray values ​​higher than the average gray value in the image in the detection boundary box as 1, and mark the other pixels as 0; calculate the Hamming distance between the target image to be analyzed and the image in the detection boundary box after 0-1 marking, and take the inverse of the Hamming distance as the similarity between the target image to be analyzed and the image in the detection boundary box;

[0144] The extracted target sub-images constitute a target frame sequence corresponding to the target in the financial transaction behavior video.

[0145] The extracted target sub-images constitute a target frame sequence, including:

[0146] The target sub-graphs are sorted according to the order of the video frames corresponding to the target sub-graphs, and the target frame sequence corresponding to the target in the financial transaction behavior video is obtained, where the financial transaction behavior video The target frame sequence corresponding to the target in is:

[0147] ;

[0148] in:

[0149] Video showing financial transaction behavior The target frame sequence corresponding to the target in the target;

[0150] Video showing financial transaction behavior The mth target sub-image in which the target is detected, M represents the video of financial transaction behavior The total number of target subgraphs in which targets are detected, .

[0151] S2: Perform optical flow analysis on the target frame sequence to obtain the target behavior trajectory frame sequence.

[0152] The optical flow analysis of the target frame sequence in step S2 includes:

[0153] Perform optical flow analysis on the target frame sequence, where the target frame sequence The optical flow analysis process is as follows:

[0154] S21: Calculate the target frame sequence The coordinates of the center pixel of each target sub-image in the video frame, where the coordinates of the center pixel of the mth target sub-image in the corresponding video frame are ;

[0155] S22: Calculate the target frame sequence The optical flow information matrix corresponding to each target sub-image in , where the mth target sub-image The corresponding optical flow information matrix is :

[0156] ;

[0157] ;

[0158] ;

[0159] ;

[0160] ;

[0161] ;

[0162] ;

[0163] ;

[0164] in:

[0165] Represents the mth target subgraph The pixel at row x and column y The optical flow information, Represents the mth target subgraph The number of pixel rows, Represents the mth target subgraph The number of pixel columns;

[0166] Represents the mth target subgraph The optical flow information components of the x-th row and y-th column pixels in the horizontal and vertical directions respectively;

[0167] In pixels centered In the pixel area, the pixel The gradient value of the jth neighborhood pixel;

[0168] represents an exponential function with a natural constant as base;

[0169] Represents the jth neighborhood pixel to pixel The Euclidean distance of

[0170] represents a diagonal matrix;

[0171] In pixels centered In the pixel area, the pixel The change in the gradient value of the j-th neighborhood pixel;

[0172] T stands for transpose;

[0173] Represents pixels The gradient information of Represents pixels The optical flow information, Represents pixels Optical flow transformation information;

[0174] S23: Calculate the target frame sequence The light flow behavior matrix corresponding to each target sub-image in , where the mth target sub-image The corresponding light flow behavior matrix is :

[0175] ;

[0176] ;

[0177] ;

[0178] ;

[0179] in:

[0180] Pixel The light flow behavior information, Pixel The position change information, Pixel The optical flow motion angle information, Represents pixels The optical flow motion angle information of the jth neighborhood pixel;

[0181] is the four-quadrant inverse tangent function;

[0182] S24: The target frame sequence Each target sub-image in is converted into a target behavior trajectory frame, where the mth target sub-image The converted target behavior trajectory frame is:

[0183] ;

[0184] ;

[0185] in:

[0186] Represents the mth target subgraph The converted target behavior trajectory frame, Represents the target behavior trajectory frame Pixel information of the pixel at the xth row and yth column;

[0187] Represents pixels The gray value of .

[0188] S3: Extract the behavior features corresponding to each target behavior trajectory frame in the target behavior trajectory frame sequence, and aggregate all behavior features to form a behavior feature vector.

[0189] The step S3 extracts the behavior features corresponding to each target behavior trajectory frame in the target behavior trajectory frame sequence, including:

[0190] Extract the behavior features corresponding to each target behavior trajectory frame in the target behavior trajectory frame sequence, where the target behavior trajectory frame The behavior feature extraction process is as follows:

[0191] Target behavior trajectory frame Perform weighted convolution processing, where the formula for weighted convolution processing is:

[0192] ;

[0193] ;

[0194] ;

[0195] in:

[0196] represents the convolution processing matrix, represents the convolution operator;

[0197] Represents the target behavior trajectory frame The corresponding weight matrix is, Represents the target behavior trajectory frame The weighted value of the pixel information in the xth row and yth column;

[0198] The weighted convolution processing result As target behavior trajectory frame behavioral characteristics;

[0199] Aggregate the behavior features corresponding to each target behavior trajectory frame in the target behavior trajectory frame sequence to form a financial transaction behavior video The behavioral feature vector of the target .

[0200] The aggregating all behavioral features to form a behavioral feature vector includes:

[0201] Aggregate all behavioral features to form a behavioral feature vector, where the behavioral feature vector The aggregation method is:

[0202] ;

[0203] ;

[0204] in:

[0205] Indicates behavioral characteristics The vectorized weights of .

[0206] S4: Construct an abnormal behavior warning model, use the abnormal behavior warning model to identify abnormal behavior of the target's behavior feature vector in the financial transaction behavior video, and issue a security warning based on the identification result. The abnormal behavior warning model takes the behavior feature vector as input and the behavior abnormality identification result as output.

[0207] The abnormal behavior early warning model is constructed in step S4, including:

[0208] Construct an abnormal behavior warning model, which takes the behavior feature vector as input and the behavior abnormality discrimination result as output, wherein the improved LSTM is the main implementation method of the warning model, wherein the abnormal behavior warning model includes an input layer, a loop iteration layer, an iteration information integration layer and a behavior abnormality discrimination layer;

[0209] The input layer is used to receive the behavior feature vector, the loop iteration layer is used to perform loop iteration processing on the behavior feature vector and retain the vector information of each iteration, the iteration information integration layer is used to integrate the loop iteration processing results and the retained vector information, and the behavior anomaly discrimination layer is used to perform behavior anomaly discrimination on the integration results and output the obtained behavior anomaly discrimination results.

[0210] The abnormal behavior warning model is used to identify abnormal behavior of the behavior feature vector of the target in the financial transaction behavior video, and a security warning is issued according to the identification result, including:

[0211] The abnormal behavior warning model is used to identify the abnormal behavior of the target's behavior feature vector in the financial transaction behavior video, and a security warning is issued based on the identification results. The process of identifying abnormal behavior is as follows:

[0212] S41: Input layer is used to receive behavior feature vectors ;

[0213] S42: Loop iterative layer pair behavior feature vector Perform loop iteration processing, where the behavior feature vector The formula for the zth loop iteration is:

[0214] ;

[0215] in:

[0216] represents the loop iteration matrix, Represents the loop iteration bias;

[0217] Represents the behavioral feature vector The result of the zth loop iteration is: , Z represents the maximum number of loop iterations, ;

[0218] S43: retain the vector information of each loop iteration, wherein during the zth loop iteration, the retained vector information is ;

[0219] S44: The iterative information integration layer integrates the loop iterative processing results and the retained vector information, wherein the integrated results for:

[0220] ;

[0221] S45: Behavior abnormality discrimination layer integration results Perform abnormal behavior identification and obtain the abnormal behavior identification result for output, wherein the abnormal behavior identification result is:

[0222] ;

[0223] ;

[0224] in:

[0225] Video showing financial transaction behavior The abnormal behavior judgment result of the target in the It indicates abnormal behavior and issues a security warning;

[0226] represents the behavior mapping parameter matrix;

[0227] Video showing financial transaction behavior The behavioral outliers of the target in Indicates the preset behavioral outlier threshold.

[0228] like Figure 2 As shown, it is a functional module diagram of a financial security warning system based on visual behavior analysis provided by an embodiment of the present invention, which can implement the financial security warning method based on visual behavior analysis in Example 1.

[0229] The financial security early warning system 100 of visual behavior analysis of the present invention can be installed in an electronic device. According to the functions to be implemented, the financial security early warning system of visual behavior analysis can include a target frame extraction module 101, a behavior feature extraction module 102 and a behavior early warning device 103. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.

[0230] The target frame extraction module 101 is used to obtain the financial transaction behavior video to be analyzed, perform target detection on the financial transaction behavior video, extract the target sub-image in the video frame, form a target frame sequence with the extracted target sub-image, perform optical flow analysis on the target frame sequence, and obtain a target behavior trajectory frame sequence;

[0231] A behavior feature extraction module 102 is used to extract the behavior feature corresponding to each target behavior trajectory frame in the target behavior trajectory frame sequence, and aggregate all the behavior features to form a behavior feature vector;

[0232] The behavior warning device 103 is used to construct an abnormal behavior warning model, use the abnormal behavior warning model to identify abnormal behavior of the behavior feature vector of the target in the financial transaction behavior video, and issue a security warning based on the identification result.

[0233] In detail, the modules in the financial security early warning system 100 for visual behavior analysis in the embodiment of the present invention are used in the same manner as described above. Figure 1 The financial security early warning method based on visual behavior analysis described in the invention has the same technical means and can produce the same technical effects, so I will not go into details here.

[0234] like Figure 3 , is a schematic diagram of the structure of an electronic device for implementing a financial security warning method for visual behavior analysis provided by an embodiment of the present invention.

[0235] The electronic device 1 may include a processor 10 , a memory 11 , a communication interface 13 and a bus, and may also include a computer program stored in the memory 11 and executable on the processor 10 , such as a program 12 .

[0236] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 may not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the program 12, etc., but also be used to temporarily store data that has been output or is to be output.

[0237] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (such as the program 12 for implementing financial security early warning for visual behavior analysis), and calls data stored in the memory 11, so as to execute various functions of the electronic device 1 and process data.

[0238] The communication interface 13 may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices, and to achieve connection and communication between internal components of the electronic device.

[0239] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0240] Figure 3 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 3 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0241] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0242] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.

[0243] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0244] It should be noted that the serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. And the terms "including", "comprising" or any other variants thereof in this article are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "including a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0245] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0246] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A financial security early warning method based on visual behavior analysis, characterized in that: The method comprises: S1: Obtain a financial transaction behavior video to be analyzed, perform target detection on the financial transaction behavior video, extract target sub-images in the video frames, and form a target frame sequence with the extracted target sub-images; S2: Perform optical flow analysis on the target frame sequence to obtain the target behavior trajectory frame sequence; S3: extracting the behavior features corresponding to each target behavior trajectory frame in the target behavior trajectory frame sequence, and aggregating all the behavior features to form a behavior feature vector; S4: construct an abnormal behavior warning model, use the abnormal behavior warning model to identify abnormal behavior of the target's behavior feature vector in the financial transaction behavior video, and issue a security warning based on the identification result. The abnormal behavior warning model takes the behavior feature vector as input and the abnormal behavior identification result as output; The abnormal behavior warning model takes the behavior feature vector as input and the behavior abnormality discrimination result as output, wherein the abnormal behavior warning model includes an input layer, a loop iteration layer, an iteration information integration layer and a behavior abnormality discrimination layer; The input layer is used to receive the behavior feature vector, the loop iteration layer is used to perform loop iteration processing on the behavior feature vector and retain the vector information of each iteration, the iteration information integration layer is used to integrate the loop iteration processing results and the retained vector information, and the behavior abnormality discrimination layer is used to perform behavior abnormality discrimination on the integration results and obtain the behavior abnormality discrimination results for output; Use abnormal behavior warning model to predict behavior feature vectors The process of identifying abnormal behavior is as follows: S41: Input layer is used to receive behavior feature vectors ; S42: Loop iterative layer pair behavior feature vector Perform loop iteration processing, where the behavior feature vector The formula for the zth loop iteration is: ; in: represents the loop iteration matrix, Represents the loop iteration bias; Represents the behavioral feature vector The result of the zth loop iteration is: , Z represents the maximum number of loop iterations, ; S43: retain the vector information of each loop iteration, wherein during the zth loop iteration, the retained vector information is ; S44: The iterative information integration layer integrates the loop iterative processing results and the retained vector information, wherein the integrated results for: ; S45: Behavior abnormality discrimination layer integrates the results Perform abnormal behavior identification and obtain the abnormal behavior identification result for output, wherein the abnormal behavior identification result is: ; ; in: Video showing financial transaction behavior The abnormal behavior judgment result of the target in the It indicates abnormal behavior and issues a security warning; represents the behavior mapping parameter matrix; Video showing financial transaction behavior The behavioral outliers of the target in Indicates the preset behavioral outlier threshold.

2. A financial security early warning method based on visual behavior analysis as claimed in claim 1, characterized in that: In the step S1, the financial transaction behavior video to be analyzed is obtained, target detection is performed on the financial transaction behavior video, and target sub-images in the video frame are extracted, including: The financial transaction behavior video to be analyzed is obtained, wherein the financial transaction behavior video is a video of a user in a financial transaction venue from the transaction time to the end of the transaction time, the transaction time is the time when the user enters the financial transaction area, and the end of the transaction time is the time when the user leaves the financial transaction area. The target to be analyzed corresponding to the financial transaction behavior video is the user of the financial transaction venue; the obtained financial transaction behavior video of the user user is: ; in: Indicates the financial transaction behavior video of user user. Video showing financial transaction behavior The nth video frame in the video, N represents the financial transaction behavior video The total number of video frames in ; Perform target detection on financial transaction behavior videos and extract target sub-images in video frames. The target detection process is: S11: Using target detection network to detect financial transaction behavior videos For each video frame in the video, a detection bounding box of an object in the video frame is generated, and a classification category of the image in the detection bounding box is generated; S12: Video of financial transaction behavior The image in the detection bounding box of the first frame of the video frame where the financial transaction area is entered is classified as the financial transaction behavior video. The target image to be analyzed for behavior; S13: Calculate the target image for behavior analysis and the video of financial transaction behavior The classification category is the similarity of the image in the detection bounding box of the user, and the image in the detection bounding box with a similarity higher than a preset threshold is used as the target sub-image in the video frame; The extracted target sub-images constitute a target frame sequence corresponding to the target in the financial transaction behavior video.

3. A financial security early warning method based on visual behavior analysis as claimed in claim 2, characterized in that: The extracted target sub-images constitute a target frame sequence, including: The target sub-graphs are sorted according to the order of the video frames corresponding to the target sub-graphs, and the target frame sequence corresponding to the target in the financial transaction behavior video is obtained, where the financial transaction behavior video The target frame sequence corresponding to the target in is: ; in: Video showing financial transaction behavior The target frame sequence corresponding to the target in the target; Video showing financial transaction behavior The mth target sub-image in which the target is detected, M represents the video of financial transaction behavior The total number of target subgraphs in which targets are detected, .

4. A financial security early warning method based on visual behavior analysis as claimed in claim 3, characterized in that: The optical flow analysis of the target frame sequence in step S2 includes: Perform optical flow analysis on the target frame sequence, where the target frame sequence The optical flow analysis process is as follows: S21: Calculate the target frame sequence The coordinates of the center pixel of each target sub-image in the video frame, where the coordinates of the center pixel of the mth target sub-image in the corresponding video frame are ; S22: Calculate the target frame sequence The optical flow information matrix corresponding to each target sub-image in , where the mth target sub-image The corresponding optical flow information matrix is ; S23: Calculate the target frame sequence The light flow behavior matrix corresponding to each target sub-image in , where the mth target sub-image The corresponding light flow behavior matrix is ; S24: The target frame sequence Each target sub-image in is converted into a target behavior trajectory frame, where the mth target sub-image The converted target behavior trajectory frame is: ; ; in: Represents the mth target subgraph The converted target behavior trajectory frame, Represents the target behavior trajectory frame Pixel information of the pixel at the xth row and yth column; Represents pixels Gray value of Represents the mth target subgraph The number of pixel rows, Represents the mth target subgraph The number of pixel columns, Pixel Light flow behavior information.

5. A financial security early warning method based on visual behavior analysis as claimed in claim 4, characterized in that: The step S3 extracts the behavior features corresponding to each target behavior trajectory frame in the target behavior trajectory frame sequence, including: Extract the behavior features corresponding to each target behavior trajectory frame in the target behavior trajectory frame sequence, where the target behavior trajectory frame The behavior feature extraction process is as follows: Target behavior trajectory frame Perform weighted convolution processing, where the formula for weighted convolution processing is: ; ; ; in: represents the convolution processing matrix, represents the convolution operator; Represents the target behavior trajectory frame The corresponding weight matrix is, Represents the target behavior trajectory frame The weighted value of the pixel information in the xth row and yth column; The weighted convolution processing result As target behavior trajectory frame behavioral characteristics; Aggregate the behavior features corresponding to each target behavior trajectory frame in the target behavior trajectory frame sequence to form a financial transaction behavior video The behavioral feature vector of the target .

6. A financial security early warning method based on visual behavior analysis as claimed in claim 5, characterized in that: The aggregating all behavioral features to form a behavioral feature vector includes: Aggregate all behavioral features to form a behavioral feature vector, where the behavioral feature vector The aggregation method is: ; ; in: Indicates behavioral characteristics The vectorized weights of .

7. A financial security early warning system based on visual behavior analysis, characterized in that: The system comprises: The target frame extraction module is used to obtain the financial transaction behavior video to be analyzed, perform target detection on the financial transaction behavior video, extract the target sub-image in the video frame, form a target frame sequence with the extracted target sub-image, perform optical flow analysis on the target frame sequence, and obtain the target behavior trajectory frame sequence; A behavior feature extraction module is used to extract the behavior features corresponding to each target behavior trajectory frame in the target behavior trajectory frame sequence, and aggregate all behavior features to form a behavior feature vector; A behavior warning device is used to build an abnormal behavior warning model, use the abnormal behavior warning model to identify abnormal behavior of the behavior feature vector of the target in the financial transaction behavior video, and issue a security warning based on the identification result, so as to realize a financial security warning method of visual behavior analysis as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Detection method for abnormal behavior in video

    CN108647649A

  • Multi-target tracking method and device, equipment and storage medium

    CN109522843A

  • Vehicle abnormal driving behavior detection method and device based on optical flow estimation

    CN117456479A

  • Target object motion trail processing method and system based on video data

    CN117474959A

  • Establishment method of security and protection abnormal behavior detection model fusing multiple attention mechanisms

    CN117765611A