Tourism cave tourist number management and control method and management and control system
Through wavelet transformation and coherence analysis technology, the CO2 concentration and number of tourists in the cave are monitored, and the relationship curve is established, real-time control of the CO2 concentration of the number of tourists in the cave is achieved, and the problem of the inability to assess the risk of CO2 changes in the cave in the existing technology is solved, and the problem of the inability to evaluate the risk of CO2 changes in the cave is promoted. Cave protection and sustainable development.
Patent Information
- Application Number
- CN202411008563.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-19
AI Technical Summary
The existing Internet of Things technology cannot effectively monitor the relationship between CO2 concentration in tourist caves and the number of tourists, making it difficult to carry out active and proactive tourist control, affecting the protection and sustainable development of cave geological relics landscapes.
By using wavelet transformation and coherence analysis methods, the time series of CO2 concentration and tourist number of each monitoring station in the cave are obtained, the wavelet transformation coefficient, lag time and control time are calculated, and the relationship curve of the maximum CO2 concentration and control time corresponding to the number of tourists is established to achieve real-time Control.
Quickly and accurately predict the maximum CO2 concentration corresponding to the real-time number of tourists in tourist caves and formulate corresponding control time, which solves the problem that monitoring the number of tourists can only display the characteristics of time variation, provides data support, and promotes cave protection and sustainable development.
Smart Images

Figure CN118982142A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and more particularly to a method and system for controlling the number of tourists in a tourist cave. Background Art
[0002] The Internet of Things connects all objects to the Internet through information sensing devices to exchange information in order to achieve intelligent identification and management. As a key indicator in the air environment of tourist caves, CO2 concentration changes not only have an important impact on the deposition and dissolution of cave secondary chemical sediments, but also affect the comfort of tourists. In tourist caves, CO2 concentration is affected by the superposition of natural factors and tourist activities, and will change significantly in a short period of time, posing a threat to the personal safety of tourists. In addition, long-term tourist activities will cause the cave geological relics landscape to dehydrate and weather, darken the color, cause irreversible damage, and affect the sustainable development of tourist caves. Therefore, it is urgent to explore the correlation between tourist activities and cave environment, and formulate effective protection plans accordingly. At present, the monitoring results of the number of tourists by the Internet of Things can only reflect the time-varying characteristics of the number of tourists in the scenic area, and it is impossible to establish the relationship between the CO2 concentration and the number of tourists in tourist caves, which makes it difficult to carry out active and proactive tourist number control measures.
[0003] Therefore, how to provide a tourist cave tourist number control method and control system, which can quickly and accurately predict the maximum CO2 concentration corresponding to the real-time number of tourists in the tourist cave and formulate the corresponding control duration, and provide feasible theoretical and methodological support for the protection and sustainable development of tourist cave geological relics landscape. Summary of the invention
[0004] In view of this, the object of the present invention is to provide a method and system for controlling the number of tourists in a tourist cave.
[0005] In order to achieve the above object, the present invention adopts the following technical solution:
[0006] In a first aspect, a method for controlling the number of tourists in a tourist cave is provided, comprising the following steps:
[0007] S1: Obtain the CO2 concentration time series of all monitoring sites in a certain period of time in the tourist cave, and obtain the time series of the number of tourists in the same period;
[0008] S2: Perform continuous wavelet transform on the CO2 concentration time series of each monitoring station to obtain the wavelet transform coefficient of CO2 concentration of each monitoring station;
[0009] Perform continuous wavelet transform on the time series of the number of tourists to obtain the wavelet transform coefficients of the number of tourists;
[0010] Determine the real part of the wavelet coefficient corresponding to the main period of the change in the number of tourists according to the wavelet transform coefficient of the number of tourists;
[0011] S3: based on the wavelet transform coefficient of the CO2 concentration of each monitoring site and the wavelet transform coefficient of the number of tourists, obtaining the coherence coefficient of each monitoring site;
[0012] S4: Based on the coherence coefficient of each monitoring site and the real part of the wavelet coefficient corresponding to the main period of the number of tourists, the CO2 concentration lag time of each monitoring site, the maximum CO2 concentration corresponding to a certain number of tourists and the control time are obtained;
[0013] S5: Obtain the CO2 concentration time series of all monitoring stations in the tourist cave at different time periods, and obtain the time series of the number of tourists in the corresponding period of the CO2 concentration time series. Repeat S1-S4 continuously to obtain the maximum CO2 concentration and control time corresponding to different numbers of tourists;
[0014] S6: Divide the time series of different periods into seasonal or monthly scales, and establish the relationship curve between the maximum CO2 concentration and the control duration corresponding to different numbers of tourists at different seasonal or monthly scales;
[0015] S7: In the quarterly or monthly relationship curve corresponding to the current month, obtain the maximum CO2 concentration and control duration corresponding to the real-time number of tourists;
[0016] S8: Control the number of tourists according to the maximum CO2 concentration and control duration corresponding to the real-time number of tourists.
[0017] Preferably, S2 further comprises:
[0018] Calculating the wavelet variance of the number of tourists according to the wavelet transform coefficient of the number of tourists;
[0019] Obtaining the main period of change in the number of tourists based on the wavelet variance of the number of tourists;
[0020] The real part of the wavelet coefficient corresponding to the main period of change in the number of tourists is obtained based on the main period of change in the number of tourists.
[0021] Preferably, S4 specifically includes:
[0022] Based on the coherence coefficient of each monitoring station, the wavelet coherence spectrum and other density maps of each monitoring station are drawn;
[0023] Determine the common time period when the coherence coefficient in the wavelet coherence spectrum and other density maps of each monitoring station is greater than a preset threshold value and the phase difference corresponding to the common time period in the wavelet coherence spectrum and other density maps of each monitoring station;
[0024] Obtain the tourist number change cycle and the number of tourists corresponding to the common time period in the real part of the wavelet coefficient; calculate the CO2 concentration lag time of each monitoring station according to the tourist number change cycle and each phase difference;
[0025] Obtain the CO2 concentration of each monitoring site within the common time period, and select the maximum CO2 concentration and the reference site therefrom to obtain the maximum CO2 concentration corresponding to the number of tourists; wherein the reference site is the monitoring site corresponding to the maximum CO2 concentration;
[0026] Based on the difference between the CO2 concentration lag time of the reference site and the time it takes for tourists to arrive at the reference site, the control time corresponding to the number of tourists is determined.
[0027] Preferably, the wavelet transform coefficient of CO2 concentration at a monitoring site is obtained based on the following formula:
[0028]
[0029] Among them, W X (a) represents the wavelet transform coefficient of CO2 concentration at a monitoring station; a represents the time scale; b represents the translation factor; f(t) represents the time series of CO2 concentration at a monitoring station; ψ(t) represents the basis wavelet function; for The complex conjugate of ; R represents the set of real numbers.
[0030] Preferably, the wavelet transform coefficient of the number of tourists is obtained based on the following formula:
[0031]
[0032] Among them, W Y (a) represents the wavelet transform coefficient of the number of tourists; a represents the time scale; b represents the translation factor; f(t)' represents the time series of the number of tourists; ψ(t) represents the basic wavelet function; for The complex conjugate of ; R represents the set of real numbers.
[0033] Preferably, the base wavelet function is a Morlet wavelet function.
[0034] Preferably, the wavelet variance of the number of tourists is obtained based on the following formula:
[0035]
[0036] Where a represents the time scale; b represents the translation factor; var(a) represents the wavelet variance of the number of tourists; W Y (a) represents the wavelet transform coefficients of the number of tourists.
[0037] Preferably, the coherence coefficient of a monitoring site is obtained based on the following formula:
[0038]
[0039] Among them, R 2 (a) represents the coherence coefficient of a monitoring station; a represents the time scale; S is the smoothing operator, W X (a) and W Y (a) represents the wavelet transform coefficient of CO2 concentration and the wavelet transform coefficient of the number of tourists at a monitoring site, respectively, XY (s) is the cross wavelet spectrum of the CO2 concentration time series of a monitoring site and the tourist number time series.
[0040] Preferably, S3 further includes: performing a significance experiment on the coherence coefficient of each monitoring site using a red noise standard spectrum, and screening out the coherence coefficient within a 95% confidence interval.
[0041] Preferably, the CO2 concentration hysteresis time of a monitoring station is calculated based on the following formula:
[0042]
[0043] Among them, Z represents the lag time of CO2 concentration at a certain monitoring site; rad represents the phase difference corresponding to the common time period in the wavelet coherence spectrum and other density maps of a certain monitoring site; T represents the cycle of changes in the number of tourists.
[0044] Preferably, each monitoring site includes a cave entrance monitoring site and several cave in-cave monitoring sites.
[0045] Preferably, the time series of the number of tourists is obtained based on a passenger flow counting device at the cave entrance.
[0046] Preferably, the preset threshold is 0.8.
[0047] In a second aspect, a tourist cave visitor number control system is provided, the control system comprising a first processing subsystem, a second processing subsystem, a third processing subsystem, a fourth processing subsystem and a fifth processing subsystem;
[0048] The first processing subsystem comprises a first processing module, a second processing module, a third processing module, a fourth processing module, a fifth processing module and a sixth processing module connected in sequence;
[0049] The first processing module is used to obtain the CO2 concentration time series of all monitoring sites in a certain period of time in the tourist cave;
[0050] The second processing module is used to obtain the time series of the number of tourists in the same period;
[0051] The third processing module is used to perform continuous wavelet transform on the CO2 concentration time series of each monitoring site to obtain the CO2 concentration wavelet transform coefficient of each monitoring site; and to perform continuous wavelet transform on the number of tourists time series to obtain the number of tourists wavelet transform coefficient;
[0052] The fourth processing module is used to determine the real part of the wavelet coefficient corresponding to the main period of the change of the number of tourists according to the wavelet transform coefficient of the number of tourists;
[0053] The fifth processing module is used to obtain the coherence coefficient of each monitoring site based on the wavelet transform coefficient of the CO2 concentration of each monitoring site and the wavelet transform coefficient of the number of tourists;
[0054] The sixth processing module is used to obtain the CO2 concentration lag time of each monitoring site, the maximum CO2 concentration corresponding to a certain number of tourists, and the control time based on the coherence coefficient of each monitoring site and the real part of the wavelet coefficient corresponding to the main period of the change in the number of tourists;
[0055] The second processing subsystem is used to obtain the maximum CO2 concentration and control duration corresponding to different numbers of tourists according to the output of the first processing subsystem at different time periods;
[0056] The third processing subsystem is used to divide the time series of different time periods into seasonal or monthly scales, and establish the relationship curve between the maximum CO2 concentration and the control time corresponding to different numbers of tourists at different seasonal or monthly scales;
[0057] The fourth processing subsystem is used to obtain the maximum CO2 concentration and control duration corresponding to the real-time number of tourists in the quarterly or monthly relationship curve corresponding to the current month;
[0058] The fifth processing subsystem is used to control the number of tourists according to the maximum CO2 concentration and control duration corresponding to the real-time number of tourists.
[0059] Preferably, the fourth processing module includes a first processing unit, a second processing unit and a third processing unit;
[0060] The first processing unit is used to calculate the wavelet variance of the number of tourists according to the wavelet transform coefficient of the number of tourists;
[0061] The second processing unit is used to obtain the main period of change of the number of tourists based on the wavelet variance of the number of tourists;
[0062] The third processing unit is used to obtain the real part of the wavelet coefficient corresponding to the main period of change in the number of tourists based on the main period of change in the number of tourists.
[0063] Preferably, the sixth processing module includes a fourth processing unit, a fifth processing unit, a sixth processing unit, a seventh processing unit and an eighth processing unit;
[0064] The fourth processing unit is used for drawing a wavelet coherence spectrum isodensity map of each monitoring site based on the coherence coefficient of each monitoring site;
[0065] The fifth processing unit is used to determine the common time period when the coherence coefficient in the wavelet coherence spectrum and other density maps of each monitoring station is greater than the preset threshold value and the phase difference corresponding to the common time period in the wavelet coherence spectrum and other density maps of each monitoring station;
[0066] The sixth processing unit is used to obtain the tourist number change cycle and the number of tourists corresponding to the common time period in the real part of the wavelet coefficient; according to the tourist number change cycle and each phase difference, calculate the CO2 concentration lag time of each monitoring site;
[0067] The seventh processing unit is used to obtain the CO2 concentration of each monitoring site in the common time period, and select the maximum CO2 concentration and the reference site therefrom to obtain the maximum CO2 concentration corresponding to the number of tourists; wherein the reference site is the monitoring site corresponding to the maximum CO2 concentration;
[0068] The eighth processing unit is used to determine the control time corresponding to the number of tourists based on the difference between the CO2 concentration lag time of the reference site and the time it takes for tourists to arrive at the reference site.
[0069] In a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a method for controlling the number of tourists in a tourist cave as described in any one of the above is implemented.
[0070] It can be seen from the above technical solutions that, compared with the prior art, the present invention discloses a method and system for controlling the number of tourists in a tourist cave, which can achieve the following beneficial technical effects:
[0071] 1) The present invention can quickly and accurately predict the maximum CO2 concentration corresponding to the real-time number of tourists in the tourist cave and formulate the corresponding control time.
[0072] 2) The present invention solves the problem that the current monitoring of the number of tourists in tourist caves can only show its time variation characteristics and cannot evaluate the tourism safety risks based on the changes in CO2 concentration in the cave.
[0073] 3) Based on the continuous wavelet transform analysis and wavelet coherence analysis of CO2 concentration and number of tourists in tourist caves, the present invention obtains the maximum CO2 concentration and control time corresponding to different numbers of tourists, which provides data support for the control of the number of tourists in tourist caves, has broad application prospects and great promotion value. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0075] Figure 1 A flow chart of a method for controlling the number of tourists in a tourist cave provided by the present invention;
[0076] Figure 2 A wavelet variance diagram of the number of tourists provided in a certain embodiment of the present invention;
[0077] Figure 3 A fluctuation diagram of the real part of the wavelet coefficient corresponding to the main period of the change in the number of tourists provided in a certain embodiment of the present invention;
[0078] Figure 4 A wavelet coherence spectrum isodensity map of a monitoring site provided in an embodiment of the present invention;
[0079] Figure 5 A curve showing the relationship between the maximum CO2 concentration and the control duration corresponding to different numbers of tourists in a certain month provided in an embodiment of the present invention;
[0080] Figure 6 A schematic diagram of a tourist cave visitor number control system provided by the present invention;
[0081] Figure 7 This is a schematic structural diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0082] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0083] like Figure 1 As shown, the embodiment of the present invention discloses a method for controlling the number of tourists in a tourist cave, comprising the following steps:
[0084] S1: Obtain the CO2 concentration time series of all monitoring sites in a tourist cave during a certain period of time, and obtain the time series of the number of tourists in the same period of time.
[0085] It is understandable that:
[0086] The present invention sets a passenger flow counting device at the entrance of the tourist cave to count the number of tourists;
[0087] The present invention selects several monitoring sites at the entrance and inside of the tourist cave, and sets a CO2 concentration sensor for each monitoring site;
[0088] The CO2 concentration sensor and passenger flow counting device upload the collected data to the cave environment monitoring platform;
[0089] The CO2 concentration data received by the cave environment monitoring platform is screened through JR language programming, and the CO2 concentration data of each monitoring site is output hourly to obtain the CO2 concentration time series of all monitoring sites within a certain period of time;
[0090] The tourist statistics data received by the cave environment monitoring platform are filtered through JR language programming, and the sum of all tourist numbers per hour is output hour by hour to obtain the time series of tourist numbers in the same period.
[0091] S2: Perform continuous wavelet transform on the CO2 concentration time series of each monitoring station to obtain the wavelet transform coefficient of CO2 concentration of each monitoring station;
[0092] Perform continuous wavelet transform on the time series of the number of tourists to obtain the wavelet transform coefficients of the number of tourists;
[0093] Calculating the wavelet variance of the number of tourists according to the wavelet transform coefficient of the number of tourists;
[0094] Obtaining the main period of change in the number of tourists based on the wavelet variance of the number of tourists;
[0095] Specifically: Draw a wavelet variance diagram of the number of tourists according to the wavelet variance of the number of tourists (such as Figure 2 As shown), the main period of the change in the number of tourists is obtained through the peak points in the wavelet variance diagram of the number of tourists.
[0096] Based on the main period of the change in the number of tourists, the real part of the wavelet coefficient corresponding to the main period of the change in the number of tourists is obtained (such as Figure 3 shown).
[0097] S3: Based on the wavelet transform coefficient of CO2 concentration at each monitoring site and the wavelet transform coefficient of the number of tourists, the coherence coefficient of each monitoring site is obtained;
[0098] Specifically: Assume there are N monitoring sites, take monitoring site A as an example:
[0099] Based on the wavelet transform coefficient of CO2 concentration at monitoring site A and the wavelet transform coefficient of the number of tourists, the coherence coefficient of monitoring site A can be obtained;
[0100] By analogy, the coherence coefficients of N monitoring sites can be obtained.
[0101] S4: Based on the coherence coefficient of each monitoring station, draw the wavelet coherence spectrum and other density maps of each monitoring station, such as Figure 4 As shown, it shows the wavelet coherence spectrum and other density maps of a certain monitoring station.
[0102] Determine the common time periods when the coherence coefficient in the wavelet coherence spectrum and other density maps of each monitoring station is greater than a preset threshold and the phase differences corresponding to the common time periods in the wavelet coherence spectrum and other density maps of each monitoring station.
[0103] The tourist number variation cycle and the number of tourists corresponding to the common time period in the real part of the wavelet coefficient are obtained; and the CO2 concentration lag time of each monitoring site is calculated according to the tourist number variation cycle and each phase difference.
[0104] It should be noted that: the number of tourists is the average value of the number of tourists corresponding to all peak points in the common time period in the real part of the wavelet coefficient;
[0105] The CO2 concentration of each monitoring site within the common time period is obtained, and the maximum CO2 concentration and the reference site are selected therefrom to obtain the maximum CO2 concentration corresponding to the number of tourists; wherein the reference site is the monitoring site corresponding to the maximum CO2 concentration.
[0106] It should be noted that: the CO2 concentration of each monitoring station in the common time period is: the average value of the CO2 concentration corresponding to all peak points in the common time period in the real part of the wavelet coefficient.
[0107] Based on the difference between the CO2 concentration lag time of the reference site and the time it takes for tourists to arrive at the reference site, the control time corresponding to the number of tourists is determined.
[0108] S5: Obtain the CO2 concentration time series of all monitoring stations in the tourist cave at different time periods, and obtain the time series of the number of tourists in the corresponding period of the CO2 concentration time series. Repeat S1-S4 continuously to obtain the maximum CO2 concentration and control time corresponding to different numbers of tourists.
[0109] S6: Divide the time series of different periods into seasonal or monthly scales, and establish the relationship curve between the maximum CO2 concentration and the control duration corresponding to different numbers of tourists at different seasonal or monthly scales (e.g. Figure 5 As shown, it shows the relationship curve between the maximum CO2 concentration and the control time corresponding to different numbers of tourists in a certain month).
[0110] S7: In the quarterly or monthly relationship curve corresponding to the current month, obtain the maximum CO2 concentration and control duration corresponding to the real-time number of tourists.
[0111] S8: Control the number of tourists according to the maximum CO2 concentration and control duration corresponding to the real-time number of tourists.
[0112] Furthermore, the wavelet transform coefficient of CO2 concentration at a monitoring station is obtained based on the following formula:
[0113]
[0114] Among them, W X (a) represents the wavelet transform coefficient of CO2 concentration at a monitoring station; a represents the time scale; b represents the translation factor; f(t) represents the time series of CO2 concentration at a monitoring station; ψ(t) represents the basis wavelet function; for The complex conjugate of ; R represents the set of real numbers.
[0115] Furthermore, the wavelet transform coefficient of the number of tourists is obtained based on the following formula:
[0116]
[0117] Among them, W Y (a) represents the wavelet transform coefficient of the number of tourists; a represents the time scale; b represents the translation factor; f(t)' represents the time series of the number of tourists; ψ(t) represents the basic wavelet function; for The complex conjugate of ; R represents the set of real numbers.
[0118] Furthermore, the base wavelet function is a Morlet wavelet function.
[0119] Furthermore, the wavelet variance of the number of tourists is obtained based on the following formula:
[0120]
[0121] Where a represents the time scale; b represents the translation factor; var(a) represents the wavelet variance of the number of tourists; W Y (a) represents the wavelet transform coefficients of the number of tourists.
[0122] Furthermore, the coherence coefficient of a monitoring site is obtained based on the following formula:
[0123]
[0124] Among them, R 2 (a) represents the coherence coefficient of a monitoring station; a represents the time scale; S is the smoothing operator, W X (a) and W Y (a) represents the wavelet transform coefficient of CO2 concentration and the wavelet transform coefficient of the number of tourists at a monitoring site, respectively, XY (s) is the cross wavelet spectrum of the CO2 concentration time series of a monitoring site and the tourist number time series.
[0125] It is understandable that: W XY (s) The complex value part is the phase relationship between the CO2 concentration time series and the tourist volume time series. A positive phase value indicates that the phase of the CO2 concentration signal lags behind the tourist volume signal. Conversely, a negative phase value indicates that the phase of the CO2 concentration signal is ahead of the tourist volume signal.
[0126] Furthermore, S3 further includes: using a red noise standard spectrum to conduct a significance experiment on the coherence coefficient of each monitoring station, and screening out the coherence coefficient within a 95% confidence interval.
[0127] Furthermore, the CO2 concentration lag time of a monitoring station is calculated based on the following formula:
[0128]
[0129] Among them, Z represents the lag time of CO2 concentration at a certain monitoring site; rad represents the phase difference corresponding to the common time period in the wavelet coherence spectrum and other density maps of a certain monitoring site; T represents the cycle of changes in the number of tourists.
[0130] Furthermore, the preset threshold is 0.8.
[0131] In the above embodiments, the following beneficial technical effects can be obtained through a method for controlling the number of tourists in a tourist cave provided by the present invention:
[0132] 1) The present invention can quickly and accurately predict the maximum CO2 concentration corresponding to the real-time number of tourists in the tourist cave and formulate the corresponding control time.
[0133] 2) The present invention solves the problem that the current monitoring of the number of tourists in tourist caves can only show its time variation characteristics and cannot evaluate the tourism safety risks based on the changes in CO2 concentration in the cave.
[0134] 3) Based on the continuous wavelet transform analysis and wavelet coherence analysis of CO2 concentration and number of tourists in tourist caves, the present invention obtains the maximum CO2 concentration and control time corresponding to different numbers of tourists, which provides data support for the control of the number of tourists in tourist caves, has broad application prospects and great promotion value.
[0135] like Figure 6 As shown, the embodiment of the present invention also discloses a tourist cave visitor number control system, the control system includes a first processing subsystem, a second processing subsystem, a third processing subsystem, a fourth processing subsystem and a fifth processing subsystem;
[0136] The first processing subsystem comprises a first processing module, a second processing module, a third processing module, a fourth processing module, a fifth processing module and a sixth processing module connected in sequence;
[0137] The first processing module is used to obtain the CO2 concentration time series of all monitoring sites in a certain period of time in the tourist cave;
[0138] The second processing module is used to obtain the time series of the number of tourists in the same period;
[0139] It is understandable that:
[0140] The present invention sets a passenger flow counting device at the entrance of the tourist cave to count the number of tourists;
[0141] The present invention selects several monitoring sites at the entrance and inside of the tourist cave, and sets a CO2 concentration sensor for each monitoring site;
[0142] The CO2 concentration sensor and passenger flow counting device upload the collected data to the cave environment monitoring platform;
[0143] The CO2 concentration data received by the cave environment monitoring platform is screened through JR language programming, and the CO2 concentration data of each monitoring site is output hourly to obtain the CO2 concentration time series of all monitoring sites within a certain period of time;
[0144] The tourist statistics data received by the cave environment monitoring platform are filtered through JR language programming, and the sum of all tourist numbers per hour is output hour by hour to obtain the time series of tourist numbers in the same period.
[0145] The third processing module is used to perform continuous wavelet transform on the CO2 concentration time series of each monitoring site to obtain the CO2 concentration wavelet transform coefficient of each monitoring site; and to perform continuous wavelet transform on the number of tourists time series to obtain the number of tourists wavelet transform coefficient;
[0146] The fourth processing module is used to determine the real part of the wavelet coefficient corresponding to the main period of the change of the number of tourists according to the wavelet transform coefficient of the number of tourists;
[0147] Further, the fourth processing module includes a first processing unit, a second processing unit and a third processing unit;
[0148] The first processing unit is used to calculate the wavelet variance of the number of tourists according to the wavelet transform coefficient of the number of tourists;
[0149] The second processing unit is used to obtain the main period of change of the number of tourists based on the wavelet variance of the number of tourists;
[0150] Specifically: Draw a wavelet variance diagram of the number of tourists according to the wavelet variance of the number of tourists (such as Figure 2 As shown), the main period of the change in the number of tourists is obtained through the peak points in the wavelet variance diagram of the number of tourists.
[0151] The third processing unit is used to obtain the real part of the wavelet coefficient corresponding to the main period of change in the number of tourists based on the main period of change in the number of tourists (such as Figure 3 shown).
[0152] The fifth processing module is used to obtain the coherence coefficient of each monitoring site based on the wavelet transform coefficient of the CO2 concentration of each monitoring site and the wavelet transform coefficient of the number of tourists;
[0153] Specifically: Assume there are N monitoring sites, take monitoring site A as an example:
[0154] Based on the wavelet transform coefficient of CO2 concentration at monitoring site A and the wavelet transform coefficient of the number of tourists, the coherence coefficient of monitoring site A can be obtained;
[0155] By analogy, the coherence coefficients of N monitoring sites can be obtained.
[0156] The sixth processing module is used to obtain the CO2 concentration lag time of each monitoring site, the maximum CO2 concentration corresponding to a certain number of tourists, and the control time based on the coherence coefficient of each monitoring site and the real part of the wavelet coefficient corresponding to the main period of the change in the number of tourists;
[0157] Further, the sixth processing module includes a fourth processing unit, a fifth processing unit, a sixth processing unit, a seventh processing unit and an eighth processing unit;
[0158] The fourth processing unit is used to draw density maps of wavelet coherence spectra of each monitoring station based on the coherence coefficient of each monitoring station, such as Figure 4 As shown, it shows the wavelet coherence spectrum and other density maps of a certain monitoring station;
[0159] The fifth processing unit is used to determine the common time period when the coherence coefficient in the wavelet coherence spectrum and other density maps of each monitoring station is greater than the preset threshold value and the phase difference corresponding to the common time period in the wavelet coherence spectrum and other density maps of each monitoring station;
[0160] The sixth processing unit is used to obtain the tourist number change cycle and the number of tourists corresponding to the common time period in the real part of the wavelet coefficient; according to the tourist number change cycle and each phase difference, calculate the CO2 concentration lag time of each monitoring site;
[0161] It should be noted that: the number of tourists is the average value of the number of tourists corresponding to all peak points in the common time period in the real part of the wavelet coefficient;
[0162] The seventh processing unit is used to obtain the CO2 concentration of each monitoring site in the common time period, and select the maximum CO2 concentration and the reference site therefrom to obtain the maximum CO2 concentration corresponding to the number of tourists; wherein the reference site is the monitoring site corresponding to the maximum CO2 concentration;
[0163] It should be noted that: the CO2 concentration of each monitoring station in the common time period is: the average value of the CO2 concentration corresponding to all peak points in the common time period in the real part of the wavelet coefficient.
[0164] The eighth processing unit is used to determine the control time corresponding to the number of tourists based on the difference between the CO2 concentration lag time of the reference site and the time it takes for tourists to arrive at the reference site.
[0165] The second processing subsystem is used to obtain the maximum CO2 concentration and control duration corresponding to different numbers of tourists according to the output of the first processing subsystem at different time periods;
[0166] The third processing subsystem is used to divide the time series of different time periods into seasonal or monthly scales, and establish the relationship curve between the maximum CO2 concentration and the control time corresponding to different numbers of tourists in different seasonal or monthly scales (such as Figure 5 As shown, it shows the relationship curve between the maximum CO2 concentration and the control time corresponding to different numbers of tourists in a certain month);
[0167] The fourth processing subsystem is used to obtain the maximum CO2 concentration and control duration corresponding to the real-time number of tourists in the quarterly or monthly relationship curve corresponding to the current month;
[0168] The fifth processing subsystem is used to control the number of tourists according to the maximum CO2 concentration and control duration corresponding to the real-time number of tourists.
[0169] Furthermore, the wavelet transform coefficient of CO2 concentration at a monitoring station is obtained based on the following formula:
[0170]
[0171] Among them, W X(a) represents the wavelet transform coefficient of CO2 concentration at a monitoring station; a represents the time scale; b represents the translation factor; f(t) represents the time series of CO2 concentration at a monitoring station; ψ(t) represents the basis wavelet function; for The complex conjugate of ; R represents the set of real numbers.
[0172] Furthermore, the wavelet transform coefficient of the number of tourists is obtained based on the following formula:
[0173]
[0174] Among them, W Y (a) represents the wavelet transform coefficient of the number of tourists; a represents the time scale; b represents the translation factor; f(t)' represents the time series of the number of tourists; ψ(t) represents the basic wavelet function; for The complex conjugate of ; R represents the set of real numbers.
[0175] Furthermore, the base wavelet function is a Morlet wavelet function.
[0176] Furthermore, the wavelet variance of the number of tourists is obtained based on the following formula:
[0177]
[0178] Where a represents the time scale; b represents the translation factor; var(a) represents the wavelet variance of the number of tourists; W Y (a) represents the wavelet transform coefficients of the number of tourists.
[0179] Furthermore, the coherence coefficient of a monitoring site is obtained based on the following formula:
[0180]
[0181] Among them, R 2 (a) represents the coherence coefficient of a monitoring station; a represents the time scale; S is the smoothing operator, W X (a) and W Y (a) represents the wavelet transform coefficient of CO2 concentration and the wavelet transform coefficient of the number of tourists at a monitoring site, respectively, XY (s) is the cross wavelet spectrum of the CO2 concentration time series of a monitoring site and the tourist number time series.
[0182] It is understandable that: W XY(s) The complex value part is the phase relationship between the CO2 concentration time series and the tourist volume time series. A positive phase value indicates that the phase of the CO2 concentration signal lags behind the tourist volume signal. Conversely, a negative phase value indicates that the phase of the CO2 concentration signal is ahead of the tourist volume signal.
[0183] Furthermore, S3 further includes: using a red noise standard spectrum to conduct a significance experiment on the coherence coefficient of each monitoring station, and screening out the coherence coefficient within a 95% confidence interval.
[0184] Furthermore, the CO2 concentration lag time of a monitoring station is calculated based on the following formula:
[0185]
[0186] Among them, Z represents the lag time of CO2 concentration at a certain monitoring site; rad represents the phase difference corresponding to the common time period in the wavelet coherence spectrum and other density maps of a certain monitoring site; T represents the cycle of changes in the number of tourists.
[0187] Furthermore, the preset threshold is 0.8.
[0188] In the above embodiments, the following beneficial technical effects can be obtained through a tourist cave visitor number control system provided by the present invention:
[0189] 1) The present invention can quickly and accurately predict the maximum CO2 concentration corresponding to the real-time number of tourists in the tourist cave and formulate the corresponding control time.
[0190] 2) The present invention solves the problem that the current monitoring of the number of tourists in tourist caves can only show its time variation characteristics and cannot evaluate the tourism safety risks based on the changes in CO2 concentration in the cave.
[0191] 3) Based on the continuous wavelet transform analysis and wavelet coherence analysis of CO2 concentration and number of tourists in tourist caves, the present invention obtains the maximum CO2 concentration and control time corresponding to different numbers of tourists, which provides data support for the control of the number of tourists in tourist caves, has broad application prospects and great promotion value.
[0192] The embodiment of the present invention also discloses a physical structure diagram of an electronic device, such as Figure 7 As shown, the electronic device may include: a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702 and the memory 703 communicate with each other through the communication bus 704. The processor 701 may call the logic instructions in the memory 703 to execute the above-mentioned tourist cave visitor number control method.
[0193] In addition, the logic instructions in the above-mentioned memory 703 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0194] On the other hand, an embodiment of the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the above-mentioned method for controlling the number of tourists in a tourist cave.
[0195] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0196] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0197] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for controlling the number of tourists in a tourist cave, characterized in that: The following steps are involved: S1: Obtain the CO2 concentration time series of all monitoring sites in a certain period of time in the tourist cave, and obtain the time series of the number of tourists in the same period; S2: Perform continuous wavelet transform on the CO2 concentration time series of each monitoring station to obtain the wavelet transform coefficient of CO2 concentration of each monitoring station; Perform continuous wavelet transform on the time series of the number of tourists to obtain the wavelet transform coefficients of the number of tourists; Determine the real part of the wavelet coefficient corresponding to the main period of the change in the number of tourists according to the wavelet transform coefficient of the number of tourists; S3: based on the wavelet transform coefficient of the CO2 concentration of each monitoring site and the wavelet transform coefficient of the number of tourists, obtaining the coherence coefficient of each monitoring site; S4: Based on the coherence coefficient of each monitoring site and the real part of the wavelet coefficient corresponding to the main period of the number of tourists, the CO2 concentration lag time of each monitoring site, the maximum CO2 concentration corresponding to a certain number of tourists and the control time are obtained; S5: Obtain the CO2 concentration time series of all monitoring stations in the tourist cave at different time periods, and obtain the time series of the number of tourists in the corresponding period of the CO2 concentration time series. Repeat S1-S4 continuously to obtain the maximum CO2 concentration and control time corresponding to different numbers of tourists; S6: Divide the time series of different periods into seasonal or monthly scales, and establish the relationship curve between the maximum CO2 concentration and the control duration corresponding to different numbers of tourists at different seasonal or monthly scales; S7: In the quarterly or monthly relationship curve corresponding to the current month, obtain the maximum CO2 concentration and control duration corresponding to the real-time number of tourists; S8: Control the number of tourists according to the maximum CO2 concentration and control duration corresponding to the real-time number of tourists.
2. A method for controlling the number of tourists in a tourist cave according to claim 1, characterized in that: S2 further includes: Calculating the wavelet variance of the number of tourists according to the wavelet transform coefficient of the number of tourists; Obtaining the main period of change in the number of tourists based on the wavelet variance of the number of tourists; The real part of the wavelet coefficient corresponding to the main period of change in the number of tourists is obtained based on the main period of change in the number of tourists.
3. A method for controlling the number of tourists in a tourist cave according to claim 2, characterized in that: S4 specifically includes: Based on the coherence coefficient of each monitoring station, the wavelet coherence spectrum and other density maps of each monitoring station are drawn; Determine the common time period when the coherence coefficient in the wavelet coherence spectrum and other density maps of each monitoring station is greater than a preset threshold value and the phase difference corresponding to the common time period in the wavelet coherence spectrum and other density maps of each monitoring station; Obtain the tourist number change cycle and the number of tourists corresponding to the common time period in the real part of the wavelet coefficient; calculate the CO2 concentration lag time of each monitoring station according to the tourist number change cycle and each phase difference; Obtain the CO2 concentration of each monitoring site within the common time period, and select the maximum CO2 concentration and the reference site therefrom to obtain the maximum CO2 concentration corresponding to the number of tourists; wherein the reference site is the monitoring site corresponding to the maximum CO2 concentration; Based on the difference between the CO2 concentration lag time of the reference site and the time it takes for tourists to arrive at the reference site, the control time corresponding to the number of tourists is determined.
4. A method for controlling the number of tourists in a tourist cave according to claim 3, characterized in that: The wavelet transform coefficient of CO2 concentration at a monitoring site is obtained based on the following formula: Among them, W X (a) represents the wavelet transform coefficient of CO2 concentration at a monitoring station; a represents the time scale; b represents the translation factor; f(t) represents the time series of CO2 concentration at a monitoring station; ψ(t) represents the basis wavelet function; for The complex conjugate of ; R represents the set of real numbers.
5. A method for controlling the number of tourists in a tourist cave according to claim 4, characterized in that: The wavelet transform coefficient of the number of tourists is obtained based on the following formula: Among them, W Y (a) represents the wavelet transform coefficient of the number of tourists; a represents the time scale; b represents the translation factor; f(t)' represents the time series of the number of tourists; ψ(t) represents the basic wavelet function; for The complex conjugate of ; R represents the set of real numbers.
6. A method for controlling the number of tourists in a tourist cave according to claim 5, characterized in that: The basic wavelet function is a morlet wavelet function.
7. A method for controlling the number of tourists in a tourist cave according to claim 5, characterized in that: The wavelet variance of the number of tourists is obtained based on the following formula: Where a represents the time scale; b represents the translation factor; var(a) represents the wavelet variance of the number of tourists; W Y (a) represents the wavelet transform coefficients of the number of tourists.
8. A method for controlling the number of tourists in a tourist cave according to claim 5 or 6, characterized in that: The coherence coefficient of a monitoring site is obtained based on the following formula: Among them, R 2 (a) represents the coherence coefficient of a monitoring station; a represents the time scale; S is the smoothing operator, W X (a) and W Y (a) represents the wavelet transform coefficient of CO2 concentration and the wavelet transform coefficient of the number of tourists at a monitoring site, respectively, XY (s) is the cross wavelet spectrum of the CO2 concentration time series of a monitoring site and the tourist number time series.
9. A tourist cave visitor number control system, characterized in that: comprising a first processing subsystem, a second processing subsystem, a third processing subsystem, a fourth processing subsystem and a fifth processing subsystem; The first processing subsystem comprises a first processing module, a second processing module, a third processing module, a fourth processing module, a fifth processing module and a sixth processing module connected in sequence; The first processing module is used to obtain the CO2 concentration time series of all monitoring sites in a certain period of time in the tourist cave; The second processing module is used to obtain the time series of the number of tourists in the same period; The third processing module is used to perform continuous wavelet transform on the CO2 concentration time series of each monitoring site to obtain the CO2 concentration wavelet transform coefficient of each monitoring site; and to perform continuous wavelet transform on the number of tourists time series to obtain the number of tourists wavelet transform coefficient; The fourth processing module is used to determine the real part of the wavelet coefficient corresponding to the main period of the change of the number of tourists according to the wavelet transform coefficient of the number of tourists; The fifth processing module is used to obtain the coherence coefficient of each monitoring site based on the wavelet transform coefficient of the CO2 concentration of each monitoring site and the wavelet transform coefficient of the number of tourists; The sixth processing module is used to obtain the CO2 concentration lag time of each monitoring site, the maximum CO2 concentration corresponding to a certain number of tourists, and the control time based on the coherence coefficient of each monitoring site and the real part of the wavelet coefficient corresponding to the main period of the change in the number of tourists; The second processing subsystem is used to obtain the maximum CO2 concentration and control duration corresponding to different numbers of tourists according to the output of the first processing subsystem at different time periods; The third processing subsystem is used to divide the time series of different time periods into seasonal or monthly scales, and establish the relationship curve between the maximum CO2 concentration and the control time corresponding to different numbers of tourists at different seasonal or monthly scales; The fourth processing subsystem is used to obtain the maximum CO2 concentration and control duration corresponding to the real-time number of tourists in the quarterly or monthly relationship curve corresponding to the current month; The fifth processing subsystem is used to control the number of tourists according to the maximum CO2 concentration and control duration corresponding to the real-time number of tourists.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for controlling the number of tourists in a tourist cave as described in any one of claims 1 to 8 is implemented.
