scieee AI-readable full text Open interactive document viewer

Spatio-temporal action localization with Deep Learning

Monteiro, Carlos Filipe Batista Cardoso

Abstract

The system that detects and identifies human activities are named human action recognition. On the video approach, human activity is classified into four different categories, depending on the complexity of the steps and the number of body parts involved in the action, namely gestures, actions, interactions, and activities, which is challenging for video Human action recognition to capture valuable and discriminative features because of the human body’s variations. So, deep learning techniques have provided practical applications in multiple fields of signal processing, usually surpassing traditional signal processing on a large scale. Recently, several applications, namely surveillance, human-computer interaction, and video recovery based on its content, have studied violence’s detection and recognition. In recent years there has been a rapid growth in the production and consumption of a wide variety of video data due to the popularization of high quality and relatively low-price video devices. Smartphones and digital cameras contributed a lot to this factor. At the same time, there are about 300 hours of video data updates every minute on YouTube. Along with the growing production of video data, new technologies such as video captioning, answering video surveys, and video-based activity/event detection are emerging every day. From the video input data, the detection of human activity indicates which activity is contained in the video and locates the regions in the video where the activity occurs. This dissertation has conducted an experiment to identify and detect violence with spatial action localization, adapting a public dataset for effect. The idea was used an annotated dataset of general action recognition and adapted only for violence detection.

Full text

December 2021 Carlos Filipe Batista Cardoso Monteiro Spatio-temporal Action Localization with Deep Learning December 2021 Carlos Filipe Batista Cardoso Monteiro Spatio-temporal Action Localization with Deep Learning i Carlos Filipe Batista Cardoso Monteiro Spatio-temporal Action Localization with Deep Learning Master Dissertation Master Degree in Informatics Engineering Dissertation oriented by Paulo Novais Dalila Durães December 2021 i DIREITOS DE AUTOR E CONDIÇÕES DE UTILIZAÇÃO DO TRABALHO POR TERCEIROS Este é um trabalho académico que pode ser utilizado por terceiros desde que respeitadas as regras e boas práticas internacionalmente aceites, no que concerne aos direitos de autor e direitos conexos. Assim, o presente trabalho pode ser utilizado nos termos previstos na licença abaixo indicada. Caso o utilizador necessite de permissão para poder fazer um uso do trabalho em condições não previstas no licenciamento indicado, deverá contactar o autor, através do RepositóriUM da Universidade do Minho. Atribuição-NãoComercial-SemDerivações CC BY-NC-ND https://creativecommons.org/licenses/by-nc-nd/4.0/ INTRODUCTION ii Acknowledgements I am grateful to teachers Paulo Novais and Dalila Durães who have accompanied and guided me in my work since the beginning, showing the steps I should take, where I should look for knowledge and how I should develop my report. I also thank the student Flávio Santos, who is doing his PhD, for having introduced me to several Deep-Learning techniques and helped me to understand them. INTRODUCTION iii STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho. Universidade do Minho, 29/12/2021 Signature: ________________________________________ INTRODUCTION iv ABSTRACT The system that detects and identifies human activities are named human action recognition. On the video approach, human activity is classified into four different categories, depending on the complexity of the steps and the number of body parts involved in the action, namely gestures, actions, interactions, and activities, which is challenging for video Human action recognition to capture valuable and discriminative features because of the human body’s variations. So, deep learning techniques have provided practical applications in multiple fields of signal processing, usually surpassing traditional signal processing on a large scale. Recently, several applications, namely surveillance, human-computer interaction, and video recovery based on its content, have studied violence’s detection and recognition. In recent years there has been a rapid growth in the production and consumption of a wide variety of video data due to the popularization of high quality and relatively low-price video devices. Smartphones and digital cameras contributed a lot to this factor. At the same time, there are about 300 hours of video data updates every minute on YouTube. Along with the growing production of video data, new technologies such as video captioning, answering video surveys, and video-based activity/event detection are emerging every day. From the video input data, the detection of human activity indicates which activity is contained in the video and locates the regions in the video where the activity occurs. This dissertation has conducted an experiment to identify and detect violence with spatialaction localization, adapting a public dataset for effect. The idea was used an annotated dataset of general action recognition and adapted only for violence detection. Keywords: Action Localization, Action Recognition, Spatio-Temporal, Violence Detection INTRODUCTION v RESUMO O sistema que deteta e identifica as atividades humanas é denominado reconhecimento da ação humana. Na abordagem por vídeo, a atividade humana é classificada em quatro categorias diferentes, dependendo da complexidade das etapas e do número de partes do corpo envolvidas na ação, a saber, gestos, ações, interações e atividades, o que é desafiador para o reconhecimento da ação humana do vídeo para capturar características valiosas e discriminativas devido às variações do corpo humano. Portanto, as técnicas de deep learning forneceram aplicações práticas em vários campos de processamento de sinal, geralmente superando o processamento de sinal tradicional em grande escala. Recentemente, várias aplicações, nomeadamente na vigilância, interação humanocomputador e recuperação de vídeo com base no seu conteúdo, estudaram a deteção e o reconhecimento da violência. Nos últimos anos, tem havido um rápido crescimento na produção e consumo de uma ampla variedade de dados de vídeo devido à popularização de dispositivos de vídeo de alta qualidade e preços relativamente baixos. Smartphones e cameras digitais contribuíram muito para esse fator. Ao mesmo tempo, há cerca de 300 horas de atualizações de dados de vídeo a cada minuto no YouTube. Junto com a produção crescente de dados de vídeo, novas tecnologias, como legendagem de vídeo, respostas a pesquisas de vídeo e deteção de eventos / atividades baseadas em vídeo estão surgindo todos os dias. A partir dos dados de entrada de vídeo, a deteção de atividade humana indica qual atividade está contida no vídeo e localiza as regiões no vídeo onde a atividade ocorre. Esta dissertação conduziu uma experiência para identificar e detetar violência com localização espacial, adaptando um dataset público para efeito. A ideia foi usada um conjunto de dados anotado de reconhecimento de ações gerais e adaptá-la apenas para deteção de violência. Palavras-Chave: Localização de Ações, Reconhecimento de Ação, Espácio-temporal, Deteção de Violência INTRODUCTION vi Table of Contents 1 Introduction .............................................................................................................. 1 1.1 Context ........................................................................................................................ 1 1.2 Motivation ................................................................................................................... 3 1.3 Objectives .................................................................................................................... 4 1.4 Research Questions ...................................................................................................... 5 1.5 Investigation Methodology ........................................................................................... 5 1.6 Report Structure .......................................................................................................... 6 2 Background ............................................................................................................... 7 2.1 Action Recognition ....................................................................................................... 8 2.1.1 Visual Approach ................................................................................................................. 8 2.1.2 VIsual Tracking ................................................................................................................. 11 2.1.3 Spatio-Temporal Action Localization ............................................................................... 12 2.1.4 Violence Detection .......................................................................................................... 12 2.1.5 Publics Datasets ............................................................................................................... 13 2.2 Deep-learning Techniques .......................................................................................... 17 2.2.1 SlowFast Networks .......................................................................................................... 17 2.2.2 Non-local Neural networks .............................................................................................. 18 2.2.3 Faster R-CNN.................................................................................................................... 19 2.2.4 Mask R-CNN ..................................................................................................................... 21 2.2.5 C2D-Resnet 50 ................................................................................................................. 22 2.2.6 I3D .................................................................................................................................... 23 2.2.7 X3D ................................................................................................................................... 23 3 Methods and Methodology ..................................................................................... 27 3.1 AVA Dataset ............................................................................................................... 27 3.2 Problems Faced .......................................................................................................... 29 3.3 Proposed Architecture ................................................................................................ 32 3.4 Videos Preprocessing ................................................................................................. 33 3.5 Label Transformation ................................................................................................. 36 4 Results and Discussion ............................................................................................. 39 4.1 Experiment 1 .............................................................................................................. 40 4.2 Experiment 2 .............................................................................................................. 43 INTRODUCTION 2 1.2 CONTEXT Action recognition has been studied, with different perspectives, for several disciplines, including psychology, biomechanics, and computer vision [1]. In these studies, different approaches applied included either visual-based or audio-based detection algorithms, or more robust and complex techniques such as audiovisual-based algorithms. The methods used for recognition can be classified into two categories: local approaches based on points of interest or global methods based on frames. The methods based on points of interest begin to detect the first key points of space-time [2] [3]. Descriptive information is then extracted at each of these points using one of several space-time descriptors [4] [5]. This method represents human activity based in video surveillance. A video can be represented using, for example, resource bag techniques [6] [7]. These techniques are generally very resistant to camera movement and provide excellent performance demonstrated in several challenging benchmarks [6] [7] [8]. However, when videos contain few points of interest in space-time (little movement) or a lot of movement, they may fail to efficiently deliver meaningful representations. On the other hand, global methods use global resources, such as optical flow, to represent the state of motion in the frame in given time [9] [10]. To address the problem of action recognition, some authors [10], using action descriptors with optical flow histograms, based on horizontal and vertical directions. Other authors [9] use optical flow to obtain sampled points for dense tracking and then used these dense trajectories to calculate local descriptors for recognition of actions. A good resource for detection and motion tracking is the use of optical flow, since it can describe the coherent motion of moving objects. For this reason, it has been widely used for tracking and moving representation objects in several research. Violence detection is a particular problem regarding the great problem of the action recognition. The objective of violence detection is to automatically and effectively determine whether the violence occurs or not within a short period of time. In recent years, the automatic recognition of human actions on videos has become increasingly important for applications such as video surveillance, human-computer interaction and video retrieval based on their content [11]. INTRODUCTION 3 1.3 MOTIVATION In recent years there has been a rapid growth in production and consumption of a wide variety of video data due to the popularization of high quality and relatively low-price video devices. Smartphones and digital cameras contributed a lot to this factor. At the same time, on YouTube, there are about 300 hours of video data updates every minute. Along with the growing production of video data, new technologies such as video captioning, answering video surveys and video-based activity/event detection are emerging every day. From the video input data, the detection of human activity not only indicates which activity is contained in the video but also locates the regions in the video where the activity occurs (as shown in Figure 1) [11]. Figure 1 - Human Action Recognition [11] Together with the growing production of video data, new technologies, as video subtitling, answers to video searches and detection of events/activities based on video are appearing every day. From the video input data, the human action detection not only indicates the action contained on the video, but also locate the regions of the video where the action takes place. Several deep learning models can be used in human action recognition [12]. Although our goal is to develop models that cover a multisensory integration process, in this stage, we will focus on optimizing the video signal learning process and afterward expand the architectures for efficient human action recognition, through the application of audiovisual information. The reason for choosing this path is twofold the different “learning dynamics” between the visual INTRODUCTION 4 and audio information – audio generally train much faster than visual ones, which can lead to generalization issues during joint audiovisual training. With further development in human action recognition models, we will be able to develop new and improved autonomous systems. These systems will be able to perceive the world more as humans allowing them to react to situations without human presence. These systems have applications in various areas like in security with intelligent surveillance systems, in medicine with healthcare monitoring systems, in day-to-day life with active virtual assistants for smart homes that will improve quality of life of the residents and with action recognition we may be able to improve actual human-machine interfaces. The purpose of violence detection is automatically and effectively determined if violence occurs or not. Anyway, the detection of violence itself is an extremely difficult problem since the concept of violence is subjective. We may define violence as any situation or action that may cause physical or mental harm to one or more persons. As violence we may define any situation or action that may cause physical or mental harm to one or more persons. Violence Detection is an important issue not only at the application level but also at the scientific level because it has characteristics that differentiate the recognition of generic actions. 1.4 OBJECTIVES This research's main objective is to use the techniques of action recognition to create the “Localization of Space-time Action with deep learning” and detect violence. However, for this main objective to be fulfilled, it is necessary to carry out tasks designated as specific objectives. Thus, we can describe a set of specific objectives that will allow achieving the main goal: • Understand and predict the concepts of human action recognition. This objective intends to carry out exhaustive research on recognizing human actions, the most used techniques, and applying some examples used in the literature. At the end of this phase, it is intended to choose deep learning architectures to work. • Research and selection of a suitable public dataset to be used during this master's thesis. Search for all existing public datasets and analyze their characteristics. Based on the hardware characteristics that I can apply, choose the appropriate dataset from this analysis. INTRODUCTION 5 • Based on state of the art, apply the model to the chosen dataset. Change the necessary parameters, check the results obtained and fine-tune the model for the intended objective. • Obtain a final model with the respective training on the localization of space-time action, analyze the results and compare with the existing models. 1.5 RESEARCH QUESTIONS This subsection present some of the research questions of this thesis: • Is it possible to create a new classification of new classes for a public dataset? • Is it possible to detect violence in this public dataset? • What is the accuracy of the prediction? 1.6 INVESTIGATION METHODOLOGY Prior to writing this dissertation, a thorough research was required to better comprehend possible approaches to solve the problem in hands. To facilitate this process, Design Science Research (DSR) was used [13]. DSR is a research strategy which is very effective in the computer science field. The DSR methodology (Figure 2), is a rigorous scientific research methodology that well defines all the six main steps of research, which consist of: ✓ Identification of the problem and motivation – what need to be solved and the scientific value of it; ✓ Definition of the objectives to be attained – what are the solution objectives according to the identified problem and the needs of the research problem; ✓ Development of the solution – design the features and details of the solution and develop the respective product to solve the problem identified; ✓ Demonstration – all the experiments and simulation evolved in the process of test and demonstration, which lead to the evaluation of the product; ✓ Evaluation – compare the defined objectives for the solution to have with the practical observed results. Verify if the solution worked out for the problem identified; ✓ Communication – present the audience with the solution developed and the need for it. Demonstrate the importance of the problem and consequent solution. INTRODUCTION 6 Figure 2 – Design Research Process Schema [13] 1.7 REPORT STRUCTURE This dissertation is structured in 5 sections. • In section 1, an Introduction is given to bring the reader into contact with the problem, motivation, to specify the objectives of the dissertation, the research questions, and the investigation methodology. • The section 2 introduced two different concepts: action recognition, and deep learning techniques. The action recognition explains the concepts of visual approach, visual tracking, spatio-temporal action location, violence detection, and public datasets. The Deep learning techniques presents some models that are used in literature for the problem of action recognition and violence detection. • Section 3, it will present and explain methods and methodology used. It’s begins with the explanation of AVA dataset, following by problem faced, proposed architecture, video preprocessing, and label transformation. • The following section, section 4, describes the results and discussion of the two experiments. • Finally, this dissertation ends with the conclusions and future work. 7 2 BACKGROUND BACKGROUND 8 2.1 ACTION RECOGNITION 2.1.1 VISUAL APPROACH Automated surveillance occurs if cameras are constantly monitored by a computer, and in real-time, trigger an event when something suspicious happens. To violence detection in video, it is difficult to capture effective and discriminative features because of the variations of the human body. The modifications are essentially caused by scale, viewpoint, mutual occlusion, and dynamic scenes. In the last years, it was published several previous surveys about abnormal human behavior recognition [14] [15] [16], human detection behavior [17] [18], crowed behavior (Maheshwari, 2016), datasets human recognition [19] [20] [21], and foreground segmentation [22]. Also, there are some research of fast violent detection [23] [24] [25] [26] [27], multi-features descriptors for human activity tracking and recognition [28], segmentation [22], and vision enhanced color fusion techniques [29]. The author [14] study the two main steps composing a video surveillance system, which are the behavior representation and behavior modelling. On behavior representation, it's presented the most popular features for global features (optical flow, and motion information), local features (based on interest points: STIP, CSTIP, MoSIFT or Spatio-temporal volume, cube, blob), widely used for falls detection (shape), adapted for crowd monitoring (texture), and adapted for tracking a single person (object tracking and trajectory extraction). On classifying abnormal behavior recognition methods it's separated in: (i) modelling frameworks and classification methods; and (ii) scene density and moving object interaction. In modelling frameworks and classification methods it's made a comparison of classification methods categories: supervised, semi-supervised: rule-based method, semi-supervised: model-based method, and unsupervised methods. Also made a comparison of frameworks and classification methods for abnormal behavior detection. On scene density and moving object interaction it presented a scene density and moving object interaction-based grouping for an uncrowded and crowded scene. On performance evaluation, it's divided into datasets and evaluation metrics. In datasets, it presented available datasets for video surveillance systems evaluation. In evaluation metrics it summarizes the performance evaluation results, BACKGROUND 9 accuracy, equal error rate, area under, and curve. On existing video surveillance systems, it presents a summary of existing video surveillance systems. The author [17] showed a survey of automated human behavior analysis from surveillance videos, which begin to present a map representing the human activity prediction architecture and literature survey of low-level processing techniques, namely motion detection methods, object classification methods, and motion tracking methods. Then high-level processing techniques are presented: (a) pre-processing and human behavior recognition and analysis, which compared activities recognized in different works; (b) a sample of semantic descriptions used in the state of art, (c) predicting the activities of a person with respect to an object, (d) performance evaluation, and (e) comparison of low-level and high-level techniques in human behavior analysis. Finally, challenges in human behavior analysis mentioned cavities, human body modelling, handling occlusions, scene classification, person identification, techniques for activity perception, cameras revisited, modelling scenes, standardization, and domain specificity. The author [18] presented a review of automatic visual detection of human behavior. The authors begin to present an automatic human behavior detection from video keywords by publication year. Also, indicated the techniques used for human behavior detection from video: (i) initialization, (ii) tracking, (iii) pose, and (iv) recognition. The initialization model begins with main approaches and discussion, where it's mentioned comparison of approaches for model initialization. Tracking talks about background segmentation, temporal correspondence, and discussion, which present a comparison of approaches for tracking. Pose estimation mentioned model-free, indirect model use, direct model use, and discussion, where a comparison of approaches for pose estimation is made. Recognition explains scene interpretation, holistic recognition approaches, action primitives and grammar, and discussion, which showed a comparison of approaches for recognition. In addition, a dataset related with human behavior detection, and discussion, where is showed a state-of-the-art- results for human behavior detection datasets. Furthermore, applications with chronological evolution, specifying Human detection using 3D depth images, abnormal activity detection, action recognition from video, player modelling and robotics, pedestrian detection and inhome scenarios, and person tracking and identification. The author [30]present a review of analysis methods for crowd behavior in video surveillance. All the process occurs in three phases: (a) video surveillance; (b) crowd analysis; and (c) BACKGROUND 10 methods to abnormal behavior detection in crowd scene. (a) In video surveillance, the method consists of three major modules: i) background modeling, ii) blob analysis, and iii) crowd detection and tracking. (b) crowd analysis estimated using three basic steps which are preprocessing, object tracking and event/behavior recognition. Preprocessing step can analyses: pixel-level analysis, texture level analysis, object level analysis, and frame-level analysis. Object tracking step can analyses: region-based approach, active contour-based approach, feature based approach, and model-based approach. Event/behavior recognition step applied two approaches: object-based approach and holistic based approach. (c) The methods of abnormal behavior detection in crowded scene can used modeling Gaussian Mixture Modeling (GMM), Social Force Model Method (SFM), Hidden Markov Model (HMM), Correlated Topic Model (CTM), Markov Random Field (MRF), Sequential Monte Carlo (SMC), and Dynamic Oriented Graph (DOG). The author [19] begin for presenting in visual tracking: which dataset for which need. Then presented visual tracking issues: (a) problems inherent to visual tracking, like illumination effects, scene clutter, changes in object appearance, abrupt changes in motion, occlusions, similar appearances, camera motions, appearance/disappearance, and quality of frames; and (b) quantitative evaluation of visual tracking, like: error score, accuracy score, success score, detection scores, curves for comparing tracking algorithms, and robustness of evaluation; and (c) datasets for visual tracking; (d) datasets for scene analysis and understanding based on visual tracking, which present: Human understanding (hand gesture tracking, face tracking, facial expression or emotion, body motion, individual action/activity, behavior, and interactions and social activities), and scene understanding (video surveillance, event, crowd, and sport games). Finally, the author [29] a review has been examined to provide in detail survey and comparison of night vision imaging techniques. Then it showed theoretical foundations of technical framework and paradigms proposed to enhance and fuse color in night images, namely infrared spectrum based self-adaptive enhancement, colormap clustering based color transfer method, contrast and color enhancement techniques, region-based color transfer methods, image enhancement based on selective Retinex fusion algorithm, color estimation and sparse representation, histogram-based enhancement revisited, and nature inspired models. Next, its presented quantitative analysis: image contrast metric, the gradient metric, phase BACKGROUND 11 congruence (PC) metric, color natural metric, and objective evaluation index. Finally, its showed results and comparative analysis. 2.1.2 VISUAL TRACKING From the computer vision community point of view, visual tracking is the process of locating, identifying, and determining the dynamic configuration of one or many moving (possibly deformable) objects (or parts of objects) in each frame of one or several cameras. What makes a good visual tracking algorithm is its capacity to handle all the variability in a video sequence caused by the tracked object, the scene and the camera acquiring the scene. Such variability can be caused, for instance, by pose and illumination variations, occlusions, varying and erratic motions [19]. Visual tracking in video sequences raises many problems that can cause a loss of track on the object. Below is a list of the most challenging ones [19]: • Illumination effects, the light scene environment may change due to external conditions (weather, time of day) or internal conditions (lights on or off). Furthermore, the shadows can change the lighting conditions. Depending on the incidence of light, the variations of light can cause object colors to change over time, which can confuse the visual tracking algorithm. • Scene clutter can happen due to a very textured background or other moving objects in the scene, often like the tracked object. This feature can cause some deviations from the visual tracker, resulting in the loss of tracking of the object. • Changes in object appearance, because of the projection of 3D movements onto a 2D plane (frames from sequences), the tracked object can have geometric deformations. • Abrupt changes in motion, the object velocity can vary with time. This can make the object very hard to track because its movement can become unpredictable and, therefore, the object can be lost. • Occlusions are difficult to handle because some parts of the object (or the whole object) can disappear from the scene. • Similar appearances, when different objects have similar appearances in the video sequence it may be difficult for the visual tracker to discriminate between these objects. BACKGROUND 18 comparison with a high framerate, but due to the reduction of frames to be processed, the time and resources consumption of the operations are reduced. Fast pathway works in parallel with Slow pathway and can be a convolutional model, the difference is that it works with a high framerate and bigger resolution, but less channel capacity. This difference it will harm the model capacity of object detection and classification, but with these operations are already performed by the Slow pathway, the Fast pathway can focus on the action recognition operations that can only be achieved with a high framerate and resolution. 2.2.2 NON-LOCAL NEURAL NETWORKS Non-local Neural networks are a type of architecture inspired in non-local means for image denoising [44]. Non-local means [45] it’s a filter algorithm that uses the pixels of neighbors in the mean calculation. These neighbors are blobs like the one being processed. The Non-local Neural networks also operates using the neighbors for object classification in space and time in case of videos [46]. Figure 3 - SlowFast Network Architecture [44] BACKGROUND 19 Figure 4 - A spacetime non-local operation [46] Spatially the network when classifying an object can assign the same classification to the neighbors, because these being similar will probably be the same type of object, so when assigning this classification to the first processed object it won’t need to process the similar objects, because this already receive the same classification. Temporally, similar to spatially, the network will assign the same classification to similar objects in different frames, because the same object will appear in several frames throughout the video, so there will be no need to process the same object in all the frames of the video with this method. Non-local Neural networks is a architecture type for classification, that reduce the amount of processing needed to assign the same classifications to similar objects. 2.2.3 FASTER R-CNN Figure 5 – LEFT: Faster R-CNN network. RIGHT: Example of detections using RPN (Ren, He, Girshick, & Sun, 2016) BACKGROUND 20 After Fast R-CNN, Ross B.Girshick as proposed Faster R-CNN [47] [48]in 2016. Faster R-CNN integrates feature extraction, proposal extraction and and rectification in a network. In comparision to its predecessor, the performance is greatly improved, especially in detection speed. Faster R-CNN is composed of two modules. The first is a deep fully convolutinal network that porposes regions and the second module is the Fast R-CNN detector [49] that uses the proposed regions. The proposed regions are generated by the RPN network. It takes a image as input and outputs a set of rectangular object proposals, each with a score. The RPN network is divide into two branches, one obtains the foreground and background using the softmax classification anchor and the other calculates the bounding box regression offset for anchors to get accurate proposals. In the last layer of network is obtained proposals through the synthesis of foreground anchors and bounding box regression from the two branches and exclude unlikely proposals. 2.2.3.1 ROIPOOL RolPool [50] is a standard operation to extract a small feature map for each RoI. RoIPool first quantizes a floating-number RoI to the discrete granularity of the feature map, this quantized RoI is then subdivided into spatial compartments that are themselves quantized, and finally feature values covered by each bin are aggregated (usually by max pooling). Figure 6 - LEFT: Quantized RoI and losses, RIGHT:Data Pooling(MaxPooling) [58] BACKGROUND 21 This quantization introduces some loss of data, but this doesn’t affect classification, which is robust to small translations. 2.2.4 MASK R-CNN Mask R-CNN [50] adopts the same two-stage procedure as Faster R-CNN, starting with an identical first stage RPN. In the second stage it still performs candidate box classification and bounding box regression, but in parallel it also outputs a binary mask for each RoI. This binary mask allows for pixel identification of the object which is essential for recent action recognition and object identification methodology. But for the generation fo this mask we need to extract much finer spatial layout of an object, that is achieved through RoIAlign instead of Rolpool. 2.2.4.1 ROIALIGN RolAlign [50] is an improved operation of RolPool design to be used in pixel-accurate masks predictions. The difference between the two is that RolAlign doesn’t use quantization, instead it divides the original Rol in 9 equal size boxes and apply bilinear interpolation inside every one of them and then applys the pooling on these interpolations results. Figure 7 - LEFT: Mask R-CNN framework. RIGHT: Example of Mask R-CNN results [50] Figure 8 - RoIAlign Data Pooling [59] BACKGROUND 22 This way avoids loss of data that is essential in pixel-accurate masks predictions. Green area is additional data used on pooling and blue data is data lost on pooling. 2.2.5 C2D-RESNET 50 C2D is a standard 2D convolution network and ResNet (Residual Network) is used to explore better a neural network depth [51] [52]. ResNet aims to handle the gradient problem that get worse as the number of layers raises due to the network’s difficulty on learning identity functions. In regression analysis, a residual is the difference between a dependent variable and a predictable value that is used to adjust the kernel [53]. The gradient problem can happen for the configuration of gradient-descent learning with back-propagation as often used for deeplearning. The gradient-descent learning consists of successively decreasing the global residual by derived steps until the global minimum is reached [54], as shown in Figure 10. Figure 9 - Difference on Data Usage (RoIAlign-Left, RoIPool-Right) [59] Figure 10 - Gradient-descent learning (Website) [60] BACKGROUND 23 The gradient problem occurs when the gradient becomes small (or large) that prevents the network from learning [55]. ResNet handles this problem caused by identity functions by skipping the layers of the network that are expected to use these functions [51]. 2.2.6 I3D I3D (Two-Stream Inflated 3D ConvNet) is 3D ConvNet that can benefit from ImageNet 2D ConvNet designs and, optionally, from their learned parameters. It also adopts a two-beam configuration with a ConvNet 3D in each because while 3D ConvNets can learn directly from an RGB stream about temporal patterns, their performance can still be greatly improved including an optical-flow stream [56]. I3D can benefit from ImageNet 2D ConvNet designs and their learned parameters because is not a plain C3D but a C2D, whose kernels and filters are inflated into a 3D shape. The filters are usually square and we only male them cubic by adding them a new dimension, usually temporal. And because these architectures have been developed over the years, they are already pre-trained and improved. 2.2.7 X3D Image classification architectures have gone through a evolution of architectual design with progressive expansion of existing models, along the depth of the network, input resolution or channel width. Figure 11 - I3D illustration [56] BACKGROUND 24 Despite this story in the ConvNet image design, a similar development has not been observed for video architectures, because these were usually based on direct temporal extensions of image models. However, a single expansion from a fixed 2D architecture to 3D will be ideal or it will be better to expand or contract along different axis? [57] The model obtains a raw video clip that is sampled with frame rate 1 / γτ in the data layer stage and as input it takes a single frame of size T × S2, where T is the temporal length and S is the height and width of a square spatial crop and therefore, it can be seen as an image classification network. X2D consists of a stage level and bottleneck design that is inspired by recent 2D mobile image classification networks that employ convolution channel separable which are a key building block for efficient ConvNet models. To sequentially expand the X2D from a tiny space network to X3D, a space-time network, are executed the following temporal, spatial, wide and depth dimensions. • X-Fast expands the size of temporal activation, γt, in increasing the frame rate, 1 / γτ and, therefore, temporal resolution, keeping the clip duration constant. • X-Temporal expands the temporal size, γt, by sampling a longer time clip and increasing the frame rate 1 / γτ, to expand the duration and temporal resolution. • X-Spatial expands the spatial resolution, γs, increasing the sampling resolution space of the input video. • X-Depth expands the depth of the network by increasing the number of layers per residual stage by γd times. • X-Width evenly expands the channel number to all layers by an expansion factor of global width γw. • X-Bottleneck expands the width of the internal channel, γb, by the central convolutional filter in each residual block. A simple progressive algorithm for network expansion is implemented, the network uses Forward expansion to expand along the axis, measuring the benefit of each expansion, with Figure 12 - X3D network [57] BACKGROUND 25 high ratings representing better expansion factors, while low ratings represent worse factors. When the network expands to the point of exceeding the desired target, Backward contraction is used which cancels the last expansion performed by doing the reverse that the expansion did, for example, if in the last step Forward expansion increased the framerate by 2, the Backward contraction will reduce the framerate by 2. 26 Page left blank on purpose. 27 3 METHODS AND METHODOLOGY DATASET RESULTS AND DISCUSSION 34 Table 4 - Description Used Dataset. Dataset Original Used Annotated Videos Annotated Videos AVA 80 430 17 143 For this purpose, had to be changed the annotations files from the videos, removing the annotations of videos that will not be used, which was achieved by filtering the annotations by the ids of the indicated actions. Despite being a public dataset, its creators only make available the original videos used in the dataset and the annotations of it, so initially we had to download the videos and shorten them to 15 minutes, because that is the duration that the softwrare is expecting and most of these videos are longer than 15 minutes. This is done using the commands provided presented in Figure 15 and Figure 16. Figure 16 - Commands to shorten the videos to 15 min RESULTS AND DISCUSSION 35 In addition, it is also necessary to extract the frames of each video and organize them in certain directories and certain naming, because the software used in training and validation uses only the frames of the videos and not the videos themselves, and only recognizes these if they are organized in the directories and with the naming expected by the software. (See Figure 18). Figure 18 – Commands to extract the frames from videos For this process, as we were working on a Windows machine and the commands only worked on Linux machines, Colab was initially used to run these commands and download the frames to the machine, with the help of Google Drive, because due to the size of the dataset the Colab machine cannot save the dataset before downloading. Later, due to errors in the dataset and time consumption, this process started to be carried out in a Linux virtual machine created with VirtualBox, which proved to be faster and error-free. Figure 17 – Commands to download the videos RESULTS AND DISCUSSION 36 3.5 LABEL TRANSFORMATION As described in the previous section the AVA dataset was reduced to 17 actions corresponding to interactions between 2 or more people, which is what we need for this project, but the objective is to distinguish between 2 classes, violence, and non-violence. So, it is necessary to transform the 17 classes of the AVA to these 2. For this purpose, was made a manual distribution of the 17 classes to this 2 that will be used, as presented in Table 5 with this distribution:{violence: "fight/hit (a person)”; "kick (a person)"; "push (another person)"//not violence: "give/serve (an object) to (a person)"; "grab (a person)"; "hand clap"; "hand shake"; "hand wave"; "hug (a person)"; "kiss (a person)"; "lift (a person)"; "listen to (a person)";"play with kids"; "sing to (e.g., self, a person, a group)", "take (an object) from (a person)"; "talk to (e.g., self, a person, a group)"; "watch (a person)"}. Afterwards, it was necessary to change the annotations files to comply with this class distribution, by replacing the ids of the old classes with the new ones. Table 5 - Descritpion scenes of used Datsbase. Violence Scenes Non Violence Scenes Fight/hit Give/serve Kick Grab Push Hand clap Hand shake Hand wave Hug Kiss Lift Listen to Play with kids Sing Take Talk watch The final dataset resulted in 101 videos in training, 24 for violence and 77 for not violence, and 42 videos in validation, 10 for violence and 32 for not violence. RESULTS AND DISCUSSION 37 Figure 19 - DataSet Videos Distribution METHODS AND METHODOLOGY 38 Page left blank on purpose. 39 4 RESULTS AND DISCUSSION RESULTS AND DISCUSSION 40 4.1 EXPERIMENT 1 4.1.1. Dataset: The idea was to classify and obtain the action recognition of violence and the spatio-action localization. Firstly, it was made the download of the AVA dataset, which has 80 annotated human actions and 430 videos of 15 minutes each. However, downloading files from YouTube was very slow because the program itself blocks excess downloads. Secondly, as we only intend to recognize scenes of violence and nonviolence, we only considered 17 of the actions noted in the dataset, which shortened the total number of videos from 430 to 143. Thirdly, for the RGB process, it was extracted frames of each video in order to train the model. Finally, the original annotations were changed, removing the annotations from the videos that will not be used and changing the 17 annotated actions to the 2 we want, following our criteria. In the dataset with 143 videos, 119 were for training, and 24 were for validation. On the training videos, 35 were classified as violent, and 83 were classified as non-violence. The global frames annotated as a violence of the 35 videos was 3001, and the global frames annotated as non-violence of the 83 videos was 378390. For the validation, 2 videos were classified as violent, and 22 had non-violence. The global of frames annotated was 562 class of violence and 105440 class of non-violence. These results are present in Table 6. The dataset is unbalanced, but we consider that the scenes of violence in real life are much smaller than those of non-violence. Table 6 - Dataset Experiment 1. Dataset Training Validation Violence Non-Violence Violence Non-Violence Videos 35 83 2 22 Frames 3001 3783390 562 105440 4.1.2. Models and Training Details After having the dataset, and extracting the frames, it is necessary to have a network model. In this experiment, we have used a slowfast model for video classification. So the model has RESULTS AND DISCUSSION 41 two paths to handle different aspects in a video where one path is denoted as slow, and the other is denoted as fast. The slow path is intended to capture fine appearance details using a few large video frames. The fast path captures the dynamic motion of the small video frames. On the slow and fast path, it is used a ResNet network to train the model. Finally, features from the two paths are combined with a Global Average Pooling, a Fully Connected layer, and a Softmax function. Then the Fine-tuning was made with an X3D network. This network contains an Average Pooling, a Fully Connected Layer, a Swish, a Fully Connected Layer, and a Sigmoid Function. The main objective is to improve accuracy. For the training model detail, we have used the RGB based signal, with 16 frames, the model was trained using the cross entropy loss function with the Stochastic Gradient Descent optimizer (SGD), the learning rate scheduler was Steps with relative learning rate of 0.1. It is important to highlight that every layer with dropout uses a probability of 0.5. Table 7 summarizes these details from the architecture experiments. Table 7 - Details of experiments 1. Name Description Model SlowFast Signal RGB Optimizer SGD Learning Rate 0.1 Frames 16 Loss Function Binary Cross Entropy (BCE) Droput Rate 0.5 4.1.3. Results and Discussion Figure 20 present the accuracy curve of the models trained only on the RGB information. The training accuracy curve shows that the model achieved a slight variation in all processes. Besides, as it is present in Table 8 the loss curve has also a slight variation. The accuracy and loss curves presented so far are essential to visualize the model learning during the training step and identify if the model is well-fit after training. RESULTS AND DISCUSSION 42 Figure 20 - Accuracy results experiment 1. Table 8 - Results of Experiments 1. Name Max Min Accuracy 84.5% 83.6% Train/loss 0.4 0.17 From Figure 21 we can see the spatial-action localization on video, and to conclude this analysis, we verify that the model detects violence and at the same time detect the person on video. RESULTS AND DISCUSSION 43 Figure 21 - Spatio-action localization Experiment 1. 4.2 EXPERIMENT 2 4.2.1. Training Details: For the training model details we have used the RGB based signal, with 16 frames, the model was trained using the cross-entropy loss function with the Stochastic Gradient Descent optimizer (SGD), the learning rate scheduler was Steps with relative learning rate of 0.1. It is important to highlight that every layer with dropout uses a probability of 0.5. Training is performed with a batch size of 8, being evaluated every 5 epochs. The framerate difference between slow and fast paths is 16 frames. Table 9 summarizes these details from the architecture experiments. CONCLUSION 50 This chapter provides an analysis of the contributions of this thesis in the light of the objectives outlined initially. The content of this chapter explains how the research questions formulated at the beginning of the thesis was validated by the results obtained. There is also a summary of the activities that were carried out to disseminate the results. The chapter concludes with final remarks on the work that has been developed so far and with future work considerations. Throughout the dissertation It was aimed at addressing pressing issues in the development of a architecture that detect violence and created a spatial-temporal action localization applying deep learning techniques. Although it was used a public dataset of action recognition and adapted to violence detection. 5.1. CONTRIBUTIONS According to the study objectives presented in Section 1.4 and the research questions presented in Section 1.5, it is now possible to present the contribution for each one: Objective 1: Understand and predict the concepts of human action recognition. This objective intends to carry out exhaustive research on recognizing human actions, the most used techniques, and applying some examples used in the literature. At the end of this phase, it is intended to choose deep learning architectures to work. As presented in section 3 and 4, we have created a proposed framework, and carried out two experiments applying deep learning techniques. The proposed framework was based on the literature review, and we have used a public dataset (AVA). The results were the prediction of violence detection, which is a subset of human action recognition. Objective 2: Research and selection of a suitable public dataset to be used during this master's thesis. Search for all existing public datasets and analyze their characteristics. Based on the hardware characteristics that I can apply, choose the appropriate dataset from this analysis. After the literature review of public datasets, we have chosen the AVA dataset. This dataset is used for action recognition. CONCLUSION 51 Objective 3: Based on state of the art, apply the model to the chosen dataset. Change the necessary parameters, check the results obtained and fine-tune the model for the intended objective. As presented on section 3, our proposed framework is based on slowfast model. Each pathway of slowfast model was composed by a ResNet model. At the end it was applied a X3D model. Objective 4: Obtain a final model with the respective training on the localization of space-time action, analyze the results and compare with the existing models. The final model is presented in subsection 3.3. The result of the localization of space-time action is presented in subsection 4.1.3. The comparison between the existing models is presented in subsection 4.3. R.Q.1. Is it possible to create a new classification of new classes for a public dataset? As presented in subsection 3.5, the AVA dataset was reduced to 17 actions corresponding to interactions between 2 or more people, which is what we need for this project, but the objective is to distinguish between 2 classes, violence, and non-violence. So, it was necessary to transform the 17 classes of the AVA to these 2. So, It is possible to create new classifications of new classes for a public dataset, we managed to transform the 17 person-person interaction AVA classes into 2 new classes. R.Q.2. Is it possible to detect violence in this public dataset? As presented in subsection 4.1 and 4.2, it is possible to detect violence in this public dataset. Although the mAP it’s low, it still can detect. R.Q.3. What is the accuracy of the prediction? As presented in subsection 4.1 and 4.2 the mAP of the prediction it’s around 8.3%, it’s a low number comparing to the 28% of the AVA dataset with his 80 classes, but still a reasonable number. CONCLUSION 52 5.2. DISSEMINATION OF RESULTS Since the beginning of this dissertation and as outlined in the research methodology of subsection 1.5, efforts were directed towards achieving a scientific dissemination. In order to demonstrate the reach of the work developed in this dissertation, the dissemination results was a publication on a Conference describe below, where we still to waiting for the results. • Carlos Monteiro, Dalila Durães: “Modelling a Framework to obtain Violence Detection with Spatial-temporal Action Localization”, WorldCist'22 - 10th World Conference on Information Systems and Technologies. 5.3. FINAL CONSIDERATIONS AND FUTURE WORK In this dissertation, we applied deep learning models, which are state of the art in general video classification for violence recognition. To solve the task, we performed experiments with an RGB-based model named Slowfast incorporated with a ResNet and fine-tuned with an X3D. The results show that this model combines violence detection and spatial-action localization. We can affirm that it is possible to perform the violence detection, although the 8% mAP results are not ideal, if we consider the machine specifications that limit our options in the model configuration and that the AVA dataset with machines most capable had a mAP of 28%, there is a possibility of detecting violence in this dataset. Perhaps by training on more capable machines or inputting more data into the training, like audio, the results can turn out to be more ideal. In Future Work we intend to use another public dataset of violence recognition and used our proposed architecture and compare the results of this model and state of the art results. CONCLUSION 53 REFERENCES REFERENCES 54 [1] D. Durães, F. S. Marcondes, F. Gonçalves, J. Fonseca, J. Machado e P. Novais, “Detection Violent Behaviors: A Survey,” em International Symposium on Ambient Intelligence, 2020. [2] P. Dollár, V. Rabaud, G. Cottrel e S. Belongie, “Behavior recognition via sparse spatiotemporal features.,” em In 2005 IEEE International Workshop on Visual Surveillance and Performance Evaluation of Tracking and Surveillance, 2005. [3] J. C. Niebles e L. Fei-Fei, “A hierarchical model of shape and appearence for human action classification.,” em In 2007 Conference on Computer Vision and Pattern Recognition, 2007. [4] M. B. Kaâniche e F. Bremond, “Recognizing gestures by learning local motion signatures of HOG descriptors.,” IEEE transctions on pattern analysis and machineintelligence, pp. 2247-2258, 2012. [5] A. Kovashka e K. Grauman, “Learning a hierarchy of discriminative space-time neighborhood features for human action recognition.,” em 2010 IEEE computer society conference on computer vision and pattern recognition, 2010. [6] I. Laptev, M. Marszalek, C. Schmid e B. Rozenfeld, “Learning realistic human actions from movies.,” em 2008 IEEE Conference on Computer on Computer Vision and Pattern Recognition, 2008. [7] J. Liu, J. Luo e M. Shah, “Recognizing realistic actions from videos "in the wild",” em 2009 IEEE Conference on Computer Vision and Pattern Recognition, 2009. [8] O. Kliper-Gross, T. Hassner e L. Wolf, “The action similarity labeling challenge,” IEEE Transactions on Pattern Analysis and Machine Intelligence, pp. 615-621. [9] H. Wang, A. Klasser, C. Schmid e C. L. Liu, “Action recognition by dense trajectories,” em CVPR 2011, 2011. [10] S. Danafar e N. Gheissari, “Action recognition for surveillance applications using optic ow and SVM,” em Asian Conference on Computer Vision, Berlin, Heidelberg, 2007. [11] Y. Zhu, X. Zhao, Y. Fu e Y. Liu, “Sparse coding on local spatial-temporal volumes for human action recognition,” em Asian conference on computer vision, Berlin, Heidelberg, 2010. REFERENCES 55 [12] M. Shokri, A. Harati e K. Taba, “Salient object detection in video using deep non-local neural networks,” Journal of Visual Communication and Image Representation, p. 68, 2020. [13] C. Lawrence, T. Tuunanen e M. D. Myers, “Extending design science research methodology for a multicultural world,” em IFIP Working Conference on Human Benefit through the Diffusion of Information Systems Design Science Research, Berlin, Heidelberg, 2010. [14] A. B. Mabrouk e E. Zagrouba, “Abnormal behavior recognition for intelligent video surveillance systems: A review,” Expert Systems with Applications, pp. 480-491, 2018. [15] L. Lopez-Fuentes, J. Van de Weijer, M. González-Hidalgo, H. Skinnemoen e A. D. Bagdanov, “Review on computer vision techniques in emergency situations,” Multimedia Tools and Applications, pp. 17069-17107, 2018. [16] P. Wang, W. Li, P. Ogunbona, J. Wan e S. Escalera, “RGB-D-based human motion recognition with deep learning: A survey.,” Computer Vision and Image Understanding, pp. 118-139, 2018. [17] D. Gowsikhaa, S. Abirami e R. Baskaran, “Automated human behavior analysis from surveillance videos: a survey.,” Artificial Intelligence Review, pp. 747-765, 2014. [18] P. Afsar, P. Cortez e H. Santos, “Automatic detection of human behavior: A review from 2000 to 2014,” Expert Systems with Applications, pp. 6935-6956, 2015. [19] S. Dubuisson e C. Gonzales, “A survey of datasets for visual tracking,” Machine Vision and Applications, pp. 23-52, 2016. [20] J. Zhang, W. Li, P. O. Ogunbona, P. Wang e C. Tang, “RGB-D-based action recognition datasets: A survey,” Pattern Recognition, pp. 86-105, 2016. [21] T. Singh e D. K. Vishwakarma, “Video benchmarks of human action datasets: a review,” Artificial Intelligence Review, pp. 1107-1154, 2019. [22] E. Komagal e B. Yogameena, “Foreground segmentation with PTZ camera: A survey,” Multimedia Tools and Applications, pp. 22489-22542, 2018. [23] P. Zhou, Q. Ding, H. Luo e X. Hou, “Violence detection in surveillance video using lowlevel features,” PLoS one, 2018. REFERENCES 56 [24] O. Deniz, I. Serrano, G. Bueno e T. K. Kim, “Fast violence detection in video,” em 2014 international conference on computer vision theory and applications(VISAPP), 2014. [25] F. D. De Souza, G. C. Chavez, E. A. Do Valle Jr e A. D. A. Araújo, “Violence detection in video using spatio-temporal features,” em 2010 23rd SIBGRAPI Conference on Graphics, Patterns and Images, 2010. [26] Y. Gao, H. Liu, X. Sun, C. Wang e Y. Liu, “Violence detection using oriented violent flows,” Image and vision computing, pp. 37-41, 2016. [27] T. Hassner, Y. Itcher e O. Kliper-Gross, “Violent flows: Real-time detection of violent crowd behavior,” em 2012 IEEE Computer Society Conference on Computer Vision and Pattern Recognition Workshops. [28] A. Jalal, M. Mahmood e A. S. Hasan, “Multi-features descriptors for human activity tracking and recognition in Indoor-outdoor environments,” em 2019 16th International Bhurban Conference on Applied Sciences and Technology (IBCAST), 2019. [29] S. Mahmood, Y. D. Khan e M. K. Mahmood, “A treatise to vision enchancement and color fusion techniques in night vision devices,” Multimedia Tools and Applications, pp. 2689- 2737, 2018. [30] S. Maheshwari e S. Heda, “A review on crowd behaviour analysis methods for video surveillance,” em Proceedings of the Second International Conference on Information and CommunicationTechnology for Competitive Strategies, 2016. [31] V. Kalogeiton, P. Weinzaepfel, V. Ferrari e C. Schmid, “Action tubelet detector for spatiotemporal action localization,” em Proceedings of the IEEE International Conference on Computer Vision, 2017. [32] N. Agarwal, Y. T. Chen, B. Dariush e M. H. Yang, “Unsupervised Domain Adaptation for Spatio-Temporal Action Localization,” arXiv preprint arXiv:2010.09211, 2020. [33] K. Soomro e M. Shah, “Unsupervised action discovery and localization in videos,” em Proceedings of the IEEE International Conference on Computer Vision, 2017. [34] I. Laptev, “HOLLYWOOD2 - Human Actions and Scenes Dataset,” 5 February 2021. [Online]. Available: https://www.di.ens.fr/~laptev/actions/hollywood2/. [35] Y. Song e I. Kim, “DeepAct: a deep neural network model for activity detection in untrimmed videos,” Journal of Information Processing Systems, pp. 150-161, 2018. REFERENCES 57 [36] W. Kay, J. Carreira, K. Simonyan, B. Zhang, C. Hilier, S. Vijayanarasimhan e M. Sulueyman, “The Kinetics human action video dataset,” arXiv preprint arXiv:1705.06950, 2017. [37] J. Carreira, E. Noland, A. Banki-Horvath, C. Hilier e A. Zisserman, “A short note about Kinetics-600,” arXiv preprint arXiv:1808.01340, 2018. [38] J. Carreira, E. Noland, C. Hilier e A. Zisserman, “A short note on the Kinetcs-700 human action dataset,” arXiv preprint aarXiv1907.06987, 2019. [39] C. Gu, C. Sun, D. A. Ross, C. Vondrick, C. Pantofaru, Y. Li, C. Vijayanarasimhan, G. Toderici, S. Ricco, R. Sukthankar, C. Schmid e J. Malik, “ Ava: A video dataset of spatio-temporally localized atomic visual actions,” em Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. [40] A. Li, M. Thotakuri, D. A. Ross, J. Carreira, A. Vostrikov e A. Zisserman, “The ava-kinetics localized human actions video dataset,” arXiv preprint arXiv:2005.00214, 2020. [41] G. A. Sigurdsson, G. Varol, X. Wang, A. Farhadi, I. Laptev e A. Gupta, “Hollywood in homes: Crowdsourcing data collection for activity understanding,” em European Conference on Computer Vision, 2016. [42] K. Soomro, A. R. Zamir e M. Shah, “UCF101: A dataset of 101 human actions classes from videos in the wild,” arXiv preprint arXiv:1212.0402, 2012. [43] J. M. Chaquet, E. J. Carmona e A. Fernández-Caballero, “A survey of video datasets for human action and activity recognition,” em Computer Vision and Image Understanding, 2013, pp. 633-659. [44] C. Feichtenhofer, H. Fan, J. Malik e K. He, “Slowfast networks for video recognition,” em Proceedings of the IEEE/CVF International Conference on Computer Vision, 2019. [45] A. Buades, B. Coll e J. M. Morel, “A non-local algorithm for image denoising,” 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pp. 60-65, 2005. [46] X. Wang, R. Girshick, A. Gupta e K. He, “Non-local neural networks,” Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 7794-7803, 2018. [47] S. Ren, K. He, R. Girshick e J. Sun, “ Faster r-cnn: Towards real-time object detection with region proposal networks,” IEEE transactions on pattern analysis and machine intelligence, pp. 1137-1149, 2016. REFERENCES 58 [48] B. Liu, W. Zhao e Q. Sun, “Study of object detecton vased on Faster R-CNN,” em 2017 Chinese Automation Congress (CAC), 2017. [49] R. Girshick, “Fast r-cnn,” em Proceedings of the IEEE international conference on computer vision, 2015. [50] K. He, G. Gkioxari, P. Dollár e R. Girshick, “Mask r-cnn,” Proceedings of the IEEE international conference on computer vision, pp. 2961-2969, 2017. [51] K. He, X. Zhang, S. Ren e J. Sun, “Deep residual learning for image recognition,” em Proceeding of the IEEE conference on computer vision and patternrecognition, 2016. [52] G. Huang, Z. Liu, L. Van Der Maaten e K. Q. Weinberger, “Densely connected convolutional networks,” em Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017. [53] M. A. Golberg e H. A. Cho, Introduction to regression analysis, WIT press, 2004. [54] F. Chollet, “Keras: The python deep learning library,” Astrophysics Source Code Library, pp. ascl-1806, 2018. [55] S. Hochreiter, Y. Bengio, P. Frasconi e J. Schmidhuber, “Gradient flow in recurrent nets: the difficulty of learning long-term dependencies,” 2001. [56] J. Carreira e A. Zisserman, “Quo vadis, action recognition? a new model and the kinetics dataset,” em Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017. [57] C. Feichtenhofer, “X3d: Expanding architectures for efficient video recognition,” em Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020. [58] K. Erdem, “Understanding Region of Interest (RoI Pooling),” 5 February 2021. [Online]. Available: https://erdem.pl/2020/02/understanding-region-of-interest-ro-i-pooling. [59] T. D. Science, “Understanding Region of Interest — (RoI Align and RoI Warp),” 5 February 2021. [Online]. Available: https://towardsdatascience.com/understanding-region-of- interest-part-2-roi-align-and-roi-warp-f795196fc193. [60] S. Raschka, “Machine Learning FAQ - Fitting a model via closed-form equations vs. Gradient Descent vs Stochastic Gradient Descent vs Mini-Batch Learning. What is the REFERENCES 59 difference?,” 5 February 2021. [Online]. Available: https://sebastianraschka.com/faq/docs/closed-form-vs-gd.html.