[go: up one dir, main page]

CN109948550A - A system and method for monitoring the flow of people in a smart railway station - Google Patents

A system and method for monitoring the flow of people in a smart railway station Download PDF

Info

Publication number
CN109948550A
CN109948550A CN201910213467.7A CN201910213467A CN109948550A CN 109948550 A CN109948550 A CN 109948550A CN 201910213467 A CN201910213467 A CN 201910213467A CN 109948550 A CN109948550 A CN 109948550A
Authority
CN
China
Prior art keywords
people
data
flow
location
railway station
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910213467.7A
Other languages
Chinese (zh)
Inventor
于帮付
苏丹
张叶青
武兆
江之源
杨冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing 1 Dimension Innovation Technology Co ltd
Beijing Baifendian Information Science & Technology Co ltd
Original Assignee
Beijing 1 Dimension Innovation Technology Co ltd
Beijing Baifendian Information Science & Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing 1 Dimension Innovation Technology Co ltd, Beijing Baifendian Information Science & Technology Co ltd filed Critical Beijing 1 Dimension Innovation Technology Co ltd
Priority to CN201910213467.7A priority Critical patent/CN109948550A/en
Publication of CN109948550A publication Critical patent/CN109948550A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

The invention discloses a system and a method for monitoring the pedestrian flow of an intelligent railway station, which comprises a data acquisition module for acquiring videos of all positions of the railway station, a data analysis platform for carrying out face detection, face quantity statistics, pedestrian flow analysis and prediction on the videos and a monitoring terminal. By the method and the device, the monitoring resources such as the camera and the like can be fully utilized to automatically monitor the human flow, the accuracy of human face detection is higher, and manpower and material resources are saved.

Description

一种智慧火车站人流量监控系统及方法A system and method for monitoring the flow of people in a smart railway station

技术领域technical field

本发明涉及监控技术领域,具体涉及一种智慧火车站人流量监控系统。The invention relates to the technical field of monitoring, in particular to a system for monitoring the flow of people in a smart railway station.

背景技术Background technique

人们在日常生活中,每天会出入各种公共场所,大到商场、机场和火车站,小到地铁站,或者是某个演唱会和比赛场。这些都是人流量密集场所,尤其是火车站,火车站每天都要承受着大量的人流量,管理人员对此需要重点关注,以防拥堵和踩踏等突发情况的发生。In daily life, people go to various public places every day, ranging from shopping malls, airports and railway stations, to subway stations, or to certain concerts and competition venues. These are places with dense traffic, especially train stations, which are subject to a large number of traffic every day. Managers need to focus on this to prevent unexpected situations such as congestion and stampede.

传统的方法是管理方安排大量的人力进行巡逻,对人流量进行有效的疏导,防止突发事件的发生。同时,使用在各个位置安装的摄像头进行辅助监控,安排专人实时查看。但是,依靠人力在各个人流量高度集中的区域实施管理的方法不仅耗费人力、增加成本,而且精准度也不高,没有充分利用起摄像头等监控资源。一旦发生突发事件,不能及时掌握该区域的人流量具体数值,不易确定需要采取何种级别的疏散和应急方式。The traditional method is that the management party arranges a large number of manpower to conduct patrols, effectively divert the flow of people, and prevent the occurrence of emergencies. At the same time, the cameras installed in various locations are used for auxiliary monitoring, and special personnel are arranged to view them in real time. However, relying on manpower to implement management in areas with high concentration of people not only consumes manpower and increases costs, but also is not accurate, and does not make full use of surveillance resources such as cameras. Once an emergency occurs, it is not possible to grasp the specific value of the flow of people in the area in time, and it is difficult to determine what level of evacuation and emergency measures to take.

现在主流的人脸检测技术,为应用黄种人和白种人的面部特征进行模型开发和训练,并且样本中的光照条件良好,可以从视频中较好的检测出黄种人和白种人的人脸。但是,现有算法和技术对黑人人脸的检测存在缺陷,无法应对黑人且光照条件不佳的情况,不能在摄像头视频和照片中很好的检测出黑人的人脸,尤其在复杂背景和逆光等条件下,对黑人人脸的检测更为困难。对于黑种人的人脸检测,截止到目前,业内暂时没有成套的有效解决方案。The current mainstream face detection technology is used to develop and train models using the facial features of yellow and white people, and the lighting conditions in the samples are good, which can better detect yellow and white people from the video. Face. However, the existing algorithms and technologies have flaws in the detection of black faces, unable to cope with black people and poor lighting conditions, and cannot detect black faces in camera videos and photos, especially in complex backgrounds and backlighting. Under such conditions, the detection of black faces is more difficult. For the face detection of black people, as of now, there is no complete set of effective solutions in the industry.

发明内容SUMMARY OF THE INVENTION

针对现有技术的不足,本发明旨在提供一种智慧火车站人流量监控系统,可以充分利用摄像头等监控资源对人流量进行自动监控,人脸检测的准确性更高,更节省人力和物力。In view of the deficiencies of the prior art, the present invention aims to provide a system for monitoring the flow of people in a smart railway station, which can make full use of monitoring resources such as cameras to automatically monitor the flow of people, with higher accuracy of face detection and saving manpower and material resources. .

为了实现上述目的,本发明采用如下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:

一种智慧火车站人流量监控系统,包括:A smart railway station people flow monitoring system, comprising:

数据采集模块:包括部署在火车站各个位置的摄像头装置及对应的控制器,所述摄像头装置用于获取所在位置的视频数据并传输至与之连接的控制器,控制器分别传输至数据分析平台和监控终端;Data acquisition module: including camera devices deployed in various positions of the railway station and corresponding controllers, the camera devices are used to obtain the video data of the location and transmit it to the controller connected to it, and the controllers are respectively transmitted to the data analysis platform and monitoring terminal;

数据分析平台:包括有人脸检测模型、大数据分析模块、地图组件模块和存储模块;所述人脸检测模型用于对检测出各个摄像头装置所获取的视频数据中所有的人脸数据并存储在存储模块中;所述大数据分析模块用于对存储模块中存储的各个视频数据中的人脸数量进行计数,从而获得各个时间点下各个位置的摄像头装置所获取的视频数据的人脸数量,进而统计得到各个时间点下火车站各个位置的人流量数据和人流量趋势,并根据设定时间段内的人流量趋势预测接下来一段设定时间段内各个位置的人流量,当预测到的某个位置的人流量会超过预设的人流量阈值时进行报警并结合地图组件模块快速指明出警位置;地图组件模块用于存储各个摄像头装置的位置;Data analysis platform: including a face detection model, a big data analysis module, a map component module and a storage module; the face detection model is used to detect all the face data in the video data obtained by each camera device and store it in the In the storage module; the big data analysis module is used to count the number of faces in each video data stored in the storage module, so as to obtain the number of faces in the video data obtained by the camera device at each position at each time point, Then, the data of people flow and the trend of people flow at each location of the railway station at each time point are obtained by statistics, and the flow of people at each location in the next set period of time is predicted according to the trend of people flow in the set time period. When the traffic in a certain location exceeds the preset traffic threshold, an alarm will be issued and the location of the alarm will be quickly indicated in combination with the map component module; the map component module is used to store the location of each camera device;

所述人脸检测模型采用MTCNN模型,其通过如下方式训练得到:先收集白种人、黄种人、黑种人的人脸数据,然后利用白种人和黄种人的人脸数据对 MTCNN模型进行初步训练,在达到设定的精度要求后,采用迁移学习的方法,然后利用黑种人的人脸数据对初步训练得到的MTCNN模型进行再次训练,得到所需的人脸检测模型;The face detection model adopts the MTCNN model, which is obtained by training in the following manner: first collect the face data of Caucasians, yellow people, and black people, and then use the face data of Caucasians and yellow people to carry out the MTCNN model. Preliminary training, after reaching the set accuracy requirements, adopt the transfer learning method, and then use the face data of black people to retrain the MTCNN model obtained from the preliminary training to obtain the required face detection model;

监控终端:用于接收数据采集模块采集到的火车站各个时间点下各个位置的视频数据并进行显示以用作实时监控,以及从数据分析平台中获取接下来一段设定时间段内火车站各个人流量趋势预测结果和报警信息并进行显示。Monitoring terminal: It is used to receive the video data collected by the data acquisition module at each location of the railway station at various time points and display it for real-time monitoring, and to obtain the next set period of time from the data analysis platform. Personal traffic trend prediction results and alarm information are displayed.

进一步地,所述数据采集模块还包括有照明装置,所述照明装置和所述摄像头装置一并安装在火车站的各个位置,并连接于所述控制器。Further, the data acquisition module further includes a lighting device, and the lighting device and the camera device are installed at various positions of the railway station together and connected to the controller.

进一步地,还通过online hard sample mining方法提高MTCNN模型的训练精度,具体为:在训练过程中,将每一个训练批次中的误差进行降序排序,并将排序结果中前70%的样本误差取出,进行误差传递,修正MTCNN模型的参数。Further, the training accuracy of the MTCNN model is improved by the online hard sample mining method, specifically: in the training process, the errors in each training batch are sorted in descending order, and the first 70% of the sample errors in the sorting result are taken out. , carry out error transfer, and correct the parameters of the MTCNN model.

进一步地,在MTCNN模型的训练中,对于输入的图像进行缩放。Further, in the training of the MTCNN model, the input image is scaled.

进一步地,在MTCNN模型的训练中,采用针对困难样本进行重点学习的方法。Further, in the training of the MTCNN model, the method of focusing on difficult samples is adopted.

本发明还提供一种利用上述系统进行火车站人流量监控的方法,包括如下步骤:The present invention also provides a method for monitoring the flow of people in a railway station by using the above system, comprising the following steps:

步骤S1、部署在火车站各个位置的摄像头装置获取所在位置的视频数据并传输至所连接的控制器,控制器将视频数据传输至数据分析平台和监控终端,监控终端将视频数据显示供工作人员实时监控;In step S1, the camera devices deployed in various positions of the railway station acquire the video data of the location and transmit it to the connected controller, the controller transmits the video data to the data analysis platform and the monitoring terminal, and the monitoring terminal displays the video data for the staff. real time monitoring;

步骤S2、数据分析平台中,所述人脸检测模型对检测出各个摄像头装置所获取的视频数据中所有的人脸数据存储在存储模块中;所述大数据分析模块对存储模块中存储的各个视频数据中的人脸数量进行计数,从而获得各个时间点下各个位置的摄像头装置所获取的视频数据的人脸数量,进而统计得到各个时间点下火车站各个位置的人流量数据和人流量趋势,并根据设定时间段内的人流量趋势预测接下来一段设定时间段内各个位置的人流量,当预测到的某个位置的人流量会超过预设的人流量阈值时进行报警并结合地图组件模块快速指明出警位置;数据分析平台会将人流量趋势预测结果和报警信息实时传输至监控终端进行显示,供工作人员查看。In step S2, in the data analysis platform, the face detection model stores all the face data in the video data acquired by the detected camera devices in the storage module; the big data analysis module stores all the face data in the storage module. The number of faces in the video data is counted, so as to obtain the number of faces in the video data obtained by the camera device at each location at each time point, and then the statistics of the traffic data and the traffic trend of each location of the railway station at each time point are obtained. , and predict the flow of people at each location in the next set time period according to the trend of the flow of people in the set time period. When the predicted flow of people in a certain location will exceed the preset threshold of people flow, an alarm will be issued and combined with The map component module quickly indicates the location of the alarm; the data analysis platform will transmit the prediction results of the traffic trend and the alarm information to the monitoring terminal in real time for display for the staff to view.

本发明的有益效果在于:The beneficial effects of the present invention are:

1、本发明系统通过对各区域安装的摄像头装置传输回来的视频数据进行实时处理,由采用特别设计的训练方法训练得到人脸检测模型检测出视频中所包含的全部人脸,经由大数据分析对模型检测出的人脸进行计数、统计和分析,描绘出该区域内的人流量趋势,并可随时调用历史数据进行回查。在预测出某区域人流量达到预设警戒值时,及时报警,并在结合区域地图后,给出准确位置和到达路线,安排人员精准处置,实现智能管控。1. The system of the present invention performs real-time processing on the video data transmitted back by the camera device installed in each area, and uses a specially designed training method to train the face detection model to detect all the faces contained in the video. Through big data analysis Count, count and analyze the faces detected by the model, depict the flow trend of people in the area, and call historical data for back-checking at any time. When it is predicted that the flow of people in a certain area reaches the preset warning value, it will alarm in time, and after combining with the regional map, the accurate location and arrival route will be given, and personnel will be arranged to handle it accurately to realize intelligent control.

2、本发明系统的人脸检测模型可以准确检测出视频中出现的黄种人、白种人和黑种人,精确检测出视频中所包含的全部人脸,从而可以实现对被监控区域人流量进行精准统计和分析。2. The face detection model of the system of the present invention can accurately detect yellow people, white people and black people appearing in the video, and accurately detect all the faces contained in the video, so that the flow of people in the monitored area can be realized. Perform accurate statistics and analysis.

附图说明Description of drawings

图1为本发明实施例1的系统组成示意图;1 is a schematic diagram of the system composition of Embodiment 1 of the present invention;

图2为本发明实施例2中的方法流程示意图;Fig. 2 is the schematic flow chart of the method in Embodiment 2 of the present invention;

图3为本发明实施例1中的MTCNN模型的训练流程示意图;3 is a schematic diagram of a training flow of the MTCNN model in Embodiment 1 of the present invention;

图4为MTCNN模型的总体架构示意图。Figure 4 is a schematic diagram of the overall architecture of the MTCNN model.

具体实施方式Detailed ways

以下将结合附图对本发明作进一步的描述,需要说明的是,本实施例以本技术方案为前提,给出了详细的实施方式和具体的操作过程,但本发明的保护范围并不限于本实施例。The present invention will be further described below in conjunction with the accompanying drawings. It should be noted that the present embodiment takes the technical solution as the premise, and provides a detailed implementation manner and a specific operation process, but the protection scope of the present invention is not limited to the present invention. Example.

以下将对实施例中涉及的专业术语作简单解释:The following will briefly explain the technical terms involved in the embodiment:

迁移学习是指将一个已经训练好的模型,做一些定向性的调整,然后迁移到一个相关的问题之上。Transfer learning refers to taking a trained model, making some directional adjustments, and then transferring it to a related problem.

宽容度是指胶片所能正确容纳的景物亮度反差的范围,宽容度越高则能容纳更大的亮度反差。The latitude refers to the range of the brightness contrast of the scene that the film can correctly accommodate. The higher the latitude, the greater the brightness contrast can be accommodated.

实施例1Example 1

本实施例提供一种智慧火车站人流量监控系统,如图1所示,包括:This embodiment provides a system for monitoring the flow of people in a smart railway station, as shown in FIG. 1 , including:

数据采集模块:包括部署在火车站各个位置的摄像头装置及对应的控制器,所述摄像头装置用于获取所在位置的视频数据并传输至与之连接的控制器,控制器分别传输至数据分析平台和监控终端;Data acquisition module: including camera devices deployed in various positions of the railway station and corresponding controllers, the camera devices are used to obtain the video data of the location and transmit it to the controller connected to it, and the controllers are respectively transmitted to the data analysis platform and monitoring terminal;

数据分析平台:包括有人脸检测模型、大数据分析模块、地图组件模块和存储模块;所述人脸检测模型用于对检测出各个摄像头装置所获取的视频数据中所有的人脸数据并存储在存储模块中;所述大数据分析模块用于对存储模块中存储的各个视频数据中的人脸数量进行计数,从而获得各个时间点下各个位置的摄像头装置所获取的视频数据的人脸数量,进而统计得到各个时间点下火车站各个位置的人流量数据和人流量趋势,并根据设定时间段内的人流量趋势预测接下来一段设定时间段内各个位置的人流量,当预测到的某个位置的人流量会超过预设的人流量阈值时进行报警并结合地图组件模块快速指明出警位置;地图组件模块用于存储各个摄像头装置的位置;Data analysis platform: including a face detection model, a big data analysis module, a map component module and a storage module; the face detection model is used to detect all the face data in the video data obtained by each camera device and store it in the In the storage module; the big data analysis module is used to count the number of faces in each video data stored in the storage module, so as to obtain the number of faces in the video data obtained by the camera device at each position at each time point, Then, the data of people flow and the trend of people flow at each location of the railway station at each time point are obtained by statistics, and the flow of people at each location in the next set period of time is predicted according to the trend of people flow in the set time period. When the traffic in a certain location exceeds the preset traffic threshold, an alarm will be issued and the location of the alarm will be quickly indicated in combination with the map component module; the map component module is used to store the location of each camera device;

所述人脸检测模型采用MTCNN模型,其通过如下方式训练得到:因当前可以公开访问到的人脸数据集多为黄种人和白种人,黑人的人脸数据十分稀缺。通过迁移学习可以有效应对解决数据不平均、数据稀缺的问题。先收集白种人、黄种人、黑种人的人脸数据,然后利用白种人和黄种人的人脸数据对 MTCNN模型进行初步训练,在达到设定的精度要求后,采用迁移学习的方法,然后利用黑种人的人脸数据对初步训练得到的MTCNN模型进行再次训练,得到所需的人脸检测模型,如图3所示。The face detection model adopts the MTCNN model, which is obtained by training in the following way: because the currently publicly accessible face data sets are mostly yellow and white, and black face data is very scarce. Transfer learning can effectively deal with the problem of uneven data and data scarcity. First collect the face data of white, yellow and black people, and then use the face data of white and yellow people to perform preliminary training on the MTCNN model. After reaching the set accuracy requirements, the transfer learning method is adopted. , and then use the face data of black people to retrain the MTCNN model obtained from the initial training to obtain the required face detection model, as shown in Figure 3.

具体地,在将初步训练得到的MTCNN模型迁移至黑种人的人脸数据上进行再次训练时,可以根据实际需要对模型参数进行微调。Specifically, when the MTCNN model obtained by preliminary training is transferred to the face data of black people for retraining, the model parameters can be fine-tuned according to actual needs.

监控终端:用于接收数据采集模块采集到的火车站各个时间点下各个位置的视频数据并进行显示以用作实时监控,以及从数据分析平台中获取接下来一段设定时间段内火车站各个人流量趋势预测结果和报警信息并进行显示。Monitoring terminal: It is used to receive the video data collected by the data acquisition module at each location of the railway station at various time points and display it for real-time monitoring, and to obtain the next set period of time from the data analysis platform. Personal traffic trend prediction results and alarm information are displayed.

在本实施例中,所述数据采集模块还包括有照明装置,所述照明装置和所述摄像头装置一并安装在火车站的各个位置,并连接于所述控制器。通过设置照明装置可以实现通过改变光照情况来使黑种人在摄像头画面中更易捕捉,从而提升黑种人人脸检测的性能。还可以进一步采用高宽容度的摄像头装置,可以使得黑种人的人脸在视频中更加明显,检测更加准确。In this embodiment, the data acquisition module further includes a lighting device, and the lighting device and the camera device are installed at various positions of the railway station together and connected to the controller. By setting the lighting device, it is possible to change the lighting conditions to make the black people easier to capture in the camera picture, thereby improving the performance of the black people's face detection. It is also possible to further adopt a high-tolerance camera device, which can make the faces of black people more obvious in the video, and the detection is more accurate.

在本实施例中,还通过online hard sample mining方法提高MTCNN模型的训练精度,具体为:在训练过程中,将每一个训练批次中的误差进行降序排序,并将排序结果中前70%的样本误差取出,进行误差传递,修正MTCNN模型的参数。In this embodiment, the training accuracy of the MTCNN model is also improved through the online hard sample mining method, specifically: in the training process, the errors in each training batch are sorted in descending order, and the top 70% of the sorting results are sorted in descending order. The sample error is taken out, the error is transmitted, and the parameters of the MTCNN model are corrected.

在本实施例中,在MTCNN模型的训练中,对于输入的图像进行缩放,使训练出的人脸检测模型在不同图像尺度下均有较好的精度。In this embodiment, in the training of the MTCNN model, the input image is scaled, so that the trained face detection model has better accuracy under different image scales.

在本实施例中,在MTCNN模型的训练中,采用针对困难样本进行重点学习的方法,即在人脸识别误差不大(可通过小于设定的阈值来确定)的情况下不进行参数修正,对于误差较大(可通过大于或等设定的阈值来确定)的人脸样本进行参数修正。由于黑种人的皮肤颜色较深,多人互相重叠存在误检或漏检的情况,采用上述方法可以使训练出的模型针对困难样本有更好的识别能力。In this embodiment, in the training of the MTCNN model, the method of focusing on difficult samples is adopted, that is, when the face recognition error is not large (it can be determined by being less than a set threshold), parameter correction is not performed, Parameter correction is performed for face samples with large errors (which can be determined by greater than or equal to a set threshold). Due to the darker skin color of black people, many people overlap each other, and there is a situation of false detection or missed detection. Using the above method can make the trained model have better recognition ability for difficult samples.

需要说明的是,MTCNN模型的整体网络结构如图4所示,原始图片需要经过三个网络层级,网络间采用级联结构,即多个卷积网络模型(CNN)串联起来。对于输入图片进行多次预测,不断提升对于人脸检测任务准确性。 MTCNN模型在结构上分为三个部分,分别是P-Net、R-Net、O-Net,每个部分都要进行三种任务,分别是预测是否为人脸,人脸边界框定位点预测,以及人脸的5个关键点(左眼,右眼,鼻尖,左嘴角,右嘴角)预测,可从不同的角度提升人脸检测的准确度。三个部分每次都会筛选掉一些非人脸的部分,并在原有预测的关键点基础上作进一步修正,使模型兼具实时性与准确性。It should be noted that the overall network structure of the MTCNN model is shown in Figure 4. The original image needs to go through three network layers, and the networks adopt a cascade structure, that is, multiple convolutional network models (CNN) are connected in series. Perform multiple predictions on the input image to continuously improve the accuracy of face detection tasks. The MTCNN model is divided into three parts in structure, namely P-Net, R-Net, and O-Net. Each part has three tasks, namely predicting whether it is a face or not, and predicting the positioning point of the face bounding box. And the five key points of the face (left eye, right eye, nose tip, left mouth corner, right mouth corner) are predicted, which can improve the accuracy of face detection from different angles. The three parts will filter out some non-face parts each time, and make further corrections based on the key points of the original prediction, so that the model has both real-time and accuracy.

MTCNN模型的每一层次都有相应的分类信息,边界框信息以及人脸关键点信息,每种信息都有各自的损失函数。Each level of the MTCNN model has corresponding classification information, bounding box information and face key point information, each of which has its own loss function.

(1)对于分类误差:(1) For classification error:

该函数为针对分类的误差函数,称为对数损失函数或对数似然损失函数,也称为逻辑回归损失函数或交叉熵损失函数。该函数是在概率估计上定义的,通过对数函数将数值转化为该类别的置信概率。对数损失通过惩罚错误的分类, 实现对分类器的准确度的量化。最小化对数损失基本等价于最大化分类器的准确度。在计算损失时,输入为所属的每个类别的概率值。This function is an error function for classification, called log loss function or log likelihood loss function, also known as logistic regression loss function or cross entropy loss function. The function is defined on a probability estimate, with a logarithmic function transforming the value into a confidence probability for the class. Logarithmic loss quantifies the accuracy of a classifier by penalizing incorrect classifications. Minimizing the log loss is basically equivalent to maximizing the accuracy of the classifier. When calculating the loss, the input is the probability value for each class to which it belongs.

对于检测区域是否包含人脸进行二分类判断,若包含人脸,同时模型也预测出包含人脸,则误差为0,反之则误差不为0,通过不断优化误差函数实现对是否包含人脸进行精准分类。Perform a binary classification judgment on whether the detection area contains a face. If it contains a face and the model also predicts that it contains a face, the error is 0. Otherwise, the error is not 0. By continuously optimizing the error function, it is possible to determine whether it contains a face. Precise classification.

(2)对于边界框回归误差:(2) For bounding box regression error:

该函数为均方误差函数,常用于回归问题,是参数估计值与参数真值之差平方的期望值。该函数是基于距离定义的,通过预测值与真实值之间对应元素的平方误差来判断预测值是否准确,实现对回归器的量化。优化均方误差函数可以降低预测数值的误差,在计算损失时,输入为所预测的数值。This function is the mean square error function, which is often used in regression problems. It is the expected value of the square of the difference between the estimated value of the parameter and the true value of the parameter. This function is defined based on the distance, and judges whether the predicted value is accurate by the square error of the corresponding element between the predicted value and the actual value, and realizes the quantification of the regressor. Optimizing the mean squared error function can reduce the error of the predicted value, and when calculating the loss, the input is the predicted value.

对于人脸的边界框左上和右下的坐标点进行回归,对应坐标点之间的差距为欧式距离,相差越小则认为回归越准确,误差越小,反之则越大。For the regression of the upper left and lower right coordinate points of the bounding box of the face, the difference between the corresponding coordinate points is the Euclidean distance. The smaller the difference, the more accurate the regression and the smaller the error, and vice versa.

(3)对于人脸关键点的误差:(3) For the error of the key points of the face:

该函数与边界框的误差函数类似,同样是均方误差函数,通过优化该函数实现对人脸关键点的回归误差最小化。对于人脸关键点的优化方法与边界框的优化方法类似,若关键点的预测越准确,则误差越小,反之则越大。This function is similar to the error function of the bounding box, which is also the mean square error function. By optimizing this function, the regression error of the key points of the face is minimized. The optimization method for face key points is similar to the optimization method for bounding boxes. If the prediction of key points is more accurate, the error will be smaller, and vice versa.

通过优化这三个损失函数,使得总体的误差下降到最小,达到人脸检测的效果。该算法可以将输入图片中入的人脸检测出来,并返回相应的人脸边界框和人脸关键点,完成人脸检测任务。By optimizing these three loss functions, the overall error is minimized to achieve the effect of face detection. The algorithm can detect the face in the input image, and return the corresponding face bounding box and face key points to complete the face detection task.

实施例2Example 2

本实施例提供一种利用实施例1所述的系统进行火车站人流量监控的方法,如图2所示,包括如下步骤:This embodiment provides a method for monitoring the flow of people in a railway station by using the system described in Embodiment 1, as shown in FIG. 2 , including the following steps:

步骤S1、部署在火车站各个位置的摄像头装置获取所在位置的视频数据并传输至所连接的控制器,控制器将视频数据传输至数据分析平台和监控终端,监控终端将视频数据显示供工作人员实时监控;In step S1, the camera devices deployed in various positions of the railway station acquire the video data of the location and transmit it to the connected controller, the controller transmits the video data to the data analysis platform and the monitoring terminal, and the monitoring terminal displays the video data for the staff. real time monitoring;

步骤S2、数据分析平台中,所述人脸检测模型对检测出各个摄像头装置所获取的视频数据中所有的人脸数据存储在存储模块中;所述大数据分析模块对存储模块中存储的各个视频数据中的人脸数量进行计数,从而获得各个时间点下各个位置的摄像头装置所获取的视频数据的人脸数量,进而统计得到各个时间点下火车站各个位置的人流量数据和人流量趋势,并根据设定时间段内的人流量趋势预测接下来一段设定时间段内各个位置的人流量,当预测到的某个位置的人流量会超过预设的人流量阈值时进行报警并结合地图组件模块快速指明出警位置;数据分析平台会将人流量趋势预测结果和报警信息实时传输至监控终端进行显示,供工作人员查看。工作人员还可以据此对出警人员进行指导和指挥。In step S2, in the data analysis platform, the face detection model stores all the face data in the video data acquired by the detected camera devices in the storage module; the big data analysis module stores all the face data in the storage module. The number of faces in the video data is counted, so as to obtain the number of faces in the video data obtained by the camera device at each location at each time point, and then the statistics of the traffic data and the traffic trend of each location of the railway station at each time point are obtained. , and predict the flow of people at each location in the next set time period according to the trend of the flow of people in the set time period. When the predicted flow of people in a certain location will exceed the preset threshold of people flow, an alarm will be issued and combined with The map component module quickly indicates the location of the alarm; the data analysis platform will transmit the prediction results of the traffic trend and the alarm information to the monitoring terminal in real time for display for the staff to view. The staff can also guide and command the police officers accordingly.

对于本领域的技术人员来说,可以根据以上的技术方案和构思,给出各种相应的改变和变形,而所有的这些改变和变形,都应该包括在本发明权利要求的保护范围之内。For those skilled in the art, various corresponding changes and deformations can be given according to the above technical solutions and concepts, and all these changes and deformations should be included within the protection scope of the claims of the present invention.

Claims (6)

1.一种智慧火车站人流量监控系统,其特征在于,包括:1. a smart railway station people flow monitoring system, is characterized in that, comprises: 数据采集模块:包括部署在火车站各个位置的摄像头装置及对应的控制器,所述摄像头装置用于获取所在位置的视频数据并传输至与之连接的控制器,控制器分别传输至数据分析平台和监控终端;Data acquisition module: including camera devices deployed in various positions of the railway station and corresponding controllers, the camera devices are used to obtain the video data of the location and transmit it to the controller connected to it, and the controllers are respectively transmitted to the data analysis platform and monitoring terminal; 数据分析平台:包括有人脸检测模型、大数据分析模块、地图组件模块和存储模块;所述人脸检测模型用于对检测出各个摄像头装置所获取的视频数据中所有的人脸数据并存储在存储模块中;所述大数据分析模块用于对存储模块中存储的各个视频数据中的人脸数量进行计数,从而获得各个时间点下各个位置的摄像头装置所获取的视频数据的人脸数量,进而统计得到各个时间点下火车站各个位置的人流量数据和人流量趋势,并根据设定时间段内的人流量趋势预测接下来一段设定时间段内各个位置的人流量,当预测到的某个位置的人流量会超过预设的人流量阈值时进行报警并结合地图组件模块快速指明出警位置;地图组件模块用于存储各个摄像头装置的位置;Data analysis platform: including a face detection model, a big data analysis module, a map component module and a storage module; the face detection model is used to detect all the face data in the video data obtained by each camera device and store it in the In the storage module; the big data analysis module is used to count the number of faces in each video data stored in the storage module, so as to obtain the number of faces in the video data obtained by the camera device at each position at each time point, Then, the data of people flow and the trend of people flow at each location of the railway station at each time point are obtained by statistics, and the flow of people at each location in the next set period of time is predicted according to the trend of people flow in the set time period. When the traffic in a certain location exceeds the preset traffic threshold, an alarm will be issued and the location of the alarm will be quickly indicated in combination with the map component module; the map component module is used to store the location of each camera device; 所述人脸检测模型采用MTCNN模型,其通过如下方式训练得到:先收集白种人、黄种人、黑种人的人脸数据,然后利用白种人和黄种人的人脸数据对MTCNN模型进行初步训练,在达到设定的精度要求后,采用迁移学习的方法,然后利用黑种人的人脸数据对初步训练得到的MTCNN模型进行再次训练,得到所需的人脸检测模型;The face detection model adopts the MTCNN model, which is obtained by training in the following manner: first collect the face data of Caucasians, yellow people, and black people, and then use the face data of Caucasians and yellow people to carry out the MTCNN model. Preliminary training, after reaching the set accuracy requirements, adopt the transfer learning method, and then use the face data of black people to retrain the MTCNN model obtained from the preliminary training to obtain the required face detection model; 监控终端:用于接收数据采集模块采集到的火车站各个时间点下各个位置的视频数据并进行显示以用作实时监控,以及从数据分析平台中获取接下来一段设定时间段内火车站各个人流量趋势预测结果和报警信息并进行显示。Monitoring terminal: It is used to receive the video data collected by the data acquisition module at each location of the railway station at various time points and display it for real-time monitoring, and to obtain the next set period of time from the data analysis platform. Personal traffic trend prediction results and alarm information are displayed. 2.根据权利要求1所述的智慧火车站人流量监控系统,其特征在于,所述数据采集模块还包括有照明装置,所述照明装置和所述摄像头装置一并安装在火车站的各个位置,并连接于所述控制器。2 . The people flow monitoring system of a smart railway station according to claim 1 , wherein the data acquisition module further comprises a lighting device, and the lighting device and the camera device are installed at various positions of the railway station together. 3 . , and connected to the controller. 3.根据权利要求1所述的智慧火车站人流量监控系统,其特征在于,还通过onlinehard sample mining方法提高MTCNN模型的训练精度,具体为:在训练过程中,将每一个训练批次中的误差进行降序排序,并将排序结果中前70%的样本误差取出,进行误差传递,修正MTCNN模型的参数。3. The smart railway station people flow monitoring system according to claim 1 is characterized in that, the training accuracy of the MTCNN model is also improved by the onlinehard sample mining method, specifically: in the training process, the The errors are sorted in descending order, and the first 70% of the sample errors in the sorting result are taken out, and the errors are transferred to correct the parameters of the MTCNN model. 4.根据权利要求1所述的智慧火车站人流量监控系统,其特征在于,在MTCNN模型的训练中,对于输入的图像进行缩放。4 . The system for monitoring the flow of people in a smart railway station according to claim 1 , wherein in the training of the MTCNN model, the input image is scaled. 5 . 5.根据权利要求1所述的智慧火车站人流量监控系统,其特征在于,在MTCNN模型的训练中,采用针对困难样本进行重点学习的方法。5 . The system for monitoring the flow of people in a smart railway station according to claim 1 , wherein, in the training of the MTCNN model, a method of focusing on difficult samples is adopted. 6 . 6.一种利用上述任一权利要求所述的系统进行火车站人流量监控的方法,其特征在于,包括如下步骤:6. a method utilizing the system described in any of the preceding claims to carry out the monitoring of people flow in railway station, is characterized in that, comprises the steps: 步骤S1、部署在火车站各个位置的摄像头装置获取所在位置的视频数据并传输至所连接的控制器,控制器将视频数据传输至数据分析平台和监控终端,监控终端将视频数据显示供工作人员实时监控;In step S1, the camera devices deployed in various positions of the railway station acquire the video data of the location and transmit it to the connected controller, the controller transmits the video data to the data analysis platform and the monitoring terminal, and the monitoring terminal displays the video data for the staff. real time monitoring; 步骤S2、数据分析平台中,所述人脸检测模型对检测出各个摄像头装置所获取的视频数据中所有的人脸数据存储在存储模块中;所述大数据分析模块对存储模块中存储的各个视频数据中的人脸数量进行计数,从而获得各个时间点下各个位置的摄像头装置所获取的视频数据的人脸数量,进而统计得到各个时间点下火车站各个位置的人流量数据和人流量趋势,并根据设定时间段内的人流量趋势预测接下来一段设定时间段内各个位置的人流量,当预测到的某个位置的人流量会超过预设的人流量阈值时进行报警并结合地图组件模块快速指明出警位置;数据分析平台会将人流量趋势预测结果和报警信息实时传输至监控终端进行显示,供工作人员查看。In step S2, in the data analysis platform, the face detection model stores all the face data in the video data acquired by the detected camera devices in the storage module; the big data analysis module stores all the face data in the storage module. The number of faces in the video data is counted, so as to obtain the number of faces in the video data obtained by the camera device at each location at each time point, and then the statistics of the traffic data and the traffic trend of each location of the railway station at each time point are obtained. , and predict the flow of people at each location in the next set time period according to the trend of the flow of people in the set time period. When the predicted flow of people in a certain location will exceed the preset threshold of people flow, an alarm will be issued and combined with The map component module quickly indicates the location of the alarm; the data analysis platform will transmit the prediction results of the traffic trend and the alarm information to the monitoring terminal in real time for display for the staff to view.
CN201910213467.7A 2019-03-20 2019-03-20 A system and method for monitoring the flow of people in a smart railway station Pending CN109948550A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910213467.7A CN109948550A (en) 2019-03-20 2019-03-20 A system and method for monitoring the flow of people in a smart railway station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910213467.7A CN109948550A (en) 2019-03-20 2019-03-20 A system and method for monitoring the flow of people in a smart railway station

Publications (1)

Publication Number Publication Date
CN109948550A true CN109948550A (en) 2019-06-28

Family

ID=67010406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910213467.7A Pending CN109948550A (en) 2019-03-20 2019-03-20 A system and method for monitoring the flow of people in a smart railway station

Country Status (1)

Country Link
CN (1) CN109948550A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110991412A (en) * 2019-12-20 2020-04-10 北京百分点信息科技有限公司 Face recognition method and device, storage medium and electronic equipment
CN114390079A (en) * 2022-03-24 2022-04-22 成都秦川物联网科技股份有限公司 Smart city public place management method and Internet of things system

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706874A (en) * 2009-12-25 2010-05-12 青岛朗讯科技通讯设备有限公司 Method for face detection based on features of skin colors
CN102054163A (en) * 2009-10-27 2011-05-11 南京理工大学 Method for testing driver fatigue based on monocular vision
US20160116378A1 (en) * 2013-08-26 2016-04-28 Mtelligence Corporation Population-based learning with deep belief networks
US20160292512A1 (en) * 2015-03-30 2016-10-06 Nec Corporation Information transfer apparatus, learning system, information transfer method, and computer-readable recording medium
CN107545243A (en) * 2017-08-07 2018-01-05 南京信息工程大学 Yellow race's face identification method based on depth convolution model
CN108564052A (en) * 2018-04-24 2018-09-21 南京邮电大学 Multi-cam dynamic human face recognition system based on MTCNN and method
CN108764203A (en) * 2018-06-06 2018-11-06 四川大学 A kind of pedestrian's quantitative analysis and display systems towards urban planning
CN108921131A (en) * 2018-07-26 2018-11-30 中国银联股份有限公司 A kind of method and device generating Face datection model, three-dimensional face images
CN108985218A (en) * 2018-07-10 2018-12-11 上海小蚁科技有限公司 People flow rate statistical method and device, calculates equipment at storage medium
CN109101888A (en) * 2018-07-11 2018-12-28 南京农业大学 A kind of tourist's flow of the people monitoring and early warning method
CN109165627A (en) * 2018-09-11 2019-01-08 广东惠禾科技发展有限公司 A kind of model building method, device and testimony of a witness checking method
US10192111B2 (en) * 2017-03-10 2019-01-29 At&T Intellectual Property I, L.P. Structure from motion for drone videos
CN109359603A (en) * 2018-10-22 2019-02-19 东南大学 A vehicle driver face detection method based on cascaded convolutional neural network

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102054163A (en) * 2009-10-27 2011-05-11 南京理工大学 Method for testing driver fatigue based on monocular vision
CN101706874A (en) * 2009-12-25 2010-05-12 青岛朗讯科技通讯设备有限公司 Method for face detection based on features of skin colors
US20160116378A1 (en) * 2013-08-26 2016-04-28 Mtelligence Corporation Population-based learning with deep belief networks
US20160292512A1 (en) * 2015-03-30 2016-10-06 Nec Corporation Information transfer apparatus, learning system, information transfer method, and computer-readable recording medium
US10192111B2 (en) * 2017-03-10 2019-01-29 At&T Intellectual Property I, L.P. Structure from motion for drone videos
CN107545243A (en) * 2017-08-07 2018-01-05 南京信息工程大学 Yellow race's face identification method based on depth convolution model
CN108564052A (en) * 2018-04-24 2018-09-21 南京邮电大学 Multi-cam dynamic human face recognition system based on MTCNN and method
CN108764203A (en) * 2018-06-06 2018-11-06 四川大学 A kind of pedestrian's quantitative analysis and display systems towards urban planning
CN108985218A (en) * 2018-07-10 2018-12-11 上海小蚁科技有限公司 People flow rate statistical method and device, calculates equipment at storage medium
CN109101888A (en) * 2018-07-11 2018-12-28 南京农业大学 A kind of tourist's flow of the people monitoring and early warning method
CN108921131A (en) * 2018-07-26 2018-11-30 中国银联股份有限公司 A kind of method and device generating Face datection model, three-dimensional face images
CN109165627A (en) * 2018-09-11 2019-01-08 广东惠禾科技发展有限公司 A kind of model building method, device and testimony of a witness checking method
CN109359603A (en) * 2018-10-22 2019-02-19 东南大学 A vehicle driver face detection method based on cascaded convolutional neural network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张家宁: "《智慧景区管理平台的设计研究》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110991412A (en) * 2019-12-20 2020-04-10 北京百分点信息科技有限公司 Face recognition method and device, storage medium and electronic equipment
CN114390079A (en) * 2022-03-24 2022-04-22 成都秦川物联网科技股份有限公司 Smart city public place management method and Internet of things system
US11868926B2 (en) 2022-03-24 2024-01-09 Chengdu Qinchuan Iot Technology Co., Ltd. Systems and methods for managing public place in smart city
US12223446B2 (en) 2022-03-24 2025-02-11 Chengdu Qinchuan Iot Technology Co., Ltd. Internet of things system and method for managing people flow of public place in smart city

Similar Documents

Publication Publication Date Title
CN111754498B (en) Conveyor belt carrier roller detection method based on YOLOv3
CN110826538B (en) An Abnormal Leaving Recognition System for Electric Power Business Hall
CN115082845A (en) Monitoring video target detection task scheduling method based on deep reinforcement learning
CN110647855B (en) Subway station passenger flow statistical method based on face recognition
WO2024000372A1 (en) Defect detection method and apparatus
CN115331172A (en) Workshop dangerous behavior recognition alarm method and system based on monitoring video
CN105208325B (en) The land resources monitoring and early warning method captured and compare analysis is pinpointed based on image
CN107808139A (en) A kind of real-time monitoring threat analysis method and system based on deep learning
CN112434828B (en) Intelligent safety protection identification method in 5T operation and maintenance
CN114092877A (en) A design method of unattended trash can system based on machine vision
CN112434827B (en) Safety protection recognition unit in 5T operation and maintenance
CN111444818A (en) CNN-based market stall violation stall detection method
CN106940790A (en) A kind of flow congestion's Forecasting Methodology and system
CN113297972A (en) Transformer substation equipment defect intelligent analysis method based on data fusion deep learning
CN106815575A (en) Optimization system and method for face detection result set
CN112040198A (en) Intelligent water meter reading identification system and method based on image processing
CN115661766A (en) Intelligent ship safety monitoring method and system based on deep learning
CN117115098A (en) Defect location and detection methods, systems, media and equipment for key substation equipment
CN106851229A (en) A kind of method and system of the security protection intelligent decision based on image recognition
CN119479075A (en) Subway fall detection method and system based on cloud-edge collaboration and X-CLIP model
CN109948550A (en) A system and method for monitoring the flow of people in a smart railway station
CN116994313A (en) Mask detection system and method in elevator scenario based on edge computing
CN117690086A (en) Flood prevention gate identification and control method and system based on 5G and AI technology
CN115953719A (en) Multi-target recognition computer image processing system
CN117079197B (en) Intelligent building site management method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100081 No.101, 1st floor, building 14, 27 Jiancai Chengzhong Road, Haidian District, Beijing

Applicant after: Beijing PERCENT Technology Group Co.,Ltd.

Applicant after: BEIJING 1-DIMENSION INNOVATION TECHNOLOGY Co.,Ltd.

Address before: 100081 16 / F, block a, Beichen Century Center, building 2, courtyard 8, Beichen West Road, Chaoyang District, Beijing

Applicant before: BEIJING BAIFENDIAN INFORMATION SCIENCE & TECHNOLOGY Co.,Ltd.

Applicant before: BEIJING 1-DIMENSION INNOVATION TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190628