Method for optimizing control strategy of pedestrian recognition and motion trajectory analysis system of monitoring video
Through experimental testing and optimization of pedestrian recognition and motion trajectory analysis in surveillance video systems using deep learning algorithms, the challenges of recognition and analysis in complex environments have been solved, achieving efficient pedestrian behavior prediction and trajectory analysis, and improving the system's adaptability and practicality.
Patent Information
- Application Number
- CN202411301473.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-09-18
AI Technical Summary
Existing video surveillance systems struggle to accurately identify and analyze pedestrian trajectories in complex environments, suffer from low computational efficiency, and lack effective models to comprehensively consider the coupling relationship between pedestrian behavior and environmental factors, thus limiting the system's practicality and efficiency.
Data was obtained through experimental testing to establish a pedestrian behavior analysis model. The behavior dimensionality reduction model was optimized by combining deep learning algorithms. The control strategy was adjusted by using machine learning-simulation optimization algorithms to optimize the parameters of the video acquisition and pedestrian analysis subsystems to adapt to different environments and needs.
It improves the accuracy of pedestrian recognition and the precision of motion trajectory analysis, enhances the system's adaptability to complex environments, improves the ability to predict and analyze pedestrian behavior, and ensures stable and reliable monitoring results in diverse scenarios.
Smart Images

Figure CN119152434B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent video surveillance system technology, and more specifically, to a method for optimizing the control strategy of a pedestrian recognition and motion trajectory analysis system for surveillance videos. Background Technology
[0002] Existing video surveillance systems face several challenges in pedestrian recognition and motion trajectory analysis. With accelerating urbanization, increasing public safety demands, and the development of artificial intelligence, the requirements for video surveillance systems are becoming increasingly stringent. Traditional surveillance systems primarily rely on simple image processing techniques to identify and track pedestrians, but these methods often struggle to provide accurate recognition and analysis results in complex environments, such as low-light, high-dynamic, or multi-pedestrian scenarios. Furthermore, existing systems suffer from low computational efficiency when processing large-scale data and are ill-suited to adapting to changing environmental factors and pedestrian behavior patterns. In terms of technical principles, many existing systems employ feature-based recognition methods, which rely on manually extracted features such as shape, color, and texture. These features are easily affected by interference in complex environments, leading to decreased recognition accuracy. Meanwhile, some systems attempt to improve recognition rates using machine learning methods, but these methods often require large amounts of labeled data and have limitations in model generalization capabilities.
[0003] In the process of implementing the embodiments of the present invention, the inventors have discovered that the prior art has at least the following problems or defects: the existing system is not adaptable enough to complex environments, making it difficult to accurately capture and analyze the movement trajectory of pedestrians; there is a lack of effective models to comprehensively consider the coupling relationship between pedestrian behavior and environmental factors; and there are bottlenecks in large-scale data processing and real-time requirements, which limit the practicality and efficiency of the monitoring system. Summary of the Invention
[0004] This invention provides a method for optimizing the control strategy of a pedestrian recognition and motion trajectory analysis system based on surveillance video, including:
[0005] Step S1. Conduct experimental tests on the video acquisition subsystem and obtain experimental data; wherein, the experimental test conditions cover the first test condition set and the second test condition set; the experimental data includes the first experimental data corresponding to the first test condition set and the second experimental data corresponding to the second test condition set;
[0006] Step S2. Based on the pedestrian-environment coupling relationship of the pedestrian behavior analysis model, establish an initial analysis model for the pedestrian analysis subsystem, and obtain a verified analysis model through the first experimental data; use the verified analysis model to simulate the behavioral characteristics of the pedestrian analysis subsystem, and output the first simulation results.
[0007] Step S3. Based on the deep learning algorithm, establish an initial behavior dimensionality reduction model for the pedestrian analysis subsystem; use the first simulation results to train the initial behavior dimensionality reduction model to obtain the trained behavior dimensionality reduction model;
[0008] Step S4. Use the second experimental data to verify the trained behavior dimensionality reduction model to obtain the verified behavior dimensionality reduction model;
[0009] Step S5. Set optimization parameters and control strategy optimization objectives; wherein, the control strategy optimization objectives include the expected behavior distribution, expected maximum speed, expected minimum speed, and expected speed inconsistency within the pedestrian analysis subsystem;
[0010] Step S6. Use a machine learning-simulation optimization algorithm to generate optimization parameters corresponding to the control strategy, input them into the validated behavior dimensionality reduction model to obtain prediction results; continuously update the optimization parameters and input them into the validated behavior dimensionality reduction model to obtain corresponding prediction results, until the corresponding prediction results reach the control strategy optimization target set in step S5.
[0011] Furthermore, the intersection of the first test case set and the second test case set is an empty set.
[0012] Furthermore, the experimental data includes the actual position values of each pedestrian in the pedestrian analysis subsystem, the actual speed values collected by the speed sensor layout, the actual behavior distribution, the actual maximum speed, the actual minimum speed, and the actual speed inconsistency.
[0013] Furthermore, the initial analysis model in step S2 includes a pedestrian behavior sub-model and a pedestrian motion sub-model; wherein, the pedestrian behavior sub-model is represented as:
[0014]
[0015] Among them, H i This represents the behavior description of the i-th pedestrian; n is the number of factors in the environment that influence pedestrian behavior; w ij P represents the weight of the correlation between the i-th pedestrian and the j-th factor. ij E represents the position parameter of the i-th pedestrian. j Let g be the j-th environmental factor; g is a behavioral analysis function that comprehensively considers location and environmental factors.
[0016] The pedestrian motion sub-model is represented as follows:
[0017]
[0018] Among them, V ij Let v be the speed of the i-th pedestrian under the j-th environmental factor; base The base velocity; m is the number of behavioral features affecting the velocity; h ijkS represents the activity level of pedestrian i under environmental factor j, specifically characteristic k. ijk Let k be the adjustment value for velocity, based on pedestrian behavior H. i and environmental factors E j Sure.
[0019] Furthermore, in step S2, the input to the initial analysis model is the actual input parameters and actual environmental parameters of the pedestrian analysis subsystem under the first test condition set, and the output is the first initial simulation behavior distribution, the first initial simulation maximum speed, the first initial simulation minimum speed, and the first initial simulation speed inconsistency within the pedestrian analysis subsystem, where the simulation behavior distribution B... i Determined by the following formula:
[0020]
[0021] Where t0 and t1 are the start and end times of the simulation, respectively.
[0022] Further, the analysis model obtained after verification by the first experimental data in step S2 specifically includes: comparing the first initial simulated behavior distribution, the first initial simulated maximum speed, the first initial simulated minimum speed, and the first initial simulated speed inconsistency within the pedestrian analysis subsystem with the first experimental data in the first stage. If the error of the first stage comparison is less than a preset first threshold, the initial analysis model is retained as the verified analysis model; otherwise, the parameters of the initial analysis model are adjusted and a first stage comparison is performed until the error of the first stage comparison is less than the preset first threshold.
[0023] Further, the step S4, which involves using the second experimental data to verify the trained behavior reduction model, specifically includes: inputting the actual input parameters and actual environmental parameters of the pedestrian analysis subsystem under the second test condition set into the trained behavior reduction model, outputting the second simulation result for comparison with the second experimental data in the second stage; if the error of the second stage comparison is less than the preset second threshold, then step S5 is executed; otherwise, steps S3 and S4 are repeated until the error of the second stage comparison is less than the preset second threshold.
[0024] Furthermore, the optimization parameters mentioned in step S5 are the acquisition frequency and resolution of the video acquisition subsystem.
[0025] Furthermore, the first test case set includes low-light environment testing and high-dynamic environment testing; the second test case set includes multi-pedestrian environment testing and complex background environment testing.
[0026] Furthermore, the initial behavior dimensionality reduction model mentioned in step S3 is a fusion model of deep learning convolutional neural network and recurrent neural network; wherein, the number of layers of the convolutional neural network is set to 3, and each convolutional layer is followed by a max pooling layer, the recurrent neural network uses a long short-term memory network LSTM structure, the number of LSTM layers is set to 2, the learning rate is set to 0.0001, the number of iterations is set to 5000, the ratio of the validation set to the training set obtained from the first simulation result is 8:2, the length of a single extracted data segment is 15, and the training objective residual is set to 0.00005.
[0027] The embodiments of the present invention have at least the following beneficial effects: The control strategy optimization method of the pedestrian recognition and motion trajectory analysis system for this surveillance video can improve the accuracy of pedestrian recognition and the precision of motion trajectory analysis. Through experimental data obtained from tests, combined with a pedestrian behavior analysis model, the system can establish a more accurate initial analysis model and further optimize the behavior dimensionality reduction model through deep learning algorithms. This method not only enhances the system's adaptability to complex environments but also improves its ability to predict and analyze pedestrian behavior. Furthermore, this method, through a machine learning-simulation optimization algorithm, can dynamically adjust optimization parameters and control strategies to achieve precise control over parameters such as the expected behavior distribution and speed within the pedestrian analysis subsystem. This continuous optimization process ensures that the system achieves the expected performance goals under different test conditions, thereby providing a more stable and reliable monitoring effect in practical applications. Through this method, the system can better serve fields such as public safety and traffic management, providing decision-makers with more scientific and effective data support. Attached Figure Description
[0028] The above and other objects, features, and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description taken in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated in the drawings by way of example and not limitation, wherein:
[0029] Figure 1 This is a flowchart illustrating the control strategy optimization method for a pedestrian recognition and motion trajectory analysis system based on surveillance video, provided in an embodiment of the present invention. Detailed Implementation
[0030] The principles and spirit of the invention will now be described with reference to several exemplary embodiments. It should be understood that these embodiments are provided merely to enable those skilled in the art to better understand and implement the invention, and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided to make the invention more thorough and complete, and to fully convey the scope of the invention to those skilled in the art.
[0031] Those skilled in the art will understand that embodiments of the present invention can be implemented as a system, apparatus, device, method, or computer program product. Therefore, the present invention can be specifically implemented in the following forms: entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.
[0032] It should be noted that the number of any elements in the accompanying drawings is for illustrative purposes only and not as a limitation, and any naming is for distinction only and has no limiting meaning.
[0033] The following is for reference. Figure 1 , Figure 1 This is a flowchart illustrating a control strategy optimization method for a surveillance video-based pedestrian recognition and motion trajectory analysis system according to an embodiment of the present invention. Figure 1 As shown, a control strategy optimization method 100 for a pedestrian recognition and motion trajectory analysis system based on surveillance video includes:
[0034] Step S1: Conduct experimental tests on the video acquisition subsystem and obtain experimental data; wherein, the experimental test conditions cover the first test condition set and the second test condition set; the experimental data includes the first experimental data corresponding to the first test condition set and the second experimental data corresponding to the second test condition set.
[0035] Step S2: Based on the pedestrian-environment coupling relationship of the pedestrian behavior analysis model, an initial analysis model is established for the pedestrian analysis subsystem, and the verified analysis model is obtained after verification with the first experimental data; the behavioral characteristics of the pedestrian analysis subsystem are simulated using the verified analysis model, and the first simulation results are output.
[0036] Step S3: Based on the deep learning algorithm, establish an initial behavior dimensionality reduction model for the pedestrian analysis subsystem; use the first simulation results to train the initial behavior dimensionality reduction model to obtain the trained behavior dimensionality reduction model.
[0037] Step S4: Use the second experimental data to verify the trained behavior dimensionality reduction model to obtain the verified behavior dimensionality reduction model;
[0038] Step S5: Set optimization parameters and control strategy optimization objectives; wherein, the control strategy optimization objectives include the expected behavior distribution, expected maximum speed, expected minimum speed, and expected speed inconsistency within the pedestrian analysis subsystem;
[0039] Step S6: Using a machine learning-simulation optimization algorithm, the optimization parameters corresponding to the control strategy are generated and input into the validated behavior dimensionality reduction model to obtain the prediction results; the optimization parameters are continuously updated and input into the validated behavior dimensionality reduction model to obtain the corresponding prediction results until the corresponding prediction results reach the control strategy optimization target set in step S5.
[0040] It should be noted that the control strategy optimization method for the pedestrian recognition and motion trajectory analysis system in the aforementioned surveillance video is a systematic solution that integrates video acquisition, pedestrian behavior analysis, deep learning algorithms, and machine learning optimization algorithms. This method continuously optimizes the pedestrian recognition and motion trajectory analysis model through experimental testing and data analysis to adapt to different monitoring environments and needs.
[0041] Specifically, this method involves terms such as video acquisition subsystem, pedestrian analysis subsystem, pedestrian behavior analysis model, deep learning algorithm, behavior dimensionality reduction model, and machine learning-simulation optimization algorithm. During implementation, it is necessary to set up experimental test case sets, including a first test case set and a second test case set. These case sets may include environments such as low light, high dynamic range, multiple pedestrians, and complex backgrounds. Simultaneously, it is necessary to define the types of experimental data, such as pedestrian position, speed, and behavior distribution, and select appropriate deep learning models and machine learning algorithms for training and optimization.
[0042] Preferably, in step S1, multi-camera synchronous acquisition technology can be used to ensure the accuracy and completeness of the experimental data. In step S2, the initial analysis model can be established based on existing pedestrian behavior databases and environmental parameters, and preliminary model construction can be carried out through an expert system. In step S3, the fusion model of deep learning convolutional neural networks and recurrent neural networks can be further refined. For example, the number of layers and parameters of the convolutional neural network can be adjusted according to actual data to improve the model's recognition ability. In step S5, the optimization parameter settings can include, but are not limited to, the frame rate, resolution, and encoding format of video acquisition to adapt to different monitoring scenarios and needs. More specifically, an adaptive adjustment mechanism can be adopted to dynamically adjust these parameters according to the real-time monitoring effect to achieve the best monitoring effect.
[0043] In some embodiments, the intersection of the first test condition set and the second test condition set is an empty set.
[0044] It should be noted that the intersection of the first and second test case sets is empty, meaning that these two test case sets are completely independent and have no overlap. This design ensures that the system can be effectively tested and verified in different and unique environments, thereby improving the system's adaptability and robustness in diverse scenarios.
[0045] Specifically, the first test case set may include low-light environment testing and high-dynamic environment testing, while the second test case set may include multi-pedestrian environment testing and complex background environment testing. These test case sets cover a variety of challenges that pedestrian recognition and motion trajectory analysis systems may encounter, such as recognizing pedestrians in poor lighting or fast-moving pedestrians, and performing trajectory analysis when multiple people are present at the same time or in complex and changing backgrounds.
[0046] Preferably, we can set specific parameters and concepts. For example, in low-light environment testing, the system's sensitivity and exposure time can be set to adapt to different lighting conditions. In high dynamic environment testing, the system's frame rate and dynamic range can be adjusted to capture fast-moving pedestrians. In multi-pedestrian environment testing, more advanced pedestrian detection algorithms can be used to distinguish and track multiple pedestrians. In complex background environment testing, background subtraction techniques can be introduced to reduce the impact of background interference on pedestrian recognition. Furthermore, specific thresholds can be set for each test case set to evaluate the system's performance in specific environments.
[0047] In some embodiments, experimental data include the actual position values of each pedestrian in the pedestrian analysis subsystem, the actual speed values collected by the speed sensor layout, the actual behavior distribution, the actual maximum speed, the actual minimum speed, and the actual speed inconsistency.
[0048] It should be noted that this method emphasizes the comprehensiveness and uniqueness of the experimental data. The intersection of the first and second test case sets is an empty set, meaning that these two sets of test cases are completely independent and designed for different environmental conditions and scenarios to ensure the robustness and adaptability of the system under diverse conditions.
[0049] Specifically, the experimental data covered the actual location values of each pedestrian within the pedestrian analysis subsystem, the actual speed values collected by the speed sensor layout, the actual behavior distribution, the actual maximum speed, the actual minimum speed, and the actual speed inconsistencies. These parameters are key indicators for evaluating system performance, ensuring the accuracy of model training and validation. For example, actual location values can be extracted from surveillance videos using video analysis software, while actual speed values are provided by speed sensors deployed in specific areas.
[0050] Preferably, experimental data collection can be achieved through an automated data acquisition system capable of monitoring and recording pedestrian position and speed information in real time. Furthermore, to improve data quality and usability, data cleaning and preprocessing techniques can be employed, such as removing outliers and noise, to ensure the accuracy and reliability of the data input into the model. Regarding parameter settings, the density and distribution of sensors, as well as the frequency and resolution of data acquisition, can be adjusted according to the complexity of the actual scenario and monitoring requirements.
[0051] In some embodiments, the initial analysis model in step S2 includes a pedestrian behavior sub-model and a pedestrian motion sub-model; wherein, the pedestrian behavior sub-model is represented as:
[0052]
[0053] Among them, H i This represents the behavior description of the i-th pedestrian; n is the number of factors in the environment that influence pedestrian behavior; w ij P represents the weight of the correlation between the i-th pedestrian and the j-th factor. ij E represents the position parameter of the i-th pedestrian. j Let g be the j-th environmental factor; g is a behavioral analysis function that comprehensively considers location and environmental factors.
[0054] The pedestrian motion sub-model is represented as follows:
[0055]
[0056] Among them, V ij Let v be the speed of the i-th pedestrian under the j-th environmental factor; base The base velocity; m is the number of behavioral features affecting the velocity; h ijk S represents the activity level of pedestrian i under environmental factor j, specifically characteristic k. ijk Let k be the adjustment value for velocity, based on pedestrian behavior H. i and environmental factors E j Sure.
[0057] It should be noted that the initial analysis model is a core component of the pedestrian recognition and motion trajectory analysis system. It consists of a pedestrian behavior sub-model and a pedestrian motion sub-model, which work together to simulate and analyze pedestrian behavior and motion under different environmental factors.
[0058] Specifically, the behavioral descriptions in the pedestrian behavior sub-model represent the behavioral characteristics of pedestrians in the environment, while the number and correlation weights of factors influencing pedestrian behavior in the environment determine the diversity and complexity of pedestrian behavior. The pedestrian motion sub-model considers the influence of base speed and behavioral characteristics on speed, where activity level and adjustment values are dynamically calculated based on pedestrian behavior and environmental factors.
[0059] Preferably, the input parameters of the initial analysis model can be adjusted according to the actual monitoring environment to adapt to different monitoring scenarios. For example, in low-light environments, the weight of light sensitivity can be increased, while in high-dynamic environments, the ability to recognize fast-moving objects can be improved. Furthermore, the behavior analysis function in the pedestrian behavior sub-model can employ various algorithms, such as Support Vector Machines (SVM) or neural networks, to improve the model's generalization ability. The base speed in the pedestrian motion sub-model can be preset based on the general walking speed of pedestrians, while the activity level and adjustment values can be learned from historical data using machine learning algorithms.
[0060] In some embodiments, the input to the initial analysis model in step S2 is the actual input parameters and actual environmental parameters of the pedestrian analysis subsystem under the first test condition set, and the output is the first initial simulation behavior distribution, the first initial simulation maximum speed, the first initial simulation minimum speed, and the first initial simulation speed inconsistency within the pedestrian analysis subsystem, wherein the simulation behavior distribution B i Determined by the following formula:
[0061]
[0062] Where t0 and t1 are the start and end times of the simulation, respectively.
[0063] It should be noted that the output of the initial analysis model includes the first initial simulation behavior distribution, the first initial simulation maximum speed, the first initial simulation minimum speed, and the first initial simulation speed inconsistency within the pedestrian analysis subsystem. These simulation results are based on the initial analysis model's simulation of pedestrian behavior and motion, and serve as the foundation for further model verification and optimization.
[0064] Specifically, the simulated behavior distribution predicts pedestrians' possible paths and behavioral patterns by comprehensively analyzing their behavioral patterns in a monitored scenario, including but not limited to walking direction and speed changes. The integral in the formula represents integrating the probability density function of pedestrian behavior between the start and end times of the simulation to obtain the expected behavior distribution. Furthermore, the simulated maximum speed, minimum speed, and speed inconsistency are predictions of the maximum and minimum speeds that pedestrians may reach, as well as the inconsistencies in speed changes, based on pedestrian behavior and environmental factors.
[0065] Preferably, to improve the accuracy and practicality of the simulation, the following settings can be adopted: the calculation of the simulated behavior distribution can be based on a pedestrian behavior analysis function, which considers pedestrian position parameters and environmental factors. Weight parameters are obtained by training a large amount of historical data using a machine learning algorithm. Simultaneously, the simulation's maximum and minimum speeds can be adjusted based on the activity levels of pedestrian behavior characteristics and environmental factors, which can be determined using data collected by environmental sensors. More specifically, the simulation start time can be set to the start of monitoring, and the end time can be set to a preset monitoring period, such as 30 seconds or 1 minute. Furthermore, to verify the model's accuracy, the simulation results can be compared and analyzed with the actually collected data. If the error is within an acceptable range, the model can be considered effective. If the error is large, the model parameters need to be adjusted or the model retrained until the accuracy requirements are met.
[0066] In some embodiments, the verification of the analysis model obtained through the first experimental data in step S2 specifically includes: comparing the first initial simulated behavior distribution, the first initial simulated maximum speed, the first initial simulated minimum speed, and the first initial simulated speed inconsistency within the pedestrian analysis subsystem with the first experimental data in a first stage; if the error of the first stage comparison is less than a preset first threshold, the initial analysis model is retained as the verified analysis model; otherwise, the parameters of the initial analysis model are adjusted and a first stage comparison is performed until the error of the first stage comparison is less than the preset first threshold.
[0067] It should be noted that comparing the first initial simulated behavior distribution, the first initial simulated maximum speed, the first initial simulated minimum speed, and the first initial simulated speed inconsistency with the first experimental data in the pedestrian analysis subsystem in the first stage means that the output of the simulation model needs to be compared with the actual collected experimental data in order to evaluate the accuracy and reliability of the model.
[0068] Specifically, the first initial simulation behavior distribution refers to the distribution of pedestrian behavior patterns predicted by the simulation model over a specific time period. The first initial simulation maximum speed and the first initial simulation minimum speed refer to the highest and lowest moving speeds of pedestrians predicted by the simulation model within the monitored area, respectively. The first initial simulation speed inconsistency refers to the irregularity of pedestrian speed changes. The parameter settings for these concepts will be determined based on the characteristics of the experimental data and the requirements of the system design.
[0069] Preferably, statistical methods can be used to quantify the error during the first-stage comparison, such as using mean squared error (MSE) or mean absolute error (MAE) as evaluation metrics. If the error in the first-stage comparison is less than a preset first threshold, it indicates that the simulation model has a high degree of agreement with the experimental data and can be retained as a validated analysis model. If the error exceeds the threshold, the parameters of the simulation model need to be adjusted, which may include adjusting the weights of the pedestrian behavior analysis function, the base velocity, and the feature activity, to improve the model's prediction accuracy. In addition, an adaptive learning mechanism can be considered to enable the model to automatically adjust its parameters based on new experimental data to better adapt to changes in the actual environment.
[0070] In some embodiments, the step S4 of verifying the trained behavior reduction model using the second experimental data specifically includes: inputting the actual input parameters and actual environmental parameters of the pedestrian analysis subsystem under the second test condition set into the trained behavior reduction model, outputting the second simulation result for comparison with the second experimental data in the second stage; if the error of the second stage comparison is less than a preset second threshold, then step S5 is executed; otherwise, steps S3 and S4 are repeated until the error of the second stage comparison is less than the preset second threshold.
[0071] It should be noted that the core purpose of using the second experimental data to validate the trained behavioral dimensionality reduction model is to ensure the model's effectiveness and accuracy in practical applications. This process involves inputting data collected in the real-world environment into the trained model and comparing it with the experimental data to evaluate the model's performance.
[0072] Specifically, the second experimental data in step S4 refers to the data on pedestrian behavior and trajectory collected under the second test case set. This includes, but is not limited to, information such as pedestrian position, speed, and behavioral patterns. The trained behavior dimensionality reduction model is a model optimized using deep learning algorithms, which can convert high-dimensional pedestrian behavior data into a low-dimensional representation while retaining key information. At this stage, the model's input parameters and environmental parameters need to be set according to the actual situation to ensure that the model can adapt to different test conditions.
[0073] Preferably, to further improve the model's validation performance, the model's output results can be analyzed in more detail. For example, specific performance metrics, such as prediction accuracy and recall, can be set to quantify the model's performance. Furthermore, additional regularization terms can be introduced to prevent overfitting, or cross-validation can be used to evaluate the model's generalization ability. Regarding parameter settings, the network structure can be adjusted according to the characteristics of the experimental data, such as increasing or decreasing the number of convolutional or LSTM layers, or adjusting the learning rate and number of iterations, to achieve the best training results.
[0074] In some embodiments, the optimization parameters in step S5 are the acquisition frequency and resolution of the video acquisition subsystem.
[0075] It should be noted that the optimized parameters, namely the acquisition frequency and resolution of the video acquisition subsystem, affect the quality and speed of video data acquisition. The acquisition frequency determines the smoothness of the video, while the resolution determines the clarity. Optimizing these two parameters can improve the system's accuracy in recognizing pedestrian behavior and the accuracy of motion trajectory analysis.
[0076] Specifically, the acquisition frequency of a video acquisition subsystem is typically measured in frames per second (FPS), while resolution is defined by the number of pixels; for example, 1920x1080 represents high-definition video. During implementation, these parameters can be set according to the needs of the actual monitoring environment. For example, a higher acquisition frequency can be selected in scenarios requiring rapid response, while a higher resolution can be chosen in scenarios requiring high definition to identify details. Furthermore, these parameters can be adjusted based on the processing capabilities of the pedestrian analysis subsystem to ensure data real-time performance and analytical accuracy.
[0077] Preferably, to further optimize the performance of the video acquisition subsystem, an adaptive adjustment strategy can be adopted. For example, the system can automatically adjust the acquisition frequency and resolution based on the dynamic changes of the current monitoring scene. In scenarios with few pedestrians and simpler behavior, the system can reduce the acquisition frequency to decrease the amount of data processing; while in scenarios with dense pedestrians or complex behavior, the acquisition frequency and resolution can be increased to obtain more detailed information. Furthermore, image quality enhancement techniques, such as noise reduction and sharpening, can be combined to further improve the quality of video data, thereby providing more reliable input data for pedestrian recognition and motion trajectory analysis.
[0078] In some embodiments, the first test case set includes low-light environment testing and high-dynamic environment testing; the second test case set includes multi-pedestrian environment testing and complex background environment testing.
[0079] It should be noted that the first and second test case sets are designed to ensure the system maintains high efficiency and accuracy under different environments. The first test case set includes low-light environment testing and high-dynamic environment testing, which helps evaluate the system's recognition capabilities in scenes with insufficient or rapidly changing lighting. The second test case set includes multi-pedestrian environment testing and complex background environment testing, which helps evaluate the system's recognition capabilities in scenes with dense crowds or cluttered backgrounds.
[0080] Specifically, the first test suite includes low-light environment testing to simulate nighttime or indoor lighting conditions, testing the system's performance under almost no natural or artificial light. The high-dynamic environment testing simulates fast-moving objects or rapidly changing scenes, testing the system's stability and accuracy when handling fast-moving pedestrians. The second test suite includes multi-pedestrian environment testing to simulate high-traffic areas such as shopping malls and train stations, testing the system's ability to recognize multiple pedestrians simultaneously. The complex background environment testing simulates scenes with rich background elements, diverse colors and textures, such as markets and festivals, testing the system's robustness under complex visual interference.
[0081] Preferably, for the implementation of the first test case set, specific test scenarios can be set up, such as using specific lighting equipment in a low-light environment to simulate nighttime conditions, while adjusting the exposure parameters of the video acquisition subsystem to adapt to changes in light. In high dynamic environment testing, rapidly moving simulated pedestrians can be set up or high-speed cameras can be used to capture rapidly changing scenes. For the second test case set, multiple simulated pedestrians can be arranged in the test area, and complex background patterns or actual scene recordings can be used to test the system. Furthermore, the parameters of the behavior analysis function and motion submodel of the pedestrian analysis subsystem can be adjusted according to different test cases to adapt to different environmental conditions and pedestrian behavior patterns.
[0082] In some embodiments, the initial behavior dimensionality reduction model in step S3 is a fusion model of deep learning convolutional neural network and recurrent neural network; wherein, the number of layers of the convolutional neural network is set to 3, each convolutional layer is followed by a max pooling layer, the recurrent neural network uses a long short-term memory network LSTM structure, the number of LSTM layers is set to 2, the learning rate is set to 0.0001, the number of iterations is set to 5000, the ratio of the validation set to the training set obtained from the first simulation result is 8:2, the length of a single extracted data segment is 15, and the training objective residual is set to 0.00005.
[0083] It should be noted that the first test case set includes low-light environment testing and high-dynamic environment testing, indicating that the system needs to be tested under different lighting and dynamic conditions to ensure its robustness. More specifically, low-light environment testing may involve nighttime or poorly lit scenes, while high-dynamic environment testing may include fast-moving objects or rapidly changing lighting conditions.
[0084] Specifically, low-light environment testing may include video capture at night or under conditions of insufficient indoor lighting, testing the system's pedestrian recognition capabilities under these conditions. High dynamic environment testing may involve testing the system's performance under strong light or rapidly changing lighting conditions, such as direct sunlight or reflected light. In these tests, the system's video capture subsystem needs to adjust its capture frequency and resolution to adapt to different lighting conditions.
[0085] Preferably, for low-light environment testing, the system's video acquisition subsystem can use a high-sensitivity camera and adjust the acquisition frequency to reduce noise while increasing resolution to maintain image clarity. For high-dynamic environment testing, a camera with wide dynamic range (WDR) can be used, and algorithm optimization can be employed to balance details in different lighting areas, ensuring accurate capture of pedestrian features. Furthermore, the system can employ adaptive algorithms to automatically adjust parameters according to changes in ambient light to achieve optimal monitoring results.
[0086] The above embodiments of the present invention have the following beneficial effects: The control strategy optimization method for the pedestrian recognition and motion trajectory analysis system of the surveillance video of the present invention can significantly improve the recognition accuracy and analysis efficiency of the system in complex environments. This method, through comprehensive experimental testing, pedestrian behavior analysis, deep learning algorithms, and machine learning optimization algorithms, can ensure that the system can achieve highly accurate pedestrian behavior prediction and trajectory analysis under different test conditions. Specifically, this method can adapt to changing environmental factors and pedestrian behavior patterns, improve the system's understanding and prediction capabilities of pedestrian behavior, thereby enhancing the practicality and reliability of the surveillance system.
[0087] Furthermore, by optimizing control strategies, the system can precisely adjust the parameters of the video acquisition subsystem, such as acquisition frequency and resolution, to adapt to different monitoring needs. In tests using the first and second test case sets, the system demonstrates special optimization for environments with low light, high dynamic range, multiple pedestrians, and complex backgrounds, ensuring high-quality monitoring data under various conditions. Moreover, the application of a fusion model combining deep learning convolutional neural networks and recurrent neural networks further enhances the system's ability to recognize pedestrian behavior features, making it more efficient in processing large-scale data and providing strong technical support for fields such as public safety and traffic management.
[0088] Furthermore, the storage medium in the embodiments of this application stores program instructions capable of implementing all the above methods. These program instructions can be stored in the storage medium in the form of a software product, including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, or terminal devices such as computers, servers, mobile phones, and tablets.
[0089] The above description is merely a selection of preferred embodiments of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention as described in the embodiments is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features with similar functions disclosed in the embodiments of the present invention.
Claims
1. A method for optimizing the control strategy of a pedestrian recognition and motion trajectory analysis system based on surveillance video, the system comprising a video acquisition subsystem and a pedestrian analysis subsystem, characterized in that, The method includes the following steps: Step S1. Conduct experimental tests on the video acquisition subsystem and obtain experimental data; wherein, the experimental test conditions cover the first test condition set and the second test condition set; the experimental data includes the first experimental data corresponding to the first test condition set and the second experimental data corresponding to the second test condition set; Step S2. Pedestrian behavior analysis model The environmental coupling relationship is considered, and an initial analysis model is established for the pedestrian analysis subsystem. The validated analysis model is obtained through the first experimental data. The behavioral characteristics of the pedestrian analysis subsystem are simulated using the validated analysis model, and the first simulation results are output. In step S2, the initial analysis model includes a pedestrian behavior sub-model and a pedestrian motion sub-model. The pedestrian behavior sub-model is represented as follows: ; in, Indicates the first Description of pedestrian behavior; The number of factors in the environment that influence pedestrian behavior; For the first The pedestrian and the first The weights of the correlation between factors; For the first Location parameters of each pedestrian; For the first One environmental factor; A behavioral analysis function that comprehensively considers location and environmental factors; The pedestrian motion sub-model is represented as follows: ; in, For the first The pedestrian in the first Speed under various environmental factors; Base speed; The number of behavioral features that affect speed; For pedestrians Environmental factors Lower features Activity level; Features The speed adjustment value is based on pedestrian behavior. and environmental factors Sure; Step S3. Based on the deep learning algorithm, establish an initial behavior dimensionality reduction model for the pedestrian analysis subsystem; use the first simulation results to train the initial behavior dimensionality reduction model to obtain the trained behavior dimensionality reduction model; Step S4. Use the second experimental data to verify the trained behavior dimensionality reduction model to obtain the verified behavior dimensionality reduction model; Step S5. Set optimization parameters and control strategy optimization objectives; wherein, the control strategy optimization objectives include the expected behavior distribution, expected maximum speed, expected minimum speed, and expected speed inconsistency within the pedestrian analysis subsystem; Step S6. Employ machine learning The simulation optimization algorithm generates optimization parameters corresponding to the control strategy, which are then input into the validated behavior dimensionality reduction model to obtain prediction results. The optimization parameters are continuously updated and input into the validated behavior dimensionality reduction model to obtain corresponding prediction results until the corresponding prediction results reach the control strategy optimization objective set in step S5.
2. The method for optimizing the control strategy of the pedestrian recognition and motion trajectory analysis system for surveillance video according to claim 1, characterized in that, The intersection of the first test case set and the second test case set is an empty set.
3. The method for optimizing the control strategy of the pedestrian recognition and motion trajectory analysis system for surveillance video according to claim 2, characterized in that, The experimental data includes the actual position values of each pedestrian in the pedestrian analysis subsystem, the actual speed values collected by the speed sensor layout, the actual behavior distribution, the actual maximum speed, the actual minimum speed, and the inconsistency of actual speed.
4. The method for optimizing the control strategy of the pedestrian recognition and motion trajectory analysis system for surveillance video according to claim 3, characterized in that, In step S2, the input to the initial analysis model is the actual input parameters and actual environmental parameters of the pedestrian analysis subsystem under the first test condition set. The output is the first initial simulation behavior distribution, the first initial simulation maximum speed, the first initial simulation minimum speed, and the first initial simulation speed inconsistency within the pedestrian analysis subsystem. The simulation behavior distribution... Determined by the following formula: ; in, and These are the start and end times of the simulation, respectively.
5. The method for optimizing the control strategy of the pedestrian recognition and motion trajectory analysis system for surveillance video according to claim 4, characterized in that, The analysis model obtained after verification by the first experimental data in step S2 specifically includes: comparing the first initial simulated behavior distribution, the first initial simulated maximum speed, the first initial simulated minimum speed, and the first initial simulated speed inconsistency within the pedestrian analysis subsystem with the first experimental data in the first stage. If the error of the first stage comparison is less than a preset first threshold, the initial analysis model is retained as the verified analysis model; otherwise, the parameters of the initial analysis model are adjusted and a first stage comparison is performed until the error of the first stage comparison is less than the preset first threshold.
6. The method for optimizing the control strategy of the pedestrian recognition and motion trajectory analysis system for surveillance video according to claim 5, characterized in that, The step S4, which involves verifying the trained behavior reduction model using the second experimental data, specifically includes: inputting the actual input parameters and actual environmental parameters of the pedestrian analysis subsystem under the second test condition set into the trained behavior reduction model, outputting the second simulation result for comparison with the second experimental data in the second stage; if the error of the second stage comparison is less than the preset second threshold, then step S5 is executed; otherwise, steps S3 and S4 are repeated until the error of the second stage comparison is less than the preset second threshold.
7. The method for optimizing the control strategy of the pedestrian recognition and motion trajectory analysis system for surveillance video according to claim 6, characterized in that, The optimization parameters mentioned in step S5 are the acquisition frequency and resolution of the video acquisition subsystem.
8. The method for optimizing the control strategy of the pedestrian recognition and motion trajectory analysis system for surveillance video according to claim 7, characterized in that, The first test case set includes low-light environment testing and high-dynamic environment testing; The second test case set includes multi-pedestrian environment testing and complex background environment testing.
9. The method for optimizing the control strategy of the pedestrian recognition and motion trajectory analysis system for surveillance video according to claim 8, characterized in that, The initial behavior dimensionality reduction model mentioned in step S3 is a fusion model of deep learning convolutional neural network and recurrent neural network; wherein, the number of layers of the convolutional neural network is set to 3, and each convolutional layer is followed by a max pooling layer; the recurrent neural network uses a long short-term memory network LSTM structure, the number of LSTM layers is set to 2, the learning rate is set to 0.0001, the number of iterations is set to 5000, the ratio of the validation set to the training set obtained from the first simulation result is 8:2, the length of a single extracted data segment is 15, and the training objective residual is set to 0.00005.
