Electromagnetic signal comparison method, device, equipment and storage medium
By performing time axis translation of the electromagnetic signal and selecting signal within the target period, the problem of inaccurate electromagnetic signal comparison results is solved, and more accurate and targeted electromagnetic signal comparison is achieved.
Patent Information
- Application Number
- CN202210899185.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-28
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2042-07-28
AI Technical Summary
The existing electromagnetic signal comparison method cannot accurately reflect the true difference between the electromagnetic signals of the two targets, resulting in inaccurate comparison results.
By translating the first test electromagnetic signal on the time axis, its main peak and peak value coincides with the main peak and peak time of the first reference electromagnetic signal, and selecting the electromagnetic signal as a comparison object within the target period, using the feature selection verification (FSV) method Conduct comparison, remove invalid data, and improve the accuracy of comparison results.
The two electromagnetic signals are consistent in time, and the long tail signal with large differences is removed, and signals with limited length are selected for comparison, which significantly improves the accuracy and pertinence of the comparison results.
Smart Images

Figure CN115456007B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electromagnetic environment effects, and in particular relates to an electromagnetic signal comparison method, device, equipment and storage medium. Background Art
[0002] Electromagnetic signals usually change very quickly over time, and the signals have significant periodic oscillations. In the study of electromagnetic environmental effects, it is impossible to use general statistical methods to compare electromagnetic signals, so the Feature Selective Validation (FSV) method came into being.
[0003] The FSV method is the core method of the electromagnetic simulation effectiveness evaluation system. By acquiring two target electromagnetic signals, the two target electromagnetic signals are compared based on the FSV method, and the differences in data trends, features, etc. are extracted to obtain a quantitative evaluation, and the quantitative evaluation is converted into six types of qualitative explanations described in natural language. According to the distribution of the six types of qualitative explanations, the distribution of expert evaluation results can be simulated.
[0004] When comparing two target electromagnetic signals based on the FSV method, the comparison result cannot reflect the real difference between the two target electromagnetic signals and is inaccurate. Summary of the invention
[0005] The embodiments of the present disclosure provide an electromagnetic signal comparison method, device, equipment and storage medium, which can improve the accuracy of the comparison results. The technical solution is as follows:
[0006] On the one hand, a method for comparing electromagnetic signals is provided, the method comprising: acquiring a first test electromagnetic signal and a first reference electromagnetic signal, the first test electromagnetic signal being generated by an electromagnetic model to be verified, and the first reference electromagnetic signal being generated by a reference electromagnetic model; translating the first test electromagnetic signal on a time axis to obtain a second test electromagnetic signal, the time corresponding to a main peak value of the second test electromagnetic signal coincides with the time corresponding to a main peak value of the first reference electromagnetic signal; selecting electromagnetic signals of the first reference electromagnetic signal and the second test electromagnetic signal within a target period as the second reference electromagnetic signal and the third test electromagnetic signal, the target period being a period corresponding to a main peak and multiple peaks adjacent to the main peak; comparing the second reference electromagnetic signal and the third test electromagnetic signal based on a feature selection verification (FSV) method to obtain a first comparison result.
[0007] Optionally, the selecting of the electromagnetic signals of the first reference electromagnetic signal and the second test electromagnetic signal within a target period as the second reference electromagnetic signal and the third test electromagnetic signal includes: determining the period number of the target period based on the relationship between the target peak-to-peak value of the first reference electromagnetic signal and the main peak-to-peak value of the first reference electromagnetic signal, wherein the target peak is the Nth peak adjacent to the main peak of the first reference electromagnetic signal; and taking the electromagnetic signals of the first reference electromagnetic signal and the second test electromagnetic signal within the period corresponding to the main peak and N peaks adjacent to the main peak as the second reference electromagnetic signal and the third test electromagnetic signal, wherein the period number is equal to N+1.
[0008] Optionally, based on the relationship between the target peak-to-peak value of the first reference electromagnetic signal and the main peak-to-peak value of the first reference electromagnetic signal, the number of cycles of the target cycle is determined, including: when the Nth peak-to-peak value adjacent to the main peak of the first reference electromagnetic signal is greater than or equal to a set ratio of the main peak-to-peak value of the first reference electromagnetic signal, and the N+1th peak-to-peak value adjacent to the main peak of the first reference electromagnetic signal is less than a set ratio of the main peak-to-peak value of the first reference electromagnetic signal, the number of cycles of the target cycle is determined to be N+1, and the set ratio is in the range of [40%, 60%].
[0009] Optionally, the method also includes: comparing the second reference electromagnetic signal and the third test electromagnetic signal based on at least one of a periodic amplitude scale and a periodic time scale to obtain a second comparison result; wherein the periodic amplitude scale is the ratio of the absolute value of the difference between the peak value of the main peak and the peak value of the Nth wave peak adjacent to the main peak to the ratio of N; the periodic time scale is the ratio of the absolute value of the difference between the time corresponding to the peak value of the main peak and the time corresponding to the peak value of the Nth wave peak adjacent to the main peak to the ratio of N; comparing the second reference electromagnetic signal and the third test electromagnetic signal based on the feature selection verification FSV method includes: when the second comparison result meets the set conditions, comparing the second reference electromagnetic signal and the third test electromagnetic signal based on the feature selection verification FSV method.
[0010] Optionally, the set conditions include at least one of the following: the ratio between the periodic amplitude scale of the second reference electromagnetic signal and the periodic amplitude scale of the third test electromagnetic signal is within a preset range; the ratio between the periodic time scale of the second reference electromagnetic signal and the periodic time scale of the third test electromagnetic signal is within a preset range.
[0011] Optionally, the first test electromagnetic signal is shifted on the time axis to obtain the second test electromagnetic signal, including: obtaining the difference between the time corresponding to the main peak-to-peak value of the first test electromagnetic signal and the time corresponding to the main peak-to-peak value of the first reference electromagnetic signal; translating the first test electromagnetic signal on the time axis by the distance of the difference, and using the translated electromagnetic signal as the second test electromagnetic signal.
[0012] On the other hand, an electromagnetic signal comparison device is provided, the device comprising: an acquisition unit, used to acquire a first test electromagnetic signal and a first reference electromagnetic signal, the first test electromagnetic signal is generated by the electromagnetic model to be verified, and the first reference electromagnetic signal is generated by the reference electromagnetic model; a translation unit, used to translate the first test electromagnetic signal on the time axis to obtain a second test electromagnetic signal, the time corresponding to the main peak-to-peak value of the second test electromagnetic signal coincides with the time corresponding to the main peak-to-peak value of the first reference electromagnetic signal; a selection unit, used to select the electromagnetic signals of the first reference electromagnetic signal and the second test electromagnetic signal within a target period as the second reference electromagnetic signal and the third test electromagnetic signal, the target period being the period corresponding to the main peak and multiple peaks adjacent to the main peak; a first comparison unit, used to compare the second reference electromagnetic signal and the third test electromagnetic signal based on the feature selection verification FSV method to obtain a first comparison result.
[0013] Optionally, the selection unit includes: a period determination subunit, used to determine the number of periods of the target period based on the relationship between the target peak-to-peak value of the first reference electromagnetic signal and the main peak-to-peak value of the first reference electromagnetic signal, wherein the target peak is the Nth peak adjacent to the main peak of the first reference electromagnetic signal; a signal selection subunit, used to use the electromagnetic signals of the first reference electromagnetic signal and the second test electromagnetic signal within the period corresponding to the main peak and N peaks adjacent to the main peak as the second reference electromagnetic signal and the third test electromagnetic signal, wherein the number of periods is equal to N+1.
[0014] Optionally, the period determination subunit is also used to determine that the number of periods of the target period is N+1 when the peak value of the Nth wave peak adjacent to the main peak of the first reference electromagnetic signal is greater than or equal to a set ratio of the peak value of the main peak of the first reference electromagnetic signal, and the peak value of the N+1th wave peak adjacent to the main peak of the first reference electromagnetic signal is less than a set ratio of the peak value of the main peak of the first reference electromagnetic signal, and the set ratio takes a value range of [40%, 60%].
[0015] On the other hand, a computer device is provided, which includes one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement any of the aforementioned electromagnetic signal comparison methods.
[0016] On the other hand, a computer storage medium is provided, wherein at least one program code is stored in the computer storage medium, and the at least one program code is loaded and executed by a processor to implement any one of the aforementioned electromagnetic signal comparison methods.
[0017] The beneficial effects brought by the technical solution provided by the embodiments of the present disclosure include at least:
[0018] In the disclosed embodiment, by acquiring the first test electromagnetic signal and the first reference electromagnetic signal, the first test electromagnetic signal is translated on the time axis so that the time corresponding to the main peak value of the obtained second test electromagnetic signal coincides with the time corresponding to the main peak value of the first reference electromagnetic signal, so that the time when the two electromagnetic signals are generated is consistent, and the comparison result of the electromagnetic signals at the same time is more accurate. By selecting the electromagnetic signal within the target period as the target signal for comparison by the FSV method, the electromagnetic signal of a limited length is selected for comparison, invalid data is removed, the comparison is more targeted, and the comparison result is more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 is a flow chart of an electromagnetic signal comparison method provided by an embodiment of the present disclosure;
[0021] Figure 2 is a flow chart of another electromagnetic signal comparison method provided by an embodiment of the present disclosure;
[0022] Figure 3 is a schematic diagram of a first test electromagnetic signal and a first reference electromagnetic signal provided by an embodiment of the present disclosure;
[0023] Figure 4 is a schematic diagram of a second test electromagnetic signal and a first reference electromagnetic signal provided by an embodiment of the present disclosure;
[0024] Figure 5 is a structural block diagram of an electromagnetic signal comparison device provided by an embodiment of the present disclosure;
[0025] Figure 6 It is a structural block diagram of a computer device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.
[0027] In order to facilitate understanding of the embodiments of the present disclosure, the application scenarios of the embodiments of the present disclosure are first exemplarily described below.
[0028] In the study of electromagnetic environment effects, it is usually necessary to compare two target electromagnetic signals. Exemplarily, the two target electromagnetic signals include a test electromagnetic signal and a reference electromagnetic signal. The test electromagnetic signal is generated by the electromagnetic model to be verified, and the reference electromagnetic signal is generated by the reference electromagnetic model. By comparing the test electromagnetic signal and the reference electromagnetic signal, the overall and detailed differences between the test electromagnetic signal and the reference electromagnetic signal can be evaluated. Exemplarily, the parameters of the electromagnetic model to be verified can be corrected according to this difference to reduce the difference between the test electromagnetic signal and the reference electromagnetic signal.
[0029] The electromagnetic model to be verified and the reference electromagnetic model may be different electromagnetic models. Two target electromagnetic signals are obtained through the two electromagnetic models, and the results of comparing the two target electromagnetic signals have different uses.
[0030] For example, the electromagnetic model to be verified is an electromagnetic experimental platform, and the reference electromagnetic model is an electromagnetic simulation platform. The comparison results of the two target electromagnetic signals are used to evaluate the accuracy of the electromagnetic experimental platform. The test electromagnetic signal carries experimental data, and the reference electromagnetic signal carries simulation data. The electromagnetic signal comparison is used to evaluate the difference between the experimental data and the simulation data. The experimenter can correct the parameters of the electromagnetic experimental platform based on the difference.
[0031] For another example, the electromagnetic model to be verified is an electromagnetic simulation platform, and the reference electromagnetic model is an electromagnetic experimental platform. The comparison results of the two target electromagnetic signals are used to evaluate the accuracy of the electromagnetic simulation platform. The test electromagnetic signal carries simulation data, and the reference electromagnetic signal carries experimental data. The electromagnetic signal comparison is used to evaluate the difference between the simulation data and the experimental data. The experimenter can calibrate the parameters of the electromagnetic simulation platform based on the difference.
[0032] In the embodiments of the present disclosure, the electromagnetic experiment platform may be physical, and the electromagnetic simulation platform may be mathematical, that is, computer simulation.
[0033] The acquisition time of the test electromagnetic signal and the reference electromagnetic signal is different, resulting in different starting times of the two electromagnetic signals. Data with the same physical meaning will deviate from the time of the two electromagnetic signals, for example, the main peak value will be at different times in the two electromagnetic signals. When the two electromagnetic signals are directly compared, there will be a large deviation in the data at the same time, and the data at the same time have different physical meanings and low comparability, resulting in inaccurate comparison results.
[0034] In addition, due to the attenuation of electromagnetic signals, the amplitudes of the acquired test electromagnetic signals and reference electromagnetic signals become smaller and smaller as time goes by, which results in the test electromagnetic signals and reference electromagnetic signals having long tails. In these long-tailed signals, due to the volatility of attenuation, the tail signals of the two electromagnetic signals are very different. Therefore, it is meaningless to compare all the data carried by the two electromagnetic signals, and the comparison results are inaccurate.
[0035] To this end, an embodiment of the present disclosure provides an electromagnetic signal comparison method, which preprocesses two target electromagnetic signals to align the time of the two target electromagnetic signals and removes the long tails in the two target electromagnetic signals. The FSV method is used to compare the two preprocessed target electromagnetic signals to improve the accuracy of the comparison results.
[0036] Figure 1 is a flow chart of an electromagnetic signal comparison method provided by an embodiment of the present disclosure. Figure 1 , the method is executed by a computer device, and the method comprises:
[0037] Step 101: Acquire a first test electromagnetic signal and a first reference electromagnetic signal.
[0038] The first test electromagnetic signal is generated by the electromagnetic model to be verified, and the first reference electromagnetic signal is generated by the reference electromagnetic model.
[0039] Step 102: Shift the first test electromagnetic signal on the time axis to obtain a second test electromagnetic signal.
[0040] The time corresponding to the main peak value of the second test electromagnetic signal coincides with the time corresponding to the main peak value of the first reference electromagnetic signal.
[0041] Step 103 : Select electromagnetic signals of the first reference electromagnetic signal and the second test electromagnetic signal within a target period as the second reference electromagnetic signal and the third test electromagnetic signal.
[0042] The target period is the period corresponding to the main peak and multiple peaks adjacent to the main peak.
[0043] Step 104 : Compare the second reference electromagnetic signal and the third test electromagnetic signal based on the FSV method to obtain a first comparison result.
[0044] In the disclosed embodiment, by acquiring the first test electromagnetic signal and the first reference electromagnetic signal, the first test electromagnetic signal is translated on the time axis so that the time corresponding to the main peak value of the obtained second test electromagnetic signal coincides with the time corresponding to the main peak value of the first reference electromagnetic signal, so that the time when the two electromagnetic signals are generated is consistent, and the comparison result of the electromagnetic signals at the same time is more accurate. In addition, by selecting the electromagnetic signal within the target period as the target signal for comparison by the FSV method, the long tail with large differences in the electromagnetic signal is removed, and the electromagnetic signal of limited length is selected for comparison, so that the comparison is more targeted and the comparison result is more accurate.
[0045] Figure 2 is a flow chart of another electromagnetic signal comparison method provided by an embodiment of the present disclosure. Figure 2 , the method is executed by a computer device, and the method comprises:
[0046] Step 201: Acquire a first test electromagnetic signal and a first reference electromagnetic signal.
[0047] Step 202 : Obtain a difference between a time corresponding to a main peak value of a first test electromagnetic signal and a time corresponding to a main peak value of a first reference electromagnetic signal.
[0048] Exemplarily, the difference between the time corresponding to the main peak value of the first test electromagnetic signal and the time corresponding to the main peak value of the first reference electromagnetic signal can be expressed by formula (1):
[0049] d=Data_t1_x1-Data_r1_x1 (1)
[0050] In formula (1), d represents the difference between the times corresponding to the main peak values of the two electromagnetic signals, Data_t1_x1 represents the time corresponding to the main peak value of the first test electromagnetic signal, and Data_r1_x1 represents the time corresponding to the main peak value of the first reference electromagnetic signal.
[0051] Step 203: Shift the first test electromagnetic signal on the time axis by the distance of the difference, and use the shifted electromagnetic signal as the second test electromagnetic signal.
[0052] Exemplarily, when the difference d>0, the first test electromagnetic signal is translated to the left on the time axis by the distance of the difference; when the difference d<0, the first test electromagnetic signal is translated to the right on the time axis by the distance of the difference.
[0053] Through steps 202 to 203, the first test electromagnetic signal can be translated on the time axis to obtain the second test electromagnetic signal.
[0054] Figure 3 Schematic diagram of a first test electromagnetic signal and a first reference electromagnetic signal provided by an embodiment of the present disclosure. Figure 3 There is a deviation between the time corresponding to the main peak value of the first test electromagnetic signal 302 and the time corresponding to the main peak value of the first reference electromagnetic signal 301 . Figure 4 Schematic diagram of the second test electromagnetic signal and the first reference electromagnetic signal provided by the embodiment of the present disclosure. After executing steps 202 to 203 on the first test electromagnetic signal 302 and the first reference electromagnetic signal 301, a second test electromagnetic signal 401 is obtained, and the time corresponding to the main peak value of the second test electromagnetic signal 401 coincides with the time corresponding to the main peak value of the first reference electromagnetic signal.
[0055] Step 204 : determining the number of cycles of the target cycle based on the relationship between the target peak-to-peak value of the first reference electromagnetic signal and the main peak-to-peak value of the first reference electromagnetic signal.
[0056] The target peak is the Nth peak adjacent to the main peak of the first reference electromagnetic signal.
[0057] Optionally, step 204 includes: when the peak value of the Nth wave peak adjacent to the main peak of the first reference electromagnetic signal is greater than or equal to a set ratio of the peak value of the main peak of the first reference electromagnetic signal, and the peak value of the N+1th wave peak adjacent to the main peak of the first reference electromagnetic signal is less than a set ratio of the peak value of the main peak of the first reference electromagnetic signal, determining that the number of cycles of the target cycle is N+1.
[0058] In the embodiment of the present disclosure, the setting ratio value range is [40%, 60%]. Exemplarily, the setting ratio value is 50%.
[0059] Below Figure 4 For example, the peak value of the main peak 3011 of the first reference electromagnetic signal 301 is 0.99, the peak value of the first peak 3012 adjacent to the main peak 3011 is 0.49, the peak value of the second peak 3013 adjacent to the main peak 3011 is 0.3, and the set ratio is 50%, which satisfies the peak value of the first peak 3012 being greater than 50% of the peak value of the main peak 3011, and the peak value of the second peak 3013 being less than 50% of the peak value of the main peak 3011. Therefore, the target number of cycles determined based on the first reference electromagnetic signal is 2, and N=1.
[0060] Step 205 : taking the electromagnetic signals of the first reference electromagnetic signal and the second test electromagnetic signal within a target period as the second reference electromagnetic signal and the third test electromagnetic signal.
[0061] The electromagnetic signal within the target period is selected as the target signal for comparison by the FSV method. The signal data with more attenuation is removed, and only the signal data with larger amplitude is retained. The comparison is more valuable and the comparison result is more accurate.
[0062] Through steps 204 to 205 , it is possible to select electromagnetic signals of the first reference electromagnetic signal and the second test electromagnetic signal within a target period as the second reference electromagnetic signal and the third test electromagnetic signal.
[0063] Step 206 : Based on at least one of the periodic amplitude scale and the periodic time scale, compare the second reference electromagnetic signal and the third test electromagnetic signal to obtain a second comparison result.
[0064] Among them, the cycle amplitude scale is the ratio of the absolute value of the difference between the peak value of the main peak and the peak value of the Nth wave peak adjacent to the main peak to N; the cycle time scale is the ratio of the absolute value of the difference between the time corresponding to the peak value of the main peak and the time corresponding to the peak value of the Nth wave peak adjacent to the main peak to N.
[0065] The second comparison result includes at least one of the following: a ratio between a period amplitude scale of the second reference electromagnetic signal and a period amplitude scale of the third test electromagnetic signal, and a ratio between a period time scale of the second reference electromagnetic signal and a period time scale of the third test electromagnetic signal.
[0066] When the ratio between the periodic amplitude scale of the second reference electromagnetic signal and the periodic amplitude scale of the third test electromagnetic signal is within a preset range, it indicates that the periodic amplitudes of the two electromagnetic signals are close; when the ratio between the periodic amplitude scale of the second reference electromagnetic signal and the periodic amplitude scale of the third test electromagnetic signal is outside the preset range, it indicates that the periodic amplitudes of the two electromagnetic signals differ greatly.
[0067] When the ratio between the periodic time scale of the second reference electromagnetic signal and the periodic time scale of the third test electromagnetic signal is within a preset range, it indicates that the periodic time of the two electromagnetic signals is close; when the ratio between the periodic time scale of the second reference electromagnetic signal and the periodic time scale of the third test electromagnetic signal is outside the preset range, it indicates that the periodic time of the two electromagnetic signals is greatly different.
[0068] Exemplarily, the preset range is [0.95, 1.05].
[0069] The second reference electromagnetic signal and the third test electromagnetic signal are calculated in the same way as the cycle amplitude scale and cycle time scale. Taking the second reference electromagnetic signal as an example, the cycle amplitude scale can be expressed by formula (2):
[0070] pa1=|Data_r2_y1-Data_r2_yn| / N (2)
[0071] In formula (2), pa1 represents the periodic amplitude scale of the second reference electromagnetic signal, Data_r2_y1 represents the main peak peak value of the second reference electromagnetic signal, Data_r2_yn represents the Nth peak peak value adjacent to the main peak of the second reference electromagnetic signal, N represents the peak number adjacent to the main peak, and the value is a positive integer, and || represents the absolute value.
[0072] The periodic time scale can be expressed by formula (3):
[0073] pt1=|Data_r2_x1-Data_r2_xn| / N (3)
[0074] In formula (3), pt1 represents the periodic time scale of the second reference electromagnetic signal, Data_r2_x1 represents the time corresponding to the peak value of the main peak of the second reference electromagnetic signal, Data_r2_xn represents the time corresponding to the peak value of the Nth wave peak adjacent to the main peak of the second reference electromagnetic signal, N represents the peak number adjacent to the main peak, and the value is a positive integer, and || represents the absolute value.
[0075] Below Figure 4 Taking the example, the process of obtaining the second comparison result by comparing the second reference electromagnetic signal and the third test electromagnetic signal based on the periodic amplitude scale and the periodic time scale is described:
[0076] according to Figure 4 The determined peak number N = 1. The peak value Data_r2_y1 of the main peak of the second reference electromagnetic signal is 0.99, the peak value Data_r2_yn of the first peak adjacent to the main peak of the second reference electromagnetic signal is 0.49, the peak value Data_t3_y1 of the main peak of the third test electromagnetic signal is 0.98, the peak value Data_t3_yn of the first peak adjacent to the main peak of the third test electromagnetic signal is 0.28, and the period amplitude scales of the second reference electromagnetic signal and the third test electromagnetic signal calculated according to formula (2) are: pa1 = 0.5, pa2 = 0.7 respectively.
[0077] The period amplitude scale ratio of the two electromagnetic signals pa1 / pa2=0.714 is calculated.
[0078] The period amplitude scale ratio of 0.714 is outside the preset range [0.95, 1.05], indicating that the period amplitudes of the two electromagnetic signals differ greatly.
[0079] The time Data_r2_x1 corresponding to the peak value of the main peak of the second reference electromagnetic signal is 19, the time Data_r2_xn corresponding to the first peak peak adjacent to the main peak of the second reference electromagnetic signal is 27.37, the time Data_t3_x1 corresponding to the peak value of the main peak of the third test electromagnetic signal is 19, and the time Data_t3_xn corresponding to the first peak peak adjacent to the main peak of the third test electromagnetic signal is 27.4. The period amplitude scales of the second reference electromagnetic signal and the third test electromagnetic signal calculated according to formula (3) are: pt1=8.37, pt2=8.4 respectively.
[0080] The periodic time scale ratio of the two electromagnetic signals pt1 / pt2=0.996 is calculated.
[0081] The period-time scale ratio of 0.996 is within the preset range [0.95, 1.05], indicating that the period times of the two electromagnetic signals are close.
[0082] Step 207: When the second comparison result meets the set condition, the second reference electromagnetic signal and the third test electromagnetic signal are compared based on the FSV method to obtain a first comparison result.
[0083] In some examples, a second comparison result is obtained based on a comparison between the periodic amplitude scale and the periodic time scale. The second comparison result satisfies the set conditions if the ratio between the periodic amplitude scale of the second reference electromagnetic signal and the periodic amplitude scale of the third test electromagnetic signal is within a preset range, or the ratio between the periodic time scale of the second reference electromagnetic signal and the periodic time scale of the third test electromagnetic signal is within a preset range.
[0084] In other examples, a second comparison result is obtained based on a comparison between any one of the periodic amplitude scale and the periodic time scale, and the second comparison result satisfies the set condition when the ratio between the periodic amplitude scale of the second reference electromagnetic signal and the periodic amplitude scale of the third test electromagnetic signal is within a preset range, or the second comparison result satisfies the set condition when the ratio between the periodic time scale of the second reference electromagnetic signal and the periodic time scale of the third test electromagnetic signal is within a preset range.
[0085] The step 207 includes:
[0086] In the first step, the data of the second reference electromagnetic signal and the third test electromagnetic signal are decomposed into direct current, low frequency and high frequency components.
[0087] In the second step, the DC, low-frequency and high-frequency components are combined to extract the amplitude difference measure (ADM), feature difference measure (FDM) and global difference measure (GDM) indicators.
[0088] Among them, according to the DC component and low-frequency component of the second reference electromagnetic signal and the DC component and low-frequency component of the third test electromagnetic signal, ADM is extracted, and ADM represents the difference in overall value and trend between the two target electromagnetic signals. According to the low-frequency component and high-frequency component of the second reference electromagnetic signal and the low-frequency component and high-frequency component of the third test electromagnetic signal, FDM is extracted, and FDM represents the difference in detailed characteristics between the two target electromagnetic signals. GDM is formed by combining ADM and FDM.
[0089] The third step is to transform the quantitative results of ADM, FDM and GDM into qualitative explanations described in natural language.
[0090] The qualitative explanation includes six categories: excellent, very good, good, fair, poor, and very poor.
[0091] The fourth step is to count the proportion of each type of qualitative explanation to obtain a credibility histogram.
[0092] The credibility histogram is the first comparison result, and the distribution of the expert evaluation results can be simulated based on the first comparison result.
[0093] When the periodic amplitudes of two electromagnetic signals are close or the periodic time of two electromagnetic signals are close, it indicates that the two electromagnetic signals are similar in periodic characteristics, and it is valuable to compare the two electromagnetic signals based on the FSV method. When the periodic amplitudes of two electromagnetic signals differ greatly and the periodic time of two electromagnetic signals differ greatly, it indicates that the two electromagnetic signals differ greatly in periodic characteristics, and the proportion of "poor, very poor" in the first comparison result obtained based on the FSV method is high, and it is worthless to compare the two electromagnetic signals based on the FSV method.
[0094] In the disclosed embodiment, by acquiring the first test electromagnetic signal and the first reference electromagnetic signal, the first test electromagnetic signal is translated on the time axis so that the time corresponding to the main peak value of the obtained second test electromagnetic signal coincides with the time corresponding to the main peak value of the first reference electromagnetic signal, so that the time when the two electromagnetic signals are generated is consistent, and the comparison result of the electromagnetic signals at the same time is more accurate. In addition, by selecting the electromagnetic signal within the target period as the target signal for comparison by the FSV method, the long tail with large differences in the electromagnetic signal is removed, and the electromagnetic signal of limited length is selected for comparison, so that the comparison is more targeted and the comparison result is more accurate.
[0095] In addition, before comparing the second reference electromagnetic signal and the third test electromagnetic signal based on the FSV method, the second reference electromagnetic signal and the third test electromagnetic signal are compared based on the characteristic quantity periodic amplitude scale and the periodic time scale. When the second comparison result meets the set conditions, it is determined to use the FSV method to compare the second reference electromagnetic signal and the third test electromagnetic signal, which makes the comparison more valuable and improves the comparison efficiency.
[0096] Figure 5 is a structural block diagram of an electromagnetic signal comparison device provided by an embodiment of the present disclosure. Figure 5 As shown, the device 50 can be implemented by hardware or a combination of hardware and software to perform Figure 1 or Figure 2 The device 50 includes: an acquisition unit 501 , a translation unit 502 , a selection unit 503 and a first comparison unit 504 .
[0097] The acquisition unit 501 is used to acquire a first test electromagnetic signal and a first reference electromagnetic signal, wherein the first test electromagnetic signal is generated by the electromagnetic model to be verified, and the first reference electromagnetic signal is generated by the reference electromagnetic model. The translation unit 502 is used to translate the first test electromagnetic signal on the time axis to obtain a second test electromagnetic signal, wherein the time corresponding to the main peak value of the second test electromagnetic signal coincides with the time corresponding to the main peak value of the first reference electromagnetic signal. The selection unit 503 is used to select the electromagnetic signals of the first reference electromagnetic signal and the second test electromagnetic signal within a target period as the second reference electromagnetic signal and the third test electromagnetic signal, wherein the target period is the period corresponding to the main peak and multiple peaks adjacent to the main peak. The first comparison unit 504 is used to compare the second reference electromagnetic signal and the third test electromagnetic signal based on the FSV method to obtain a first comparison result.
[0098] Optionally, the translation unit 502 is used to obtain the difference between the time corresponding to the main peak value of the first test electromagnetic signal and the time corresponding to the main peak value of the first reference electromagnetic signal; translate the first test electromagnetic signal by the distance of the difference on the time axis, and use the translated electromagnetic signal as the second test electromagnetic signal.
[0099] Optionally, the selection unit 503 includes a period determination subunit 5031 and a signal selection subunit 5032. The period determination subunit 5031 is used to determine the number of periods of the target period based on the relationship between the target peak value of the first reference electromagnetic signal and the main peak peak value of the first reference electromagnetic signal, wherein the target peak is the Nth peak adjacent to the main peak of the first reference electromagnetic signal. The signal selection subunit 5032 is used to use the electromagnetic signals of the first reference electromagnetic signal and the second test electromagnetic signal in the period corresponding to the main peak and the N peaks adjacent to the main peak as the second reference electromagnetic signal and the third test electromagnetic signal, wherein the number of periods is equal to N+1.
[0100] Optionally, the period determination subunit 5031 is also used to determine that the number of periods of the target period is N+1 when the peak value of the Nth wave peak adjacent to the main peak of the first reference electromagnetic signal is greater than or equal to a set ratio of the peak value of the main peak of the first reference electromagnetic signal, and the peak value of the N+1th wave peak adjacent to the main peak of the first reference electromagnetic signal is less than a set ratio of the peak value of the main peak of the first reference electromagnetic signal.
[0101] In the embodiment of the present disclosure, the setting ratio value range is [40%, 60%]. Exemplarily, the setting ratio value is 50%.
[0102] Optionally, the device 50 further includes a second comparison unit 505. The second comparison unit 505 is used to compare the second reference electromagnetic signal and the third test electromagnetic signal based on at least one of a periodic amplitude scale and a periodic time scale to obtain a second comparison result.
[0103] Among them, the cycle amplitude scale is the ratio of the absolute value of the difference between the peak value of the main peak and the peak value of the Nth peak adjacent to the main peak to the peak number N; the cycle time scale is the ratio of the absolute value of the difference between the time corresponding to the peak value of the main peak and the time corresponding to the peak value of the Nth peak adjacent to the main peak to the peak number N.
[0104] Optionally, the first comparison unit 504 is configured to compare the second reference electromagnetic signal and the third test electromagnetic signal based on the FSV method to obtain a first comparison result when the second comparison result meets a set condition.
[0105] The setting conditions include at least one of the following:
[0106] The ratio between the period amplitude scale of the second reference electromagnetic signal and the period amplitude scale of the third test electromagnetic signal is within a preset range;
[0107] The ratio between the periodic time scale of the second reference electromagnetic signal and the periodic time scale of the third test electromagnetic signal is within a preset range.
[0108] It should be noted that: when the electromagnetic signal comparison device provided in the above embodiment performs electromagnetic signal comparison, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the electromagnetic signal comparison device and the electromagnetic signal comparison method embodiment provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0109] The division of modules in the embodiments of the present disclosure is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present disclosure may be integrated into a processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0110] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a terminal device (which can be a personal computer, a mobile phone, or a communication device, etc.) or a processor (processor) to perform all or part of the steps of the method of each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0111] The present disclosure provides a computer device. The computer device includes a memory and a processor. The memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement execution. Figure 1 or Figure 2 The electromagnetic signal comparison method shown in the corresponding embodiment.
[0112] Figure 6 60 is a block diagram of a computer device provided by an embodiment of the present disclosure. The computer device 60 includes: a processor 601 and a memory 602 .
[0113] The processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 601 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state.
[0114] The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 602 is used to store at least one instruction, which is used to be executed by the processor 601 to implement the electromagnetic signal comparison method provided in the method embodiment of the present application.
[0115] The present disclosure provides a computer-readable storage medium, wherein at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor to complete the above Figure 1 or Figure 2 The electromagnetic signal comparison method shown in the corresponding embodiment. For example, the computer-readable storage medium can be a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
[0116] The embodiment of the present disclosure also provides a computer program product, which includes computer instructions. When the computer instructions are executed on a computer device, the computer device executes the electromagnetic signal comparison method provided in various optional implementations of the above aspects.
[0117] The above description is only an optional embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. An electromagnetic signal comparison method, characterized in that: The method comprises: Acquire a first test electromagnetic signal and a first reference electromagnetic signal, wherein the first test electromagnetic signal is generated by the electromagnetic model to be verified, and the first reference electromagnetic signal is generated by the reference electromagnetic model; Shifting the first test electromagnetic signal on the time axis to obtain a second test electromagnetic signal, wherein the time corresponding to the peak value of the main peak of the second test electromagnetic signal coincides with the time corresponding to the peak value of the main peak of the first reference electromagnetic signal; Determining the number of cycles of a target cycle based on a relationship between a target peak value of the first reference electromagnetic signal and a main peak value of the first reference electromagnetic signal, wherein the target peak is an Nth peak adjacent to the main peak of the first reference electromagnetic signal; The electromagnetic signals of the first reference electromagnetic signal and the second test electromagnetic signal in the period corresponding to the main peak and N peaks adjacent to the main peak are used as the second reference electromagnetic signal and the third test electromagnetic signal, wherein the number of periods is equal to N+1; Based on at least one of a periodic amplitude scale and a periodic time scale, the second reference electromagnetic signal and the third test electromagnetic signal are compared to obtain a second comparison result; wherein the periodic amplitude scale is the ratio of the absolute value of the difference between the peak value of the main peak and the peak value of the Nth wave peak adjacent to the main peak to the N; the periodic time scale is the ratio of the absolute value of the difference between the time corresponding to the peak value of the main peak and the time corresponding to the peak value of the Nth wave peak adjacent to the main peak to the N; When the second comparison result meets the set conditions, the second reference electromagnetic signal and the third test electromagnetic signal are compared based on the feature selection verification FSV method to obtain a first comparison result, and the set conditions include at least one of the following: the ratio between the periodic amplitude scale of the second reference electromagnetic signal and the periodic amplitude scale of the third test electromagnetic signal is within a preset range; the ratio between the periodic time scale of the second reference electromagnetic signal and the periodic time scale of the third test electromagnetic signal is within a preset range; Wherein, determining the number of cycles of the target cycle based on the relationship between the target peak-to-peak value of the first reference electromagnetic signal and the main peak-to-peak value of the first reference electromagnetic signal includes: When the peak value of the Nth wave peak adjacent to the main peak of the first reference electromagnetic signal is greater than or equal to the set ratio of the peak value of the main peak of the first reference electromagnetic signal, and the peak value of the N+1th wave peak adjacent to the main peak of the first reference electromagnetic signal is less than the set ratio of the peak value of the main peak of the first reference electromagnetic signal, the number of cycles of the target cycle is determined to be N+1, and the set ratio is in the range of [40%, 60%].
2. The method according to claim 1, characterized in that The step of translating the first test electromagnetic signal on a time axis to obtain a second test electromagnetic signal includes: Obtaining a difference between a time corresponding to a main peak value of the first test electromagnetic signal and a time corresponding to a main peak value of the first reference electromagnetic signal; The first test electromagnetic signal is translated on the time axis by a distance of the difference, and the translated electromagnetic signal is used as the second test electromagnetic signal.
3. An electromagnetic signal comparison device, characterized in that: The device comprises: an acquisition unit, configured to acquire a first test electromagnetic signal and a first reference electromagnetic signal, wherein the first test electromagnetic signal is generated by the electromagnetic model to be verified, and the first reference electromagnetic signal is generated by the reference electromagnetic model; A translation unit, configured to translate the first test electromagnetic signal on a time axis to obtain a second test electromagnetic signal, wherein a time corresponding to a main peak value of the second test electromagnetic signal coincides with a time corresponding to a main peak value of the first reference electromagnetic signal; A selection unit, configured to select electromagnetic signals of the first reference electromagnetic signal and the second test electromagnetic signal within a target period as the second reference electromagnetic signal and the third test electromagnetic signal, wherein the target period is a period corresponding to a main peak and a plurality of peaks adjacent to the main peak; Wherein, the selection unit includes: a period determination subunit, for determining the number of periods of the target period based on the relationship between the target peak-to-peak value of the first reference electromagnetic signal and the main peak-to-peak value of the first reference electromagnetic signal, wherein the target peak is the Nth peak adjacent to the main peak of the first reference electromagnetic signal, wherein the number of periods of the target period is determined based on the relationship between the target peak-to-peak value of the first reference electromagnetic signal and the main peak-to-peak value of the first reference electromagnetic signal, including: when the Nth peak-to-peak value adjacent to the main peak of the first reference electromagnetic signal is greater than or equal to a set ratio of the main peak-to-peak value of the first reference electromagnetic signal, and the N+1th peak-to-peak value adjacent to the main peak of the first reference electromagnetic signal is less than a set ratio of the main peak-to-peak value of the first reference electromagnetic signal, determining the number of periods of the target period to be N+1, and the set ratio is in the range of [40%, 60%]; A signal selection subunit, used to use the electromagnetic signals of the first reference electromagnetic signal and the second test electromagnetic signal in the period corresponding to the main peak and N peaks adjacent to the main peak as the second reference electromagnetic signal and the third test electromagnetic signal, wherein the number of periods is equal to N+1; A second comparison unit is used to compare the second reference electromagnetic signal and the third test electromagnetic signal based on at least one of a periodic amplitude scale and a periodic time scale to obtain a second comparison result; wherein the periodic amplitude scale is the ratio of the absolute value of the difference between the peak value of the main peak and the peak value of the Nth wave peak adjacent to the main peak to the said N; the periodic time scale is the ratio of the absolute value of the difference between the time corresponding to the peak value of the main peak and the time corresponding to the peak value of the Nth wave peak adjacent to the main peak to the said N; A first comparison unit is used to compare the second reference electromagnetic signal and the third test electromagnetic signal based on a feature selection verification (FSV) method to obtain a first comparison result when the second comparison result meets a set condition, and the set condition includes at least one of the following: the ratio between the periodic amplitude scale of the second reference electromagnetic signal and the periodic amplitude scale of the third test electromagnetic signal is within a preset range; the ratio between the periodic time scale of the second reference electromagnetic signal and the periodic time scale of the third test electromagnetic signal is within a preset range.
4. A computer device, characterized in that: The computer device includes one or more processors and one or more memories, wherein the one or more memories store at least one program code, and the at least one program code is loaded and executed by the one or more processors to implement the electromagnetic signal comparison method as described in any one of claims 1 to 2.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the electromagnetic signal comparison method according to any one of claims 1 to 2.
