###### Abstract  
The paper presents the method of using vision techniques and artificial neural networks to assess the degree of contamination of cereal during grain reception. The aim of the work is to optimize the management of the contaminant evaluation process of grain mass in warehouse and during purchase using vision techniques based on computer image analysis in order to expedite laboratory work. The obtained photographs of wheat seed samples were analyzed using the \"Agropol V06\" computer application and neural analysis of the obtained empirical results was performed. The application of computer image analysis reduced the time necessary for the quality assessment of the examined material compared to traditional methods. The generated models were characterized by good parameters and high quality, obtaining a high R\({}^{2}\) coefficient at the level of 0.999. As part of the investment project, savings resulting from the time of goods receipt and further production process were made. Profitability was estimated at 191.43% per day. The analysis was made without taking into account other costs related to the business activity. The straight payback period is 3 years. management optimization; artificial neural networks; vision techniques; quality assessment; grain storage; grain contamination +
Footnote †: journal:  
quality values, it is necessary to ensure appropriate storage conditions for products and goods of agricultural origin after harvesting [5]. Cereal grains and seeds are usually stored in bulk because of the better use of storage facility capacity. The storage techniques used are designed to create optimal physical and chemical conditions during the storage process, i.e., limiting the life processes of the grain and the development of microorganisms. The main factors influencing the development of life processes are: high humidity, temperature, access to oxygen, and the operation of pests. Keeping in mind the condition of the seeds prior to the storage process, an appropriate method should be chosen. There are three basic ways to store seeds: dry, cooled, and airtight storage. These can be combined with one another depending on the needs [6]. Dry storage consists in reducing the water content of the material to such a level that its life processes are kept to a minimum. For wheat, barley, ye, and oats, the safe humidity content is up to about 14%, for rapeseed, due to its high fat con-tent 7%, and for pulses 14-15%. Cooled storage is used due to the inhibitory effect of low temperatures on the development of life processes taking place in the grain bed. Cooling the bed below 10-12 \({}^{\circ}\)C inhibits the development of pests in the intergranular spaces. At the temperature of about 5 \({}^{\circ}\)C, the growth of bacteria and molds is inhibited while maintaining all the important biological properties of the grain. The degree of grain cooling depends on the expected storage length, grain humidity, and the presence of foreign organisms. Storing seeds without access to air in hermetic tanks consists in bringing to a state of maximum inhibition of life processes in seeds and living organisms as a result of cutting off the supply of oxygen to the bed. Over time, as oxygen is consumed, the proportion of carbon dioxide in relation to oxygen content increases. The maintenance of the quality of material stored without air is possible only with low water content in the grain (7% and less), its high level results in deterioration of feed and nutritive properties and production of specific acid and alcoholic scents [5]. Storage of agricultural crops is a key stage in the agrifood production chain. Improper storage conditions of cereals promote the development of microorganisms, including fungi, commonly known as molds [7]. Their excessive development may generate economic loss and lead to a decrease in quality parameters of the stored raw material, such as: weakened germination capacity of the seed, weight loss, grain infestation and change in organoleptic and chemical parameters [8].