A production system for individually distinguishable documents of the same kind, wherein the documents are security documents, comprising a device for automatically classifying documents, characterised in that the classification is a quality classification, wherein the production system has the device for quality classification at different points of the manufacturing process and, in the event of a quality classification that indicates a rejection of a specific document, is configured to re-start the manufacturing process for the specific document, wherein the quality classification is determined by a device and the process parameters, such as manufacturing rate or the number of measurements on each product, are adapted over a specific, preferably directly preceding time period depending on the determined quality classification; characterised in that the device of the production system comprises the following: - an input stage, which is configured to receive, in parallel, a plurality of input signals representing measurement values of quality-relevant properties of a document, wherein the quality-relevant properties comprise the dimensions of a product, the uniformity or completeness of a colour application or a sealing, a colour range, the uniformity of the surface and of the edges, the roughness or reflection properties of a surface, the position, identifiability, legibility and/or the quality of the print image of text, lettering and/or security features, - an analysis stage with one analysis unit or a plurality of analysis units associated with different error classes, wherein each analysis unit outputs its own result signal, - an output stage, which is configured to convert result signals of the analysis stage into an at least two-stage quality classification and to output same at an output, and - a plurality of perceptrons arranged in parallel between the input stage and the analysis stage, wherein each perceptron comprises one or more logic circuits or functions, which represent one or a sequence of polynomial functions and/or non-linear functions, transformations and/or activation functions, which are configurable adapted to the property represented by the respective input signal and which are subjected to an input signal fed to the perceptron from the input stage, and wherein an output signal of each perceptron is fed to an analysis unit of the analysis stage. - an input stage, which is configured to receive, in parallel, a plurality of input signals representing measurement values of quality-relevant properties of a document, wherein the quality-relevant properties comprise the dimensions of a product, the uniformity or completeness of a colour application or a sealing, a colour range, the uniformity of the surface and of the edges, the roughness or reflection properties of a surface, the position, identifiability, legibility and/or the quality of the print image of text, lettering and/or security features, - an analysis stage with one analysis unit or a plurality of analysis units associated with different error classes, wherein each analysis unit outputs its own result signal, - an output stage, which is configured to convert result signals of the analysis stage into an at least two-stage quality classification and to output same at an output, and - a plurality of perceptrons arranged in parallel between the input stage and the analysis stage, wherein each perceptron comprises one or more logic circuits or functions, which represent one or a sequence of polynomial functions and/or non-linear functions, transformations and/or activation functions, which are configurable adapted to the property represented by the respective input signal and which are subjected to an input signal fed to the perceptron from the input stage, and wherein an output signal of each perceptron is fed to an analysis unit of the analysis stage.