DECODING BINARY CODE WORDS

Abstract: When communicating analogue signals over a data link an analogue signal is digitized at a transmitter into code words which are transmitted. This sequence is reversed at a receiver. At the receiver an estimate is made of the analogue signal value corresponding to each received code word taking into account the conditional probabilities that particular code words were transmitted for the particular received code word. These probabilities are calculated taking into account at least one prevailing condition such as recent history, soft decision information and channel state.

Description: The present invention relates to a method of, and an apparatus for, decoding a succession of binary code words y j (t) received from a transmission channel, which code words result from the transmission over the channel of successive binary code words x j (t) representative of respective successive values u j (t) of an analogue signal, where x j (t) = F(u j (t)) . The present invention also relates to method of, and system for, digitally communicating data representative of successive values u j (t) of an analogue signal. The transmission of analogue signals via digital channels generally requires the conversion of the analogue signal to a sampled digital representation, encoding, transmission over the data link, reception, decoding and reconstruction of the original signal. If error protection is required then it is not unusual for redundant data to be added to enable error correction to be effected at the receiver. This applies to, for example, pulse code modulation (PCM) transmission of speech and also to speech coding such as parametric coding using vocoders. In a vocoder the parameters can themselves be viewed as sampled quantized analogue waveforms which require only moderate transmission accuracy to enable reproduction of the original speech signal, hence the small numbers of bits required compared with conventional PCM. However it will be realised that errors in some of the bits, for example the most significant bits (MSB) will produce much greater subjective effects than errors in bits of lower significance. Conventional error correction codes for data transmission have equal error correcting power for any data bit, which may be a wasteful use of resources when the errors occur in bits of low significance. A way of improving matters in this respect is discussed in an article by G. Robert Redinbo entitled "The Optimum Mean-Square Decoding of General Block Codes" in Information and Control, Vol.31 pages 341-363 (1976) which discusses a method as defined in the first paragraph. However, the result of the known decoding method is still liable to result in errors and it is an object of the present invention to enable these errors to be reduced. According to a first aspect of the present invention there is provided a method of decoding a succession of binary code words y j (t) received from a transmission channel, which code words result from the transmission over the channel of successive binary code words x j (t) representative of respective successive values u j (t) of an analogue signal, where x j (t) = F(u j (t)) and F is a mapping function, in which method successive values v j (t) are generated which are estimated from the successive received code words y j (t) to correspond to the successive values u j (t), the estimation process taking the form where F⁻¹ denotes the inverse of the mapping function F, n is an integer, and each p(x i |y j (t)) is an estimate of the relative conditional probability that x i was transmitted, y j (t) having been received, characterised in that each p(x i |y j (t)) is made proportional to exp-[(v j (t-1)-F⁻¹(x i ))²/2(sigma)²] , where (sigma)² is the current variance of the successive generated values v j (t) and v j (t-1) the previously generated values. According to a second aspect of the present invention there is provided an apparatus for decoding a succession of binary code words y j (t) received from a transmission channel, which code words result from the transmission over the channel of successive binary code words x j (t) representative of respective successive values u j (t) of an analogue signal, where x j (t)=F(u j (t)) and F is a mapping function, the apparatus comprising means for generating successive values v j (t) by estimating the successive received code words y j (t) corresponding to successive values u j (t) in accordance with where F⁻¹ denotes the inverse of the mapping function F, n is an integer, and each p(x i |y j (t)) is an estimate of the relative conditional probability that x i was transmitted, y j (t) having been received, the apparatus being characterised by means for calculating each p(x i |y j (t)) by making each p(x i |y j (t)) proportional to exp-[(y j (t-1)-F⁻¹(x i ))²/2(sigma)² , where (sigma)² is the current variance of successive generated values v j (t) and v j (t-1) the previously generated values. If desired the estimate may also take into account the current bit error rate in the received code words or the current probabilities of each individual bit of the received code words being in error. It has been found that calculating said conditional probability in this way enables the errors resulting from the known method to be reduced. According to a third aspect of the present invention there is provided a method of digitally communicating data representative of successive values u j (t) of an analogue signal, comprising generating successive binary code words x j (t) representative of respective said successive values u j (t), where x j =F(u j (t)) , transmitting over a transmission channel the code words so generated, receiving code words from the transmission channel, and generating by a method in accordance with the first aspect of the present invention values v j (t) which are estimated from the received code words y j (t) to correspond to the values u j (t). According to a fourth aspect of the present invention there is provided a system of cooperating apparatus for digitally communicating data representative of successive values u j (t) of an analogue signal, comprising means for generating successive binary code words x j (t) representative of respective said successive values u j (t), where x j = F(u j (t)) , means for transmitting the binary code words over a transmission channel, means for receiving the binary code words from the transmission channel and an apparatus in accordance with the second aspect of the present invention for generating values v j (t) which are estimated from the received code words y i (t) to correspond to the values u j (t). Embodiments of the present invention will now be described, by way of example, with reference to the accompanying drawings, wherein: Figure 1 illustrates a data frame which may be used in the transmission of channel vocoded data, Figure 2 is a block schematic diagram of a transmitter, Figure 3 is a block schematic diagram of a receiver, and Figure 4 shows the operations performed by one of the blocks of Figure 3. In Figure 1, the data frame contains various quantised parameters namely pitch P (6 bits), energy E (5 bits), channel amplitudes CA (14 channels in which amplitudes are represented by 3 bits, equivalent to 8 levels) and synchronisation, SYN (1 bit). If transmitted at 2400 bps then the 54 bit data frame represents 22.5ms of speech. Over some transmission channels error rates of between 1% and 10% are not unusual. In the case of speech digitised using conventional vocoders a 1% error rate produces a noticeable slurring of the speech and an error rate of greater than 5% renders the reproduced speech unintelligible. The effects of signalling errors can be reduced by a method in accordance with the present invention wherein the decoding decisions take into account the conditional probabilities that particular code words were transmitted, a particular code word having been received, which probabilities are calculated taking into account a prevailing condition such as the current bit error rate in the received code words, the current probabilities of each individual bit being in error (soft decision information), one or more previous decoding decisions and/or the statistical properties of the transmitted signal. Encoding speech using minimum rms coding assists in reducing the effects of signalling errors. Figure 2 is a block diagram of a transmitter for transmitting data representative of successive values of an analogue signal, in the present case successive values of a plurality of analogue signals representing various properties of a speech signal from a microphone 1. This speech signal is first analysed in a vocoder 2, in the present case a conventional channel vocoder, which converts it into digital form and produces digital words representative of successive values of the fundamental pitch of the speech on an output 3, digital words representative of successive values of the energy of the speech on an output 4, and digital words representative of successive values of the amplitude of the speech in each of fourteen frequency ranges on respective outputs 5₁....5₁₄. These outputs are coupled to inputs 6,7 and 8₁....8₁₄ respectively of an encoding and formatting device 9 which produces a succession of data frames each as described with reference to Figure 1 on an output 10. Output 10 is coupled to the modulation signal input 11 of a modulator 12, for example a Binary Phase Shift Keying modulator, in which the data frames are modulated on a carrier signal applied to a further input 14 by a carrier signal generator 13. The resulting modulated carrier appears, after amplification, on an output 15 whence it is applied to an aerial 16 and transmitted over a radio channel. Device 9 encodes the successive digital words applied to at least one of its sixteen inputs into binary code words containing redundancy, before inserting the results into the respective data frames. For the purpose of the present description the encoding of the vocoder output words on just one of these inputs, viz input 7, will be described. These output words, representative of successive values u j (t) of the speech energy (the variation of which energy with time effectively itself constitutes an analogue signal) in the present case each consist of four bits and each is encoded as a corresponding five-bit word x j (t) in device 9. This may be done by means of a ROM look-up table which therefore performs the operations x j (t) = F(u j (t)) . The particular conversions effected may be as shown in the following Table. Figure 3 is a block diagram of a receiver for the modulated carrier signal transmitted over a broadcast channel by the transmitter of Figure 2. The carrier, after pick-up by an aerial 17, is applied to a mixer 18, a carrier recovery circuit 19 and a bit clock recovery circuit 20 via a receiver section 47 which inter alia translates it to a lower frequency. Carrier recovery circuit 19 extracts the translated carrier frequency and phase in known manner from the received signal and applies it as a reference signal to the second input of mixer 18. Bit clock recovery circuit 20 extracts the bit clock frequency and phase from the translated received signal in known manner and applies it to a timing and synchronisation control circuit 21. The circuit 21 in response generates control signals for an integrate-and-dump circuit 22 and a sample-and-hold circuit 23 on outputs 24 and 25 respectively. The output signal of mixer 18 (which effectively acts as a demodulator for the received signal) is applied to the integrate-and-dump circuit 22 which, under the control of the control signal from circuit 21, integrates it over each of the successive bit periods and dumps the result at the end of each bit period. The result of this is applied to the sample-and-hold circuit 23 which is controlled by circuit 21 to sample-and-hold the output signal of circuit 22 just before each resetting of this output signal. The output signal of circuit 23 is applied to an analogue-to-digital converter 26 which is controlled by a signal on a further output 27 of circuit 21 to convert each value held by circuit 23 to digital form and apply this to an input 52 of a processing arrangement 28 which is also controlled by a control signal applied to an input 48 thereof from an output 49 of circuit 21. The output signal of arrangement 28 appears on an output terminal 29 which may be connected to the input of a vocoder synthesiser (not shown). A further output 30 of arrangement 28 is coupled to a further input 31 of circuit 21 for applying the synchronisation bit of each data frame (Figure 1) to circuit 21 to enable circuit 21 to maintain frame as well as bit synchronisation. (Circuit 21 may be arranged, for example, to monitor a data pattern imposed on the succession of synchronisation bits over a period of time and respond by making timing adjustments as necessary to remain synchronised). Figure 4 is a diagram showing the mode of operation of the processing arrangement 28 of Figure 3 (which may in practice be constituted by a suitably programmed microcomputer) in particular in respect of the processing of the code words y j (t) received in response to the transmission of the code words x j (t). The output signals of the A/D converter 26 (one per bit period) are compared with a reference, in the present case zero, in process block 32, resulting in a binary "1" if the relevant signal is greater than zero and a binary "0" if it is less than zero (or vice versa depending on the actual modulation characteristic employed). Thus a hard decision is made on whether each received bit is "1" or "0". The results of these decisions are applied to the timing and control circuit 21 of Figure 3 via output 30 and are also clocked into a storage buffer 33 such as a shift register. Each received code word y j (t) is extracted from its thus stored received data frame in a process block 34. The reliability of each individual received bit is also assessed in a process block 35. To this end a running mean m and a running variance VAR, running for example over 10-100 bit periods, of the magnitudes of the successive output signals n of the A/D converter 26 are calculated in a process block 36, the broadcast channel current signal-to-noise ratio (SNR) is estimated from these in a process block 37 according to the formula SNR=m²/VAR , and the probability p b of each individual bit being in error is calculated from SNR, m and the magnitude of the corresponding output signal n of A/D converter 26 in process step 35 according to the formula p b =1/(1 + exp(SNR x |n|/m)) and clocked into a storage buffer 38. Thus for each bit stored in buffer 33 there is a quantity stored in buffer 38 indicative of the probability that that bit is in error. When each word y j (t) is extracted from buffer 33 in function block 34 the probabilities p b of errors in the respective bits thereof are extracted from buffer 38 in a process step 39. These words and probabilities are then utilised in a process step 40 to calculate a probability density function corresponding to and conditional on each word y j (t). More particularly, for each word x i which could have been transmitted, i.e. which is contained in the Table under the heading "output word x of device 9", a quantity p(y j (t)|x i ) is calculated, where p(y j (t)|x i ) is equal to a ik being the kth bit of x i , b jk being the kth bit of y j (t), G ij (a ik ,b jk ) being equal to 1-p b (k) if a ik =bjk and being equal to p b (k) if a ik =b jk and being equal to p b (k) if a ik is not equal to b jk , p b (k) being the probability that the kth bit of y j (t) is in error, and q being the number of bits in a code word (=5 in the present case). In fact in general a quantity p(y j (t)|x i )p(x i ) is calculated for each 5-bit word, where p(x i ) is the probability that 5-bit word x i was transmitted, it being assumed in the present case that all x i which are included in the Table under the heading "Output word x j of device 9" have equal probabilities of being transmitted, the probability p(x i ) of each code word which is not included under this heading being transmitted being of course equal to zero. In some circumstances, e.g. because of particular statistical properties of the signal on input 7 in Figure 2, the probabilities of the various x i which are included in the Table being transmitted will not be equal, in which case this will have to be taken into account when performing the calculations in process block 40. The results of the calculations performed in process block 40 for each word y j (t) are now used in a process block 41 to estimate what the corresponding value u j (t) of the signal on input 7 in Figure 2 was. More particularly each such estimate, which will be denoted as v j (t), is calculated from the expression where each p(x i |y j (t)), a measure of the probability that x i was transmitted, y j (t) having been received, is made proportional to the corresponding value p(y j (t)|x i )p(x i ) calculated in process step 40 and F⁻¹ denotes the inverse of the mapping function from the first two columns of the Table to the third column thereof. As an example, if it is assumed that each p b is small, for example 0.05, that the remainder of the process blocks shown in Figure 4 are omitted (as they may be) and that a received code word y j (t) is equal to 00101 (which is not included in the third column of the Table) then the only p(y j (t)|x i )p(x i ) calculated in process step 40 which will have significant magnitudes are those corresponding to the three 5-bit words 01101, 00001 and 00100, one bit being in error in each case and the other 5-bit words in which one bit is in error, viz 10101 and 00111, not being included in the Table. From the Table the said three 5-bit words correspond to decimal 11, 3 and 5 respectively so the calculation performed in step 41 will take the form v j ≈(0.05x11+0.05x3+0.05x5)/(0.05+0.05+0.05) i.e. v j (t) ≈ 6. As so far described the probability pb of each individual bit of y j (t) being in error is separately calculated by means of the blocks 35-39 of Figure 4. As an alternative these blocks may be replaced by process steps in which the current overall probability p e of a bit error is estimated. This may be done, for example, by examining each word y j (t) to determine whether or not it forms part of the coding Table. If it does not then obviously at least one bit error has occurred whereas if it does it is likely, at least for comparatively small bit error rates, that no bit errors have occurred. In this case the calculation of each p(y j (t)|x i ) in block 40 from is replaced by a calculation of each p(y j (t)|x i ) from p(y j (t)|x i ) = p e d (1-p e ) q-d where p e is the current overall probability of a bit error, d the Hamming distance between y j (t) and x i , and q the number of bits in a code word. In addition to the process indicated by the blocks 32-40 of Figure 4 the arrangement 28 of Figure 3 also performs a process indicated by the blocks 42-45 of Figure 4. In this latter process, the estimates v j (t) produced by process block 41, and the estimates v j (t-1) delayed by one data frame period in a process step 42 are subtracted one from the other in a process step 43. Thus the results of process step 43 are the differences between successive estimates v j (t). The running variance (sigma)² of these differences, i.e. a running sum of their squares, is then calculated in a process step 44 and this variance (sigma)² and the delayed estimates v j (t-1) are then utilised in a process step 45 to calculate a further probability density function corresponding to and conditional on each delayed estimate v j (t-1). This function is used in the step 41 to modify each estimate v j (t) which would otherwise be produced so that the modified estimate takes into account what the previous estimate v j (t-1) was, i.e. what the difference between the current estimate and the previous estimate is likely to be. Many different assumptions can be made about the probabilities of different differences occurring; in the present case it is assumed that these probabilities form a Gaussian distribution around the previous estimate v j (t-1). Thus in process step 45, for each received code word y(t) produced by process step 34, a quantity p(x i |v j (t-1))=exp-[(v j (t-1)-F⁻¹(x i ))²/2(sigma)²] is calculated for each code word x i which could have been transmitted, this quantity being proportional to the conditional probability that code word x i was transmitted, a value v j (t-1) having been estimated to correspond to the code word received previously. These quantities p(x i |v j (t-1)) are now used in the process step 41 to modify the corresponding values (x i |y j (t)) so that each p|y i ) is now also made proportional to the corresponding p(x i |v j (t-1)) by multiplication. Taking the example described previously in which a code word y j (t)=00101 is received, and assuming for example that the immediately preceding estimate v j (t-1) was decimal 10, the coefficient of decimal 5 in the calculation for v j (t) will be reduced relative to that of decimal 11, and the coefficient of decimal 3 will be reduced even further (each being multiplied by the corresponding p(x i |v j (t-1)), so that the result of the calculation will lie somewhere between decimal 6 and decimal 11, its exact position depending on the current value of the variance determined in step 44. Optionally the process steps indicated by blocks 35-39, or their alternative mentioned previously, may be omitted, it then being assumed for the purpose of process block 40 that the probability of a bit error is constant at a specific value. It will be evident that the radio channel from the transmitter of Figure 2 to the receiver of Figure 3 may be replaced by some other form of transmission channel, for example an infra-red transmission channel in an optical fibre.

Claims: A method of decoding a succession of binary code words y j (t) received from a transmission channel, which code words result from the transmission over the channel of successive binary code words x j (t) representative of respective successive values u j (t) of an analogue signal, where x j (t) = F(u j (t)) and F is a mapping function, in which method successive values v j (t) are generated which are estimated from the successive received code words y j (t) to correspond to the successive values u j (t), the estimation process taking the form where F⁻¹ denotes the inverse of the mapping function F, n is an integer, and each p(x i |y j (t)) is an estimate of the relative conditional probability that x i was transmitted, y j (t) having been received, characterised in that each p(x i |y j (t)) is made proportional to exp-[(v j (t-1)-F⁻¹(x i ))²/2(sigma)²] , where (sigma)² is the current variance of the successive generated values v j (t) and v j (t-1) the previously generated values. A method as claimed in claim 1, wherein each p(x i |y j (t)) is calculated taking into account the current bit error rate in the received code words. A method as claimed in claim 2, wherein each p(x i |y j (t)) is made proportional to p(y j (t)|x i )p(x i ), where p(x i ) is the probability that x i was transmitted, and p(y j (t)|x i ) = p e d (1-p e ) q-d , p e being the probability of a bit error, d the Hamming distance between y j (t) and x i , and q the number of bits in a code word. A method as claimed in claim 1, wherein each p(x i |y j (t)) is calculated taking into account the current probabilities of each individual bit of the received code words being in error. A method as claimed in Claim 4, wherein each p(x i |y j (t)) is made proportional to p(y j (t)|x i )p(x i ), where p(x i ) is the probability that x i was transmitted, and a ik being the kth bit of x i , b jk being the kth bit of y j (t), G ij (a ik ,b jk ) being equal to 1-p b (k) if a ik =b jk and being equal to p b (k) if a ik is not equal to b jk , p b (k) being the probability that the kth bit of y j (t) is in error, and q being the number of bits in a code word. A method of digitally communicating data representative of successive values u j (t) of an analogue signal, comprising generating successive binary code words x j (t) representative of respective said successive values u j (t), where x j =F(u j (t)), transmitting over a transmission channel the code words so generated, receiving code words from the transmission channel, and generating by a method as claimed in any one of claims 1 to 5 values v j (t) which are estimated from the received code words y j (t) to correspond to the values u j (t). An apparatus for decoding a succession of binary code words y j (t) received from a transmission channel, which code words result from the transmission over the channel of successive binary code words x j (t) representative of respective successive values u j (t) of an analogue signal, where x j (t)=F(u j (t)) and F is a mapping function, the apparatus comprising means for generating successive values v j (t) by estimating the successive received code words y j (t) corresponding to successive values u j (t) in accordance with where F⁻¹ denotes the inverse of the mapping function F, n is an integer, and each p(x i |y j (t)) is an estimate of the relative conditional probability that x i was transmitted, y j (t) having been received, the apparatus being characterised by means for calculating each p(x i |y j (t)) by making each p(x i |y j (t)) proportional to exp-[(y j (t-1)-F⁻¹(x i ))²/2(sigma)² , where (sigma)² is the current variance of successive generated values v j (t) and v j (t-1) the previously generated values. An apparatus as claimed in claim 7, further comprising means for making a hard decision on each bit of a recovered code word, storage means for storing said hard decisions as code words, calculating means for calculating the probability of each individual bit being in error, and means for calculating a probability density function corresponding to and conditional on each word y j (t), said means having inputs coupled respectively to signal outputs of the storage means and the calculating means. An apparatus as claimed in claim 7, further comprising means for making a hard decision on each bit of a recovered code word, storage means for storing said hard decisions as code words, and means for estimating the current overall probability of bit error, said means including examining means for determining if each received code word corresponds to an encoded word. A system of co-operating apparatus for digitally communicating data representative of successive values u j (t) of an analogue signal, comprising means for generating successive binary code words x j (t) representative of respective said successive values u j (t), where x j = F(u j (t)) , means for transmitting the binary code words over a transmission channel, means for receiving the binary code words from the transmission channel and an apparatus as claimed in any one of claims 7, 8 or 9 for generating values v j (t) which are estimated from the received code words y i (t) to correspond to the values u j (t).

Inventors: MOULSLEY, TIMOTHY JAMES
Applicants: N.V. PHILIPS' GLOEILAMPENFABRIEKEN, PHILIPS ELECTRONICS UK LIMITED
Application year: 1986
Main classification: H03M5
IPC codes: H04B14, H03M5, H03M13, H03M1