Electric quantity monitoring method and device, computer equipment and storage medium

By deploying a photoelectric pulse acquisition unit on a mechanical meter and using the ambient light intensity to determine the validity of the pulse signal, the problem of low monitoring efficiency and accuracy of mechanical meters is solved, and efficient and low-cost electricity monitoring is achieved, which is suitable for scenarios such as thermal power plants.

CN120610045APending Publication Date: 2025-09-09广东省粤泷发电有限责任公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510855851.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-24
Publication Date
2025-09-09

AI Technical Summary

Technical Problem

In the existing monitoring of power consumption of auxiliary equipment in thermal power plants, mechanical meters have low efficiency and accuracy and cannot be directly connected to digital systems, resulting in a lack of data support and affecting intelligent management.

Method used

A photoelectric pulse acquisition unit is deployed on the mechanical meter to determine the pulse filtering threshold by obtaining the ambient light intensity, judge the validity of the pulse signal, and calculate the power data at the end of the acquisition cycle to achieve non-invasive monitoring.

Benefits of technology

It improves the monitoring efficiency and accuracy of mechanical meters, reduces modification costs, is suitable for high electromagnetic compatibility environments, and supports real-time data collection and analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120610045A_ABST
    Figure CN120610045A_ABST
Patent Text Reader

Abstract

The invention discloses an electric quantity monitoring method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring a current pulse signal acquired by a photoelectric pulse acquisition unit in an acquisition period and the current ambient light intensity of an area where a mechanical ammeter is located; determining a pulse filtering threshold value of the current pulse signal based on the current ambient light intensity; judging whether the current pulse signal is an effective pulse signal or not based on the pulse filtering threshold value; when the current pulse signal is an effective pulse signal, adding the effective pulse signal to a preset effective pulse signal set; and at the end of the acquisition period, determining the electric quantity data of the mechanical ammeter in the acquisition period based on the effective pulse signal set. Whether the current pulse signal is the effective pulse signal or not can be accurately judged through the current ambient light intensity, so that the effective pulse signal can be added to the effective pulse signal set, and the electric quantity data can be accurately determined according to the effective pulse signal set when the acquisition period is finished.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of energy management, and in particular to a power monitoring method, device, computer equipment and storage medium. Background Art

[0002] Amid the increasing sophistication of energy management, a large number of auxiliary equipment in thermal power plants (such as fans and pumps) still rely on mechanical meters for electricity consumption. Obtaining electricity consumption data for each auxiliary equipment often requires manual on-site reading of each meter. This is not only inefficient but also prone to misreading and omissions, resulting in a lack of data support for energy management and difficulties in optimizing scheduling. Mechanical meters cannot directly interface with existing digital systems, creating "information silos" that further restrict the intelligent management of power plants. Existing solutions to collect data from mechanical meters, such as replacing them with smart meters, can enable data networking and real-time monitoring. However, these solutions are costly, require lengthy retrofit cycles, and often require implementation during plant downtime, impacting normal operation. Existing power monitoring methods also suffer from low efficiency and accuracy.

[0003] Therefore, how to provide a power monitoring method that improves monitoring efficiency and accuracy without replacing existing electricity meters has become an urgent problem to be solved. Summary of the Invention

[0004] Based on this, it is necessary to provide a power monitoring method, device, computer equipment and storage medium to address the above technical problems, so as to solve the problems of low monitoring efficiency and low monitoring accuracy of traditional methods.

[0005] A method for monitoring power. The method is used to monitor a mechanical electric meter, wherein the mechanical electric meter is provided with a photoelectric pulse acquisition unit for acquiring the rotation state of the mechanical electric meter's turntable. The method comprises: Acquire the current pulse signal collected by the photoelectric pulse collection unit within a collection period, and the current ambient light intensity of the area where the mechanical meter is located; Determining a pulse filtering threshold of the current pulse signal based on the current ambient light intensity; Based on the pulse filtering threshold, determining whether the current pulse signal is a valid pulse signal; When the current pulse signal is a valid pulse signal, adding the valid pulse signal to a preset valid pulse signal set; At the end of the collection period, the power data of the mechanical electric meter in the collection period is determined based on the valid pulse signal set.

[0006] Optionally, before determining the pulse filtering threshold of the current pulse signal based on the current ambient light intensity, the method further includes: In the valid pulse signal set, a preset number of historical valid pulse signals are determined in order of acquisition time from latest to earliest, and the acquisition time of the historical valid pulse signals is earlier than the acquisition time of the current pulse signal; Calculating the acquisition time interval between each two of the historical valid pulse signals with adjacent acquisition times; When all the acquisition time intervals are less than or equal to a preset first interval threshold, determining a target valid pulse signal adjacent to the acquisition time of the current valid pulse signal from the multiple historical valid pulse signals, and using the historical pulse filtering threshold corresponding to the target valid pulse signal as the pulse filtering threshold of the current pulse signal; When any of the acquisition time intervals is greater than a preset first interval threshold, a pulse filtering threshold of the current pulse signal is determined based on the current ambient light intensity.

[0007] Optionally, the current ambient light intensity corresponds to a current detection timestamp, and determining the pulse filtering threshold of the current pulse signal based on the current ambient light intensity includes: Acquire historical ambient light intensity, where the historical ambient light intensity corresponds to a historical detection timestamp, and the historical detection timestamp is earlier than the current detection timestamp; Calculating a detection time interval between the historical detection timestamp and the current detection timestamp; Calculating an ambient light intensity change rate based on the current ambient light intensity and the historical ambient light intensity; A pulse filtering threshold of the current pulse signal is determined based on the ambient light intensity change rate and the detection time interval.

[0008] Optionally, determining the pulse filtering threshold of the current pulse signal based on the ambient light intensity change rate and the detection time interval includes: When the detection time interval is greater than or equal to a preset second interval threshold, a pulse filtering threshold of the current pulse signal is calculated based on the current ambient light intensity, and the second interval threshold is greater than the first interval threshold; When the rate of change of the ambient light intensity is greater than or equal to a preset rate of change threshold, calculating a pulse filtering threshold of the current pulse signal based on the current ambient light intensity; When the detection time interval is less than a preset second interval threshold and the ambient light intensity change rate is less than a preset change rate threshold, the historical pulse filtering threshold corresponding to the target valid pulse signal is used as the pulse filtering threshold of the current pulse signal.

[0009] Optionally, determining the power data of the mechanical electric meter in the acquisition period based on the valid pulse signal set includes: Determining the number of valid pulse signals based on the valid pulse signal set; Based on the number of valid pulse signals and a preset power coefficient, the power data of the mechanical meter in the collection period is calculated.

[0010] Optionally, determining the number of valid pulse signals based on the valid pulse signal set includes: Based on a preset screening condition, a target pulse signal is screened out from the valid pulse signal set, wherein the preset screening condition is that the acquisition time interval between at least three valid pulse signals with adjacent acquisition times is less than or equal to the preset first interval threshold; The number of the target pulse signals is counted, and the number of the target pulse signals is used as the valid pulse signal number.

[0011] Optionally, the method further includes: Obtaining reference power data and historical power data of the mechanical electric meter in a historical collection period; Calculating a relative error of a historical power coefficient based on the reference power data and the historical power data; Based on the relative error, the historical power coefficient is adjusted to obtain the preset power coefficient.

[0012] A power monitoring device is provided for monitoring a mechanical electric meter. The mechanical electric meter is provided with a photoelectric pulse acquisition unit for acquiring the rotation state of the mechanical electric meter's turntable. The device comprises: a first acquisition module, configured to acquire a current pulse signal acquired by the photoelectric pulse acquisition unit within an acquisition period, and a current ambient light intensity in an area where the mechanical meter is located; A first determining module, configured to determine a pulse filtering threshold of the current pulse signal based on the current ambient light intensity; A first judgment module, configured to judge whether the current pulse signal is a valid pulse signal based on the pulse filtering threshold; A first adding module is used to add the valid pulse signal to a preset valid pulse signal set when the current pulse signal is a valid pulse signal; The second determination module is configured to determine the electricity data of the mechanical electric meter in the acquisition period based on the valid pulse signal set at the end of the acquisition period.

[0013] A computer device includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the computer-readable instructions, the above-mentioned power monitoring method is implemented.

[0014] A readable storage medium stores computer-readable instructions, which implement the above-mentioned power monitoring method when executed by a processor.

[0015] The above-mentioned power monitoring method, device, computer equipment and storage medium include: obtaining the current pulse signal collected by the photoelectric pulse acquisition unit during the acquisition cycle, and the current ambient light intensity of the area where the mechanical meter is located; based on the current ambient light intensity, determining the pulse filtering threshold of the current pulse signal; based on the pulse filtering threshold, judging whether the current pulse signal is a valid pulse signal; when the current pulse signal is a valid pulse signal, adding the valid pulse signal to a preset valid pulse signal set; at the end of the acquisition cycle, determining the power data of the mechanical meter during the acquisition cycle based on the valid pulse signal set. The current ambient light intensity can accurately determine whether the current pulse signal is a valid pulse signal, so that the valid pulse signal can be added to the valid pulse signal set, and then at the end of the acquisition cycle, the power data can be accurately determined based on the valid pulse signal set. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0017] Figure 1 This is a flow chart of a method for monitoring power provided by an embodiment of the present invention; Figure 2 This is a schematic structural diagram of an electric power monitoring system provided by an embodiment of the present invention; Figure 3 This is a schematic diagram of the installation of a photoelectric pulse acquisition unit provided by an embodiment of the present invention; Figure 4 This is a schematic structural diagram of an electric quantity monitoring device provided by an embodiment of the present invention; Figure 5 It is a schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0018] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0019] In one embodiment, if Figure 1 As shown, a method for monitoring electric quantity is provided. The method is used to monitor a mechanical electric meter. The mechanical electric meter is provided with a photoelectric pulse acquisition unit for acquiring the rotation state of the mechanical electric meter's turntable, and includes the following steps: 101. Acquire a current pulse signal collected by a photoelectric pulse collection unit within a collection period and a current ambient light intensity of an area where the mechanical meter is located.

[0020] In the embodiment of the present invention, the above-mentioned power monitoring method can be applied to a power monitoring system. The above-mentioned power monitoring system can be implemented as follows: Figure 2 The above power monitoring method can be applied to Figure 2 It should be noted that the STM32 (i.e., control chip) shown in the figure is only an example. Those skilled in the art can choose other embedded controllers with similar functions according to actual needs, such as ESP32, RF52840, GD32, ATmega328, MSP430, etc., which will not affect the implementation of the embodiment of the present invention. Figure 2 As shown, the power monitoring system also includes auxiliary equipment for power collection. Specifically, the auxiliary equipment may include a mechanical meter and a matching photoelectric pulse collection unit (i.e., an infrared sensor). The mechanical meter is a traditional rotary meter, whose rotary disk rotates at a speed proportional to the amount of electricity consumed.

[0021] There is an electricity metering scale on the above-mentioned turntable, and the above-mentioned electricity metering scale may have a reflective property. During the rotation process, the scale rotates accordingly, forming a periodic reflection change. The above-mentioned photoelectric pulse sensor can generate the above-mentioned pulse signal by collecting the above-mentioned periodic reflection change.

[0022] Specifically, to achieve non-contact detection of the turntable's rotation, the mechanical meter's turntable can also be equipped with an optical marker to generate a periodic optical signal during rotation. Specifically, the optical marker can be a highly reflective patch or a light-transmitting cavity (e.g., a small hole) positioned on the edge of the turntable. As the turntable rotates, the optical marker periodically enters the detection area of ​​the pulse photoelectric sensor.

[0023] To complement the above structure, the mechanical meter is equipped with an infrared sensor (such as the infrared reflective sensor, ITR9903) to detect the aforementioned optical markers. When a highly reflective patch or a light-transmitting hole enters the sensor's detection area, the sensor receives an enhanced reflected signal. When the turntable rotates to an area without the patch, the reflection intensity decreases, resulting in a distinct pulse signal. If a light-transmitting hole is used, the sensor can detect the changes in light intensity caused by the turntable alternating between blocking and allowing light, generating a corresponding pulse signal.

[0024] The periodicity of these pulse signals corresponds to the rotation period of the turntable, and thus has a fixed proportional relationship with the actual power consumption. By collecting and counting these pulse signals in real time, the power consumption indicated by the mechanical meter can be inferred. This solution requires no modifications to the existing mechanical meter structure and offers the advantages of being non-invasive, low-cost, and highly adaptable. It is particularly suitable for applications with strict electromagnetic compatibility requirements, such as thermal power plants.

[0025] The positional relationship between the photoelectric pulse acquisition unit and the mechanical meter can be determined by Figure 3 The installation diagram of a photoelectric pulse acquisition unit shown further illustrates that Figure 3 In the figure, the larger rectangle is a mechanical meter. The mechanical meter may include a glass cover, a turntable and an optical mark provided on the turntable. The glass cover may be made of a transparent material, the turntable may be an aluminum rotating disk, the optical mark may be a reflective patch of a highly reflective material, and the photoelectric pulse acquisition unit is specifically installed on the edge of the turntable of the mechanical meter, with a spacing of 3-5 mm from the reflective patch of the mechanical meter.

[0026] The photoelectric pulse acquisition unit can be specifically an infrared sensor, which can include an infrared emitting diode and a receiving circuit (i.e., an infrared receiving diode). The infrared emitting diode can have a wavelength of 940 nm, and the receiving circuit can include an RC filter. The infrared sensor can be wrapped in a shielded housing made of aluminum alloy. The infrared sensor can be fixed to the edge of the mechanical meter dial using a magnetic bracket. The angle of the infrared emitting diode can be adjusted to adjust the infrared sensor's detection area. The infrared sensor is connected to the control chip (i.e., an STM32) via a twisted pair cable. The RC filter can be used to eliminate high-frequency electromagnetic interference, and the shielded housing and twisted pair cable can prevent signal interference.

[0027] Specifically, if Figure 2 As shown, the STM32 chip can support 16-channel photoelectric signal input, with independent counting for each channel, that is, one STM32 chip can simultaneously monitor the power consumption of 16 mechanical meters. In addition, the STM32 chip can be equipped with a built-in FRAM ferroelectric memory for real-time storage of the power consumption data of the mechanical meter during each acquisition cycle. The STM32 chip can also be equipped with a built-in clock module, specifically a DS3231 high-precision RTC chip, which can be used to accurately time each acquisition cycle.

[0028] The above-mentioned STM32 chip can be connected to the display board through the RS485 communication protocol. The above-mentioned display board can be a 7-inch industrial touch screen, which can specifically include a main interface, a historical query interface and an alarm unit. The above-mentioned main interface is used to display the real-time power, current cycle power consumption, cumulative cycle power consumption and other power data of the auxiliary machine corresponding to each mechanical meter in columns. The above-mentioned historical query interface can display power data such as historical cycle power consumption, and specifically support the retrieval of power consumption curves and other power data by date / collection cycle / hour and other intervals, and then compare the energy consumption of the auxiliary machines corresponding to different mechanical meters. The above-mentioned sound and light alarm unit is used to alarm when the power consumption of the auxiliary machine corresponding to a certain mechanical meter is abnormal, which can be a LEC warning, and record abnormal events at the same time.

[0029] The above-mentioned collection period can be set according to actual power monitoring needs, for example, it can be five minutes, ten minutes, one hour, twelve hours, etc. The above-mentioned current pulse signal can be the pulse signal collected at the current moment. The above-mentioned ambient light intensity can be detected by an ambient light sensitive resistor (such as GL5528), or the DC component of the above-mentioned infrared receiving tube can be used to determine the ambient light intensity. The above-mentioned ambient light intensity detection can be periodic, i.e., the ambient light intensity is detected periodically, for example, the ambient light intensity is detected every T1 time interval, and the T1 time interval can be 5 minutes.

[0030] Therefore, when the current pulse signal is detected, the ambient light intensity at the detection time adjacent to the current moment can be obtained as the current ambient light intensity. For example, assuming that the T1 time interval is 1, it corresponds to an ambient light intensity sequence, including the ambient light intensity at time t-1, the ambient light intensity at time t, and the ambient light intensity at time t+1. At this time, the current pulse signal is obtained at time t+1.5. At this time, the current ambient light intensity corresponding to the current pulse signal is the ambient light intensity at time t+1.

[0031] In a possible embodiment, the detection of the above-mentioned ambient light intensity may also depend on the acquisition of the above-mentioned pulse signal, that is, each time a current pulse signal is obtained, the ambient light intensity can be collected once and used as its corresponding current ambient light intensity, that is, each current pulse signal corresponds to a current ambient light intensity.

[0032] 102. Determine a pulse filtering threshold of a current pulse signal based on the current ambient light intensity.

[0033] In an embodiment of the present invention, the data type of the above-mentioned current ambient light intensity can be voltage. After the light intensity is collected by the above-mentioned photoresistor, the light intensity can be converted into a light intensity voltage signal, or the DC component of the above-mentioned infrared receiving tube can be converted into a light intensity voltage signal. According to the above-mentioned light intensity voltage signal, the pulse filtering threshold of the current pulse signal can be calculated.

[0034] Specifically, after obtaining the current ambient light intensity, the pulse filtering threshold can be calculated according to the current ambient light intensity. The calculation of the pulse filtering threshold can be further explained by the following pulse filtering threshold calculation formula:

[0035] Among them, the above It is represented by the pulse filtering threshold corresponding to the current pulse signal. It is expressed as a proportional coefficient, which can be set based on historical power monitoring experience or obtained through a limited number of tests. Expressed as the above light intensity voltage signal, the above Expressed as the minimum trigger sensitivity of the pulse signal (that is, the lowest pulse filtering threshold, or understood as the lower limit of the pulse filtering threshold).

[0036] 103. Based on the pulse filtering threshold, determine whether the current pulse signal is a valid pulse signal.

[0037] In an embodiment of the present invention, the above-mentioned pulse filtering threshold can be compared with the above-mentioned current pulse signal to obtain a comparison result. If the above-mentioned comparison result is that the current pulse signal is less than or equal to the above-mentioned pulse filtering threshold, it can be judged that the current pulse signal is an invalid pulse signal. Conversely, if the above-mentioned comparison result is that the current pulse signal is greater than the above-mentioned pulse filtering threshold, it can be judged that the current pulse signal is a valid pulse signal.

[0038] Since the pulse filtering threshold is determined according to the current ambient light intensity corresponding to the current pulse signal, whether the current pulse signal is a valid pulse signal can be accurately judged according to the pulse filtering threshold, and noise can be effectively filtered out.

[0039] 104. When the current pulse signal is a valid pulse signal, add the valid pulse signal to a preset valid pulse signal set.

[0040] In an embodiment of the present invention, each acquisition period may correspond to a valid pulse signal set. When the current pulse signal is the first valid pulse signal in the above acquisition period, the above preset valid pulse signal set may be an empty set. Conversely, when the current pulse signal is not the first valid pulse signal, the above preset valid pulse signal set is not an empty set.

[0041] When the current pulse signal is a valid pulse signal, the valid pulse signal can be added to the above-mentioned preset valid pulse signal set.

[0042] 105. At the end of the collection period, the electricity data of the mechanical meter during the collection period is determined based on the valid pulse signal set.

[0043] In an embodiment of the present invention, the number of valid pulse signals in the valid pulse signal set can be counted as the valid pulse signal count. Based on the valid pulse signal count and a preset power coefficient, the power consumption of the auxiliary equipment corresponding to the mechanical meter during the collection period (i.e., the power data of the mechanical meter during the collection period) can be calculated. Specifically, the preset power coefficient can be the pulse constant specified on the nameplate of the mechanical meter, for example, 1600 imp / kWh.

[0044] Specifically, the calculation of the above power data can be further explained by the following calculation formula of power data:

[0045] Wherein, Q represents the power consumption (i.e., the power data), N represents the number of valid pulse signals, and K represents the preset power coefficient. If the collection period is 1 hour, the unit of measurement for the power consumption is Kwh.

[0046] In an embodiment of the present invention, the current pulse signal collected by the photoelectric pulse collection unit during the collection period and the current ambient light intensity of the area where the mechanical electric meter is located are obtained; based on the current ambient light intensity, the pulse filtering threshold of the current pulse signal is determined; based on the pulse filtering threshold, it is determined whether the current pulse signal is a valid pulse signal; when the current pulse signal is a valid pulse signal, the valid pulse signal is added to a preset valid pulse signal set; at the end of the collection period, based on the valid pulse signal set, the power data of the mechanical electric meter during the collection period is determined. The current ambient light intensity can accurately determine whether the current pulse signal is a valid pulse signal, so that the valid pulse signal can be added to the valid pulse signal set, and then at the end of the collection period, the power data can be accurately determined based on the valid pulse signal set.

[0047] It can be understood that in the specific implementation of this application, it involves current pulse signals, valid pulse signals, historical valid pulse signals, and other related data. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data, as well as the construction and use of the power monitoring system and the power monitoring of mechanical meters, need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0048] Optionally, before the step of determining the pulse filtering threshold of the current pulse signal based on the current ambient light intensity, a preset number of multiple historical valid pulse signals can be determined in the valid pulse signal set in order of acquisition time from latest to earliest; the acquisition time interval between every two historical valid pulse signals with adjacent acquisition times is calculated; when all acquisition time intervals are less than or equal to the preset first interval threshold, the target valid pulse signal adjacent to the acquisition time of the current valid pulse signal is determined from the multiple historical valid pulse signals, and the historical pulse filtering threshold corresponding to the target valid pulse signal is used as the pulse filtering threshold of the current pulse signal; when any acquisition time interval is greater than the preset first interval threshold, the pulse filtering threshold of the current pulse signal is determined based on the current ambient light intensity.

[0049] In an embodiment of the present invention, the acquisition time of the historical valid pulse signal is earlier than the acquisition time of the current pulse signal. The early or late of the above acquisition time can be determined according to the current moment, that is, the closer it is to the current moment on the timeline, the later the acquisition time is, and conversely, the farther it is from the current moment on the timeline, the earlier the acquisition time is.

[0050] The above-mentioned preset number can be set through historical power monitoring experience or obtained through a limited number of tests, for example, it can be 3, 5, 10, etc. By determining a preset number of multiple historical valid pulse signals in order of acquisition time from late to early, the multiple historical valid pulse signals closest to the current moment can be determined, and the acquisition time interval between each two historical valid pulse signals with adjacent acquisition times can be calculated. When all acquisition time intervals are less than or equal to the preset first interval threshold, it means that the current period is in the pulse active period, that is, when the dial of the mechanical meter rotates at high speed, a continuous pulse signal is detected. At this time, the threshold can be locked to avoid misadjustment.

[0051] Therefore, a target valid pulse signal that is adjacent to the acquisition time of the current valid pulse signal can be determined from multiple historical valid pulse signals, and the historical pulse filtering threshold corresponding to the target valid pulse signal can be used as the pulse filtering threshold of the current pulse signal. Instead of setting a new pulse filtering threshold based on the current ambient light intensity, the historical pulse filtering threshold is retained.

[0052] Conversely, if any acquisition time interval is greater than the preset first interval threshold, it indicates that the current period is not a pulse active period, and the pulse filtering threshold of the current pulse signal can be determined normally based on the current ambient light intensity. The above-mentioned determination of the pulse filtering threshold of the current pulse signal based on the current ambient light intensity can also be achieved using the above-mentioned pulse filtering threshold calculation formula.

[0053] It can be understood that by using the acquisition time interval as the basis for selecting the pulse filtering threshold, the pulse filtering threshold can be locked during the pulse active period to avoid misadjustment. During the non-pulse active period, the pulse filtering threshold corresponding to the current pulse signal can be accurately determined by the current ambient light intensity.

[0054] In a possible embodiment, the ambient temperature of the area where the mechanical meter is located can also be obtained to determine whether the ambient temperature exceeds the operating temperature range of the photoelectric pulse acquisition unit. If so, there is no need to consider other factors, and the historical pulse filtering threshold corresponding to the target valid pulse signal can be directly used as the pulse filtering threshold of the current pulse signal.

[0055] In a possible embodiment, the current working mode of the monitoring system can also be determined. If the current working mode is a manual intervention mode, such as during manual calibration by maintenance personnel, there is no need to consider other factors. The historical pulse filtering threshold corresponding to the target valid pulse signal can be directly used as the pulse filtering threshold of the current pulse signal to achieve threshold locking.

[0056] In a possible embodiment, the above-mentioned pulse filtering threshold can also be periodically adjusted according to a preset period. The above-mentioned preset period can be five minutes, that is, the same as the above-mentioned ambient light intensity detection period. The ambient light intensity is detected every five minutes, and a new pulse filtering threshold is determined based on the detected ambient light intensity.

[0057] Optionally, in the step of determining the pulse filtering threshold of the current pulse signal based on the current ambient light intensity, the historical ambient light intensity can also be obtained; the detection time interval between the historical detection timestamp and the current detection timestamp is calculated; based on the current ambient light intensity and the historical ambient light intensity, the ambient light intensity change rate is calculated; based on the ambient light intensity change rate and the detection time interval, the pulse filtering threshold of the current pulse signal is determined.

[0058] In an embodiment of the present invention, the current ambient light intensity corresponds to a current detection timestamp, and the above-mentioned historical ambient light intensity corresponds to a historical detection timestamp. The historical detection timestamp is earlier than the current detection timestamp. The historical detection timestamp of the above-mentioned historical ambient light intensity can specifically be later than the historical detection timestamp of other historical ambient light intensities, and only earlier than the above-mentioned current timestamp, that is, the above-mentioned historical ambient light intensity can be the ambient light intensity obtained by the previous detection before the above-mentioned current ambient light intensity was detected.

[0059] The above detection time interval can be obtained by subtracting the historical detection timestamp from the current detection timestamp. The calculation of the above ambient light intensity change rate can be further explained by the following formula:

[0060] Among them, the above X represents the rate of change of ambient light intensity, and the above It is expressed as the ambient light intensity difference, which is obtained by subtracting the historical ambient light intensity from the current ambient light intensity. It is expressed as a time difference, that is, the above detection time interval. By calculating the ratio between the ambient light intensity difference and the detection time interval, the above ambient light intensity change rate can be obtained.

[0061] Specifically, after determining the ambient light intensity change rate and the detection time interval, a determination can be made based on the ambient light intensity change rate and the detection time interval to determine whether a pulse filtering threshold needs to be calculated based on the current ambient light intensity. If not, the historical pulse filtering threshold corresponding to the target valid pulse signal can be used as the pulse filtering threshold for the current pulse signal. The determination can be made by determining whether the ambient light intensity change rate is greater than or equal to a preset change rate threshold and whether the detection time interval is greater than or equal to a preset second interval threshold.

[0062] In a possible embodiment, whether the pulse filtering threshold needs to be recalculated may be determined based solely on whether the rate of change of the ambient light intensity exceeds a preset rate of change threshold.

[0063] Specifically, when the rate of change of ambient light intensity is greater than or equal to the preset rate-of-change threshold, it indicates a significant change in ambient lighting conditions, such as a sudden light switch on or off or the rapid movement of an obstruction. This may interfere with pulse signal detection. To ensure accurate and adaptive pulse signal recognition, the pulse filtering threshold is recalculated based on the current ambient light intensity to reflect a reasonable judgment benchmark under current lighting conditions.

[0064] Conversely, when the ambient light intensity change rate is less than the preset change rate threshold, it indicates that the current ambient light changes are relatively stable. The previously used historical pulse filtering threshold is considered to be still applicable to the current situation and does not need to be recalculated. In this case, the historical pulse filtering threshold corresponding to the target valid pulse signal can be directly used as the basis for judging the current pulse signal, thereby reducing the system's computational burden and improving processing efficiency.

[0065] It can be understood that through a dynamic judgment strategy based on the rate of change of ambient light intensity, it is possible to effectively suppress external interference while ensuring detection sensitivity, thereby improving the stability and energy consumption performance of the system.

[0066] In a possible embodiment, whether the pulse filtering threshold needs to be recalculated may be determined based solely on the relationship between the current detection time interval and a preset second interval threshold.

[0067] Specifically: when the current detection time interval is greater than or equal to the preset second interval threshold, it means that a long time has passed since the last pulse filtering threshold calculation, which may be accompanied by a significant change in the ambient light intensity. At this time, it is necessary to recalculate the pulse filtering threshold based on the current ambient light intensity to ensure the real-time and accuracy of the judgment.

[0068] Conversely, if the current detection interval is less than the preset second interval threshold, it indicates continuous detection or insignificant environmental changes. The previously used historical pulse filtering threshold is considered valid and representative. This threshold can be directly used for current pulse signal determination, thus avoiding resource consumption caused by repeated calculations.

[0069] It can be understood that this judgment logic ensures the environmental adaptability and stability of the pulse signal judgment basis while improving the system response efficiency by reasonably setting the interval judgment threshold.

[0070] Optionally, in the step of determining the pulse filtering threshold of the current pulse signal based on the ambient light intensity change rate and the detection time interval, the pulse filtering threshold of the current pulse signal can be calculated based on the current ambient light intensity when the detection time interval is greater than or equal to a preset second interval threshold; when the ambient light intensity change rate is greater than or equal to the preset change rate threshold, the pulse filtering threshold of the current pulse signal can be calculated based on the current ambient light intensity; when the detection time interval is less than the preset second interval threshold and the ambient light intensity change rate is less than the preset change rate threshold, the historical pulse filtering threshold corresponding to the target valid pulse signal is used as the pulse filtering threshold of the current pulse signal.

[0071] In this embodiment of the present invention, when determining the pulse filtering threshold for the current pulse signal, the ambient light intensity change rate and the detection interval are comprehensively considered to achieve adaptive adjustment for dynamic lighting conditions. Specifically, the current ambient light intensity is first obtained and compared with the ambient light intensity recorded at the previous moment to calculate the ambient light intensity change rate. Simultaneously, the interval between the current pulse signal and the last valid pulse signal is recorded.

[0072] Furthermore, when the detection interval is greater than or equal to a preset second interval threshold, the pulse filtering threshold is recalculated and updated based on the current ambient light intensity. This ensures a robust judgment even when the pulse sampling interval is long and the environment may be experiencing significant changes. Furthermore, when the rate of change of ambient light intensity is greater than or equal to a preset rate of change threshold, the pulse filtering threshold is also recalculated based on the current ambient light intensity to account for light intensity disturbances caused by sudden changes in lighting or occlusion.

[0073] When the detection time interval is less than the preset second interval threshold and the ambient light intensity change rate is also less than the preset change rate threshold, it indicates that the current working environment is stable and no significant changes have occurred. At this time, the historical pulse filtering threshold corresponding to the target valid pulse signal can be directly used as the judgment standard for the current pulse signal, thereby simplifying the calculation process and reducing system power consumption.

[0074] It can be understood that by combining the joint judgment method of the environmental change rate and the detection time interval, it is possible to effectively balance real-time performance and computing resource consumption while ensuring recognition accuracy, thereby improving the overall operating efficiency and stability of the system.

[0075] In a possible embodiment, a start-stop event judgment mechanism may be further introduced to improve the processing accuracy and stability during the system startup and shutdown stages.

[0076] Specifically, when the power monitoring system is initially started, due to the lack of valid historical data, it is impossible to determine whether the ambient light intensity change rate or the detection time interval exceeds the threshold. Therefore, there is no need to perform a joint judgment of the above-mentioned change rate and interval at this stage. Instead, a forced calibration is directly performed based on the current ambient light intensity, and the initial pulse filtering threshold is calculated and set to ensure that the system has a reliable judgment benchmark when it is first run to avoid misjudgment or missed detection.

[0077] Furthermore, before the system shuts down, to ensure continuity and accuracy upon the next startup, the system also saves the latest pulse filter threshold corresponding to the current pulse signal. This historical threshold can be used as a reference for the next startup, or for comparison and adjustment after startup, avoiding unnecessary recalibration calculations due to a short period of no significant change in ambient light intensity.

[0078] By introducing forced calibration and threshold persistence strategies during the system start-up and shutdown phases, the initialization accuracy of the pulse judgment logic and the continuity of system operation can be improved, providing a stable and reliable reference basis for subsequent pulse signal processing.

[0079] It should be noted that the second interval threshold is greater than the first interval threshold because the first interval threshold is used to determine whether the acquisition of the pulse signal is continuous, while the second interval threshold is used to determine whether the time interval of the ambient light detection is long.

[0080] Optionally, in the step of determining the power data of the mechanical meter during the collection period based on the valid pulse signal set, the number of valid pulse signals can also be determined based on the valid pulse signal set; and the power data of the mechanical meter during the collection period can be calculated based on the number of valid pulse signals and a preset power coefficient.

[0081] In an embodiment of the present invention, the above-mentioned number of valid pulse signals can be obtained by counting all valid pulse signals in the above-mentioned valid pulse signal set, and the above-mentioned preset power coefficient can be the pulse constant calibrated on the corresponding nameplate of the above-mentioned mechanical meter, such as 1600 imp / kWh.

[0082] After obtaining the number of effective pulse signals and the preset power coefficient, the two can be multiplied to obtain the power data. The calculation of the power data can also be achieved using the calculation formula for power data.

[0083] Optionally, in the step of determining the number of valid pulse signals based on the valid pulse signal set, the target pulse signals can also be screened out from the valid pulse signal set based on preset screening conditions, and the preset screening conditions are that the acquisition time interval between at least three valid pulse signals with adjacent acquisition times is less than or equal to a preset first interval threshold; the number of target pulse signals is counted, and the number of target pulse signals is used as the number of valid pulse signals.

[0084] In an embodiment of the present invention, in the process of determining the number of valid pulse signals based on the valid pulse signal set, a pulse interval consistency screening mechanism may be introduced to further improve the accuracy and anti-interference capability of power statistics.

[0085] Specifically, the initially identified valid pulse signal set can be further screened based on preset screening conditions to obtain more reliable target pulse signals. The preset screening conditions are as follows: from the valid pulse signal set, any three or more pulse signals with adjacent acquisition times are selected. If the time interval between any two of these pulse signals is less than or equal to a preset first interval threshold, then the group of three or more pulse signals is determined to be a group of target pulse signals. The entire valid pulse signal set can be traversed using a sliding window method to screen out all target pulse signals that meet the above conditions and count their number.

[0086] The target number of pulse signals obtained by statistics can be used as the final valid pulse signal number for subsequent power calculations. This processing strategy ensures that only when pulse signals with stable time intervals and consistent with the expected operating frequency are detected three or more times in a row, they are counted as valid counts, thereby effectively filtering out isolated or abnormal pulses caused by environmental interference, sensor jitter and other factors, and avoiding misjudgment. Through the above-mentioned screening mechanism, this embodiment can improve the ability to identify real pulse events, while ensuring the accuracy of power monitoring, and enhancing the robustness and reliability in complex field environments.

[0087] Optionally, the power monitoring method can also obtain reference power data and historical power data of the mechanical meter in the historical collection period; based on the reference power data and historical power data, calculate the relative error of the historical power coefficient; based on the relative error, adjust the historical power coefficient to obtain a preset power coefficient.

[0088] In the embodiment of the present invention, the above historical electricity data is obtained by determining the number of historical valid pulse signals and the historical electricity coefficient during the historical collection period, and the reference electricity data can be obtained by manual meter reading during the historical collection period. The calculation of the above relative error can be achieved by the following formula:

[0089] Among them, the above Expressed as the relative error above, the above Indicated as the above reference power data, the above Represents historical electricity data.

[0090] After obtaining the above relative error, the above relative error can be compared with a preset relative error threshold (for example, 2%). If the relative error is greater than the preset relative error threshold, the above historical power coefficient can be subjected to sliding average filtering to obtain the above preset power coefficient.

[0091] Specifically, the above sliding average filtering process can be further explained by the following formula:

[0092] Among them, the above Expressed as the above preset power coefficient, the above Expressed as the above historical electricity coefficient, the above is the ratio of the above reference power data to the number of historical pulse signals. is the filter coefficient, the value range is (0,1), the above Specifically, it can be set to 0.8 to balance historical stability and current calibration accuracy. It should be noted that the adjustment range of the historical power coefficient should not exceed ±5% to prevent sudden changes.

[0093] In one possible embodiment, in order to continuously optimize the power monitoring accuracy of mechanical meters, multiple types of power coefficient calibration mechanisms can be introduced, and corresponding trigger conditions, execution constraints, and calibration strategies can be set to ensure that the accuracy and stability of power calculation can be maintained at different operating stages. Specifically, the following four types of calibration trigger mechanisms are included: The first method is to perform initial calibration during the initial installation or deployment of the power monitoring system. At this time, the operation and maintenance personnel manually enter the initial power coefficient. This value can be preset based on the meter nameplate parameters. After initial operation, pulse data (i.e., pulse signals) is automatically and continuously collected for at least 24 hours. Preliminary verification is performed by comparing the actual pulse accumulation value (i.e., reference power data) with the estimated power (i.e., historical power data). The validity of the initial coefficient is confirmed while ensuring data stability. This calibration process is performed once and is used for initial modeling of the power monitoring system.

[0094] The second type: periodic calibration. The system automatically compares the cumulative energy consumption (calculated based on pulses) in the current cycle with the energy reading manually entered or referenced by the system in the previous cycle (e.g., every 7 days). If the error exceeds the tolerable range, the coefficient update mechanism is initiated. This strategy is suitable for gradual drift caused by aging and changes in external factors during long-term operation of the meter.

[0095] The third type: To address metering deviations caused by sudden anomalies or rapid environmental fluctuations, an abnormality-triggered calibration mechanism can be configured. Real-time calibration is triggered when any of the following conditions are detected: The power deviation (calculated based on reference power data and historical power data) is greater than 2% for three consecutive hours (i.e., three consecutive collection cycles); or the pulse frequency change rate exceeds 20%, indicating a sudden increase or decrease in the number of pulses per unit time, indicating abnormal power conversion.

[0096] The fourth method is to provide a manual forced calibration interface, allowing maintenance personnel to proactively trigger the calibration process during meter maintenance, reset, or replacement. This method requires the actual power value currently read as a reference. The system then reconstructs the power coefficient based on this value and updates it for subsequent data collection cycles.

[0097] To ensure the reliability of the calibration process and to ensure that it does not negatively impact the operation of the power monitoring system, the calibration operation must meet a series of execution constraints: Time window constraint: Automatic calibration is performed only during low-consumption periods (e.g., 02:00 to 04:00 daily) to avoid affecting data integrity and real-time performance during high-load periods during the day.

[0098] Data validity verification: Before calibration, it is necessary to confirm that the current system status is stable, including: the pulse count fluctuation rate in the last hour is less than 5%, indicating that the load is relatively stable; the grid frequency deviation does not exceed 0.5Hz to avoid errors caused by abnormal speed.

[0099] Safety margin control: The correction range of each calibration coefficient is limited to ≤5% to avoid large jumps in the power coefficient due to short-term abnormalities, which will affect the continuity and reliability of the overall metering logic.

[0100] Through the collaborative design of the above-mentioned calibration trigger mechanism and constraint strategy, this embodiment can improve the intelligence and adaptability of the system while ensuring data accuracy, and is suitable for a variety of industrial and residential electricity monitoring scenarios with high measurement accuracy requirements and complex operating environments.

[0101] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0102] In one embodiment, a power monitoring device is provided, which corresponds to the power monitoring method in the above embodiment. Figure 4 As shown, the power monitoring device includes a first acquisition module 401, a first determination module 402, a first judgment module 403, a first adding module 404, and a second determination module 405. The functional modules are described in detail as follows: A first acquisition module 401 is configured to acquire a current pulse signal acquired by the photoelectric pulse acquisition unit within an acquisition period, and a current ambient light intensity in an area where the mechanical meter is located; A first determining module 402 is configured to determine a pulse filtering threshold of the current pulse signal based on the current ambient light intensity; A first judgment module 403 is configured to judge whether the current pulse signal is a valid pulse signal based on the pulse filtering threshold; A first adding module 404 is configured to add the valid pulse signal to a preset valid pulse signal set when the current pulse signal is a valid pulse signal; The second determining module 405 is configured to determine the electricity data of the mechanical electric meter in the collection period based on the valid pulse signal set at the end of the collection period.

[0103] Optionally, the device further includes: A third determining module is configured to determine, from the valid pulse signal set, a preset number of historical valid pulse signals in descending order of acquisition time, where the acquisition time of the historical valid pulse signals is earlier than the acquisition time of the current pulse signal; A first calculation module is used to calculate the acquisition time interval between each two of the historical valid pulse signals with adjacent acquisition times; a fourth determination module, configured to determine, when all the acquisition time intervals are less than or equal to a preset first interval threshold, a target valid pulse signal adjacent to the acquisition time of the current valid pulse signal from the plurality of historical valid pulse signals, and use the historical pulse filtering threshold corresponding to the target valid pulse signal as the pulse filtering threshold of the current pulse signal; A fifth determining module is configured to determine a pulse filtering threshold of the current pulse signal based on the current ambient light intensity when any of the acquisition time intervals is greater than a preset first interval threshold.

[0104] Optionally, the current ambient light intensity corresponds to a current detection timestamp, and the fifth determining module includes: A first acquisition submodule is configured to acquire a historical ambient light intensity, wherein the historical ambient light intensity corresponds to a historical detection timestamp, and the historical detection timestamp is earlier than the current detection timestamp; A first calculation submodule, configured to calculate a detection time interval between the historical detection timestamp and the current detection timestamp; A second calculation submodule is configured to calculate a rate of change of ambient light intensity based on the current ambient light intensity and the historical ambient light intensity; The first determining submodule is configured to determine a pulse filtering threshold of the current pulse signal based on the ambient light intensity change rate and the detection time interval.

[0105] Optionally, the first determining submodule includes: a first calculation unit, configured to calculate, based on the current ambient light intensity, a pulse filtering threshold of the current pulse signal when the detection time interval is greater than or equal to a preset second interval threshold, and the second interval threshold is greater than the first interval threshold; a second calculation unit, configured to calculate a pulse filtering threshold of the current pulse signal based on the current ambient light intensity when the ambient light intensity change rate is greater than or equal to a preset change rate threshold; The first processing unit is used to use the historical pulse filtering threshold corresponding to the target valid pulse signal as the pulse filtering threshold of the current pulse signal when the detection time interval is less than a preset second interval threshold and the ambient light intensity change rate is less than a preset change rate threshold.

[0106] Optionally, the second determining module 405 includes: A second determining submodule, configured to determine the number of valid pulse signals based on the valid pulse signal set; The third calculation submodule is configured to calculate the electricity data of the mechanical electric meter in the acquisition period based on the number of valid pulse signals and a preset electricity coefficient.

[0107] Optionally, the second determining submodule includes: a first screening unit, configured to screen out a target pulse signal from the valid pulse signal set based on a preset screening condition, wherein the preset screening condition is that the acquisition time interval between at least three valid pulse signals with adjacent acquisition times is less than or equal to the preset first interval threshold; The first statistical unit is used to count the number of the target pulse signals and use the number of the target pulse signals as the number of valid pulse signals.

[0108] Optionally, the device further comprises: A first acquiring unit is configured to acquire reference power data and historical power data of the mechanical electric meter in a historical collection period; a third calculating unit, configured to calculate a relative error of a historical power coefficient based on the reference power data and the historical power data; The first adjustment unit is configured to adjust the historical power coefficient based on the relative error to obtain the preset power coefficient.

[0109] Each module in the above-mentioned power monitoring device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of the processor of the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0110] In one embodiment, a computer device is provided. The computer device may be a terminal device, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a readable storage medium. The readable storage medium stores computer-readable instructions. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer-readable instructions are executed by the processor, a power monitoring method is implemented. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.

[0111] In an embodiment of the present application, a computer device is provided, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the computer-readable instructions, the steps of the above-mentioned power monitoring method are implemented.

[0112] In an embodiment of the application, a readable storage medium is provided, which stores computer-readable instructions. When the computer-readable instructions are executed by a processor, the steps of the above-mentioned power monitoring method are implemented.

[0113] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through computer-readable instructions. The computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When the computer-readable instructions are executed, they can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0114] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0115] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A method for monitoring electric quantity, characterized in that: The method is used to monitor a mechanical electric meter, wherein the mechanical electric meter is provided with a photoelectric pulse acquisition unit for acquiring the rotation state of the mechanical electric meter's turntable. The method comprises: Acquire the current pulse signal collected by the photoelectric pulse collection unit within a collection period, and the current ambient light intensity of the area where the mechanical meter is located; Determining a pulse filtering threshold of the current pulse signal based on the current ambient light intensity; Based on the pulse filtering threshold, determining whether the current pulse signal is a valid pulse signal; When the current pulse signal is a valid pulse signal, adding the valid pulse signal to a preset valid pulse signal set; At the end of the collection period, the power data of the mechanical electric meter in the collection period is determined based on the valid pulse signal set.

2. The method for monitoring electric quantity according to claim 1, wherein: Before determining the pulse filtering threshold of the current pulse signal based on the current ambient light intensity, the method further includes: In the valid pulse signal set, a preset number of historical valid pulse signals are determined in order of acquisition time from latest to earliest, and the acquisition time of the historical valid pulse signals is earlier than the acquisition time of the current pulse signal; Calculating the acquisition time interval between each two of the historical valid pulse signals with adjacent acquisition times; When all the acquisition time intervals are less than or equal to a preset first interval threshold, determining a target valid pulse signal adjacent to the acquisition time of the current valid pulse signal from the multiple historical valid pulse signals, and using the historical pulse filtering threshold corresponding to the target valid pulse signal as the pulse filtering threshold of the current pulse signal; When any of the acquisition time intervals is greater than a preset first interval threshold, a pulse filtering threshold of the current pulse signal is determined based on the current ambient light intensity.

3. The method for monitoring electric quantity according to claim 2, wherein: The current ambient light intensity corresponds to a current detection timestamp, and determining the pulse filtering threshold of the current pulse signal based on the current ambient light intensity includes: Acquire historical ambient light intensity, where the historical ambient light intensity corresponds to a historical detection timestamp, and the historical detection timestamp is earlier than the current detection timestamp; Calculating a detection time interval between the historical detection timestamp and the current detection timestamp; Calculating an ambient light intensity change rate based on the current ambient light intensity and the historical ambient light intensity; A pulse filtering threshold of the current pulse signal is determined based on the ambient light intensity change rate and the detection time interval.

4. The method for monitoring electric quantity according to claim 3, wherein: The determining of the pulse filtering threshold of the current pulse signal based on the ambient light intensity change rate and the detection time interval includes: When the detection time interval is greater than or equal to a preset second interval threshold, a pulse filtering threshold of the current pulse signal is calculated based on the current ambient light intensity, and the second interval threshold is greater than the first interval threshold; When the rate of change of the ambient light intensity is greater than or equal to a preset rate of change threshold, calculating a pulse filtering threshold of the current pulse signal based on the current ambient light intensity; When the detection time interval is less than a preset second interval threshold and the ambient light intensity change rate is less than a preset change rate threshold, the historical pulse filtering threshold corresponding to the target valid pulse signal is used as the pulse filtering threshold of the current pulse signal.

5. The method for monitoring electric quantity according to claim 1, wherein: The determining, based on the valid pulse signal set, the electricity data of the mechanical electric meter in the acquisition period, includes: Determining the number of valid pulse signals based on the valid pulse signal set; Based on the number of valid pulse signals and a preset power coefficient, the power data of the mechanical meter in the collection period is calculated.

6. The method for monitoring electric quantity according to claim 5, wherein: The determining the number of valid pulse signals based on the valid pulse signal set includes: Based on a preset screening condition, a target pulse signal is screened out from the valid pulse signal set, wherein the preset screening condition is that the acquisition time interval between at least three valid pulse signals with adjacent acquisition times is less than or equal to the preset first interval threshold; The number of the target pulse signals is counted, and the number of the target pulse signals is used as the valid pulse signal number.

7. The method for monitoring electric quantity according to claim 5, wherein: The method further comprises: Obtaining reference power data and historical power data of the mechanical electric meter in a historical collection period; Calculating a relative error of a historical power coefficient based on the reference power data and the historical power data; Based on the relative error, the historical power coefficient is adjusted to obtain the preset power coefficient.

8. A power monitoring device, characterized in that: The device is used to monitor a mechanical electric meter, wherein a photoelectric pulse acquisition unit for acquiring the rotation state of a turntable of the mechanical electric meter is deployed on the mechanical electric meter. The device comprises: a first acquisition module, configured to acquire a current pulse signal acquired by the photoelectric pulse acquisition unit within an acquisition period, and a current ambient light intensity in an area where the mechanical meter is located; A first determining module, configured to determine a pulse filtering threshold of the current pulse signal based on the current ambient light intensity; A first judgment module, configured to judge whether the current pulse signal is a valid pulse signal based on the pulse filtering threshold; A first adding module is used to add the valid pulse signal to a preset valid pulse signal set when the current pulse signal is a valid pulse signal; The second determination module is configured to determine the electricity data of the mechanical electric meter in the acquisition period based on the valid pulse signal set at the end of the acquisition period.

9. A computer device comprising a memory, a processor, and computer-readable instructions stored in the memory and executed on the processor, wherein: When the processor executes the computer-readable instructions, the power monitoring method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having computer-readable instructions stored thereon, characterized in that: When the computer-readable instructions are executed by a processor, the power monitoring method according to any one of claims 1 to 7 is implemented.