Intelligent terminal user emotion recognition data processing method and device
By dividing the monitoring area on the factory site and using the digital twin space for emotion recognition, the problem of low accuracy of emotion recognition and low management efficiency in the large space of the factory is solved, and accurate identification and real-time management of the emotional state of workers in the factory are achieved.
Patent Information
- Application Number
- CN202410627985.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-21
AI Technical Summary
The existing technology is difficult to accurately identify the emotional state of workers in a large factory space, and the management efficiency is low, and it cannot be combined with actual work scenarios for identification.
By dividing the real monitoring area on the factory site, setting up a video collection device, performing three-dimensional modeling based on the digital twin space, generating a virtual monitoring area and initial monitoring points, collecting and identifying the emotional state of workers in real time, and uploading abnormal state video collection Fragments, update monitoring points, and display emotional information interactively through the management terminal.
It improves the accuracy and management efficiency of emotion recognition, allows real-time location and intervention of abnormal emotional states in the factory, and improves work efficiency.
Smart Images

Figure CN118212571B
Abstract
Description
Technical Field
[0001] The present invention relates to data processing technology, and in particular to a method and device for processing emotion recognition data of smart terminal users. Background Art
[0002] A factory is a unit or place where industrial production activities can be carried out directly. Since factories generally have a large working space for a large number of staff to carry out corresponding work activities, a mixed personnel and a complex working environment (such as a high temperature working environment, a dusty working environment, etc.) are often common characteristics of factories; and in this case, the emotional state of the staff may be greatly affected by this common characteristic, resulting in adverse consequences such as low work efficiency.
[0003] In the prior art, there are related technologies for user emotion recognition, for example, scoring and judging in the form of questionnaires, or using head-mounted devices to perform one-on-one emotion recognition on staff during collection; however, since the emotional state of users in work scenarios and non-work scenarios is different, the recognition method in the prior art cannot be combined with the user's actual work scenario for recognition, resulting in low recognition accuracy and low reference value; in addition, since the number of staff is large and relatively scattered in the working scenario of a large factory space, the recognition method in the prior art may also lead to low management efficiency.
[0004] Therefore, how to combine the user's actual work scenario to more accurately identify the user's data and improve management efficiency has become an urgent problem that needs to be solved. Summary of the invention
[0005] Based on the above problems, the present invention is proposed to provide a method and device for processing emotion recognition data of smart terminal users, which overcomes the above problems or at least partially solves the above problems.
[0006] According to one aspect of the present invention, a method for processing emotion recognition data of a smart terminal user is provided, comprising the following steps:
[0007] The factory site is divided into various real-life monitoring areas, and a corresponding real-life video acquisition device is set in each real-life monitoring area;
[0008] Based on the factory site, three-dimensional modeling based on the digital twin space is carried out to obtain a factory model including virtual monitoring areas corresponding to the actual monitoring areas, and an initial monitoring point corresponding to the actual video acquisition device is generated in each virtual monitoring area;
[0009] Based on the real video acquisition device, video is acquired for each staff member in the real monitoring area to obtain a video acquisition segment, and emotion recognition is performed based on the video acquisition segment to determine the emotional state of each staff member, wherein the emotional state includes a normal state and an abnormal state;
[0010] When the emotional state of any staff member is abnormal, the video capture clip is uploaded to the digital twin space, the corresponding initial monitoring point is determined based on the real video capture device corresponding to the video capture clip, and the status of the initial monitoring point is updated to obtain the current monitoring point;
[0011] In response to the management end's interaction with the current monitoring point, the corresponding video capture clip is retrieved for display.
[0012] Optionally, in the method according to the present invention, performing emotion recognition based on the video capture clips to determine the emotional state of each staff member includes:
[0013] Based on face recognition of the video collection segment, the number of each staff member included in the video collection segment is determined, and the video collection segment is copied based on the number of staff members to obtain video collection segments corresponding to different staff members;
[0014] Based on different staff members, content of each video collection segment is intercepted respectively, and the obtained video content includes sub-videos of different staff members;
[0015] Based on each of the sub-videos, expression recognition and voice recognition are respectively performed to determine the current expression state and the current voice state of each of the staff members;
[0016] Data fusion is performed based on the current expression state and the current voice state, and the emotional state of each staff member is determined based on the data fusion results.
[0017] Optionally, in the method according to the present invention, data fusion is performed based on the current expression state and the current sound state, and the emotional state of each staff member is determined based on the data fusion results, including:
[0018] Retrieving a preset expression evaluation table, wherein the preset expression evaluation table includes expression evaluation scores corresponding to different expression states;
[0019] Traversing the preset expression evaluation table to determine the expression evaluation score corresponding to the current expression state;
[0020] Retrieving a preset sound evaluation table, wherein the preset sound evaluation table includes sound evaluation scores corresponding to different sound states;
[0021] Traversing the preset sound evaluation table to determine the sound evaluation score corresponding to the current sound state;
[0022] A preset percentage is summed based on the expression evaluation score and the voice evaluation score, and an emotion score corresponding to each staff member is determined based on each summation result;
[0023] Retrieving a state evaluation table, wherein the state evaluation table includes different first score intervals and different emotional states corresponding to the different first score intervals;
[0024] The state evaluation table is traversed to determine the emotional state corresponding to the first score interval containing the emotional score.
[0025] Optionally, in the method according to the present invention, the current sound state includes at least sound volume, sound tone and sound content, and the preset sound evaluation table includes at least a preset volume evaluation table, a preset tone evaluation table and a preset content evaluation table, wherein the preset volume evaluation table includes different volume intervals and different volume evaluation values corresponding to different volume intervals, the preset tone evaluation table includes different tone intervals and different tone evaluation values corresponding to different tone areas, and the preset content evaluation table includes different text contents and different content evaluation values corresponding to different text contents;
[0026] Traversing the preset sound evaluation table to determine the sound evaluation score corresponding to the current sound state includes:
[0027] Traversing the preset volume evaluation table to determine a volume evaluation value corresponding to a volume interval including the sound volume;
[0028] Traversing the preset tone evaluation table to determine the tone evaluation value corresponding to the tone interval including the tone of the sound;
[0029] Traversing the preset content evaluation table to determine a content evaluation value corresponding to the text content included in the sound content;
[0030] Randomly select two of the volume evaluation value, the tone evaluation value and the content evaluation value and sum them to obtain a sound evaluation score corresponding to the current sound state.
[0031] Optionally, in the method according to the present invention, the emotion threshold is set based on each personal information corresponding to all staff members respectively;
[0032] The preset proportions are summed based on the expression evaluation score and the voice evaluation score, and the emotion scores corresponding to the staff members are determined based on the summation results, including:
[0033] Obtaining a first value based on the sum of a preset ratio of the expression evaluation score and the sound evaluation score;
[0034] Determining personal information of a staff member corresponding to the sub-video, and determining an emotion threshold corresponding to the staff member based on the personal information;
[0035] A second value is obtained based on the sum of the first value and the emotion threshold, and the second value is determined as the emotion score of the corresponding staff member.
[0036] Optionally, in the method according to the present invention, updating the status of the initial monitoring point to obtain the current monitoring point includes:
[0037] Determine the abnormal number of workers in abnormal state and the normal number of workers in normal state in the same uploaded video capture clip, and generate a quantity indication area with a preset radius based on the center point of the initial monitoring point as the center of the circle;
[0038] In the quantity indication area, text numbers corresponding to the abnormal quantity and the normal quantity are added respectively to obtain the current monitoring point.
[0039] Optionally, in the method according to the present invention, adding text numbers corresponding to the abnormal quantity and the normal quantity in the quantity indication area respectively includes:
[0040] Generating a first number filling area and a second number filling area located on both sides of the center point in the quantity indication area;
[0041] Generate a first text number corresponding to an abnormal number and a second text number corresponding to a normal number, and fill the first text number and the second text number into the first number filling area and the second number filling area respectively;
[0042] Generate an area connection line with the center point as the midpoint of the line segment, wherein a first end of the area connection line is connected to the first digital filling area, and a second end of the area connection line is connected to the second digital filling area;
[0043] The first text number filled into the first number filling area is displayed by flashing at a preset frequency.
[0044] Optionally, in the method according to the present invention, in response to the interaction of the management terminal with the current monitoring point, calling up a corresponding video capture clip for display includes:
[0045] In response to the management end interacting with the current monitoring point for a first preset time, establishing an initial emotion display form;
[0046] Generating, in the initial emotion display form, display slot groups having the same number as the number of the personnel, wherein each display slot group includes an information slot, a status slot, and a sub-video slot;
[0047] Filling the personal information, emotional state and sub-video corresponding to each staff member included in the video collection segment into the information slot, state slot and sub-video slot belonging to the same display slot group respectively;
[0048] The display slot group corresponding to the abnormal emotional state is marked with a first color, and the display slot group corresponding to the normal emotional state is marked with a second color different from the first color, to obtain a current emotional display form;
[0049] The current emotion display form is sent to the management end for display.
[0050] Optionally, in the method according to the present invention, the current emotion display form is sent to the management end for display, and then the method further includes:
[0051] In response to the management end interacting with any display slot group whose corresponding emotional state is abnormal for a preset time, a communication group is established, and a target terminal of a staff member corresponding to the display slot group is added to the communication group;
[0052] In response to the confirmation feedback of the management end based on the modification request sent by the target terminal, the corresponding display slot group is marked with a second color.
[0053] According to another aspect of the present invention, there is provided a smart terminal user emotion recognition data processing device, comprising: a division module, configured to divide a factory site to obtain various real monitoring areas, and respectively set a corresponding real video acquisition device in each monitoring area;
[0054] A modeling module is configured to perform three-dimensional modeling based on the digital twin space based on the factory site, obtain a factory model including virtual monitoring areas corresponding to the actual monitoring areas, and generate an initial monitoring point corresponding to the actual video acquisition device in each virtual monitoring area;
[0055] The recognition module is configured to perform video capture of each staff member located in the real monitoring area based on the real video capture device to obtain video capture segments, and perform emotion recognition based on the video capture segments to determine the emotional state of each staff member, wherein the emotional state includes a normal state and an abnormal state;
[0056] An uploading module is configured to upload the video acquisition segment to the digital twin space when the emotional state of any staff member is abnormal, determine the corresponding initial monitoring point based on the real video acquisition device corresponding to the video acquisition segment, and update the status of the initial monitoring point to obtain the current monitoring point;
[0057] The display module is configured to retrieve the corresponding video capture clip for display in response to the management terminal's interaction with the current monitoring point.
[0058] According to the solution of the present invention, first, after dividing the factory site, various real monitoring areas can be obtained, and corresponding real video acquisition devices can be set in each real monitoring area; then, the factory site is three-dimensionally modeled in the digital twin space to obtain a factory model of the corresponding real factory, and initial monitoring points corresponding to the real video acquisition devices are generated in each virtual monitoring area; then, video of each staff member in the real monitoring area is captured by the real video acquisition device, and corresponding emotion recognition is performed after obtaining the video capture clips to determine the emotional state of each staff member; then, when the emotional state of any staff member is abnormal, the video capture clip can be uploaded to the digital twin space to determine the initial monitoring point of the video capture clip, and the status is updated to obtain the current monitoring point; finally, the management end can interact with the current monitoring point to retrieve the corresponding video capture clip for display. The present invention further determines the corresponding emotional state by acquiring real-time data of the staff, thereby improving the corresponding recognition accuracy. In addition, it can also use the digital twin space for positioning, so that the management end can discover in real time through the digital twin space which staff members in which real monitoring areas have abnormal emotional states, thereby facilitating the management end to conduct corresponding emotional intervention, thereby greatly improving management efficiency and work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 A flowchart of a method for processing emotion recognition data of a smart terminal user according to an embodiment of the present invention is shown;
[0060] Figure 2 A structural block diagram of a smart terminal user emotion recognition data processing device according to another embodiment of the present invention is shown. DETAILED DESCRIPTION
[0061] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0062] In order to solve the problems existing in the background technology, the inventor proposes the solution of the present invention. An embodiment of the present invention provides a method for processing emotion recognition data of a smart terminal user, which can be executed in a computing device.
[0063] Figure 1 A flowchart of a method for processing emotion recognition data of a smart terminal user proposed according to an embodiment of the present invention is shown, and the method is suitable for execution in a computing device.
[0064] like Figure 1 As shown, a method for processing emotion recognition data of a smart terminal user proposed in this embodiment starts at step S102. In step S102, the following steps are included:
[0065] The factory site is divided into various real monitoring areas, and a corresponding real video acquisition device is set in each real monitoring area.
[0066] For example, in this embodiment, first, the server can divide the actual factory site into areas according to the needs of the factory, and after the division, multiple actual monitoring areas will be obtained; secondly, a video acquisition device can be installed in each actual monitoring area in advance, and the video acquisition device can be a camera or other equipment, and the video acquisition device can be used to capture the work activities of the staff in the actual monitoring area in real time; it can be explained that the number of video acquisition devices can be set by the management personnel as needed according to the area of the actual monitoring area, so there may be one or more video acquisition devices in a actual monitoring area, and these one or more video acquisition devices can perform full-range shooting of the actual monitoring area without blind spots, thereby improving the corresponding video acquisition effect.
[0067] In step S104, the following contents are included:
[0068] Based on the factory site, three-dimensional modeling based on the digital twin space is carried out to obtain a factory model including virtual monitoring areas corresponding to the actual monitoring areas, and an initial monitoring point corresponding to the actual video acquisition device is generated in each virtual monitoring area.
[0069] For example, in this embodiment, the server can perform corresponding three-dimensional modeling based on the digital twin data of the factory site to obtain a factory model corresponding to the factory site; wherein the factory model includes virtual monitoring areas corresponding to the actual monitoring areas, and each virtual monitoring area also includes corresponding initial monitoring points; here, the initial monitoring points are set corresponding to the actual video acquisition devices, that is, the positions of the initial monitoring points in the factory model correspond one-to-one to the positions of the actual video acquisition devices in the factory site. For example, when the video acquisition device in a certain actual monitoring area is located at the center of the ceiling of the actual monitoring area, the initial monitoring points in the virtual monitoring area corresponding to the actual monitoring area are also located at the center of the ceiling of the virtual monitoring area.
[0070] In step S106, the following contents are included:
[0071] Based on the actual video acquisition device, video is acquired from each staff member in the actual monitoring area to obtain video acquisition segments, and emotion recognition is performed based on the video acquisition segments to determine the emotional state of each staff member, wherein the emotional state includes a normal state and an abnormal state.
[0072] For example, in this embodiment, the reality video acquisition device will be in a corresponding shooting state during the work of the staff. Therefore, the reality video acquisition devices located in different reality monitoring areas will respectively perform real-time video acquisition of the staff in their reality monitoring areas, thereby obtaining corresponding video acquisition clips and uploading them to the server. The server can then identify the emotions of each staff member contained in the video acquisition clip in real time based on the video acquisition clip, and determine the corresponding emotional state; it can be understood that in this embodiment, the emotional state can include a normal state and an abnormal state.
[0073] Furthermore, the above-mentioned “performing emotion recognition based on the video capture clips to determine the emotional state of each staff member” further includes the following steps:
[0074] Based on face recognition of the video collection segment, the number of each staff member included in the video collection segment is determined, and the video collection segment is copied based on the number of staff members to obtain video collection segments corresponding to different staff members;
[0075] Based on different staff members, content of each video collection segment is intercepted respectively, and the obtained video content includes sub-videos of different staff members;
[0076] Based on each of the sub-videos, expression recognition and voice recognition are respectively performed to determine the current expression state and the current voice state of each of the staff members;
[0077] Data fusion is performed based on the current expression state and the current voice state, and the emotional state of each staff member is determined based on the data fusion results.
[0078] For example, in this embodiment, first, after the server obtains each video capture segment, it will perform face recognition on the staff in the video capture segment to determine the number of staff in the video capture segment. Then, the server will make the same number of copies of the video capture segment according to the number of staff. For example, if the number of staff in this video capture segment is 5, the video capture segment will be copied into 5 copies. These 5 video capture segments correspond to the 5 staff in this video capture segment one by one, that is, the video capture segments corresponding to different staff are obtained.
[0079] Then, after obtaining the video collection segment corresponding to each staff member, the server will perform corresponding content interception on each video collection segment, for example, in any video collection segment, the segments involving other staff members except the staff member corresponding to the video collection segment will be removed, so that each video collection segment after content interception only contains the corresponding different staff members, thereby obtaining the sub-videos of the video content including different staff members. Then, the staff members in each sub-video are subjected to expression recognition and voice recognition, so as to determine the current expression state and current voice state of each staff member, and the current expression state and current voice state are subjected to data fusion, and the emotional state of each staff member is determined according to the result of data fusion. Compared with the traditional method of simultaneously identifying multiple different staff members in the same video collection segment, the present embodiment adopts the method of obtaining the sub-videos corresponding to different staff members by copying and intercepting, and further performing emotion recognition on each different staff member based on each sub-video, so as to avoid the mutual interference caused by the overlapping of the limbs of each staff member in the process of emotion recognition by the server, thereby improving the corresponding recognition accuracy.
[0080] Furthermore, the above-mentioned “performing data fusion based on the current expression state and the current sound state, and determining the emotional state of each staff member based on the data fusion results” also includes the following steps:
[0081] Retrieving a preset expression evaluation table, wherein the preset expression evaluation table includes expression evaluation scores corresponding to different expression states;
[0082] Traversing the preset expression evaluation table to determine the expression evaluation score corresponding to the current expression state;
[0083] Retrieving a preset sound evaluation table, wherein the preset sound evaluation table includes sound evaluation scores corresponding to different sound states;
[0084] Traversing the preset sound evaluation table to determine the sound evaluation score corresponding to the current sound state;
[0085] A preset percentage is summed based on the expression evaluation score and the voice evaluation score, and an emotion score corresponding to each staff member is determined based on each summation result;
[0086] Retrieving a state evaluation table, wherein the state evaluation table includes different first score intervals and different emotional states corresponding to the different first score intervals;
[0087] The state evaluation table is traversed to determine the emotional state corresponding to the first score interval containing the emotional score.
[0088] For example, in this embodiment, after obtaining the current expression state and current voice state of each staff member through the above technical solution, the server will retrieve the preset expression evaluation table and the preset voice evaluation table respectively, and the preset expression evaluation table and the preset voice evaluation table may be pre-stored in the server. The preset expression evaluation table includes expression evaluation scores corresponding to different expression states, and the expression evaluation score corresponding to the current expression state can be determined in the preset expression evaluation table; similarly, the preset voice evaluation table includes voice evaluation scores corresponding to different voice states, and the voice evaluation score corresponding to the current voice state can be determined in the preset voice evaluation table.
[0089] In the process of determining the emotional state of the staff, the recognition weights of the current expression state and the current sound state may be different in different working environments. For example, when in an office environment, since the office environment is often quiet, the sound may be more indicative of emotions than the expression. When in a factory environment, since the factory environment is often noisy, the expression may be more indicative of emotions than the sound. In this case, the corresponding preset ratio can be pre-set according to the actual working environment, and the preset ratio can be summed according to the expression evaluation score and the sound evaluation score to determine the emotional score of the staff. For example, if the staff's expression state score is 4.8 points and the sound state score is 3.2 points, the current expression state and the current sound state of the staff in the emotional state account for 60% and 40% respectively, then the calculation method of the emotional score of the staff is 4.8*0.6+3.2*0.4=4.16.
[0090] Correspondingly, after obtaining the emotional score corresponding to the staff member, the server will retrieve the status evaluation table, which may be pre-stored in the server. In the status evaluation table, there are different first score intervals corresponding to different emotional states; each first score interval includes, for example: [0, 6], [7, 10], etc., and the emotional state corresponding to [0, 6] may be an abnormal state, and the emotional state corresponding to [7, 10] may be a normal state. According to the comparison between the emotional score and each first score interval, the first score interval including the emotional score can be determined, and the emotional state corresponding to the first score interval can be further determined, so as to obtain the emotional state of the staff member; that is, this embodiment can set the corresponding preset proportion based on the different proportions of the current expression state and the current sound state of the staff member, and further determine the emotional state of the staff member based on the preset proportion, so as to improve the corresponding recognition accuracy and have a certain objectivity.
[0091] It can be explained that, in this embodiment, the above-mentioned preset proportions can be adjusted according to actual needs, and are not limited to the above-mentioned "the proportions of the current expression state and the current sound state are 60% and 40% respectively". For example, it can also be "the proportions of the current expression state and the current sound state are 40% and 60% respectively". This embodiment does not give specific examples for this.
[0092] Furthermore, the above-mentioned "the current sound state at least includes sound volume, sound tone and sound content, the preset sound evaluation table at least includes a preset volume evaluation table, a preset tone evaluation table and a preset content evaluation table, wherein the preset volume evaluation table includes different volume intervals and different volume evaluation values corresponding to different volume intervals, the preset tone evaluation table includes different tone intervals and different tone evaluation values corresponding to different tone intervals, and the preset content evaluation table includes different text contents and different content evaluation values corresponding to different text contents;
[0093] Traversing the preset sound evaluation table to determine the sound evaluation score corresponding to the current sound state", further comprising the following steps:
[0094] Traversing the preset volume evaluation table to determine a volume evaluation value corresponding to a volume interval including the sound volume;
[0095] Traversing the preset tone evaluation table to determine the tone evaluation value corresponding to the tone interval including the tone of the sound;
[0096] Traversing the preset content evaluation table to determine a content evaluation value corresponding to the text content included in the sound content;
[0097] Randomly select two of the volume evaluation value, the tone evaluation value and the content evaluation value and sum them to obtain a sound evaluation score corresponding to the current sound state.
[0098] For example, in this embodiment, the preset volume evaluation table, the preset tone evaluation table and the preset content evaluation table may be pre-stored in the server. By searching the preset volume evaluation table, the volume interval including the sound volume can be found, and the volume evaluation value corresponding to the volume interval can be further determined; similarly, by searching the preset tone evaluation table, the tone interval including the sound tone can be found, and the tone evaluation value corresponding to the tone interval can be further determined; by searching the preset content evaluation table, the text content including the sound content can be found, and the content evaluation value corresponding to the text content can be further determined; and after respectively obtaining the volume evaluation value, the tone evaluation value and the content evaluation value, two of the three evaluation values generated based on different dimensions can be randomly selected for summation to obtain the sound evaluation score corresponding to the current sound state, thereby ensuring the objectivity of the sound evaluation score on the basis of saving a certain amount of calculation.
[0099] In this embodiment, the sound evaluation score of the current sound state can be determined by comprehensively evaluating the sound volume, sound pitch, and sound content based on three different dimensions, thereby improving the evaluation accuracy and having a certain degree of objectivity.
[0100] Furthermore, the above-mentioned "setting the emotion threshold based on each personal information corresponding to all staff members; summing up the preset proportions based on the expression evaluation score and the voice evaluation score, and determining the emotion score corresponding to each staff member based on each summation result" also includes the following steps:
[0101] Obtaining a first value based on the sum of a preset ratio of the expression evaluation score and the sound evaluation score;
[0102] Determining personal information of a staff member corresponding to the sub-video, and determining an emotion threshold corresponding to the staff member based on the personal information;
[0103] A second value is obtained based on the sum of the first value and the emotion threshold, and the second value is determined as the emotion score of the corresponding staff member.
[0104] For example, in this embodiment, due to the physiological differences or personality differences between different staff members, each person's judgment on the emotional state may have corresponding differences. For example, in a normal state, the voice volume of staff member A is 70 decibels, while the voice volume of staff member B is 30 decibels, and in an abnormal state, the voice volume of staff member A is 90 decibels, while the voice volume of staff member B is 50 decibels. When the above-mentioned differences exist, the emotional states of staff members A and B with the same emotional score may be different. For example, when the emotional scores of staff members A and B are both 5 points, it should be judged that both are in a normal state, but the actual situation is that staff member A is in a normal state, but staff member B is in an abnormal state. Based on this, in this embodiment, it is necessary to determine the emotional threshold of each staff member based on the personal information of the staff member. After obtaining the emotional threshold, the server will determine the emotional score after summing the staff member's expression evaluation score and the voice evaluation score by a preset ratio as a first value, and further sum the first value of the staff member with the emotional threshold to obtain a second value, thereby determining the second value as the emotional score of the staff member.
[0105] Here, the emotional threshold is obtained when the personal information of the staff is uploaded. The manager communicates with each staff member, understands them, and then determines the emotional threshold corresponding to each staff member. By using the emotional threshold to intervene in the determination of the emotional score, the accuracy of the final emotional state recognition can be improved, and corresponding customization needs can also be realized according to the differences between different staff members.
[0106] In step S108, the following contents are included:
[0107] When the emotional state of any staff member is abnormal, the video capture clip is uploaded to the digital twin space, the corresponding initial monitoring point is determined based on the real video capture device corresponding to the video capture clip, and the status of the initial monitoring point is updated to obtain the current monitoring point.
[0108] For example, in this embodiment, when the server recognizes that the emotional state of a staff member located in the factory site is abnormal, the server will upload the video capture segment containing the worker's emotional state in the abnormal state to the digital twin space, and at the same time determine the corresponding initial monitoring point according to the position of the real video acquisition device that recorded the video capture segment, and update the status of the initial monitoring point to obtain the current monitoring point. Here, the status update can be, for example, an update of color or shape; by updating the initial monitoring point, the management personnel can quickly locate the current monitoring point corresponding to the staff member with an abnormal emotional state when viewing the factory model, and further determine the corresponding real monitoring area located in the factory site based on the current monitoring point.
[0109] Furthermore, the above-mentioned “updating the status of the initial monitoring point to obtain the current monitoring point” further includes the following steps:
[0110] Determine the abnormal number of workers in abnormal state and the normal number of workers in normal state in the same uploaded video capture clip, and generate a quantity indication area with a preset radius based on the center point of the initial monitoring point as the center of the circle;
[0111] In the quantity indication area, text numbers corresponding to the abnormal quantity and the normal quantity are added respectively to obtain the current monitoring point.
[0112] For example, in this embodiment, when a video capture segment is identified as having staff in an abnormal state, the server will separately count the abnormal number of staff in the abnormal state and the normal number of staff in the normal state in the video capture segment; at the same time, with the center point of the initial monitoring point as the center of the circle, a quantity indication area with a preset radius is generated, and text numbers corresponding to the abnormal number and the normal number are added to the quantity indication area respectively; here, by setting the quantity indication area with text numbers added, the management personnel can quickly know which real monitoring areas have staff in an abnormal state when viewing the factory model, and obtain the corresponding abnormal number and normal number, which is convenient for the management personnel to quickly read the corresponding data and can also improve the corresponding display effect.
[0113] Here, the above-mentioned preset radius can be set based on actual needs, and this embodiment does not make any specific limitation on this.
[0114] Furthermore, in this embodiment, the above-mentioned “adding text numbers corresponding to the abnormal quantity and the normal quantity in the quantity indication area respectively” may also include the following steps:
[0115] Generating a first number filling area and a second number filling area located on both sides of the center point in the quantity indication area;
[0116] Generate a first text number corresponding to an abnormal number and a second text number corresponding to a normal number, and fill the first text number and the second text number into the first number filling area and the second number filling area respectively;
[0117] Generate an area connection line with the center point as the midpoint of the line segment, wherein a first end of the area connection line is connected to the first digital filling area, and a second end of the area connection line is connected to the second digital filling area;
[0118] The first text number filled into the first number filling area is displayed by flashing at a preset frequency.
[0119] For example, in this embodiment, after the corresponding quantity indication area is obtained in the above steps, the first digital filling area and the second digital filling area located on both sides of the center point can be generated based on the center point of the initial monitoring point; then, the first text number corresponding to the abnormal number and the second text number corresponding to the normal number are filled into the first digital filling area and the second digital filling area respectively, thereby realizing the simultaneous display of the two text numbers, which is convenient for the management personnel to simultaneously know the normal number and the abnormal number corresponding to the actual monitoring area; then, in order to be able to visually establish the correlation between the first digital filling area and the second digital filling area, a regional connecting line with the center line as the midpoint of the line segment can also be generated, and the two ends of the regional connecting line are respectively connected to the first digital filling area and the second digital filling area; finally, since the management personnel are more concerned about the abnormal number of staff in abnormal state, therefore, in order to be able to highlight the first text number, the first text number can also be controlled to flash at a preset frequency, thereby improving the corresponding display effect, and at the same time can also help the management personnel quickly obtain the corresponding data, and improve the corresponding work convenience.
[0120] Here, corresponding proportional text can also be generated based on the ratio of normal quantity to abnormal quantity, and a proportional area for filling the proportional text can be generated at the current monitoring point, wherein the proportional area can be located above the area connecting line so that the proportional text can be highlighted, which not only increases the diversified display of data, but also helps managers obtain more data related to abnormal quantities.
[0121] In step S110, the following contents are included:
[0122] In response to the management end's interaction with the current monitoring point, the corresponding video capture clip is retrieved for display.
[0123] For example, in this embodiment, when the management terminal interacts with any current monitoring point (for example, by touching), the server will retrieve the video capture clip corresponding to the current monitoring point for display.
[0124] Here, the management end can be understood as a terminal device such as a mobile phone, computer, etc. used by the management personnel.
[0125] Furthermore, the above-mentioned “in response to the interaction of the management terminal with the current monitoring point, calling up the corresponding video capture segment for display” also includes the following steps:
[0126] In response to the management end interacting with the current monitoring point for a first preset time, establishing an initial emotion display form;
[0127] Generating, in the initial emotion display form, display slot groups having the same number as the number of the personnel, wherein each display slot group includes an information slot, a status slot, and a sub-video slot;
[0128] Filling the personal information, emotional state and sub-video corresponding to each staff member included in the video collection segment into the information slot, state slot and sub-video slot belonging to the same display slot group respectively;
[0129] The display slot group corresponding to the abnormal emotional state is marked with a first color, and the display slot group corresponding to the normal emotional state is marked with a second color different from the first color, to obtain a current emotional display form;
[0130] The current emotion display form is sent to the management end for display.
[0131] For example, in this embodiment, when the manager interacts with any current monitoring point through the management terminal (for example, by touch), the server will correspondingly establish an initial emotion display form, wherein the initial emotion display form has display slot groups with the same number as the number of personnel, and each display slot group includes an information slot for filling in personal information, a state slot for filling in an emotional state, and a sub-video slot for filling in a sub-video; after completing the corresponding data filling, the server will mark the display slot groups corresponding to different emotional states with different colors, that is, the corresponding emotional state is an abnormal state. The display slot group corresponding to the staff member whose emotional state is in an abnormal state is marked with one color (first color), and the display slot group corresponding to the normal emotional state is marked with another color (second color); thereby obtaining the current emotional display form, and sending the current emotional display form to the management end for display; the subsequent management personnel can quickly locate the display slot group corresponding to the staff member whose emotional state is in an abnormal state according to different color marks, and further interact with the current emotional display form to call up each display slot group for viewing, so that the management personnel can obtain the emotional state, sub-video and other content corresponding to each staff member.
[0132] Secondly, in this embodiment, the inventors found in further research that since the same sub-video may include video content corresponding to a certain staff member over a longer period of time, such as 5 minutes, 10 minutes, or even 30 minutes of video content, and the duration corresponding to the emotional changes of the staff member within this longer period of time may account for a relatively small proportion, such as 10%. This will cause managers to waste more working time in the process of viewing the sub-video, thereby reducing viewing efficiency to a certain extent.
[0133] In order to solve this problem, in this embodiment, the inventors proposed the following technical solution:
[0134] Decomposing the video capture fragments to obtain audio track fragments and image track fragments with the same video duration;
[0135] Identify the audio track segments, determine that the audio sub-segments corresponding to the abnormal state are included, and delete the other segments of the audio track segments except the audio sub-segments to obtain the audio track segments to be merged;
[0136] Identifying the image track segments to determine the image sub-segments corresponding to the abnormal state; and deleting the other segments of the image track segments except the image sub-segments to obtain the image track segments to be fused;
[0137] The audio track segments to be merged and the image track segments to be merged are merged to obtain an initial merged video, and each blank segment in the initial merged video is determined and deleted to obtain a current merged video.
[0138] For example, in this embodiment, since the video is usually composed of images and audio, that is, each video includes an image track segment and an audio track segment with the same video duration, based on this, by dismantling each video acquisition segment respectively, the audio track segment and the image track segment corresponding to each video acquisition segment can be obtained; wherein, the audio track segment and the image track segment respectively include audio sub-segments and image sub-segments corresponding to the abnormal emotional state, and these audio sub-segments and image sub-segments are also what the management personnel need to watch and understand, therefore, the audio track segment and the image track segment except the audio sub-segments and the image sub-segments can be deleted respectively, and the two can be further fused, and the blank segments in the initial fused video obtained by fusion can be deleted to obtain the current fused video including only the audio sub-segments and image sub-segments corresponding to the abnormal emotional state, so that the management personnel can quickly view it, thereby improving the corresponding viewing efficiency.
[0139] Furthermore, the above-mentioned “sending the current emotion display form to the management end for display” further includes the following steps:
[0140] In response to the management end interacting with any display slot group whose corresponding emotional state is abnormal for a preset time, a communication group is established, and a target terminal of a staff member corresponding to the display slot group is added to the communication group;
[0141] In response to the confirmation feedback of the management end based on the modification request sent by the target terminal, the corresponding display slot group is marked with a second color.
[0142] For example, in this embodiment, when the manager interacts with any display slot group whose corresponding emotional state is abnormal for a preset time (for example, by touch) through the management terminal, for example, when the preset time is 2s, the manager needs to maintain 2s or more when clicking on the display slot group by touch, and then the corresponding communication group will be established, and the target terminal of the staff member corresponding to the display slot group will be added to the communication group, and the target terminal can be understood as a terminal device such as a mobile phone corresponding to the staff member. Generating a communication group enables the manager to communicate with the staff member whose emotional state is abnormal in a timely manner through the management terminal. When it is found that the emotional state of the employee is normal or the emotional state of the employee turns to normal after communication, the management terminal can send a confirmation feedback to the server based on the modification request sent by the target terminal. After receiving the confirmation feedback, the server will mark the corresponding display slot group with a second color, that is, change the marking color of the display slot group from the original first color to the second color.
[0143] According to the scheme of this embodiment, first, after dividing the factory site, various real monitoring areas can be obtained, and corresponding real video acquisition devices can be set in each real monitoring area; then, the factory site is three-dimensionally modeled in the digital twin space to obtain a factory model of the corresponding real factory, and initial monitoring points corresponding to the real video acquisition devices are generated in each virtual monitoring area; then, video of each staff member in the real monitoring area is captured by the real video acquisition device, and corresponding emotion recognition is performed after obtaining the video capture clips to determine the emotional state of each staff member; then, when the emotional state of any staff member is abnormal, the video capture clip can be uploaded to the digital twin space to determine the initial monitoring point of the video capture clip, and the status is updated to obtain the current monitoring point; finally, the management end can interact with the current monitoring point to retrieve the corresponding video capture clip for display. The present invention further determines the corresponding emotional state by acquiring real-time data of the staff, thereby improving the corresponding recognition accuracy. In addition, it can also use the digital twin space for positioning, so that the management end can discover in real time through the digital twin space which staff members in which real monitoring areas have abnormal emotional states, thereby facilitating the management end to conduct corresponding emotional intervention, thereby greatly improving management efficiency and work efficiency.
[0144] Another embodiment of the present invention provides a smart terminal user emotion recognition data processing device, Figure 2 As a corresponding device block diagram, the system includes:
[0145] A division module is configured to divide the factory site into various real monitoring areas, and respectively set a corresponding real video acquisition device in each monitoring area;
[0146] A modeling module is configured to perform three-dimensional modeling based on the digital twin space based on the factory site, obtain a factory model including virtual monitoring areas corresponding to the actual monitoring areas, and generate an initial monitoring point corresponding to the actual video acquisition device in each virtual monitoring area;
[0147] The recognition module is configured to perform video capture of each staff member located in the real monitoring area based on the real video capture device to obtain video capture segments, and perform emotion recognition based on the video capture segments to determine the emotional state of each staff member, wherein the emotional state includes a normal state and an abnormal state;
[0148] An uploading module is configured to upload the video acquisition segment to the digital twin space when the emotional state of any staff member is abnormal, determine the corresponding initial monitoring point based on the real video acquisition device corresponding to the video acquisition segment, and update the status of the initial monitoring point to obtain the current monitoring point;
[0149] The display module is configured to retrieve the corresponding video capture clip for display in response to the management terminal's interaction with the current monitoring point.
[0150] In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the examples of the present invention. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to implement the content of the present invention described herein, and the above description of specific languages is for the purpose of disclosing the preferred embodiment of the present invention.
[0151] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0152] Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in the devices described in the embodiment, or alternatively may be located in one or more devices different from the devices in the examples. The modules in the foregoing examples may be combined into one module or may be divided into multiple submodules.
[0153] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. All features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device so disclosed may be combined in any combination, except that at least some of such features and / or processes or units are mutually exclusive. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.
[0154] In addition, some of the embodiments are described herein as methods or combinations of method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor with necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein of the device embodiments are examples of devices for implementing the functions performed by the elements for the purpose of implementing the invention.
[0155] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved, and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.
Claims
1. A method for processing emotion recognition data of intelligent terminal users, It is characterized in that The following steps are involved: The factory site is divided into various real-life monitoring areas, and a corresponding real-life video acquisition device is set in each real-life monitoring area; Based on the factory site, three-dimensional modeling based on the digital twin space is carried out to obtain a factory model including virtual monitoring areas corresponding to the actual monitoring areas, and an initial monitoring point corresponding to the actual video acquisition device is generated in each virtual monitoring area; Based on the real video acquisition device, video is acquired for each staff member in the real monitoring area to obtain a video acquisition segment, and emotion recognition is performed based on the video acquisition segment to determine the emotional state of each staff member, wherein the emotional state includes a normal state and an abnormal state; When the emotional state of any staff member is abnormal, the video capture clip is uploaded to the digital twin space, the corresponding initial monitoring point is determined based on the real video capture device corresponding to the video capture clip, and the status of the initial monitoring point is updated to obtain the current monitoring point; In response to the interaction of the management terminal with the current monitoring point, the corresponding video acquisition segment is retrieved for display; The initial monitoring point is updated to obtain the current monitoring point, including: Determine the abnormal number of workers in abnormal state and the normal number of workers in normal state in the same uploaded video capture clip, and generate a quantity indication area with a preset radius based on the center point of the initial monitoring point as the center of the circle; In the quantity indication area, text numbers corresponding to the abnormal quantity and the normal quantity are added respectively to obtain the current monitoring point.
2. The method for processing emotion recognition data of a smart terminal user according to claim 1, It is characterized in that Emotion recognition is performed based on the video capture clips to determine the emotional state of each staff member, including: Based on face recognition of the video collection segment, the number of each staff member included in the video collection segment is determined, and the video collection segment is copied based on the number of staff members to obtain video collection segments corresponding to different staff members; Based on different staff members, content of each video collection segment is intercepted respectively, and the obtained video content includes sub-videos of different staff members; Based on each of the sub-videos, expression recognition and voice recognition are respectively performed to determine the current expression state and the current voice state of each of the staff members; Data fusion is performed based on the current expression state and the current voice state, and the emotional state of each staff member is determined based on the data fusion results.
3. The method for processing emotion recognition data of a smart terminal user according to claim 2, It is characterized in that Performing data fusion based on the current expression state and the current voice state, and determining the emotional state of each staff member based on the data fusion results, including: Retrieving a preset expression evaluation table, wherein the preset expression evaluation table includes expression evaluation scores corresponding to different expression states; Traversing the preset expression evaluation table to determine the expression evaluation score corresponding to the current expression state; Retrieving a preset sound evaluation table, wherein the preset sound evaluation table includes sound evaluation scores corresponding to different sound states; Traversing the preset sound evaluation table to determine the sound evaluation score corresponding to the current sound state; Based on the expression evaluation score and the voice evaluation score, a preset proportion is summed, and based on each summation result, an emotion score corresponding to each staff member is determined; Retrieving a state evaluation table, wherein the state evaluation table includes different first score intervals and different emotional states corresponding to the different first score intervals; The state evaluation table is traversed to determine the emotional state corresponding to the first score interval containing the emotional score.
4. The method for processing emotion recognition data of a smart terminal user according to claim 3, It is characterized in that The current sound state at least includes sound volume, sound tone and sound content, and the preset sound evaluation table at least includes a preset volume evaluation table, a preset tone evaluation table and a preset content evaluation table, wherein the preset volume evaluation table includes different volume intervals and different volume evaluation values corresponding to different volume intervals, the preset tone evaluation table includes different tone intervals and different tone evaluation values corresponding to different tone areas, and the preset content evaluation table includes different text contents and different content evaluation values corresponding to different text contents; Traversing the preset sound evaluation table to determine the sound evaluation score corresponding to the current sound state, including Traversing the preset volume evaluation table to determine a volume evaluation value corresponding to a volume interval including the sound volume; Traversing the preset tone evaluation table to determine the tone evaluation value corresponding to the tone interval including the tone of the sound; Traversing the preset content evaluation table to determine a content evaluation value corresponding to the text content included in the sound content; Randomly select two of the volume evaluation value, the tone evaluation value and the content evaluation value and sum them to obtain a sound evaluation score corresponding to the current sound state.
5. The method for processing emotion recognition data of a smart terminal user according to claim 3, It is characterized in that Setting emotional thresholds based on the personal information corresponding to all staff members; The preset proportions are summed based on the expression evaluation score and the voice evaluation score, and the emotion scores corresponding to the staff members are determined based on the summation results, including: Obtaining a first value based on the sum of a preset ratio of the expression evaluation score and the sound evaluation score; Determining personal information of a staff member corresponding to the sub-video, and determining an emotion threshold corresponding to the staff member based on the personal information; A second value is obtained based on the sum of the first value and the emotion threshold, and the second value is determined as the emotion score of the corresponding staff member.
6. The method for processing emotion recognition data of a smart terminal user according to claim 1, It is characterized in that Adding text numbers corresponding to the abnormal quantity and the normal quantity in the quantity indication area respectively includes: Generating a first number filling area and a second number filling area located on both sides of the center point in the quantity indication area; Generate a first text number corresponding to an abnormal number and a second text number corresponding to a normal number, and fill the first text number and the second text number into the first number filling area and the second number filling area respectively; Generate an area connection line with the center point as the midpoint of the line segment, wherein a first end of the area connection line is connected to the first digital filling area, and a second end of the area connection line is connected to the second digital filling area; The first text number filled into the first number filling area is displayed by flashing at a preset frequency.
7. The method for processing emotion recognition data of a smart terminal user according to claim 5, It is characterized in that In response to the interaction of the management end with the current monitoring point, the corresponding video capture clip is retrieved for display, including: In response to the management end interacting with the current monitoring point for a first preset time, establishing an initial emotion display form; Generating, in the initial emotion display form, display slot groups having the same number as the number of the personnel, wherein each display slot group includes an information slot, a status slot, and a sub-video slot; Filling the personal information, emotional state and sub-video corresponding to each staff member included in the video collection segment into the information slot, state slot and sub-video slot belonging to the same display slot group respectively; The display slot group corresponding to the abnormal emotional state is marked with a first color, and the display slot group corresponding to the normal emotional state is marked with a second color different from the first color, to obtain a current emotional display form; The current emotion display form is sent to the management end for display.
8. The method for processing intelligent terminal user emotion recognition data according to claim 7, It is characterized in that The current emotion display form is sent to the management end for display, and then the following steps are further included: In response to the management end interacting with any display slot group whose corresponding emotional state is abnormal for a preset time, a communication group is established, and a target terminal of a staff member corresponding to the display slot group is added to the communication group; In response to the confirmation feedback of the management end based on the modification request sent by the target terminal, the corresponding display slot group is marked with a second color.
9. A smart terminal user emotion recognition data processing device, It is characterized in that include: A division module is configured to divide the factory site into various real monitoring areas, and respectively set a corresponding real video acquisition device in each monitoring area; A modeling module is configured to perform three-dimensional modeling based on the digital twin space based on the factory site, obtain a factory model including virtual monitoring areas corresponding to the actual monitoring areas, and generate an initial monitoring point corresponding to the actual video acquisition device in each virtual monitoring area; The recognition module is configured to perform video capture of each staff member located in the real monitoring area based on the real video capture device to obtain video capture segments, and perform emotion recognition based on the video capture segments to determine the emotional state of each staff member, wherein the emotional state includes a normal state and an abnormal state; An uploading module is configured to upload the video acquisition segment to the digital twin space when the emotional state of any staff member is abnormal, determine the corresponding initial monitoring point based on the real video acquisition device corresponding to the video acquisition segment, and update the status of the initial monitoring point to obtain the current monitoring point; A display module is configured to retrieve corresponding video capture clips for display in response to the interaction of the management terminal with the current monitoring point; The initial monitoring point is updated to obtain the current monitoring point, including: Determine the abnormal number of workers in abnormal state and the normal number of workers in normal state in the same uploaded video capture clip, and generate a quantity indication area with a preset radius based on the center point of the initial monitoring point as the center of the circle; In the quantity indication area, text numbers corresponding to the abnormal quantity and the normal quantity are added respectively to obtain the current monitoring point.
