In one embodiment, a system provides for optimizing an error rate of data through a communication channel. The system includes a data generator operable to generate a training sequence as a Markov code, and to propagate the training sequence through the communication channel. The system also includes an equalizer/Soft Output Viterbi Algorithm (SOVA) detector operable to estimate data values of the training sequence after propagation through the communication channel. The system also includes an optimizer operable to compare the estimated data values to the generated training sequence, to determine an error rate based on the comparison, and to change the training sequence based on the Markov code to lower the error rate of the data through the communication channel.
The various embodiments disclosed herein may be implemented in a variety of ways as a matter of design choice. For example, some embodiments herein are implemented in hardware whereas other embodiments may include processes that are operable to implement and/or operate the hardware. Other exemplary embodiments, including software and firmware, are described below.
Some embodiments are now described, by way of example only, and with reference to the accompanying drawings. The same reference number represents the same element or the same type of element on all drawings.
The figures and the following description illustrate specific exemplary embodiments. It will thus be appreciated that those skilled in the art will be able to devise various arrangements that, although not explicitly described or shown herein, embody certain principles and are included within the scope of this disclosure. Furthermore, any examples described herein are intended to aid in understanding the principles of the embodiments and are to be construed as being without limitation to such specifically recited examples and conditions. As a result, the embodiments are not limited to the examples described below.
The capacity of a communication channel was formalized by Claude Shannon in his 1948 treatise “A Mathematical Theory of Communication”. In that treatise, Shannon provided a formula to compute channel capacity based on the maximization of mutual information between a channel input and the channel output over source probability distributions. The channel capacity imposes a fundamental bound on the maximum throughput performance of reliable communication with any error correcting code.
Computing the capacity of a communication channel is an interesting theoretical problem in its own right. One example includes the Blahut-Arimoto algorithm which has been devised to compute channel capacity of discrete memoryless channels as well as channels with memory, such as the magnetic recording channel of a disk drive. However, knowing the theoretical channel capacity does not immediately render how to achieve a maximum throughput with a practical error correcting code, which is a primary focus of coding theory. More recently, coding theorists have designed error correcting codes to closely approach the Shannon limit of channel capacity for certain channels.
Based on the notion of channel capacity, systems and methods presented herein are operable to optimize a channel input (i.e., a source) probability distribution function (PDF) to maximize the capacity of the channel. In this regard, a new source optimization is implemented based on a previously unused metric, such as the detection error rate (BER/SER). The problem employs a constraint on the minimum source rate H(X)≥h0 so as to prevent a trivial solution. However, h0 can be viewed as free design parameter to allow for more design flexibility. Another advantage of using a metric such as the SER is that it uses a simpler detector (Viterbi or SOVA detector) as opposed to a soft output symbol detector, such as a BCJR detector (Bahl-Cocke-Jelinek-Raviv detector), which is used for the capacity metric.
With this in mind, systems and methods presented herein provide for the optimization of error rates in a channel, such as bit error rates (BERs) and symbol error rates (SERs). For example, solutions for channels, with or without memory, are provided herein along with the implementation of an iterative algorithm to optimize the error rate for the channel.
However, measuring the channel capacity does not always, in practice, accurately determine the amount of recoverable data that may pass through the channel. And, the channel's characteristics may change over time and/or even across its physical properties. For example, a hard disk drive (e.g., a channel with memory) may comprise a plurality of sectors where data is stored. Each sector of the hard disk drive may be thought of as unique channel because, among other reasons, each sector may comprise different physical properties from the next sector. Accordingly, each sector on the hard disk drive may vary in terms of capacity from one sector to the next.
The system 100 optimizes the data throughput of the channel 103 by optimizing the error rate of the channel 103 with a training sequence. Once the error rate of data through the channel 103 is optimized, actual data can be configured to mimic the data of the training sequence so as to reduce its error rate through the channel 103 and thereby effectively reduce the amount of error correction used to recover the data from the channel 103.
The system 100 starts the optimization by generating an initial source model 101 that is fed into a source generator 102. The source generator 102 generates the training sequence xn based on the initial source model 101 and propagates the training sequence xn through the channel 103. The channel 103, having an effect on the training sequence xn (i.e., the channel 103 introduces errors), results in a noisy observation sequence yn that is processed by an equalizer/SOVA detector 104.
The equalizer/SOVA detector 104 is a variant of the classical Viterbi algorithm. SOVA detectors have been used for years in the disk drive industry and can be implemented efficiently in a variety ways as a matter design choice. The equalizer/SOVA detector 104 differs from the classical Viterbi algorithm in that it uses a modified path metric which takes into account the a priori probabilities of input symbols, and produces a “soft output” indicating the reliability of the decision. And, the equalizer provides equalization of the signal prior to SOVA detection.
The equalizer/SOVA detector 104 processes the noisy training sequence yn to generate an estimated sequence {circumflex over (x)}n . The optimizer 105 compares the sequence {circumflex over (x)}n to the original training sequence xn and outputs a new Markov source model Qij to the source generator 102, while also tracking the error rate (e.g., BER and/or SER) through the channel 103 during each iteration. The quantity Qij, represents the probability of starting from the detector trellis states i and going to state j and fully describes the Markov source model. The source generator 102 then changes its output training sequence xn based on the new source model Qij from the optimizer 105. When the lowest error rate has been obtained (e.g., after the last iteration), the channel 103 has been characterized and optimized in terms of its error rate such that data and error correction can be configured accordingly for propagation through the channel 103 and recovered therefrom.
More specifically, once the error rate of the channel 103 is optimized, subsequent data through the channel 103 can be similarly configured to have a comparable error rate. Thus, error correction codes can be tailored for that identified error rate instead of generically blanketing the data with error correction. This process may result in a lower data rate than previous systems. However, as less error correction may be used, the actual data throughput across the channel 103 may increase, in some instances significantly.
In the process element 203, the equalizer/SOVA detector 104 estimates data values of the input training sequence after the propagation through the communication channel 103. The optimizer 105 then compares the estimated data values to the generated training sequence from the source generator 102, in the process element 204, to determine an error rate of the data propagating through the channel 103, in the process element 205. That is, the optimizer 105 compares the original training sequence xn to the estimated values of the training sequence {circumflex over (x)}n. The optimizer 105 then determines the error rate based on the comparison. The optimizer 105 compares that error rate with the previous iteration to determine if it has settled to a minimum, in the process element 206.
If the error rate is lower, the optimizer 105 outputs the model Qij that operates as a new input model to the source generator 102. In this regard, the optimizer 105 directs the source generator 102 to change the training sequence xn via the change in the Markov source model in an attempt to lower the error rate of the data through the communication channel 103, in the process element 208. And, the process 200 returns to the process element 201 to thus generate the new training sequence for the channel 103. If, however, the error rate has settled to a minimum (e.g., nearly the same as the previous error rate), in the process element 206, the optimizer 105 may use the last iteration of the training sequence, in the process element 207, as a basis for characterizing the channel 103 in terms of its error rate. In this regard, the optimizer 105 may also use this model of the Markov chain to configure subsequent actual data through the channel 103 as well as error correction with that data.
The embodiments shown and described herein may be implemented for memoryless channels and/or channels with memory. In some embodiments, the system 100 may be implemented as firmware within a disk drive system (i.e., channel with memory) to characterize the disk drive, and/or various sectors and regions thereof, in terms of its bit error rate. Then, coding techniques can be applied based on that bit error rate, including precoding and error correction coding, that configure how the data is to be written to and recovered from the disk drive. Other exemplary embodiments are shown and described in greater detail below.
Source Optimization Based on SER Metric
In this embodiment, Markov code source optimization is based on an error rate metric of the channel 103. More specifically, the system 100 is operable to find a Markov source model that minimizes the detected symbol error rate Pe with a lower limit constraint on the source rate (e.g., entropy) H(X). For example, the system 100 is operable to:
where h0 is a minimum allowed source rate. A constraint on the source rate H(X), in this embodiment, is used because it would obtain a trivial solution of Pe=0 when H(X)=0 without it. Accordingly, a solution is sought in the space of Markov source models Qij=μiPij, where Pij is the Markov transition probability from trellis state i to state j, and μi is the steady state probability of trellis state i. In this regard, a first solution for memoryless channels is presented as it is generally an easier problem than the case of channels with memory.
Memoryless Channel
Consider the source optimization problem for a discrete memoryless channel having an input alphabet and an output alphabet . The expression for the detected SER is the expected value (e.g., over ) of the given that a particular symbol x from was transmitted. In other words,
Pe=P(x)E(x), Eq. 2.
where E(x)=P({circumflex over (x)}≠x|x transmitted) and denotes the conditional SER given that the symbol x is transmitted and detected as {circumflex over (x)}≠x. One example includes the maximum a posteriori (MAP) detector that is optimal in terms of the SER metric. It produces an output {circumflex over (x)} that maximizes the probability P(x|y)∝P(x)P(y|x) over all x∈ as follows:
Based on the probability density function P(x|y), the output alphabet is partitioned into decision regions (x) (e.g., “Voronoi cells”) for each input symbol x as shown in
such that
H(X)−ΣxP(x)log2P(x)≥h0. Eq. 5.
Assuming that the “E-factors” E(x) are fixed quantities, an optimizing P(X) can be found by solving the following set of nonlinear equations:
P(x)=Z−12−E(x)/λ, Eq. 6.
Z=Σx2−E(x)/λ, Eq. 7.
and
h0=−ΣxP(x)log2P(x), Eq. 8.
where the auxiliary parameter λ>0 is the Lagrange multiplier associated with the entropy constraint.
However, E(x) does not generally remain constant since they depend implicitly on P(X), and altering it will cause E(x) to change too. Accordingly, the system 100 employs an iterative algorithm where, in each iteration, the E-factors are computed based on the current source model from the source generator 102. The source generator 102 is then updated treating the E-factors as constant. Such is summarized in the algorithm below:
For the general case of Markov source optimization for channels with memory and for a given Markov source model Qij=μiPij, the SER can be linearly approximated in a manner similar to Equation 3 as:
Pe=Σi,jQijEij, Eq. 9.
for suitable coefficients Eij. The estimation of these coefficients is implemented via training. Therefore, the source optimization problem of Equation 1 becomes
such that
H(X)−Σi,jQij log2Pij≥h0. Eq. 11.
Again, assuming that the E-factors Eij are fixed quantities, it can be shown that the optimal Markov source model can be obtained. For example, let λ>0 denote the as yet unknown Lagrange multiplier associated with the entropy constraint. Then, construct a “noisy” adjacency matrix Aij=2−E
where u and v are respectively the left and right eigenvectors of A corresponding to its largest eigenvalue λmax. Afterwards, λ is chosen to satisfy the source entropy constraint as follows:
h0=−Σi,jμiPij log2Pij. Eq. 13.
This is a boundary solution in the sense that the source rate inequality constraint is in fact satisfied with an equality. The solution is found using a standard nonlinear equation solver.
Estimation of the E-factors Eij can be obtained through training. Generally, in practice, the E-factors Eij are difficult to compute analytically. A stochastic estimate for Eij using training data is presented. In this regard, let the sequence x1N of length N denote the input to the channel 103 and the sequence {circumflex over (x)}1N denote the output of the equalizer/SOVA detector 104 (i.e., the detected training sequences). Also, let εn=Π(xn≠{circumflex over (x)}n) denote the error indicator sequence, and wH(⋅) be the Hamming weight function. Thus, as described in greater detail in the below:
Eij=Eija−Eib, Eq. 14.
where
for a window size parameter J that is typically chosen as a small integer.
In the summation of Eq. 15, all time indices n are observed where state sn−=i to the state sn=j. For those indices, the number of errors found in the subsequence {εn−J, . . . , εn−J+M} are accumulated and a local neighborhood of time index n is identified. Likewise with Eq. 16, the number of errors found in {εn−J+1, . . . , εn−J+M} are accumulated as the system 100 passes through state sn=i at time n. Both expressions are relatively straightforward computations involving pattern matching and accumulation of error weights. This algorithm can be summarized as follows.
Postcoding (e.g., postcoder 120) results in bits that are not constrained. These bits are then transferred to a Low Density Parity Check (LDPC) encoder 121 to add parity 129 for error correction. The precoder 122 provides returns the bits to their constrained form with parity bits 129. Precoding by the precoder 122 can be used to improve performance. The BER in the postcoded domain 127 (e.g., using bits an and ân) is minimized while maintaining the Markov property in the precoded domain bits xn (e.g., on the media), excluding the parity bits 129 added by the LDPC encoder 121.
The equalizer/SOVA detector 104 and the channel 103 generally constitute an environment from the point where the bits are transmitted or written onto media, such as a storage device (e.g., disk drive or solid state drive—“SSD”), to the point where they are received and detected. The LDPC decoder 123 and the precoder 124 return the sequence to its form after the effects of the LDPC encoder 121 and the postcoder 120. The only change to the algorithm is that the system 100 computes the error vector based on the postcoded bits, i.e., εn=Π(an≠ân), again excluding the parity bits 129. The Markov source decoder 125 then extracts the Markov code to reveal underlying data.
The optimizer 105 computes the E-factors Eij from the error vector εn and computes new source probabilities Qij by solving Equation 10. This generally involves finding the largest eigenvalue of a matrix and solving nonlinear equations. Hence, the calculations may be more suitable for implementation in firmware or as an offline calibration, but specialized hardware implementation is also possible. The free parameter h0 controls the source rate and yields an extra degree of design flexibility.
The source generator 105 can be initialized with an IID model (e.g., with all states being equally probable). Alternatively, in a magnetic recording system, different disc drives or even different zones on a given disc may have different optimal Markov sources, owing to their different signal/noise statistics. These different Markov models may, however, be similar enough that the source generator 102 could start with a relatively good/common initial solution such that the optimizer 105 can “fine tune” the initial code separately for each drive or zone within a relatively small number of iterations.
The system 100 can be used with any alternative cost function (instead of the SER) when it is expressed in a linear form similar to Equation 5. For example, the system 100 can minimize the conditional entropy H(X|Y) of input X given the output Y. This cost function represents the uncertainty in X given Y. To implement such, the system 100 sets Eij=−Tij, where Tij are the T-factors of a generalized Blahut-Arimoto algorithm defined as:
Tij=ΣyP(y|sn−1n=(i,j))log2P(sn−1n=(i,j)|y)−ΣyP(y|sn=i)log2P(sn=i|y) Eq. 17.
This approach maximizes the channel capacity but with the source rate being specified explicitly as: H(X)=h0.
The following is an example Markov source designed for magnetic recording channels, specifically for a drive having a channel bit density (CBD) of 2.8. Here, the goal was to optimize the Markov code having the same source rate as a maximum transition run (MTR) constraint code of K=3, but with a better BER performance. The MTR code, which is commonly used in magnetic recording, limits the number of consecutive transition in the source sequence to K=3 and has a source rate of HMTR3=0.94678 bits. The motivation for such a design is that it would be a drop-in replacement for the MTR-3 code, due to its identical source rate, without requiring changes to other system parameters such as the CBD and LDPC code rates.
The BER minimizing source optimizer was implemented with the setting of h0=HMTR3=0.94678 starting from an IID source model.
Expression for Pe
One goal is to show that the probability of detection error Pe can be expressed approximately as Eq. 9 to derive explicit formulas for Etij. For example, let x1N and {circumflex over (x)}1N denote the channel input and SOVA detected output training sequences. It can then be assumed that the probability of xn being detected incorrectly depends strongly only on a “local neighborhood” consisting of a (2J+1) symbol subsequence Πn=xn−Jn+J for a suitable window size parameter J as follows:
P({circumflex over (x)}1N≠xn|x1N)≈P({circumflex over (x)}1N≠xn|Πn)E(Πn). Eq. 18.
This approximation is used to limit the computational complexity of the algorithm. By ergodicity, a statistical estimate for E(Π) for each symbol pattern Π of length 2J+1 is:
where Π(⋅) is the indicator function. Then, the SER expression is:
Pe=ΣΠP(Π)E(Π). Eq. 20.
Note that the symbol subsequence Π=π02J is equivalent to a subsequence α02J−M+1 of an M-bit detector trellis states αkπkk+M−1. Therefore, the Markov source model Qij=μiPij for the source generator 102 implies that:
P(Π)=P(α02J−M+1)=Πk+02J−MQα
Since the probability P(Π), and hence Pe, are both nonlinear functions of the Markov probabilities, an approximate expression for Pe can be derived by linearizing near a given source Qij=μiPij. In this regard, the derivative of log P(Π) at the current model Qij=μiPij can be computed as:
δ log P(Π)≈Σk=02J−Mδ log Qα
Therefore,
So, Pe can be approximated at the current model Qij=μiPij as follows:
This yields the desired form for Pe as follows:
Pe≈ΣijEijaQij−ΣiEibμi≡ΣijEijQij, Eq. 25.
where Eij=Eija−Eib. With U(Π)E(Π)P(Π), it can be readily seen that
To illustrate, consider a binary-input channel with a trellis memory of M=4 and a window size parameter of J=3. Then, Π is a 7-bit pattern consisting of 4 adjacent trellis states, Π≡(α, β, γ, δ). This means that the following expression for P(Π) is:
Assuming that E(Π)=E(αβγδ) has been estimated, Equations 26 and 27 may be computed as Equations 29 and 30 as follows:
where U(αβγδ)=E(αβγδ)P(αβγδ).
Training Based Estimation of Eij
In this section, it is illustrated how E(Π) and Eij can be estimated from training data. For example, let εn=Π(xn≠{circumflex over (x)}1N) denote the bit error sequence and let wH(⋅) denote the Hamming weight. A stochastic (e.g., training based) estimate of E(Π) is then given by
Inserting Equation 31 into Equation 26 yields
which can be rewritten as
Similarly, inserting Equation 31 into Equation 27 and proceeding as before:
And then, the E-factors can be estimated using Eij=Eija−Eib.
The embodiments can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment containing both hardware and software elements. One embodiment disclosed herein is implemented in software, which includes but is not limited to firmware, resident software, microcode, etc.
Furthermore, the embodiments can take the form of a computer program product accessible from the computer readable medium 306 providing program code for use by or in connection with a computer or any instruction execution system. For the purposes of this description, the computer readable medium 306 can be any apparatus that can tangibly store the program for use by or in connection with the instruction execution system, apparatus, or device, including the computer system 300.
The medium 306 can be any tangible electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system (or apparatus or device). Examples of a computer readable medium 306 include a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk and an optical disk. Some examples of optical disks include compact disk-read only memory (CD-ROM), compact disk-read/write (CD-R/W) and DVD.
The computing system 300, suitable for storing and/or executing program code, can include one or more processors 302 coupled directly or indirectly to memory 308 through a system bus 310. The memory 308 can include local memory employed during actual execution of the program code, bulk storage, and cache memories which provide temporary storage of at least some program code in order to reduce the number of times code is retrieved from bulk storage during execution. Input/output or I/O devices 304 (including but not limited to keyboards, displays, pointing devices, etc.) can be coupled to the system either directly or through intervening I/O controllers. Network adapters may also be coupled to the system to enable the computing system 300 to become coupled to other data processing systems, such as through host systems interfaces 312, or remote printers or storage devices through intervening private or public networks. Modems, cable modem and Ethernet cards are just a few of the currently available types of network adapters.
This patent application claims priority to, and thus the benefit of an earlier filing date from, U.S. Provisional Patent Application No. 62/375,239 (filed Aug. 15, 2016), the entire contents of which are hereby incorporated by reference.
Number | Name | Date | Kind |
---|---|---|---|
5806029 | Buhrke | Sep 1998 | A |
7509259 | Song | Mar 2009 | B2 |
8207874 | Yang et al. | Jun 2012 | B2 |
8976474 | Wang et al. | Mar 2015 | B1 |
20030026028 | Ichihara | Feb 2003 | A1 |
20070217522 | Sun et al. | Sep 2007 | A1 |
20110222584 | Michaels | Sep 2011 | A1 |
20110311003 | Sun et al. | Dec 2011 | A1 |
20140058731 | Tyagi | Feb 2014 | A1 |
20140365201 | Gao | Dec 2014 | A1 |
20150323989 | Bateman | Nov 2015 | A1 |
Number | Date | Country | |
---|---|---|---|
20190058494 A1 | Feb 2019 | US |
Number | Date | Country | |
---|---|---|---|
62375239 | Aug 2016 | US |