Radio frequency simulation method and device, computing device and storage medium
By dividing the input signal into signal segments and establishing a migration probability matrix, a training set is automatically generated, which solves the problems of training set size and over-fitting in radio frequency simulation, and improves simulation efficiency and accuracy.
Patent Information
- Application Number
- CN202211687363.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-27
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-12-27
AI Technical Summary
In radio frequency simulation, existing behavioral-level models require a larger training set to obtain an accurate model, resulting in long model training time and prone to overfitting, which increases the computational cost.
By dividing the input signal into multiple signal segments, performing clustering operations to obtain a state set, and establishing a migration probability matrix between signal segments, a training set is automatically generated for radio frequency simulation, reducing the number of training samples and avoiding overfitting. , improve simulation efficiency.
It is possible to use as few training samples as possible for radio frequency simulation, save computing resources, improve simulation efficiency, and obtain better training effects in circuits with strong nonlinear memory effects to avoid overfitting.
Smart Images

Figure CN116187234B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of radio frequency simulation technology, and in particular to a radio frequency simulation method and device, a computing device and a storage medium. Background Art
[0002] In RF simulation, envelope analysis is an important component. As the circuit scale becomes larger and larger, the computational cost also increases. Specifically, in envelope analysis, the harmonic balance method needs to be used for calculation at each envelope time signal point. The analysis of the complete envelope signal is highly accurate but the computational cost is also high.
[0003] In the prior art, people have proposed various behavioral models to accelerate envelope calculations. In these behavioral models, people only need to give the input envelope signal, and the output envelope signal is quickly obtained by the behavioral model, thereby avoiding the harmonic balance method calculation of the entire circuit at each time point. Behavioral modeling includes the setting of the behavioral model, the establishment of a training set for the model, the extraction of model parameters using the input and output signals obtained through rigorous calculations in the training set, and the use of the established behavioral model for actual envelope signal calculations. Since in actual RF (Radio Frequency) circuits, common mixers, power amplifiers and other circuits often have strong nonlinear memory effects, this will cause great trouble to the behavioral model. Such circuits usually require a larger training set to obtain an accurate model while avoiding overfitting, which will bring about problems such as long model training time and how to establish a training set.
[0004] Therefore, it is hoped that there will be a new radio frequency simulation method and device, computing device and storage medium that can overcome the above problems. Summary of the invention
[0005] In view of the above problems, the purpose of the present invention is to provide a radio frequency simulation method and device, a computing device and a storage medium, and in particular, a method for automatically generating a radio frequency simulation fast envelope analysis training set for fast envelope calculation of radio frequency simulation, so as to overcome the overfitting phenomenon with as few training samples as possible, save computing resources and improve simulation efficiency.
[0006] According to one aspect of the present invention, there is provided a radio frequency simulation method, comprising: establishing a training set; and performing envelope operation based on the training set to perform radio frequency simulation, wherein the establishing the training set comprises: dividing an input signal into a plurality of signal segments; performing clustering operation on the plurality of signal segments to obtain a plurality of state sets; establishing a transition probability matrix between the plurality of signal segments according to the plurality of signal segments, the time series between the plurality of signal segments, and the state sets to which the plurality of signal segments belong; selecting one of the signal segments as a signal segment at an initial moment, obtaining a signal segment at a next moment adjacent to the arbitrary moment according to the signal segment at any moment and the transition probability matrix, and connecting at least two of the signal segments in chronological order to obtain a training input signal; simulating the training input signal as an input to obtain a training output signal; and obtaining the training set according to the training input signal and the corresponding training output signal.
[0007] Optionally, the RF simulation method also includes: determining the time step and obtaining a sampling time point based on the time step; sampling the input signal according to the sampling time point to obtain a discrete input signal sequence including multiple sampling segments, wherein the time length between two adjacent sampling time points is equal to the time step, and the input signal between two adjacent sampling time points is one sampling segment; the signal segment includes multiple continuous sampling segments.
[0008] Optionally, the radio frequency simulation method is based on Volterra series; the radio frequency simulation method also includes: determining parameters of the Volterra series.
[0009] Optionally, a signal segment corresponding to a first sampling time point as a starting point is taken as a first signal segment, and a signal segment corresponding to a second sampling time point as a starting point is taken as a second signal segment; the first signal segment and the second signal segment include the same number of sampling segments; in chronological order, the state set to which the signal segment corresponding to any sampling time point belongs and the state set to which the signal segment corresponding to the next sampling time point adjacent to the arbitrary sampling time point belongs are acquired in sequence to obtain state transition information between the arbitrary sampling time point and the next sampling time point adjacent to the arbitrary sampling time point; based on the state transition information, a transition probability matrix between each state set in the multiple state sets is obtained.
[0010] Optionally, the selecting of the signal segment as the signal segment at the initial moment, obtaining the signal segment at the next moment adjacent to the arbitrary moment according to the signal segment at any moment and the transition probability matrix, and connecting at least two of the signal segments in chronological order to obtain the training input signal includes: determining the set length of the training input signal; selecting a state set from the state set as the training state set; randomly selecting a signal segment from the training state set as the training input signal sub-segment at the initial moment; obtaining the state set to which the training input signal sub-segment at the next moment adjacent to the arbitrary moment belongs by a probability sampling method according to the probability of the training input signal sub-segment at any moment and the training state set in the transition probability matrix jumping to other state sets; establishing a probability table of each signal segment being selected in the state set to which the training input signal sub-segment at the next moment adjacent to the arbitrary moment belongs, and sampling and selecting a signal segment as the training input signal sub-segment at the next moment adjacent to the arbitrary moment according to the probability table; and connecting multiple training input signal sub-segments in chronological order to form a training input signal that meets the set length.
[0011] Optionally, the RF simulation method also includes: determining a set number of the training input signals; establishing a training input signal set, the training input signal set including a plurality of the training input signals satisfying the set number, wherein any one state set is selected from the state sets as a first training state set, and a first training input signal is obtained according to the first training state set; any one state set is selected from the state sets as a second training state set, and a second training input signal is obtained according to the second training state set.
[0012] Optionally, the using the training input signal as input for simulation to obtain a training output signal includes: using a plurality of training input signals in the training input signal set as circuit inputs respectively, performing circuit simulation, and obtaining corresponding training output signals.
[0013] According to another aspect of the present invention, there is provided a radio frequency simulation device, comprising: a training set module, for establishing a training set; and an operation module, for performing envelope operation according to the training set to perform radio frequency simulation, wherein the training set module comprises: a signal segment clustering unit, for dividing an input signal into a plurality of signal segments, and performing clustering operation on the plurality of signal segments to obtain a plurality of state sets; a transition probability matrix operation unit, for establishing a transition probability matrix between the plurality of signal segments according to the plurality of signal segments, the time series between the plurality of signal segments, and the state sets to which the plurality of signal segments belong; a training input signal generation unit, for selecting the signal segment as a signal segment at an initial moment, obtaining a signal segment at a next moment adjacent to the arbitrary moment according to the signal segment at any moment and the transition probability matrix, and connecting at least two of the signal segments in time sequence to obtain a training input signal; a training output signal generation unit, for simulating the training input signal as an input to obtain a training output signal; the training set comprises the training input signal and the corresponding training output signal.
[0014] According to yet another aspect of the present invention, there is provided a computing device, comprising: a processor; and a memory for storing one or more programs, wherein when the one or more programs are executed by the processor, the processor implements the radio frequency simulation method as described above.
[0015] According to another aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the program implements the above-mentioned radio frequency simulation method when executed by a processor.
[0016] According to the RF simulation method and device, computing device and storage medium of the embodiments of the present invention, in the process of generating a training set, the state transition probability is used to simulate the evolution process of the deterministic signal, thereby adapting to the input signal, overcoming the overfitting phenomenon with as few training samples as possible, saving computing resources and improving simulation efficiency.
[0017] Furthermore, RF simulation is based on Volterra series, and each parameter between input and output is linear, so the global optimal solution can be found quickly, and the simulation efficiency is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0019] Figure 1 A method flow chart of a radio frequency simulation method according to Embodiment 1 of the present invention is shown.
[0020] Figure 2A method flow chart of a radio frequency simulation method according to the second embodiment of the present invention is shown.
[0021] Figure 3 A schematic diagram of simulation effect comparison is shown.
[0022] Figure 4 A schematic structural diagram of a radio frequency simulation device according to an embodiment of the present invention is shown.
[0023] Figure 5 A schematic diagram of the structure of a computing device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0024] Various embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. In each of the accompanying drawings, identical elements are represented by identical or similar reference numerals. For the sake of clarity, the various parts in the accompanying drawings are not drawn to scale. In addition, some well-known parts may not be shown in the drawings.
[0025] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. Many specific details of the present invention, such as the structure, materials, dimensions, processing technology and techniques of the components are described below to provide a clearer understanding of the present invention. However, as those skilled in the art will appreciate, the present invention may be implemented without following these specific details.
[0026] It should be understood that when describing the structure of a component, when a layer or a region is referred to as being "on" or "over" another layer or another region, it may mean that it is directly on the other layer or another region, or that other layers or regions are included between it and the other layer or another region. Moreover, if the component is turned over, the layer or a region will be "below" or "beneath" another layer or another region.
[0027] According to one aspect of the present invention, a radio frequency simulation method is provided, which includes establishing a training set and performing envelope operation according to the training set to perform radio frequency simulation. Figure 1 The method flow chart of the radio frequency simulation method according to the first embodiment of the present invention is shown, specifically the steps of establishing a training set. The radio frequency simulation method includes the following steps:
[0028] In step S101, the input signal is divided into a plurality of signal segments;
[0029] The input signal is divided into a plurality of signal segments. Each signal segment is a portion of the input signal, and different signal segments may contain the same portion. Optionally, the radio frequency simulation method is based on a Volterra series, and the radio frequency simulation method further includes determining parameters of the Volterra series.
[0030] Optionally, before executing step S101, an initialization process is performed, that is, a time step is determined, and a sampling time point is obtained according to the time step; the input signal is sampled according to the sampling time point to obtain a discrete input signal sequence including a plurality of sampling segments. The time length between two adjacent sampling time points is equal to the time step, and the input signal between two adjacent sampling time points is one sampling segment. The signal segment includes a plurality of continuous sampling segments.
[0031] In step S102, clustering operation is performed on the multiple signal segments to obtain multiple state sets;
[0032] The signal segments obtained by segmentation are clustered to obtain multiple state sets. Each state set contains several signal segments, and there are no identical signal segments between the state sets.
[0033] In step S103, a transition probability matrix of the plurality of signal segments between the plurality of signal segments is established according to the plurality of signal segments, the time series between the plurality of signal segments, and the state sets to which the plurality of signal segments belong;
[0034] According to the multiple signal segments obtained by segmentation, the relationship between the multiple signal segments in time series and the state sets to which each signal segment belongs, a transition probability matrix of the multiple signal segments between the state sets is established.
[0035] Optionally, the sampling time points in the initialization process are used. In this step, the signal segment corresponding to the first sampling time point as the starting point is used as the first signal segment, and the signal segment corresponding to the second sampling time point as the starting point is used as the second signal segment; the first signal segment and the second signal segment include the same number of the sampling segments. In chronological order, the state set to which the signal segment corresponding to any sampling time point belongs and the state set to which the signal segment corresponding to the next sampling time point adjacent to the arbitrary sampling time point belongs are obtained in sequence, and the state transition information between the arbitrary sampling time point and the next sampling time point adjacent to the arbitrary sampling time point is obtained. Then, based on the state transition information, a transition probability matrix between each state set in the multiple state sets is obtained.
[0036] In step S104, a signal segment is selected as a signal segment at an initial moment, a signal segment at a next moment adjacent to the arbitrary moment is obtained according to the signal segment at any moment and the transition probability matrix, and at least two signal segments are connected in time sequence to obtain a training input signal;
[0037] A signal segment is selected as the signal segment at the initial moment, and a signal segment at a second moment adjacent to the initial moment is obtained according to the signal segment at the initial moment and the transition probability matrix, and a signal segment at a third moment adjacent to the second moment is obtained according to the signal segment at the second moment and the transition probability matrix (multiple signal segments are obtained in sequence), and at least two signal segments are connected in chronological order (starting from the signal segment at the initial moment) to obtain a training input signal.
[0038] Optionally, this step specifically includes: determining a set length of the training input signal; selecting a state set from the state set as the training state set; randomly selecting a signal segment from the training state set as a training input signal sub-segment at the initial moment; obtaining the state set to which the training input signal sub-segment at the next moment adjacent to the arbitrary moment belongs by a probability sampling method according to the training input signal sub-segment at any moment and the probability of the training state set in the transition probability matrix jumping to other state sets; establishing a probability table for selecting each signal segment in the state set to which the training input signal sub-segment at the next moment adjacent to the arbitrary moment belongs, and sampling and selecting a signal segment as the training input signal sub-segment at the next moment adjacent to the arbitrary moment according to the probability table; and connecting multiple training input signal sub-segments in chronological order to form a training input signal that meets the set length.
[0039] Optionally, the RF simulation method according to an embodiment of the present invention further includes: determining a set number of the training input signals; establishing a training input signal set, wherein the training input signal set includes a plurality of the training input signals that meet the set number. Among them, any one state set is selected from the state set as the first training state set, and a first training input signal is obtained according to the first training state set; any one state set is selected from the state set as the second training state set, and a second training input signal is obtained according to the second training state set.
[0040] In step S105, the training input signal is used as an input for simulation to obtain a training output signal;
[0041] The training input signal is used as the circuit input, and strict circuit simulation is performed to obtain the corresponding training output signal.
[0042] Optionally, when the training input signal set includes multiple training input signals, the multiple training input signals are respectively used as circuit inputs to perform circuit simulation to obtain corresponding training output signals.
[0043] In step S106, the training set is obtained according to the training input signal and the corresponding training output signal.
[0044] A training set is obtained according to the training input signal and the corresponding training output signal.
[0045] According to the RF simulation method of the embodiment of the present invention, a training set can be adaptively and automatically generated according to the input signal, and the generated training signal can capture the main features of the input signal. Therefore, when the circuit has a strong nonlinear memory effect, fewer training samples can be used to obtain a good training effect and avoid the occurrence of overfitting.
[0046] Figure 2 FIG. 2 shows a method flow chart of a radio frequency simulation method according to Embodiment 2 of the present invention. Figure 2 As shown in FIG. 2 , the process of generating a training set mainly includes five steps, namely: initialization process (S201), input signal segment classification (S202), state transition matrix calculation (S203), training input signal generation (S204), and training output signal generation (S205). In order to make the description clearer and more concise, in the following, for any sequence a=(a1, a2, …a N ), a(i:j) represents the new sequence from the i-th element to the j-th element in the a sequence, that is: a(i:j)=(a i ,a i+1 ,…,a j ).
[0047] Specifically:
[0048] In step S201, the parameters of the Volterra series are determined to discretize the original input signal;
[0049] The common behavioral level models include two types: time continuous and time discrete. In the discrete model, the convolution kernel is defined at discrete time points. In the second embodiment of the present invention, the Volterra series of the discrete model is used, and the series is defined as follows:
[0050]
[0051] Among them, x(n) and y(n) are input and output respectively, n represents different moments. P and R represent the nonlinear order of the model, M is the time length of the memory effect, and h p,r (0,…,0,i1,…,i r ) is the core parameter of the Volterra series, that is, the model parameter. The number of corresponding model parameters will be very different when different P, R and M are selected. For example, when P = 5, M = 4, R = 3, the model parameters are 196.
[0052] During the initialization process, the parameters of the Volterra series are determined, and the model size is determined. At the same time, sampling is performed according to a certain time step to discretize the input signal. Specifically, the parameters P, R, and M of the Volterra series are determined. The time step Δt is determined, and the original input signal {x(t),0 <t<T max} Sampling is performed according to the time step to obtain a discrete input signal sequence x = (x0, x1, ..., x i ,…,x N-1 ), starting from 0 to N-1, where x i =x(iΔt), i=0,…,N-1, N=T max / Δt.
[0053] In step S202, the original input signal is cut into small segments to form a set Ω, and then divided into several states to form a state set C using a K-clustering method;
[0054] The input signal is cut into N time segments (signal segments), each of which is a part of the input signal, represented as follows:
[0055] S i =(x i-M+1 ,x i-M+2 ,x i ), i=0,…,N-1
[0056] According to the above definition, S i =x(i-M+1:i).
[0057] Each signal segment can be regarded as a vector of length M. N signal segments constitute a set of signal segments:
[0058] Ω={S i ,i=0,…,N-1}
[0059] Note x j =0, when j<0.
[0060] Determine the number of categories N in the K clustering algorithm k .
[0061] The K clustering algorithm is used to classify the N elements in the set Ω into N k Classes. These classes are called states (sets). Thus:
[0062] C={C k ,k=1,…,N k}
[0063] Here C k is the set of signal fragments of the kth state, which contains several signal fragments. There are no common elements between these states (sets).
[0064] In step S203, by scanning the input signal, a state transition probability matrix is established.
[0065] By using the time series of the input signal, a transition probability matrix between each state can be created For example, by scanning the input signal, recording the state of the current signal segment and the next signal segment, recording their migration paths, and establishing the state transition probability matrix through statistics. matrix is an N k ×N k Initially, a matrix N with all 0s is given. k ×N k Matrix T.
[0066] Time point traversal. According to the discrete time point t i =iΔt, i=0,…,N-1, from t0 to t N-1 , find the corresponding signal segment in Ω and the state to which the signal segment belongs at the next moment. Since these two states occur continuously at a time point, it is considered that there is a migration between the two states at this time, and it is recorded in the T matrix. For example, at time t i , find the signal segment S i The state m, and the next S i+1 The state n, that is, S i ∈C m , S i+1 ∈C n , add 1 to the element at position (m,n) of the T matrix.
[0067] Normalization of the state transition probability matrix. Traverse all time t i (i=0,1,2,……,N-1) to get the final matrix T, and normalize T according to the row, that is, to get the state transition probability matrix
[0068] In step S204, the input signal set X is obtained according to the state transition probability matrix. inp ;
[0069] Using the state transition probability matrix Generate input signal. This process is to continuously sample the state of the signal segment and sample the signal segment in the state, thereby increasing the length of the input signal until the given length is obtained. Repeat this process until the number of training input signals meets the requirements and establish the training input signal set X inp . Generate the training input signal and use the state transition probability matrix to generate the input signal xinp The following steps may be included:
[0070] Step 1: Determine the length L of the training input signal s And the number of training input signals N that need to be generated s .
[0071] Step 2: At the initial t = 0, randomly select a state m, and m Randomly select a signal segment S i , then the first M moments of the training input signal are determined as S i , that is, x inp (1:M)=S i .
[0072] Step 3: Assume that we have determined x inp N t value, that is, the time evolution reaches (N t -1)Δt, in order to determine the next time point t=N t The input signal value of Δt is calculated according to the state transition probability matrix The probability of the mth state jumping to other states is obtained by probability sampling, and the state at the next moment is recorded as n.
[0073] Step 4: Use time point t = N t Δt traces back the values of the previous M-1 training input signals and combines them into a vector, that is, z = x inp (N t -(M-1):N t -1), calculate z and C n The vector {z q =S q (1:M-1), S q ∈C n}, and obtain the distance set D = {d q =|zz q |,q=1,…,N Cn},N Cn Represents the state set C n The number of signal fragments included in .
[0074] Step 5: Establish C based on the inverse of the distance n The probability table E of each signal segment being selected is {P q ,q=1,…,N Cn )}, here P q It is calculated as follows:
[0075]
[0076] Step 6: Select a signal segment by sampling according to the probability table E selected from each signal segment, denoted as S r , we can give t = N t The signal value of the input signal at time Δt is:
[0077] x inp (N t )=S r (M)
[0078] Thus, the signal x inp The length of is increased by one more time step.
[0079] Step 7: Let N t =N t +1, return to step 3, until the total length of the training input signal meets the preset value L s , and a complete training input signal is obtained.
[0080] Step 8: Return to step 2 to generate a new training input signal until the total number reaches N s At this time, the input training signal set X inp ={x i inp ,i=1,…,N s}.
[0081] In step S205, output signals are obtained through rigorous circuit simulation, and input-output pairs are established, thereby constructing a complete training set.
[0082] Generate the training output signal. inp ={x i inp ,i=1,…,N s Each input signal in the training set is used as the circuit input of the circuit, and a strict circuit simulation is performed to obtain the corresponding output signal, thereby obtaining a complete training set. Before each calculation, the circuit simulation needs to reach a steady state according to the initial value of the input signal.
[0083] In an embodiment of the present invention, a method for automatically generating a training set is proposed based on the Volterra series. Although the input signals vary greatly in waveform, we regard the input signals as transitions between different signal states. Each signal state has a similar waveform of the same length. For a given input signal, we cannot truly simulate the complete signal due to the long time, but we can analyze which similar waveform sets the (input) signal is composed of, as well as the transition rules between different signal sets, and thus establish a training set. This is equivalent to training the core features of the input signal in advance, so that more accurate simulation results can be obtained with a smaller training cost. In addition, one advantage of using the Volterra series is that each parameter between the input and output is linear, so the parameter extraction method can quickly find the global minimum using the linear least squares method. Therefore, the selection of the training set is crucial, and an inappropriate training set can easily lead to overfitting.
[0084] In order to better illustrate the technical solution of the present invention, take the envelope calculation of a small RF circuit as an example. The LO signal frequency is 1 GHz, and the RF signal frequency domain bandwidth is about 20 MHz. The following steps are included:
[0085] 1) Initialization process.
[0086] The parameters of the Volterra series are set to P = 5, M = 10, R = 3, and the entire model has 936 parameters that need to be fitted. The input signal length is taken as 1.24 μs, the time step Δt = 0.31 ns, and the entire signal is discretized into N = 4000 points.
[0087] 2) Classification of input signal segments.
[0088] 2.1) Establish a signal segment set. Since M = 10, the length of each signal segment is 10. According to the input signal, trace back M-1 time points at each time point, so that the signals corresponding to the M time points are intercepted as a signal segment. Therefore, a total of 4000 signal segments can be intercepted to establish a signal segment set Ω.
[0089] 2.2) Set signal type N k = 200, and perform K cluster analysis. Here, the signal segment is regarded as an M-dimensional vector, and the norm difference between vectors defines the distance between elements. Using the standard algorithm of K clustering, we can obtain N k Cluster centers and N k In this work, the class is called a state, that is, N k Each state contains a different number of elements, that is, signal fragments. The number of classes here needs to be set by the user.
[0090] 3. State transition probability matrix calculation
[0091] Since the number of states is set, the state transition probability matrix The dimension is N k ×N k The matrix is 200×200. This matrix is used to record the probability of migration between states. The matrix element (i, j) represents the probability of migration from state i to state j. We scan the entire input signal, count the number of migrations of each state, and finally convert it into probability for subsequent simulation.
[0092] Initially given an N k ×N k Matrix T with all elements set to 0.
[0093] 3.1) Traverse each time point. Starting from time t = 0, step by discrete time points according to the step length Δt. i The signal segment corresponding to the moment is S i , the signal segment at the next moment corresponds to S i+1 We believe that the evolution of the signal at this time is equivalent to the evolution of the signal segment S i Migrated to S i+1 .
[0094] 3.2) Convert the transition of signal segments into the transition of states. Find S i The state m and S i+1 The state n belongs to, at this time we put the state S i To S i+1 The migration of is attributed to the migration from state m to state n. This is equivalent to generalizing the migration process. The corresponding element value (m,n) of matrix T is increased by 1.
[0095] 3.3) Traversing all time points will give the matrix T after the accumulation of times.
[0096] 3.4) Normalize each element of matrix T by row to obtain the normalized probability transfer matrix Right now
[0097]
[0098] Note that there are many ways to normalize at this time. Row normalization assumes that the probability of each state appearing is the same. Global normalization is also performed, that is,
[0099]
[0100] Here we consider the possibility that the probability of each state appearing may be different. The sampling methods for the corresponding subsequent states are different. Below we only discuss the row normalization method.
[0101] 4. Generation of training input signals
[0102] Using the state transition probability matrix Generate input signal x inp .
[0103] 4.1) In this example, the length of the signal is set to L s =100, the number of training input signals N that need to be generated s =20.
[0104] 4.2) In the initial case t = 0, considering that it is formed by row normalization We randomly select a state m from the 200 states and add it to the state set C. m Randomly select a time segment S i , then the first M moments of the training input signal are determined as S i , that is, x inp (1:M)=S i .
[0105] 4.3) In order to determine the value of the training input signal at the next moment, it is necessary to determine the state at the next moment and the information fragment at the next moment. Suppose we come to the Nth t moments, that is, the first N t -1 The values of the training input signals at the moment have been determined, and the value at the current moment needs to be determined. The first step is to determine the state at this moment. Since the state at the previous moment is m, according to the state transition probability matrix The mth row in the table can get the probability of the mth state jumping to other states, and the Nth state can be obtained by probability sampling. t The state n at the moment.
[0106] 4.4) The second step is to get the Nth t The training input signal value at time t, we need to be in the state set C at the nth state n Select a signal segment from x, whose first M-1 components are as similar as possible to the last M-1 components of the previous signal segment. Because for real signals, there are M-1 components in adjacent signal segments that are exactly the same. In order to reproduce this feature as much as possible, we set x inp At the current moment (N t The first M-1 components of the time (i.e. z = x inp (N t -(M-1):N t -1) Extract it as a vector and calculate z and state set C n The vector set consisting of the first M-1 values of all signal segments in
[0107] {z q =S q (1:M-1), S q ∈C n}, and obtain the distance set D = {d q =|zz q |,
[0108] q=1,…,N Cn},N Cn Indicates state C n The number of signal fragments included in .
[0109] 4.5) We define z and C as the inverse of distance n The similarity of each signal segment in C is established based on the inverse of the distance. n The probability table E of each signal segment being selected is {P q ,q=1,…,N Cn )}, here P q It is calculated as follows:
[0110]
[0111] It should be noted that similarity can be defined in other ways. Here we only use the inverse of the distance to model, and there can also be more complex models. In short, the closer the distance, the higher the similarity.
[0112] 4.6) Select a signal segment by sampling according to the probability table E selected by each signal segment, denoted as S r . S r The value of the last moment is used to train the current value of the input signal, that is,
[0113] x inp (N t )=S r (M)
[0114] This way, the length of the signal increases by one time step.
[0115] 4.7)N t =N t +1, return to step 4.3), until the total length of the input signal meets the preset
[0116] L s =100, a training input signal is generated.
[0117] 4.8) Return to step 4.2) until the preset number of training input signals is generated to form the input training signal set X inp ={x i inp,i=1,…,N s}. In this example, N s =20.
[0118] 5. Generation of training output signals
[0119] The generated input signal set X inp Each input signal in the training set is used as the circuit input, and a strict circuit simulation is performed to obtain the output signal, thereby obtaining a complete training set. Note that before each calculation, the circuit simulation needs to reach a steady state based on the initial value of the input signal. The initial state of the original circuit is 0, and the initial state of the training set is not necessarily 0, so here it is necessary to let the circuit start from a new steady state.
[0120] In order to verify the effectiveness of the technical solution of this application, 10 additional input signals are generated as test sets to check the overfitting and degree of model training. At the same time, the actual input signal is simulated to examine the final simulation accuracy. We also use the traditional method to generate training input signals for comparison. The number of training input signals generated by the traditional method is 50, which is greater than the number of training input signals of this method.
[0121] Table 1 shows the performance of different methods on the training set and test set. It can be seen that this method gives similar accuracy, but the traditional method has high accuracy on the training set, but the result deteriorates seriously on the test set, showing serious overfitting. In order to reduce overfitting, the number of samples in the training set needs to be increased, but this will greatly increase the time for modeling.
[0122] Table 1 Comparison of the accuracy of different methods on the training set and test set
[0123] Training set Test Set This method <![CDATA[1.5×10 -2 ]]> <![CDATA[6.6×10 -3 ]]> Traditional methods <![CDATA[8.38×10 -4 ]]> <![CDATA[3.5×10 2 ]]>
[0124] Figure 3 The conventional method and the solution of the present application are respectively used to verify the actual signal as input, and the obtained Figure 3 The following is a schematic diagram showing the comparison of simulation effects.
[0125] like Figure 3 As shown, the upper figure (Trad method) is the simulation of the training set generated by the traditional method, and the lower figure (Thismethod) is the simulation of the training set generated by the method of this application. Volterra is the result of the behavioral model, and AccurateResults is the result of the accurate circuit simulation.
[0126] from Figure 3 As can be seen from the figure, the traditional method will cause serious overfitting due to insufficient training set samples, so that the entire curve will run away. However, this method reproduces the exact results very well and shows higher accuracy.
[0127] Figure 4 The schematic diagram of the structure of the radio frequency simulation device according to the embodiment of the present invention is shown. The radio frequency simulation device according to the embodiment of the present invention is used to implement the radio frequency simulation method described above, and the radio frequency simulation device includes a training set module 10 and a calculation module 20.
[0128] Specifically, the training set module 10 is used to establish a training set.
[0129] The operation module 20 is used to perform envelope operation according to the training set to perform radio frequency simulation.
[0130] The training set module 10 includes a signal segment clustering unit 11 , a transition probability matrix operation unit 12 , a training input signal generating unit 13 and a training output signal generating unit 14 .
[0131] The signal segment clustering unit 11 is used to divide the input signal into multiple signal segments, and perform clustering operations on the multiple signal segments to obtain multiple state sets.
[0132] The transition probability matrix operation unit 12 is used to establish a transition probability matrix of the multiple signal segments between the state sets according to the multiple signal segments, the time series between the multiple signal segments and the state sets to which the multiple signal segments belong.
[0133] The training input signal generating unit 13 is used to select a signal segment as a signal segment at an initial moment, obtain a signal segment at the next moment adjacent to the arbitrary moment according to the signal segment at any moment and the transition probability matrix, and connect at least two signal segments in time sequence to obtain a training input signal.
[0134] The training output signal generating unit 14 is used to simulate the training input signal as input to obtain a training output signal.
[0135] The training set includes training input signals and corresponding training output signals.
[0136] Figure 5 FIG. 2 shows a schematic diagram of the structure of a computing device according to an embodiment of the present invention. Figure 5 , the present disclosure also provides a block diagram of an exemplary computing device suitable for implementing the embodiments of the present disclosure. It should be understood that Figure 5 The computing device shown is only an example and should not bring any limitation to the functionality and scope of use of the embodiments of the present disclosure.
[0137] like Figure 5As shown, the computing device 200 is in the form of a general computing device. The components of the computing device 200 may include, but are not limited to: one or more processors or processing units 210, a memory 220, and a bus 201 connecting different system components (including the memory 220 and the processing unit 210).
[0138] Bus 201 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0139] The computing device 200 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computing device 200, including volatile and non-volatile media, removable and non-removable media.
[0140] System memory 220 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 221 and / or cache memory 222. Computing device 200 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 223 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 201 via one or more data medium interfaces. Memory 220 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of each embodiment of the present disclosure.
[0141] A program / utility 224 having a set (at least one) of program modules 2241 may be stored, for example, in the memory 220, such program modules 2241 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may include an implementation of a network environment. The program modules 2241 generally perform the functions and / or methods of the embodiments described in the embodiments of the present disclosure.
[0142] Further, the computing device 200 may also be connected to a display 300 for displaying the results of the screening and sorting. The display 300 may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display 300 may also be a touch screen.
[0143] Further, the computing device 200 may also communicate with one or more devices that enable a user to interact with the computing device 200, and / or communicate with any device (e.g., a network card, a modem, etc.) that enables the computing device 200 to communicate with one or more other computing devices. Such communication may be performed via an input / output (I / O) interface 230. Furthermore, the computing device 200 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 240. As shown, the network adapter 240 communicates with other modules of the computing device 200 via a bus 201. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computing device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0144] The processing unit 210 executes various functional applications and data processing by running programs stored in the system memory 220 .
[0145] According to another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program (or computer-executable instructions) is stored. When the program is executed by a processor, it is used to execute the radio frequency simulation method provided in an embodiment of the present disclosure, and the method includes:
[0146] Create a training set; and
[0147] Performing envelope calculations based on the training set to perform radio frequency simulation,
[0148] Wherein, establishing a training set comprises:
[0149] Splitting the input signal into multiple signal segments;
[0150] Performing clustering operation on the multiple signal segments to obtain multiple state sets;
[0151] Establishing a transition probability matrix of the plurality of signal segments between the plurality of signal segments according to the plurality of signal segments, the time series between the plurality of signal segments, and the state sets to which the plurality of signal segments belong;
[0152] Selecting one of the signal segments as the signal segment at an initial moment, obtaining a signal segment at a next moment adjacent to the arbitrary moment according to the signal segment at any moment and the transition probability matrix, and connecting at least two of the signal segments in time sequence to obtain a training input signal;
[0153] Taking the training input signal as input for simulation, to obtain a training output signal;
[0154] The training set is obtained according to the training input signal and the corresponding training output signal.
[0155] The computer storage medium of the embodiment of the present disclosure may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it.
[0156] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0157] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0158] Computer program code for performing the operation of the disclosed embodiments may be written in one or more programming languages or a combination thereof, including object-oriented programming languages (such as Java, Smalltalk, C++), and conventional procedural programming languages such as "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or computing device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).
[0159] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0160] According to the embodiments of the present invention as described above, these embodiments do not describe all the details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and changes can be made based on the above description. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can make good use of the present invention and the modified use based on the present invention. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A radio frequency simulation method, comprising: Create a training set; as well as Performing envelope calculations based on the training set to perform radio frequency simulation, Wherein, establishing a training set comprises: Splitting the input signal into multiple signal segments; Performing clustering operation on the multiple signal segments to obtain multiple state sets; Establishing a transition probability matrix of the plurality of signal segments between the plurality of signal segments according to the plurality of signal segments, the time series between the plurality of signal segments, and the state sets to which the plurality of signal segments belong; Selecting one of the signal segments as the signal segment at an initial moment, obtaining a signal segment at a next moment adjacent to the arbitrary moment according to the signal segment at any moment and the transition probability matrix, and connecting at least two of the signal segments in time sequence to obtain a training input signal; Taking the training input signal as input for simulation, to obtain a training output signal; The training set is obtained according to the training input signal and the corresponding training output signal.
2. The radio frequency simulation method according to claim 1, wherein: The radio frequency simulation method further comprises: Determine a time step, and obtain a sampling time point according to the time step; The input signal is sampled at the sampling time point to obtain a discrete input signal sequence including a plurality of sampling segments, The time length between two adjacent sampling time points is equal to the time step, and the input signal between two adjacent sampling time points is one sampling segment; The signal segment includes a plurality of consecutive sampling segments.
3. The radio frequency simulation method according to claim 2, wherein: The radio frequency simulation method is based on Volterra series; The radio frequency simulation method further comprises: Determine the parameters of the Volterra series.
4. The radio frequency simulation method according to claim 2, wherein: The signal segment corresponding to the first sampling time point as the starting point is taken as the first signal segment, and the signal segment corresponding to the second sampling time point as the starting point is taken as the second signal segment; the first signal segment and the second signal segment include the same number of the sampling segments; Acquire, in chronological order, a state set to which a signal segment corresponding to an arbitrary sampling time point belongs and a state set to which a signal segment corresponding to a next sampling time point adjacent to the arbitrary sampling time point belongs, and obtain state transition information between the arbitrary sampling time point and the next sampling time point adjacent to the arbitrary sampling time point; A transition probability matrix between each state set in the multiple state sets is obtained according to the state transition information.
5. The radio frequency simulation method according to claim 1, wherein: The selecting of the signal segment as the signal segment at the initial moment, obtaining the signal segment at the next moment adjacent to the arbitrary moment according to the signal segment at any moment and the transition probability matrix, and connecting at least two of the signal segments in time sequence to obtain the training input signal comprises: Determining a set length of the training input signal; Selecting a state set from the state sets as a training state set; Randomly selecting a signal segment from the training state set as a training input signal sub-segment at an initial moment; According to the training input signal sub-segment at any moment and the probability of the training state set in the transition probability matrix jumping to other state sets, obtaining the state set to which the training input signal sub-segment at the next moment adjacent to the any moment belongs by a probability sampling method; Establishing a probability table for selecting each signal segment in the state set to which the training input signal sub-segment at the next moment adjacent to the arbitrary moment belongs, and sampling and selecting a signal segment as the training input signal sub-segment at the next moment adjacent to the arbitrary moment according to the probability table; A plurality of the training input signal sub-segments are connected in time sequence to form a training input signal that meets the set length.
6. The radio frequency simulation method according to claim 5, wherein: The radio frequency simulation method further comprises: Determining a set number of the training input signals; establishing a training input signal set, wherein the training input signal set includes a plurality of the training input signals satisfying the set number, wherein, arbitrarily selecting a state set from the state sets as a first training state set, and obtaining a first training input signal according to the first training state set; A state set is arbitrarily selected from the state sets as a second training state set, and a second training input signal is obtained according to the second training state set.
7. The radio frequency simulation method according to claim 6, wherein: The simulating the training input signal as input to obtain the training output signal comprises: A plurality of training input signals in the training input signal set are respectively used as circuit inputs to perform circuit simulation to obtain corresponding training output signals.
8. A radio frequency simulation device, comprising: Training set module, used to establish training set; as well as A calculation module, used for performing envelope calculation according to the training set to perform radio frequency simulation, Wherein, the training set module includes: A signal segment clustering unit, used for dividing an input signal into a plurality of signal segments, and performing a clustering operation on the plurality of signal segments to obtain a plurality of state sets; a transition probability matrix operation unit, configured to establish a transition probability matrix of the plurality of signal segments between the state sets according to the plurality of signal segments, the time series between the plurality of signal segments, and the state sets to which the plurality of signal segments belong; a training input signal generating unit, configured to select one of the signal segments as a signal segment at an initial moment, obtain a signal segment at a next moment adjacent to the arbitrary moment according to the signal segment at any moment and the transition probability matrix, and connect at least two of the signal segments in chronological order to obtain a training input signal; A training output signal generating unit, used for simulating the training input signal as input to obtain a training output signal; The training set includes the training input signal and the corresponding training output signal.
9. A computing device comprising: processor; a memory for storing one or more programs, When the one or more programs are executed by the processor, the processor implements the radio frequency simulation method as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, wherein: Should When the program is executed by a processor, the radio frequency simulation method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
A radio frequency fingerprint extraction and identification method based on a multi-sampling convolutional neural network
CN109919015A
Radio frequency low noise amplifier circuit fault diagnosis method and system, medium and application
CN112731098A
